vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Miscellaneous Hacks - Have a Forum Favicon (https://vborg.vbsupport.ru/showthread.php?t=216686)

smartkidbk5 06-20-2009 10:00 PM

Have a Forum Favicon
 
1 Attachment(s)
This hack is very simple. And creates a forum favicon on your site. A favicon is the small image that appears next to your site title in your browser's tabs.

To create a favicon:
First you need to create an image that is 16x16. It must be saved as "favicon.ico" You must save it as an ICO file, you cannot save it as another file type & just change it to a ".ico"

To Save an Image as an ICO file:
For Adobe Photoshop: Download the Plugin (Attached) & Move it to (In your Adobe Photoshop Folder)- Plug-Ins>File Formats
Now you need to create an image that is 16x16. Also remember, if you want your image to be transparent, make sure you delete the background layer. Once you are done creating your image, Click "File>Save As". Now you will see the option to save it as an ICO file, make sure you save it as an ICO file. Then save the file as "favicon.ico".

For GIMP (To Download GIMP, go to: http://www.gimp.org):
Create a 16x16 Image. If you want your image to be transparent: Click Layer>New Layer, then delete the background layer. Once you are done creating the image, click "File>Save As". Click the "+" that is next to "Select File Type (By Extension)", a dropdown will appear. Scroll down to "Microsoft Windows icon". Then save the file as "favicon.ico".

Now to put it on your forum:
First, upload the "favicon.ico" file into your directory. (You may upload it to any place you wish in your directory)
For Firefox:
In your AdminCP, go to: Styles & Templates>Style Manager
Select the style, and click the dropdown and go to: Edit Templates
Find the template named "headinclude" and click on it
At the very top of the template insert this text:
PHP Code:

<link rel="icon" href="http://yoursite.com/images/favicon.ico" type="image/x-icon" />
<
link rel="shortcut icon" href="http://yoursite.com/images/favicon.ico" type="image/x-icon" /> 

Insert the link to where you previously uploaded your "favicon.ico" file instead of both of the: "http://yoursite.com/images/favicon.ico"

For IE:
Upload the "favicon.ico" file to the root of your directory.
(Ex. If your site domain is "http://exngaming.com", then upload it right into that directory,
so the link would be "http://exngaming.com/favicon.ico")

smartkidbk5 06-21-2009 05:17 AM

Reserved*

raja811 06-21-2009 10:36 AM

thanks

80's 06-21-2009 07:28 PM

Is it necessary? I think you should only change favicon file in forum's froot directory.

smartkidbk5 06-21-2009 08:26 PM

Quote:

Originally Posted by 80's (Post 1834286)
Is it necessary? I think you should only change favicon file in forum's froot directory.

That only works for IE, it doesnt work for Firefox.

Extreme24 06-21-2009 08:51 PM

Quote:

Originally Posted by smartkidbk5 (Post 1834319)
That only works for IE, it doesnt work for Firefox.

Really? It works just fine for me... :confused:

Takes a while to update (cache) but it changes just fine for me (I'm on the newest Firefox version.)

smartkidbk5 06-21-2009 09:45 PM

Quote:

Originally Posted by Extreme24 (Post 1834330)
Really? It works just fine for me... :confused:

Takes a while to update (cache) but it changes just fine for me (I'm on the newest Firefox version.)

I even tried removing the code from the template, & it doesnt appear in firefox. also even if it works for your firefox it might not for others.

Also im not sure which way does it, but it also makes it work in Google Chrome and Opera.
Also its better to do both ways just incase, because there are always some people who are on older browser versions...

Extreme24 06-22-2009 02:25 AM

Yeah I guess you're right. No harm I guess in adding it in to make sure it shows up instead of wondering if it is or not. :)

Xeyn 07-01-2009 09:42 AM

Works on Firefox & Opera for me too.

MattZ DSLR 07-10-2009 02:51 AM

thank you this worked great :)


All times are GMT. The time now is 03:34 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.01086 seconds
  • Memory Usage 1,739KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete