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)
-   -   Forum Home Enhancements - Forum Icons on forumhome (https://vborg.vbsupport.ru/showthread.php?t=214289)

skylab 07-31-2009 06:39 AM

Quote:

Originally Posted by Sofia (Post 1841446)
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.

https://vborg.vbsupport.ru/



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.

giu 08-18-2009 02:10 PM

thanks for this great work, it is great, I've tested on firefox, IE and chrome, with 3.8.4
thank you very much

Drache 09-11-2009 07:10 AM

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

mohassanuk 09-13-2009 12:31 PM

Where is the download, it says no files uploaded. I'd really like to download this mod.

Tibia4 09-27-2009 11:44 PM

very nice, I Installed it and I love it :D

Shotgunmaniac 09-29-2009 05:55 PM

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.

Javierogo 10-03-2009 10:14 PM

INSTALLED!
This code is perfect. Congrats!
:up:

mallick 10-21-2009 03:27 PM

very nice exactly wot i was looking for

vaguard 10-26-2009 08:49 PM

Thank you so much! I was really looking for this, no problems as directions were very clear and easy to follow. Again thank you.

RenatoMN 10-27-2009 06:02 AM

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*


All times are GMT. The time now is 06:45 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.01695 seconds
  • Memory Usage 1,753KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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