View Full Version : Username drop down menu extensions?
dpnow
12-05-2006, 10:19 PM
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):
View Public Profile
Send a provate message to username
Send emauik to username
Find all posts by username
Add username to Your Buddy List
Thanks
davidw
12-05-2006, 11:10 PM
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:
<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>before the </table> insert your code, such as
<tr><td class="vbmenu_option"><a href="http://yourlinklocation.com">Your link text</a></td></tr>
dpnow
12-05-2006, 11:28 PM
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:
<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>before the </table> insert your code, such as
<tr><td class="vbmenu_option"><a href="http://yourlinklocation.com">Your link text</a></td></tr>
Looks good!
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
peterska2
12-06-2006, 09:15 AM
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 )
dpnow
12-06-2006, 12:21 PM
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 )
The gallery home page for each user is:
http://dpnow.com/galleries/showgallery.php/cat/500/ppuser/n
..where n = their forum user number.
My user number is 4, so my vBulletin forum profile is at:
http://dpnow.com/forum2/member.php?u=4
..and my gallery front page is at:
http://dpnow.com/galleries/showgallery.php/cat/500/ppuser/4
Thanks,
Ian
peterska2
12-06-2006, 03:35 PM
Ok then, here we go
<tr><td class="vbmenu_option"><a href="http://dpnow.com/galleries/showgallery.php/cat/500/ppuser/$post[userid]">My Gallery</a></td></tr>
dpnow
12-06-2006, 10:14 PM
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
Smoothie
12-07-2006, 01:50 AM
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.
dpnow
12-08-2006, 11:05 AM
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.
That would be nice.
Another improvement would be to include the name of the gallery owner.
But as it is, it's very usable.
Ian
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.