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
  #42  
Old 06-19-2009, 03:26 PM
ddo36 ddo36 is offline
 
Join Date: May 2009
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mark this as installed.

Great work sofia :up:

I have one question though..

I went to vBulletin Options>> Forum Display Options (forumdisplay)>>Enable Forum Description set to Yes..

So that means that the description of the forum will show below the navbar right?

my question is, where do you think i can edit the forum description(showing below the navbar), so that icons can show in the description without editing the forum description(in the forum manager).

just like what you did in this mod.

coz i'd like that the forum description(below the navbar) will have pictures too.

i hope you understood my question.
Reply With Quote
  #43  
Old 06-19-2009, 08:34 PM
Candostum Candostum is offline
 
Join Date: Feb 2009
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks but I get XHTML error with this code.
Reply With Quote
  #44  
Old 06-20-2009, 09:24 AM
kent_lkc kent_lkc is offline
 
Join Date: Feb 2009
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any idea how to add image to Category ?
Reply With Quote
  #45  
Old 07-02-2009, 01:11 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sofia View Post
Hi aliali. Yes, it's possible, but only 1 icon by forum, so you cannot have old/new posts system.

In the template forumhome_forumbit_level2_post and forumhome_forumbit_level1_post

Find:

HTML Code:
<td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
Replace by:

HTML Code:
<td class="alt2"><a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><img border="0" src="images/misc/$forum[forumid].gif" hspace="4px" align="left"/></a></td>
I tried that but it didn't work.
Could you give me a more "step by step" way to do it, including where to upload the images.
Also do I have to add anything to the code change?
How does it know which picture to add to which Forum?
Reply With Quote
  #46  
Old 07-02-2009, 02:37 PM
Sofia Sofia is offline
 
Join Date: Oct 2006
Location: France
Posts: 725
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by New Joe View Post
I tried that but it didn't work.
Could you give me a more "step by step" way to do it, including where to upload the images.
Also do I have to add anything to the code change?
How does it know which picture to add to which Forum?
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".
Reply With Quote
  #47  
Old 07-02-2009, 03:17 PM
thedagnu thedagnu is offline
 
Join Date: May 2009
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do you know what I should add to specify only which forums need a new image, and the rest be the default...?

Examples like the following picture :

Attachment 101388



Thank you for your help.
Sorry if my english bad.
Reply With Quote
  #48  
Old 07-02-2009, 03:19 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for that, I will give it a try.
Reply With Quote
  #49  
Old 07-09-2009, 09:39 AM
Shankoty Shankoty is offline
 
Join Date: Dec 2006
Location: Cairo,EGYPT
Posts: 25
Благодарил(а): 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".
NOT WORKING , it show me empty area beside the forum,..
Reply With Quote
  #50  
Old 07-09-2009, 12:27 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shankoty View Post
NOT WORKING , it show me empty area beside the forum,..
Didn't work for me either and it can only be set to certain styles.
I just followed this thread and it worked great: http://www.vbulletin.com/forum/showthread.php?t=114545

Now all I am looking for is how to add the icons within the forum on the let instead of the envelopes.
Reply With Quote
  #51  
Old 07-12-2009, 06:56 AM
dimthan dimthan is offline
 
Join Date: Jan 2009
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

where i can find some good icons for my forum using this add ?
thx in advance
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 06:29 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.07807 seconds
  • Memory Usage 2,343KB
  • 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
  • (4)bbcode_html
  • (4)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