The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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? |
#2
|
||||
|
||||
Its a simple edit to the postbit(_legacy) template.
|
#3
|
||||
|
||||
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> |
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
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&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&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&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&userlist=buddy&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&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&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&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&userlist=buddy&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? |
#6
|
||||
|
||||
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 |
#7
|
||||
|
||||
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? |
#8
|
||||
|
||||
not sure yet will have to get back to ya on it
|
#9
|
||||
|
||||
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? |
#10
|
||||
|
||||
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"
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|