vb.org Archive

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

blazinchuck 01-01-2011 01:09 AM

user profile drop down menu?
 
is there a way to add or change the options in the profile drop down menu? this is the drop down when you reading post in a thread and you wanna see a user's options

**user X**
[View Public Profile]
[Send a private message to user X]
[Send email to user X]
[Visit user X's homepage!]
[Find More Posts by user X]
[Add user X to Your Buddy List]


i would like to add
[Find all threads started by user X]


so is this possible? thanks...im using 3.6.8

http://carolinabroncos.com

jscieza 01-01-2011 01:11 AM

I believe that you will need to edit template 'postbit' or 'postbit_legacy' according to your site config.

blazinchuck 01-01-2011 01:28 AM

Quote:

Originally Posted by jscieza (Post 2142104)
I believe that you will need to edit template 'postbit' or 'postbit_legacy' according to your site config.

ok, i found it in the postbit_legacy...however, what would be the code for that option...to show "threads started by user"

thank you

--------------- Added [DATE]1293852941[/DATE] at [TIME]1293852941[/TIME] ---------------

heres an example of what im looking at(i think this is where i should be looking for it)

<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['homepage']">
<tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr>
</if>
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<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>

jscieza 01-01-2011 01:41 AM

Try this:

<a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]&starteronly=1">

blazinchuck 01-01-2011 02:15 AM

Quote:

Originally Posted by jscieza (Post 2142111)
Try this:

<a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]&starteronly=1">

hmm, i was expecting something different...i dont want to make a change that will mess things up, especially if i cant find or fix them fast enough lol

BTT, anybody?


is this what it might look like??

<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]&starteronly=1"><phrase 1="$post[username]">$vbphrase[find_threads_started_by_x]</phrase></a></td></tr>

jscieza 01-01-2011 02:26 AM

Then you shouldn't do anything to your vBulletin, you shouldn't install mods nor file edits or template changes.

Relax. Just do the edit and see if it works for you. If not, then simply revert the template.

blazinchuck 01-01-2011 02:38 AM

Quote:

Originally Posted by jscieza (Post 2142117)
Then you shouldn't do anything to your vBulletin, you shouldn't install mods nor file edits or template changes.

Relax. Just do the edit and see if it works for you. If not, then simply revert the template.

touche':)...aight...ill try

--------------- Added [DATE]1293857229[/DATE] at [TIME]1293857229[/TIME] ---------------

ok, its working-but not...here goes


there is a blank spot right under the "find post by user X"
and right above "add to buddy list"


the blank spot takes you to all threads started by user...but the wording isnt there?

i used this code:
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]&starteronly=1"><phrase 1="$post[username]">$vbphrase[find_threads_started_by_x]</phrase></a></td></tr>
</if>


also...i found these codes in "postbit" and "postbit_legacy"...so i added that code to both of those areas

Digital Jedi 01-01-2011 04:21 AM

Quote:

Originally Posted by blazinchuck (Post 2142120)
touche':)...aight...ill try

--------------- Added [DATE]1293857229[/DATE] at [TIME]1293857229[/TIME] ---------------

ok, its working-but not...here goes


there is a blank spot right under the "find post by user X"
and right above "add to buddy list"


the blank spot takes you to all threads started by user...but the wording isnt there?

i used this code:
<if condition="$show['search']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$post[userid]&starteronly=1"><phrase 1="$post[username]">$vbphrase[find_threads_started_by_x]</phrase></a></td></tr>
</if>


also...i found these codes in "postbit" and "postbit_legacy"...so i added that code to both of those areas

It's in both because their different templates for different postbit layouts. Your site will only use one of them, as per the settings in vBulletin Options. You only need to edit the one your using.

You have no text because there's no such phrase as $vbphrase[find_threads_started_by_x]. You can edit the code directly and just put what you want there, or you can add a new phrase in the Phrase Manager. Will probably need to look like this...

Varname: find_threads_started_by_x
Text: Find threads started by {1}

Everything else you can leave as default.

--------------- Added [DATE]1293863086[/DATE] at [TIME]1293863086[/TIME] ---------------


I just noticed, there is phrase callled $vbphrase[find_threads_started_by_user]. But it just says User, not their name.

blazinchuck 01-01-2011 01:26 PM

im sorry, i dont follow...i dont understand the "varname" and phrase...i put the code in the postbit and postbit_legacy....a lil more help please, thanks

--------------- Added [DATE]1293917144[/DATE] at [TIME]1293917144[/TIME] ---------------

btt, thanks

Digital Jedi 01-01-2011 07:45 PM

Quote:

Originally Posted by blazinchuck (Post 2142268)
im sorry, i dont follow...i dont understand the "varname" and phrase...i put the code in the postbit and postbit_legacy....a lil more help please, thanks

--------------- Added [DATE]1293917144[/DATE] at [TIME]1293917144[/TIME] ---------------

btt, thanks

$vbphrase[find_threads_started_by_x] is a phrase that doesn't exist in vBulletin. Since it doesn't exist, vBulletin doesn't know what convert it into, so it converts it into nothing. That's why you're getting no text in that space. You need to add the phrase to your Phrase Manager or just type what you want that to say instead of using the phrase. My instructions above were for if you chose to add a phrase to the Phase Manager. Which if you opened up, you would see what I'm talking about.


All times are GMT. The time now is 02:56 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.01182 seconds
  • Memory Usage 1,749KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete