Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-15-2008, 03:18 PM
fitaholic fitaholic is offline
 
Join Date: Jul 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Add icon beside Forum Icon

Can someone please tell me how to add an icon to a specific thread. (forum) I want to add an icon beside the thread icon. see www.myls1.com for an example of how he does it.

Thank you in advance for responding,

Mr. Fitaholic
Reply With Quote
  #2  
Old 09-15-2008, 03:22 PM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit the forumhome_forumbit_level2_post template. On that site they have added something like the following:
Code:
tr align="center">
	<td class="alt2"><img src="images/statusicon/forum_old.gif" alt="" id="forum_statusicon_124" border="0"></td>
	<td class="alt1Active" id="f124" align="left">

<div style="margin: 0px; padding: 0px; float: left;">
<img src="images/statusicon/124.gif" alt=""></div>

		<div>
			<a href="forumdisplay.php?f=124"><strong>Maintenance and Repairs</strong></a>
			<span class="smallfont">(6 Viewing)</span>

		</div>
		<div class="smallfont">General LSX Maintenance and Repairs</div>
		
		
	</td>
	<td class="alt2">
<div class="smallfont" align="left">
	<div>
		<span style="white-space: nowrap;">
		
		
		<a href="showthread.php?goto=newpost&amp;t=3171" style="white-space: nowrap;" title="Go to first unread post in thread 'Taylor 10.5 MM wires  = JUNK'"><strong>Taylor 10.5 MM wires  = JUNK</strong></a></span>

	</div>
	<div style="white-space: nowrap;">
		by <a href="member.php?find=lastposter&amp;f=124" rel="nofollow">dixonk</a>
	</div>
	<div style="white-space: nowrap;" align="right">
		09-06-2008 <span class="time">11:51 AM</span>
		<a href="showthread.php?p=39636#post39636"><img title="Go to last post" class="inlineimg" src="images/buttons/lastpost.gif" alt="Go to last post" border="0"></a>

	</div>
</div>
</td>
	<td class="alt1">31</td>
	<td class="alt2">302</td>
	
</tr>
In the template it probably looks like this:
Code:
<div style="margin: 0px; padding: 0px; float: left;">
<img src="images/statusicon/$forum[forumid].gif" alt=""></div>
Then you can just name your forum icons like 19.gif for the forum that has the id number 19 e.t.c.
Reply With Quote
  #3  
Old 09-15-2008, 04:19 PM
fitaholic fitaholic is offline
 
Join Date: Jul 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thats awesome Opserity, but how do I make it for only one forum id???
Reply With Quote
  #4  
Old 09-16-2008, 08:33 AM
Opserty Opserty is offline
 
Join Date: Apr 2007
Posts: 4,103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Code:
<if conditon="$forum['forumid'] == XX">
<div style="margin: 0px; padding: 0px; float: left;">
<img src="images/statusicon/$forum[forumid].gif" alt=""></div>
</if>
Reply With Quote
  #5  
Old 09-16-2008, 08:59 AM
salava salava is offline
 
Join Date: May 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks. It is useful for me too.
Reply With Quote
  #6  
Old 09-16-2008, 12:39 PM
fitaholic fitaholic is offline
 
Join Date: Jul 2008
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you Opserty you are the bomb. Something is showing wrong with this code though....


When entered I receive an error saying:

The following error occurred when attempting to evaluate this template:

The conditional on line 7 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.

When I add <if> which is infront of your <if> I continue to get this same error!!!

--------------- Added [DATE]1221627582[/DATE] at [TIME]1221627582[/TIME] ---------------

Can someone please look at Opseritys code and let me know what is missing or why I am receiving an error.

Thank you in advance
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 08:15 PM.


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.04071 seconds
  • Memory Usage 2,210KB
  • Queries Executed 13 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete