The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
One more question, well I guess these are two questions!
I want the below to do two things 1) if someone has a car in his garage it shows the below 2) if someone doesnt have a car it shows a link ------> Add your car now Code:
<if condition="$show['last_seen_online']"><div>$vbphrase[last_seen_online]: $post[lastseen_date] $post[lastseen_time]</div></if>
<br><strong><font color="#FF0000">My Cars:</font></strong><br>
$template_hook[postbit_userinfo_right_after_posts] <if condition="$post['usertitle']"></if><if condition="$post['rank']">
<div class="smallfont"></div>
</if>
|
|
#2
|
||||
|
||||
|
What field are you cars stored in? You would use $post[fieldx] for the car. Something like:
HTML Code:
<if condition="$post[fieldx]"> $post[fieldx] <else /> <a href="link.php>Add Your Car Now</a> </if> |
|
#3
|
|||
|
|||
|
I use a garage system from C&D
I do not think it is a field, Thanks for you help by the way, your always here! --------------- Added [DATE]1236800801[/DATE] at [TIME]1236800801[/TIME] --------------- I have this now, Code:
<if condition="$template_hook[postbit_userinfo_right_after_posts]">
<br><strong><font color="#FF0000">My Cars:</font></strong><br>
$template_hook[postbit_userinfo_right_after_posts]
<else />
<a href="link.php>Add Your Car Now</a>
</if>
|
|
#4
|
||||
|
||||
|
You'll have to ask for help in the modification thread since they know what variables to use in the condition.
|
|
#5
|
|||
|
|||
|
ahh cool, it is a commercial product.. so I will ask on their site!
Thanks for all! I have one other questions.. Some forums have the user title as a link to the donate system, It says something like "want a custom title" and if you click it, donate get moved to a new usergroup and can edit your title. How do you make this link in the title? |
|
#6
|
||||
|
||||
|
You can make the usertitle linked.
In Usergroup Manager > Usergroup > User Title, just enter: HTML Code:
<a href="link-to-wherever.php">want a custom title?</a> |
|
#7
|
|||
|
|||
|
Thanks a lot!
Awesome! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|