View Single Post
  #79  
Old 06-16-2007, 01:19 PM
SuprSurfr SuprSurfr is offline
 
Join Date: Apr 2005
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by turnipofdoom View Post
You can do something like
PHP Code:
<if condition="$druid > 0">
<
div><img src="../../forum/images/wow/Druid.gif" width="20" height="20"Druid$druid</div>
</if> 
Inside your display template. You would need to do one if condition for each class
Awsome!
Thats what i needed!

I used this code:

Code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
	<thead>
	<tr>
		<td class="tcat">
		<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('functions_recruit')"><img id="collapseimg_functions_recruit" 

src="$stylevar[imgdir_button]/collapse_tcat$collapseimg_functions_recruit.gif" alt="" border="0" /></a>
		<span class="smallfont"><strong>$vba_style[portal_blockbullet] Recruitment</strong></span></td>
	</tr>
	</thead>
	<tbody id="collapseobj_functions_recruit" style="$collapseobj_functions_recruit">
	
<tr>
<td class="$getbgrow">
     <if condition="$assassin <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Assassin.gif" width="20" height="20"> Assassin: $assassin</div>
     </if> 
	  <if condition="$berserker <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Berserker.gif" width="20" height="20"> Berserker: $berserker</div>
      </if>
	 <if condition="$brigand <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Brigand.gif" width="20" height="20"> Brigand: $brigand</div>
     </if>
	 <if condition="$bruiser <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Bruiser.gif" width="20" height="20"> Bruiser: $bruiser</div>
     </if>
	 <if condition="$coercer <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Coercer.gif" width="20" height="20"> Coercer: $coercer</div>
     </if>
	 <if condition="$conjuror<> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Conjuror.gif" width="20" height="20"> Conjuror: $conjuror</div>
     </if>
	 <if condition="$defiler <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Defiler.gif" width="20" height="20"> Defiler: $defiler</div>
     </if>
	 <if condition="$dirge <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Dirge.gif" width="20" height="20"> Dirge: $dirge</div>
     </if>
	 <if condition="$fury <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Fury.gif" width="20" height="20"> Fury: $fury</div>
	 </if>
	 <if condition="$guardian <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Guardian.gif" width="20" height="20"> Guardian: $guardian</div>
	 </if>
	 <if condition="$illusionist <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Illusionist.gif" width="20" height="20"> Illusionist: $illusionist</div>
	 </if>
	 <if condition="$inquisitor <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Inquisitor.gif" width="20" height="20"> Inquisitor: $inquisitor</div>
	 </if>
	 <if condition="$monk <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Monk.gif" width="20" height="20"> Monk: $monk</div>
	 </if>
	 <if condition="$mystic <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Mystic.gif" width="20" height="20"> Mystic: $mystic</div>
	 </if>
	 <if condition="$necromancer <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Necromancer.gif" width="20" height="20"> Necromancer: $necromancer</div>
	 </if>
	 <if condition="$paladin <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Paladin.gif" width="20" height="20"> Paladin: $paladin</div>
	 </if>
	 <if condition="$ranger <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Ranger.gif" width="20" height="20"> Ranger: $ranger</div>
	 </if>
	 <if condition="$swashbuckler <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Swashbuckler.gif" width="20" height="20"> Swashbuckler: $swashbuckler</div>
	 </if>
	 <if condition="$shadowknight <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Shadowknight.gif" width="20" height="20"> Shadowknight: $shadowknight</div>
	 </if>
	 <if condition="$templar <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Templar.gif" width="20" height="20"> Templar: $templar</div>
	 </if>
	 <if condition="$troubador <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Troubador.gif" width="20" height="20"> Troubador: $troubador</div>
	 </if>
	 <if condition="$warden <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Warden.gif" width="20" height="20"> Warden: $warden</div>
	 </if>
	 <if condition="$warlock <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Warlock.gif" width="20" height="20"> Warlock: $warlock</div>
	 </if>
	 <if condition="$wizard <> "Closed"">
	 <div><img src=".././images/avatars/EQ2/Wizard.gif" width="20" height="20"> Wizard: $wizard</div>
	 </if>
</td>
</tr>

	</td>
	</tr>
	</tbody>
</table>
<br />
All classes marked "Closed" will be hidden.
The only drawback is that it has to only be "Closed" and not "closed" for it to be hidden.
Any other value numeric or alpha will cause the class to be displayed on the list.

check it out here
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01069 seconds
  • Memory Usage 1,806KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • 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
  • showpost_complete