vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Forum Icons ( MyLs1 Style ) (https://vborg.vbsupport.ru/showthread.php?t=192629)

christian8a 10-02-2008 10:00 PM

Forum Icons ( MyLs1 Style )
 
This is a mod alot of people wanted me to release so here it is.

What it does: It displays an icon for each forum.

Demo: http://www.myls1.com

########## INSTALL ##########

Admin CP >> Styles & Templates >> Edit Templates >> Forum Home Templates >> forumhome_forumbit_level2_post

Find:

PHP Code:

<tr align="center">
    <
td class="alt2"><img src="$stylevar[imgdir_statusicon]/$forum[imageprefix]forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]/></td>
    <
td class="alt1Active" align="$stylevar[left]id="f$forum[forumid]"

Add underneat:

PHP Code:

<div style="float: left; margin: 0px; padding: 0px;">
<
img src="$stylevar[imgdir_statusicon]/$forumid.gif" alt=""/></div

########## / INSTALL ##########

Now the deal is that you have your own icons and you have to name each file with the number of the id of each forum.

So you go to Forums & Moderators >> Forum Manager

And click on any child forum (not subforum), for example in our case New Members, and look at the top for the Forum id... then you rename the .gif file with the number of the forum id, like: 2.gif

Upload them onto the images / statusicons folder

Now that file will display on that forum, and you go like that for each forum you have.

I have uploaded a PSD file for you to use if you need to make your own.
Is a 40 x 40 px file.

Enjoy!
Ask if you have any question.

SEOvB 10-03-2008 11:52 PM

Couldn't you also enter your code into the forum description to get the same effect but with greater control over name conventions of the icons (and one less template edit)

(same result just different method i beleive)

christian8a 10-04-2008 06:55 PM

Not sure...

Darkgardevoir 10-04-2008 07:45 PM

hi anyone this but in status icon? for 3.7.3

omsa 10-05-2008 09:56 PM

Yes, you can add the HTML in the name of the forum in the forum manager, but you quickly run into a problem with the amount of available characters that you can type in the forum name block. You may get the image to dislpay, but it may not display the full name of your forum. So in that case, you may have to design individual buttons for each forum...not something I would care to do.

omsa 10-05-2008 10:12 PM

I tried adding this to my site, but it doesn't appear to be working. I am running 3.7.3 PL1.

omsa 10-06-2008 01:45 AM

OK, I am very happy, I got this to work after I cleared up a brain fart I managed to self induce! :mad: Thank you very much. :D

My next question is.... how do I get the name of my forum to be centered in the box now and not along the top....

sensimilla 10-06-2008 07:36 AM

I second this.. Worked like a charm but how to make it centered with forum name?

christian8a 10-07-2008 10:22 AM

Quote:

Originally Posted by sensimilla (Post 1638440)
I second this.. Worked like a charm but how to make it centered with forum name?

What do you mean...

RobbieZ 10-07-2008 11:22 AM

Sweet. at last a 3.7 version


All times are GMT. The time now is 08:21 AM.

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.01193 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_php_printable
  • (1)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