Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications

Reply
 
Thread Tools
Forum Icons on forumhome Details »»
Forum Icons on forumhome
Version: 1.00, by Sofia Sofia is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 05-21-2009 Last Update: Never Installs: 510
Template Edits
Re-useable Code Translations  
No support by the author.

This mod allows you to have specific forum icons on the forumhome per forum.







(New) You want your statusicons per forum? Read this : https://vborg.vbsupport.ru/showpost....6&postcount=45


Installation


In the template forumhome_forumbit_level2_post,

Find:

HTML Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
Add above:

HTML Code:
<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left"/></a>
Create a folder "iconforums" into your images/misc folder. Upload your icons in images/misc/iconforums.

Indicate a forumid for the images name.


Example:
ID Forum = 3. So your image have this name : "3.gif"
ID Forum = 7. So your image have this name : "7.gif"

You must have an icon for each forum
.

Screenshots

File Type: png Sans titre.png (22.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 07-31-2009, 06:39 AM
skylab's Avatar
skylab skylab is offline
 
Join Date: Feb 2009
Location: Everywhere
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sofia View Post
Hey Joe.
Try to upload images in the folder misc.


If it doesn't work, you can test this:

Only if you have 3.7.x and newer version (3.8.x)

You can have specific status icons by forum.
With no product, no template modification and very easy.








Installation


1. AdminCP


AdminCP >> Forums & Moderators >> Forum Manager >> Choose a forum

In this forum, find: Style Options
In Style Options,
we can modify Prefix for Forum Status Images.

This setting allows you to have a prefix by forum that will be used on status icons filenames.

You must enter here your forum ID.

How I can find my forum ID?
On the same page, at the top of this page, you've your forum name and your forum ID.





In this example, ID is "2", so you must enter "2" in Prefix for Forum Status Images.
Then, I use "_" so that it is more clean on your filenames.


2. Images

Now, you have to create your images for every forum where you want to have specific status icons.

Your images must have this name:
ID_forum_link.gif
ID_forum_new.gif
ID_forum_new_lock.gif
ID_forum_old.gif
ID_forum_old_lock.gif

In my example, images have this name:
2_forum_link.gif
2_forum_new.gif
2_forum_new_lock.gif
2_forum_old.gif
2_forum_old_lock.gif

Finally, upload images into "images/yourstyle/statusicon".
This doesn't seem to work for me. Did everything perfectly as well.
Reply With Quote
  #73  
Old 08-18-2009, 02:10 PM
giu giu is offline
 
Join Date: Mar 2008
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this great work, it is great, I've tested on firefox, IE and chrome, with 3.8.4
thank you very much
Reply With Quote
  #74  
Old 09-11-2009, 07:10 AM
Drache Drache is offline
 
Join Date: Aug 2004
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice mod thanks. Could you tell me how do I make the sub forum list look like those 2 in demo site too please? Thank you
Reply With Quote
  #75  
Old 09-13-2009, 12:31 PM
mohassanuk mohassanuk is offline
 
Join Date: Aug 2008
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is the download, it says no files uploaded. I'd really like to download this mod.
Reply With Quote
  #76  
Old 09-27-2009, 11:44 PM
Tibia4 Tibia4 is offline
 
Join Date: Sep 2009
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice, I Installed it and I love it
Reply With Quote
  #77  
Old 09-29-2009, 05:55 PM
Shotgunmaniac Shotgunmaniac is offline
 
Join Date: Oct 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just got round to trying this, it's great.

However, i have 1 little problem, I have set the forumid, and 1image shows for every forum.
Reply With Quote
  #78  
Old 10-03-2009, 10:14 PM
Javierogo's Avatar
Javierogo Javierogo is offline
 
Join Date: Jun 2008
Location: M?xico
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

INSTALLED!
This code is perfect. Congrats!
:up:
Reply With Quote
  #79  
Old 10-21-2009, 03:27 PM
mallick mallick is offline
 
Join Date: Nov 2008
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice exactly wot i was looking for
Reply With Quote
  #80  
Old 10-26-2009, 08:49 PM
vaguard vaguard is offline
 
Join Date: Jun 2007
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much! I was really looking for this, no problems as directions were very clear and easy to follow. Again thank you.
Reply With Quote
  #81  
Old 10-27-2009, 06:02 AM
RenatoMN's Avatar
RenatoMN RenatoMN is offline
 
Join Date: Nov 2008
Location: Brazil
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

To fix:

1- division between icon/forum title & description
2- error "image not found" in IE browser
3- both fixes

1-
PHP Code:
<div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div
2-
PHP Code:
<if condition="in_array($forum[forumid],array('2','3','4'))"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></if> 
3-
PHP Code:
<if condition="in_array($forum[forumid],array('2','3','4'))"><div style='float:left'><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/iconforums/$forum[forumid].gif" hspace="4px" align="left" /></a></div></if> 
Note: if using fixes 2 and 3, replace ('2','3','4') with the forum IDs you want the image to be show. I hope you don't wonder "why the new uploaded image for forum 50 isn't be showing up?" -> ADD THE ID THERE! :P

*Untested code*
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05837 seconds
  • Memory Usage 2,344KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_html
  • (3)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete