Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Icons to ForumHome or/and Forumdisplay by Uploaded images Details »»
Add Icons to ForumHome or/and Forumdisplay by Uploaded images
Version: 1.00, by vuiveclub vuiveclub is offline
Developer Last Online: Mar 2013 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.8 Rating:
Released: 07-30-2007 Last Update: Never Installs: 18
Template Edits
 
No support by the author.

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 ?

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

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 07-31-2007, 11:06 PM
abdulla1 abdulla1 is offline
 
Join Date: Sep 2006
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice mod, reserved!
Reply With Quote
  #3  
Old 07-31-2007, 11:15 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 09-15-2007, 01:13 AM
jmw jmw is offline
 
Join Date: Jan 2005
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack. Thanks vuiveclub. Will install soon.
Reply With Quote
  #5  
Old 09-15-2007, 11:28 PM
rayw rayw is offline
 
Join Date: Mar 2007
Location: Australia
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Cheers!
Reply With Quote
  #6  
Old 09-16-2007, 12:45 AM
MR.BOSS MR.BOSS is offline
 
Join Date: Sep 2007
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

thanks
Reply With Quote
  #7  
Old 09-16-2007, 12:55 AM
rayw rayw is offline
 
Join Date: Mar 2007
Location: Australia
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MR.BOSS View Post
what names should i name my icons, so that they should be viewed?

thanks
*.gif

* represents the number of your forum.
Reply With Quote
  #8  
Old 09-16-2007, 01:22 AM
MR.BOSS MR.BOSS is offline
 
Join Date: Sep 2007
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i tried but nothing happened only x appears
Reply With Quote
  #9  
Old 09-16-2007, 01:24 AM
MR.BOSS MR.BOSS is offline
 
Join Date: Sep 2007
Posts: 131
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what templates should i edit, the first 2 only or the all 4..
Reply With Quote
  #10  
Old 09-16-2007, 01:40 AM
rayw rayw is offline
 
Join Date: Mar 2007
Location: Australia
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by MR.BOSS View Post
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.
Reply With Quote
Reply


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 12:06 AM.


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.08358 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
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
  • (8)bbcode_html
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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_postinfo_query
  • fetch_postinfo
  • 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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete