vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   adding an option to username menu (https://vborg.vbsupport.ru/showthread.php?t=64856)

btappan 05-07-2004 08:29 PM

adding an option to username menu
 
i am looking for a way to modify the dropdown menu in posts that appears when you click on the user's username next to thier post. the menu that says "send email to user", "send private message", "view profile" ect, ect.

what i am trying to do is add an option that says "send user a fax". it would work just like the "send user email" link, but with an email address that is different from their standard address and works through a fax server. an address like 1-555-555-1212@faxserver.com i would have these numbers for each user stored in a custom profile field. anyone know how to accomplish both email and faxing capabilities from this menu?

Zachery 05-07-2004 08:53 PM

Its a simple edit to the postbit(_legacy) template.

msimplay 05-07-2004 09:03 PM

just guessing but i think it would be something like
not sure yet lets wait for some other members to post their opinion :P

<if condition="$post[fieldx]">
<tr><td class="vbmenu_option">
<a href="mailto:$post[fieldx]">Fax $post[musername]</a></td></tr>
</if>

Zachery 05-07-2004 09:09 PM

Quote:

Originally Posted by msimplay
just guessing but i think it would be something like
not sure yet lets wait for some other members to post their opinion :P

<if condition="$post[fieldx]">
<tr><td class="vbmenu_option">
<a href="http://mailto:$post[fieldx]">Fax $username</a></td></tr>
</if>

psst no http:// ;)

btappan 05-10-2004 04:31 PM

sorry, i am slowly learning my commands
this is what that section looks like:

<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><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;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid']">
<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>

and this is how i modded it:

<if condition="$show['profile']">
<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]userid=$post[userid]">$vbphrase[view_public_profile]</a></td></tr>
</if>
<if condition="$show['pmlink']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr>
</if>
<if condition="$show['emaillink']">
<tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&amp;u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr>
</if>
<if condition="$post[field2]">
<tr><td class="vbmenu_option">
<a href="mailto:$post[field2]">Fax $post[musername]</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;userid=$post[userid]"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr>
</if>
<if condition="$post['userid']">
<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>

it does'nt seem to change anything at all. any suggestions?

msimplay 05-10-2004 05:01 PM

looks about right to me
u just need to make the profile field that matches the field is all

make sure u fill in the profile field in usercp once u've added the field
because it will only show when u have filled it
due to the if condition

which is best way in my opinion

btappan 05-10-2004 05:16 PM

okay, i found the problem: i had "field2" when it needed to be "field6"
next problem is that when the "Fax to [user]" option is clicked. it opens outlook express because it is opening an email link. I'd like it to use the same type of window that it brings up when you click the "email to [user]" link, which is the vbulletin internal email form window, anyone know if this is possible?

msimplay 05-10-2004 05:18 PM

not sure yet will have to get back to ya on it

btappan 05-10-2004 05:32 PM

I'd like to maybe duplicate form that vbulletin uses to send email or edit it so it says "via email" for an email and "via fax" for a fax.

i' dont know which template this is to even look at editing it or duplicating. do you happen to know which template this email form is?

btappan 05-10-2004 05:36 PM

i'm talking about the form that shows up like when you click on my name in this post and click on "send email to btappan"


All times are GMT. The time now is 11:19 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.01081 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)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