vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Username drop down menu extensions? (https://vborg.vbsupport.ru/showthread.php?t=133316)

dpnow 12-05-2006 10:19 PM

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):

  • 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:

Code:

<if condition="$post['userid'] AND $show['member']">
        <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;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

Code:

<tr><td class="vbmenu_option"><a href="http://yourlinklocation.com">Your link text</a></td></tr>

dpnow 12-05-2006 11:28 PM

Quote:

Originally Posted by christianb (Post 1132857)
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&amp;userlist=buddy&amp;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

Code:

<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

Quote:

Originally Posted by peterska2 (Post 1133077)
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:

Code:

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:

Code:

http://dpnow.com/forum2/member.php?u=4
..and my gallery front page is at:

Code:

http://dpnow.com/galleries/showgallery.php/cat/500/ppuser/4
Thanks,

Ian

peterska2 12-06-2006 03:35 PM

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>

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

Quote:

Originally Posted by Smoothie (Post 1133595)
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


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
  • Page Generation 0.01069 seconds
  • Memory Usage 1,736KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (8)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete