NineChime forum

Furry stuff, oekaki stuff, and other stuff.

You are not logged in.

#1 04-06-2019 21:52:10

Noremon
New member

favicon in header.php not working

I have tried using the solutions at { http://www.ninechime.com/forum/viewtopic.php?id=919 } but the favicon only displays on the whoisonline.php and not the header.php (I have chat turned off). I have tried other favicon code examples from StackOverflow and such and no dice either. I am a n00b at coding though. I've tried placing it before <head> after <head> etc. The only thing that worked was putting it before the initial <?php but of course that threw errors about the header.

I have 3 boards on the 000webhost.com account, and want to use different favicons for 2 of them. They are not sharing an "op_" database for members but are separate. Thus is why I haven't just put a favicon.ico in the public directory.

I am using a fresh all over install of the most recent Wacintaki 1.6.7

I hope someone can help! Thank-you

Offline

#2 04-06-2019 22:05:03

Noremon
New member

Re: favicon in header.php not working

{ https://captain-oekaki.000webhostapp.co … /oekaki2kh } & { https://captain-oekaki.000webhostapp.co … /oekaki3ll } are the boards.

I also wanted to thank-you for still doing this service. I was having a nostalgia moment with some old fandom peeps and we started really missing oekaki BBS. So that I can host some small ones for us is really great. Especially the HTML5 part!

Offline

#3 04-07-2019 06:26:59

Waccoon
Administrator

Re: favicon in header.php not working

The link can go anywhere inside the <head> block.  It does not work if it is before <head>.

I think what happened is that you put your favicon link in the wrong place in the PHP code.  There are two headers in "header.php".  The first header is for boards that are set to private, and the second header is the "real" one.  Make sure you add the link element to line 254, roughly in the middle of "header.php", just above the test for the Litebox viewer:

Code:

    <script type="text/javascript" src="Poteto.js">
    </script>

    <link rel="shortcut icon" href="favicon.ico" />
    <link rel="stylesheet" type="text/css" href="<?php echo $cssinclude;?>" title="<?php echo $template_name;?>" />

<?php if (! (isset($cfg['use_viewer']) && $cfg['use_viewer'] == 0)) { ?>
    <script type="text/javascript" language="javascript" src="lytebox/lytebox.js"></script>

If you add the link element to line 42, near the top of "header.php", it won't work.

Also note that on top of "whosonline.php", you need to add the link to "edit_avatar.php", "niftyusage.php", "profile.php", and "viewani.php".

Offline

Board footer

Yep, still running PunBB
© Copyright 2002–2008 PunBB