Helpful Information
 
 
Category: vBgarage
Link to vBGarage from Member's Profile

Somebody had requested this and it was something that I had been thinking of adding to my own garage so here is the simple template mod to do it.

It simply adds a link from a member's profile page to their vBGarage page. You only have to edit one template and it's very simple. The template that you want to edit is MEMBERINFO.

So...just go to Admin Control Panel....Style Manager...and Edit the MEMBERINFO template.

Where you put it will depend upon where you want the link to show up in the member's profile. I have it set to show up just below their Username and Group. If that works for you then:

Find:
<if condition="$userinfo['usertitle']"><div class="smallfont">$userinfo[usertitle]</div></if>

and right after that insert:
<a href="vbgarage.php?$session[sessionurl]do=view&amp;id=$post[userid]">My Garage</a>

That's it. Very simple even for somebody of my limited expertise.

Don

Thanks for posting. I was working on a similar answer to this request as well while you posted. I didn't mean to step on your toes.

This shows the link for everybody, right? I'd like to show the link only have uploaded an image to vbgarage.

This shows the link for everybody, right? I'd like to show the link only have uploaded an image to vbgarage.


When I find a way to do that without a query in the postbit loop I may make that for the next version of vbgarage. For now I'm planning on letting those links go to empty garages and serve google ads.

ttt - Any version that works in VB 3.0.7 and VBGarage 4.1.0?

Nevermind. :)










privacy (GDPR)