Direct Link to a Members Profile- Syntax help

Status
Not open for further replies.

Budget101

Customer
When Editing the Standard Phrase: dbtech_vbactivity_home_descr field (btw, the varname: $vbphrase[dbtech_vbactivity_home_descr] )

I'm trying to create a direct link to a members Activity, rather than having them have to click on profile, then the activity tab (which is apparently too difficult to handle for some folks!)...

The problem is, the Syntax doesn't appear to work, no matter what I use.

I've tried using bb:
Code:
$vboptions[bburl]/$memberlink

I've tried:
Code:
$vboptions[bburl]/profile.php

But in this case the bb code doesn't parse, only html code will.

However, I can't seem to get a url to add the username to it so it appears like this as a clickable link:

http://www.mysite.com/members/usernamehere.html#vbactivity

The username obviously needs to autofill with the members correct name...

TIA for any help
 
You can't directly use PHP in phrases, you need to edit the code and replace the call to the phrase with
construct_phrase($vbphrase['dbtech_vbactivity_home_descr'], $vbulletin->options['bburl'])

Then instead of your $vboptions var you put {1}
 
Status
Not open for further replies.

Legacy vBActivity & Awards

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
1,730
Customer rating
0.00 star(s) 0 ratings
Back
Top