The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Username drop down menu extensions?
Is there a way of adding additional items to the drop down menu that triggers if you click on a 'large' user name? Currently, this shows (on my forum at least):
Thanks |
#2
|
||||
|
||||
If you are referring to the postbit, then yes. All you have to do is go edit that in your Styles & Templates area / Style Manager / Style Choice / Edit Templates
In Postbit Templates: I use postbit_legacy so I'll use that for example. Find <!-- post $post[postid] popup menu --> This is the area towards the end of the postbit where it controls what goes in the popup menu. Find: Code:
<if condition="$post['userid'] AND $show['member']"> <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td> </tr> </if> </table> Code:
<tr><td class="vbmenu_option"><a href="http://yourlinklocation.com">Your link text</a></td></tr> |
#3
|
|||
|
|||
Quote:
What I want to do is add a link to the user's gallery page (PhotoPost). This just needs the user number being included in the user gallery root url. I don't suppose anyone has already coded this little routine? Ian |
#4
|
|||
|
|||
Not the slightest idea of what the URL would be (but if you can give me a link to your site and guests can see the gallery then I can take a look and figure it out )
|
#5
|
|||
|
|||
Quote:
Code:
http://dpnow.com/galleries/showgallery.php/cat/500/ppuser/n My user number is 4, so my vBulletin forum profile is at: Code:
http://dpnow.com/forum2/member.php?u=4 Code:
http://dpnow.com/galleries/showgallery.php/cat/500/ppuser/4 Ian |
#6
|
|||
|
|||
Ok then, here we go
Code:
<tr><td class="vbmenu_option"><a href="http://dpnow.com/galleries/showgallery.php/cat/500/ppuser/$post[userid]">My Gallery</a></td></tr> |
#7
|
|||
|
|||
Works a treat! Would you be up to some more bits of work like this - willing to pay. Please PM if to discuss
Many thanks! Ian |
#8
|
|||
|
|||
What would be really good is not to show the link if a user does not have a gallery or only show a link to their gallery if they actually had one.
|
#9
|
|||
|
|||
Quote:
Another improvement would be to include the name of the gallery owner. But as it is, it's very usable. Ian |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|