vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Forum Display Enhancements - Forum Icons on forumhome "Updated" (https://vborg.vbsupport.ru/showthread.php?t=257202)

fxwoody 01-15-2011 10:00 PM

Forum Icons on forumhome "Updated"
 
1 Attachment(s)
Forum Icons on forumhome V 4.x.x

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

Originally posted for 3.x.x by Sofia in here:
https://vborg.vbsupport.ru/showthread.php?t=214289
So i thought it would be interesting to have it for the newer versions.

Installation:

Find in "forumhome_forumbit_level2_post":
HTML Code:

                                <div class="datacontainer">
                                        <div class="titleline">
                                                <h2 class="forumtitle"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                                <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                        </div>
                                        <vb:if condition="$show['forumdescription']"><p class="forumdescription">{vb:raw forum.description}</p></vb:if>

Replace with:

HTML Code:

                          <div class="datacontainer">
                                    <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px; max-height: 32px; max-width: 32px;" />
                                <div>
                                    <h2 style="font-weight:bold; font-size:13px;"><a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title}</a></h2>
                                      <vb:if condition="$show['browsers']"><span class="viewing">({vb:raw forum.browsers} {vb:rawphrase viewing})</span></vb:if>
                                      <vb:if condition="$show['forumdescription']"><p>{vb:raw forum.description}</p></vb:if></div>

If you have subforums

In "forumhome_subforumbit_post" replace with this:

HTML Code:

<li class="subforum">
<img class="inlineimg" src="{vb:stylevar imgdir_statusicon}/{vb:raw forum.imageprefix}subforum_{vb:raw forum.statusicon}-48.png" alt="" border="0" id="forum_statusicon_{vb:raw forum.forumid}" />
<vb:if condition="$depth > 1"></vb:if>
<a href="{vb:link forum, {vb:raw forum}}">{vb:raw forum.title} <img src="images/misc/iconforums/{vb:raw forum.forumid}.png" alt="{vb:raw forum.title}" style="float: left; margin-right: 4px; width: 25px; height: 25px;"/></a>
</li>

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 or it will generate errors in your log as "missing icons"

Reminder!! Don't forget to change the extension to your images format (.jpg .gif .png)
also, adjust the size with in the codes for better fit on your board ;)

sulasno 01-16-2011 03:32 AM

tagged and thanks

kfyonur 01-16-2011 08:18 AM

thanx super

Eduardo Leon 01-17-2011 09:54 PM

ah nice ..

thanks ;)

cionfs 06-29-2011 01:10 AM

A copy?

https://vborg.vbsupport.ru/showthrea...ighlight=icons

fxwoody 07-01-2011 12:26 AM

Should it be??? If it is, well, all credits to you cionfs ;)

Cheers


All times are GMT. The time now is 03:02 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.01110 seconds
  • Memory Usage 1,733KB
  • 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_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete