vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Miscellaneous Hacks - Add Icons to ForumHome or/and Forumdisplay by Uploaded images (https://vborg.vbsupport.ru/showthread.php?t=153922)

vuiveclub 07-30-2007 10:00 PM

Add Icons to ForumHome or/and Forumdisplay by Uploaded images
 
I've just read this Thread (https://vborg.vbsupport.ru/showthread.php?p=1306419) by powerful_rogue .
Then I think that no one did this way before.

So here is the tutorial.

Open template forumhome_forumbit_level2_post => For Forumhome only!

Find:

HTML Code:

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

HTML Code:

<! -- forum icon by www.vuiveclub.net -->
      <if condition="THIS_SCRIPT === 'index'">
<table>
    <tr>
  <td>
<img border="0" width="60" height="60" src="images/$forumid.gif"/>
        </td></if>
        <td>
<! -- / end forum icon -->
</if>

Then Find:

HTML Code:

    <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
Add before too:

HTML Code:

<! -- end forum icon by www.vuiveclub.net -->
      <if condition="THIS_SCRIPT === 'index'">
</tr>
</table>   
</td>
</if>
<!-- / end forum icon -->

Save and Done!

Make sure that these 2 conditionals are the same!

For Forumdisplay too - edit template forumhome_forumbit_level1_post

Find:
HTML Code:

            <td><img src="$vboptions[cleargifurl]" alt="" width="9" height="1" border="0" /></td>
            <td>
            <div>

Add below:
HTML Code:

<!-- forum icon -->
<table> <tr> <td> <img src="images/$forumid.gif" border="0" width="60" height="60" align="left" />
<!-- / forum icon -->

Find:
HTML Code:

        </td>
        <td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>

Add before:
HTML Code:

        <!-- end forum icon --> </td></tr></table><!-- / end forum icon -->
Now You have to Upload your Icons to images/$forumid.gif
(Change images/ to your own folder)


If you wanna Show Icons for Forumhome, Forumdisplay and sub-Forumdisplay - Delete conditionals
Show Icons on Forumhome only - Leave these conditions default
Show Icons on Forumdisplay only - Do not Edit forumhome_forumbit_level2_post, edit forumhome_forumbit_level1_post only.

And more ? :confused:

Demo: http://www.vuiveclub.net/diendan/

PS: Sorry for my Bad English :D If you don't understand anything, reply here!

abdulla1 07-31-2007 11:06 PM

Nice mod, reserved! :)

Wayne Luke 07-31-2007 11:15 PM

Changing your conditional to simply state:

<if condition="THIS_SCRIPT === 'index'">

Will get you the same results and probably be a lot less resource intensive. Instead of two function calls within an IF statement, you just have the comparison you want.

jmw 09-15-2007 01:13 AM

Great hack. Thanks vuiveclub. Will install soon.

rayw 09-15-2007 11:28 PM

Nice work! Installed and working fine at www.itresource.com.au

Cheers! :)

MR.BOSS 09-16-2007 12:45 AM

what names should i name my icons, so that they should be viewed?

thanks

rayw 09-16-2007 12:55 AM

Quote:

Originally Posted by MR.BOSS (Post 1339828)
what names should i name my icons, so that they should be viewed?

thanks

*.gif

* represents the number of your forum.

MR.BOSS 09-16-2007 01:22 AM

i tried but nothing happened only x appears

MR.BOSS 09-16-2007 01:24 AM

what templates should i edit, the first 2 only or the all 4..

rayw 09-16-2007 01:40 AM

Are you placing the images in the forum_root/images folder?

Quote:

Originally Posted by MR.BOSS (Post 1339849)
what templates should i edit, the first 2 only or the all 4..

forumhome_forumbit_level2_post
forumhome_forumbit_level1_post


Those two should do the job nicely.


All times are GMT. The time now is 04:30 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.01115 seconds
  • Memory Usage 1,747KB
  • 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
  • (8)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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