The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to make the rank icon a link
Hi, I need a hack to make the rank icon a hyperlink but only want to do it for one particular rank. What sort of if statement do I need and what template has the html for this?
|
#2
|
||||
|
||||
Quote:
go to your forum options and enable HTML Template header in the source code. After having done this go to the specific forum php site and open the source code. Look in the source code in which template your graphic is located by looking for the start of the last applet before the graphic starts. When you found this then just use a standard <if condition statement which is described in many many threads here to define what should happen if.... Cheers, |
#3
|
|||
|
|||
Ok, here's what I need to modify in the Postbit template:
<if condition="$post['usertitle']"> <div class="smallfont">$post[usertitle] </div> </if> <if condition="$post['rank']"> <if ???> <div class="smallfont">$post[rank]</div> </if> </if> I just don't know what in the heck to put in the if statement. |
#4
|
|||
|
|||
Can anybody help a brother out here?
|
#5
|
||||
|
||||
Quote:
In postbit_legacy Find: PHP Code:
PHP Code:
|
#6
|
|||
|
|||
I tried this and no workie. In fact it didn't seem to make any difference no matter what I did:
<if condition="$post[membergroupids] == 94"> <div class="smallfont"><a href="subscriptions.php?"><img src="forum/images/ranks/sponsor.gif" border="0" alt="Rank Type" /></a></div><br /> <else /> <if condition="$post[membergroupids] == 99"> <div class="smallfont"><a href="subscriptions.php?"><img src="forum/images/ranks/sponsor.gif" border="0" alt="Rank Type" /></a></div><br /> <else /> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if></if></if> weird! |
#7
|
||||
|
||||
Quote:
I have: PHP Code:
PHP Code:
That might be the reason why your one doesn't work, and mine does. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|