The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Can some one please help me with this?
When visitor clicks on the username in postbit... will see the three above options. He cannot go further on because he must be register, but I want these three option not visible to visitors. Where can I search for this, or how can I make it possible? Thanks in advanced |
#2
|
||||
|
||||
![]()
Maybe in style, postbit or postbit_legacy depending on which you use, find
Code:
<div class="username_container"> Code:
<vb:if condition="$post['userid']"> Code:
<vb:if condition="$post['userid'] AND !$show['guest']"> Caveat, have not tried this myself.... |
Благодарность от: | ||
Stratis |
#3
|
||||
|
||||
![]()
Kane
That's it. <vb:if condition="$post['userid']"> {vb:raw memberaction_dropdown} I will try to find how to disable it, because I use there a <div class so the above code you give changes take effect there to. Smaller letter show up to username and bold goes off Thank you very much |
#4
|
||||
|
||||
![]()
Tested it now and see what you are saying about the CSS.
Also, there is one more place to hide the dropdown from guests and that is in threadbit, lastpostby... More digging required I think. |
#5
|
||||
|
||||
![]()
Ok with postbit_legacy, I put some code required in mine postpit.css
and it is ok using your code above. * Now as you say for threadbit, lastpostby I did not realize for that one, must find it ![]() Thank you |
#6
|
||||
|
||||
![]()
Another more inelegant way would be to edit the memberaction_dropdown template
Replace default code with. 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"> <vb:if condition="$show['member']"> <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:raw template_hook.memberaction_dropdown_items} </ul></vb:if> </div> |
#7
|
||||
|
||||
![]() Quote:
Yes, yes that has effect to all positions. The only problem for me with this is that username is clickable (without though showing something) but only I see a white line with border that I can not describe it well, its something with css. You gave me a very good idea where to play around and fix this as my needs. Thank you for you precious help for another time. ![]() --------------- Added [DATE]1485433449[/DATE] at [TIME]1485433449[/TIME] --------------- Found if I put code here above <vb:if condition="$show['member']"> <ul class="popupbody popuphover memberaction_body"> I do not see that line I describe before, but still clickable. but ok... |
Благодарность от: | ||
Kane@airrifle |
#8
|
||||
|
||||
![]()
We both learnt something :up:
|
#9
|
||||
|
||||
![]() |
#10
|
||||
|
||||
![]()
Hey Stratis,
Try this simple product I have attached. If it works as you want, you can revert any changes made to your "memberaction_dropdown" template. ![]() There are no settings, once you import it, it is active, and will only prevent guests from access to the dropdown. ![]() |
2 благодарности(ей) от: | ||
Kane@airrifle, Stratis |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|