Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-05-2006, 10:19 PM
dpnow dpnow is offline
 
Join Date: Jul 2006
Location: Hemel Hempstead UK
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 12-05-2006, 11:10 PM
davidw's Avatar
davidw davidw is offline
 
Join Date: Jul 2005
Location: Arkansas
Posts: 2,815
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #3  
Old 12-05-2006, 11:28 PM
dpnow dpnow is offline
 
Join Date: Jul 2006
Location: Hemel Hempstead UK
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by christianb View Post
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
Reply With Quote
  #4  
Old 12-06-2006, 09:15 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 )
Reply With Quote
  #5  
Old 12-06-2006, 12:21 PM
dpnow dpnow is offline
 
Join Date: Jul 2006
Location: Hemel Hempstead UK
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by peterska2 View Post
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 )
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
Reply With Quote
  #6  
Old 12-06-2006, 03:35 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #7  
Old 12-06-2006, 10:14 PM
dpnow dpnow is offline
 
Join Date: Jul 2006
Location: Hemel Hempstead UK
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #8  
Old 12-07-2006, 01:50 AM
Smoothie Smoothie is offline
 
Join Date: Oct 2001
Location: New York
Posts: 1,834
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #9  
Old 12-08-2006, 11:05 AM
dpnow dpnow is offline
 
Join Date: Jul 2006
Location: Hemel Hempstead UK
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Smoothie View Post
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:07 PM.


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.06210 seconds
  • Memory Usage 2,251KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (8)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete