Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

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
  #12  
Old 09-19-2007, 09:49 AM
Mark K Mark K is offline
 
Join Date: Aug 2007
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How would i get this so the images appear right aligned after the forum description?

edit: nm done it
Reply With Quote
  #13  
Old 10-19-2007, 09:22 PM
bandarsq bandarsq is offline
 
Join Date: Mar 2007
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack

I installed it and I got the Forum Name showing twice. anyway around this?
Forum is an Arabic.
Reply With Quote
  #14  
Old 10-29-2007, 02:13 AM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any way of adding the forum title as the ALT tag?
Reply With Quote
  #15  
Old 10-29-2007, 02:16 AM
g00gl3r g00gl3r is offline
 
Join Date: Sep 2005
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Found it. lol You add
Code:
alt="$forum[title]"
to the images source code.
Reply With Quote
  #16  
Old 10-30-2007, 02:56 PM
Roughnek29's Avatar
Roughnek29 Roughnek29 is offline
 
Join Date: Oct 2007
Location: USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do you achieve this?

Reply With Quote
  #17  
Old 10-30-2007, 05:11 PM
Roughnek29's Avatar
Roughnek29 Roughnek29 is offline
 
Join Date: Oct 2007
Location: USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please Help
Reply With Quote
  #18  
Old 03-23-2008, 06:24 PM
GYSMO's Avatar
GYSMO GYSMO is offline
 
Join Date: Jan 2004
Location: Mtl, Qc, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Wayne Luke View Post
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.
can you describe more the how to sorry I did tried and not working

other thing is for one reason or an other I lost the mouse radio sellection click and seem now only working with the wheel to sellect language and multi menu tad boxes

great hack
Reply With Quote
  #19  
Old 04-10-2008, 04:02 PM
NeoAntrax NeoAntrax is offline
 
Join Date: Sep 2007
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got error when i go modify forumhome_forumbit_level2_post

Quote:
The following error occurred when attempting to evaluate this template:

The conditional on line 14 appears to be missing its beginning tag (<if>). This may cause unexpected behavior.


This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
This is my template
Code:
<tr align="center">
	<td class="alt2"><img src="$stylevar[imgdir_statusicon]/forum_$forum[statusicon].gif" alt="" border="0" id="forum_statusicon_$forum[forumid]" /></td>
	<td class="alt1Active" align="$stylevar[left]" id="f$forum[forumid]">
		<div>
			<a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]"><strong>$forum[title]</strong></a>
			<if condition="$show['browsers']"><span class="smallfont">(<phrase 1="$forum[browsers]">$vbphrase[x_viewing]</phrase>)</span></if>
		</div>
		<if condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
		<if condition="$show['forumsubscription']"><div class="smallfont"><strong><a href="subscription.php?$session[sessionurl]do=removesubscription&amp;f=$forum[forumid]" rel="nofollow">$vbphrase[unsubscribe_from_this_forum]</a></strong></div></if>
		<if condition="$show['subforums']"><div class="smallfont" style="margin-top:$stylevar[cellpadding]px"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
	</td>
	<td class="alt2" nowrap="nowrap">$forum[lastpostinfo]</td>
	<td class="alt1">$forum[threadcount]</td>
	<td class="alt2">$forum[replycount]</td>
	<if condition="$vboptions['showmoderatorcolumn']">
	<td class="alt1"><div class="smallfont">$forum[moderators]&nbsp;</div></td>
	</if>
</tr>
$childforumbits
Reply With Quote
  #20  
Old 08-30-2008, 02:10 PM
thanh thanh is offline
 
Join Date: Aug 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi ,

I've got the same error

please have a version for vbb 3.7.x
Thanks
Reply With Quote
Reply

Thread Tools

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 02:36 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.04532 seconds
  • Memory Usage 2,306KB
  • Queries Executed 24 (?)
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
  • (2)bbcode_code
  • (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_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