PDA

View Full Version : Garage and Timeslips Link in Profile


ccstangz
09-18-2005, 11:58 PM
I have VBgarage and VBTimeslips installed on my site. I wanted users to be able to get to those while looking at a user's profile.

I made a real simple change to my template and I added 1 phrase.

First go to your AdminCP
Languages and Phrases
Phrase Manager
Add New Phrase

Add Var
garage_area
Garage Area (or whatever you would like the legend to read)

Next in AdminCP
Styles and Templates
Search in templates
MEMBERINFO

Find this:
<fieldset class="fieldset">
<legend>$vbphrase[posts]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[total_posts]: <strong>$userinfo[posts]</strong> (<phrase 1="$postsperday">$vbphrase[x_posts_per_day]</phrase>)
</td>
</tr>
<if condition="$vboptions['profilelastpost']">
<tr>
<td>
$vbphrase[last_post]:<br />
<a href="$userinfo[lastposturl]">$userinfo[lastposttitle]</a><br />
$userinfo[lastpostdate] <span class="time">$userinfo[lastposttime]</span>
</td>
</tr>
</if>
<tr>
<td><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]"><phrase 1="$userinfo[username]">$vbphrase[find_all_posts_by_x]</phrase></a></td>
</tr>
<tr>
<td><a href="search.php?$session[sessionurl]do=process&amp;showposts=0&amp;starteronly=1&amp;exactname=1&amp;s earchuser=$userinfo[urlusername]"><phrase 1="$userinfo[username]">$vbphrase[find_all_threads_started_by_x]</phrase></a></td>
</tr>
</table>
</fieldset>

Underneath it add this:
<fieldset class="fieldset">
<legend>$vbphrase[garage_area]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
<if condition="$post['userid']"><div><a href="vbgarage.php?do=view&id=$post[userid]">View My Garage</span></a></div></if>
</td>
</tr>
<tr>
<td>
<if condition="$post['userid']"><div><a href="member.php?&do=vehicledetails&userid=$post[userid]">View My Timeslip</span></a></div></if>
</td>
</tr>
</table>
</fieldset>

If you don't have timeslips mode just get rid of this:
<tr>
<td>
<if condition="$post['userid']"><div><a href="member.php?&do=vehicledetails&userid=$post[userid]">View My Timeslip</span></a></div></if>
</td>
</tr>
Save MEMBERINFO and check your profile.

Hope this helps.

Eddie Raps
08-07-2006, 06:19 PM
YOU ROCK!

Thank you very much..