The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Add "post user note" to drop down on member name
When you click on a users name in a thread, it gives you a drop down menu with some options like "view profile" etc. I'd like to add the option to post a user note in that menu but I'm not sure how. Anyone have a snazzy trick up their sleeve to share?
the closest I could find on here was this thread...https://vborg.vbsupport.ru/showthread.php?t=232654 |
#2
|
|||
|
|||
Yeah, you can edit the memberaction_dropdown template and add choices to that menu (you'll have to study it a little to see the html used for each choice, but it's not that complicated). If you wanted to make it a product, you could also create a plugin that adds the code to the memberaction_dropdown_items template hook.
|
#3
|
|||
|
|||
I think (hope) I have the code all sorted, but I'm getting this error.
Quote:
Quote:
Code:
<vb:if condition="is_member_of($bbuserinfo, 5, 6,)"> <li class="left"> <a href="usernote.php?do=newnote&userid={vb:raw memberinfo.userid}"> {vb:rawphrase post_user_note} </a> </li> |
#4
|
|||
|
|||
I'd have to see the whole thing to know what was wrong, but if you're trying to insert some js code, try surrounding it with <vb:literal>...</vb:literal> tags.
|
#5
|
|||
|
|||
the whole thing is that template you mentioned...here it is. I'm trying to add to the bottom the option for mods and admin (user groups 5,6) to "post user note"
Code:
<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>"> <a class="username {vb:raw memberinfo.online} popupctrl" href="{vb:link member, {vb:raw memberinfo}}" title="{vb:rawphrase {vb:raw memberinfo['onlinestatusphrase']}, {vb:raw memberinfo.username}}"><strong><vb:if condition="$memberinfo['musername']">{vb:raw memberinfo.musername}<vb:else />{vb:raw memberinfo.username}</vb:if></strong></a> <ul class="popupbody popuphover memberaction_body"> <li class="left"> <a href="{vb:link member, {vb:raw memberinfo}}" class="siteicon_profile"> {vb:rawphrase view_profile} </a> </li> <li class="right"> <a href="search.php?{vb:raw session.sessionurl}do=finduser&userid={vb:raw memberinfo.userid}&contenttype=vBForum_Post&showposts=1" class="siteicon_forum" rel="nofollow"> {vb:rawphrase view_forum_posts} </a> </li> <vb:if condition="$show['pmlink']"> <li class="left"> <a href="private.php?{vb:raw session.sessionurl}do=newpm&u={vb:raw memberinfo.userid}" class="siteicon_message" rel="nofollow"> {vb:rawphrase private_message} </a> </li> </vb:if> <vb:if condition="$show['viewblog']"> <li class="right"> <a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog.php?{vb:raw session.sessionurl}u={vb:raw memberinfo.userid}" class="siteicon_blog" rel="nofollow"> {vb:rawphrase view_blog_entries} </a> </li> </vb:if> <vb:if condition="$show['homepage']"> <li class="left"> <a href="{vb:raw memberinfo.homepage}" class="siteicon_homepage"> {vb:rawphrase visit_homepage} </a> </li> </vb:if> <vb:if condition="$show['viewarticles']"> <li class="right"> <a href="{vb:raw memberinfo.author_list_url}" class="siteicon_article" rel="nofollow"> {vb:rawphrase view_articles} </a> </li> </vb:if> <vb:if condition="$show['addfriend']"> <li class="left"> <a href="profile.php?{vb:raw session.sessionurl}do=addlist&userlist=buddy&u={vb:raw memberinfo.userid}" class="siteicon_add"> {vb:rawphrase add_as_contact} </a> </li> </vb:if> <vb:if condition="$show['emaillink']"> <li class="right"> <a href="sendmessage.php?{vb:raw session.sessionurl}do=mailmember&u={vb:raw memberinfo.userid}" class="siteicon_email"> {vb:rawphrase send_email} </a> </li> </vb:if> <vb:if condition="is_member_of($bbuserinfo, 5, 6,)"> <li class="left"> <a href="usernote.php?do=newnote&userid={vb:raw memberinfo.userid}"> {vb:rawphrase post_user_note} </a> </li> </vb:if> {vb:raw template_hook.memberaction_dropdown_items} </ul> </div> thanks again for the help |
#6
|
|||
|
|||
I think it might be this line:
Code:
<vb:if condition="is_member_of($bbuserinfo, 5, 6,)"> you need to delete the comma after the 6. |
#7
|
|||
|
|||
wow...sorry i missed that! thanks, it worked.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|