![]() |
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 |
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']"> Code:
<tr><td class="vbmenu_option"><a href="http://yourlinklocation.com">Your link text</a></td></tr> |
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 |
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 :D )
|
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 |
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> |
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 |
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.
|
Quote:
Another improvement would be to include the name of the gallery owner. But as it is, it's very usable. Ian |
All times are GMT. The time now is 02:12 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|