vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Favicon with php? (https://vborg.vbsupport.ru/showthread.php?t=217760)

Fulla 07-03-2009 10:36 AM

Favicon with php?
 
Been reading lots of tutorials on this. I've managed to generate a favicon.ico & upload into my root folder.

The problem is all of them then give a next step of adding a html line into your index.
My index is however in php, so not sure how to accomplish this?

I came across a php tut, tried it but also failed:
PHP Code:

<?php
    
require_once('favicon.inc.php');

    
$favicon = new favicon('http://www.controlstyle.ru/'0);
    
$fv $favicon->get_output_data();

    if (
$fv!=='')
    {
        
header('Content-type: image/png');
        echo 
$fv;
    }
?>

Please help, thank you.

Dismounted 07-03-2009 10:42 AM

vBulletin already comes with a default favicon. All you need to do is replace the existing favicon with the new one. You may also have to clear your cache for it to take effect.

Fulla 07-03-2009 10:55 AM

Ah yea thx, I replaced that & it now work atleast on frontpage/portal
How can I get it working on the forums section?

Main Page - www.gamingcraft.net - Works fine.
Forums - www.gamingcraft.net/forum - Does not work.

Dismounted 07-03-2009 11:15 AM

As I mentioned above, you may have to clear your cache and restart your browser for favicon changes to take effect. I have just visited your forum and I see a favicon that is different to the default vBulletin one.

MattZ DSLR 07-10-2009 02:19 AM

I replaced my and its not showing
any ideas
www.nikon-digital.ca

Dismounted 07-10-2009 05:02 AM

I can see a non-default favicon showing on your forum. As above, you may have to clear your cache and restart your browser for favicon changes to take effect.

Welshy2008 07-11-2009 04:29 PM

It can take a day or two to show too.


All times are GMT. The time now is 09:59 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00971 seconds
  • Memory Usage 1,723KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete