![]() |
How can I eliminate postbit links for guests?
1 Attachment(s)
I want to make it so the username in the postbit, is not clickable for guests...
How can I do this? |
On my board, I have configured the GUEST user permissions so that they cannot view member profiles, or use the search function or view who's on line, etc... So while they can click on a handle and see the drop menu, clicking on any of the links simply brings them to a no permission log in screen that tells them they have to log in or register to see this page. Works fine for me.
|
its still a link that takes someone to another page. That's not what I want. I want it to not be a link at all for guests.
|
Then you need to go through all templates and wrap conditions around the <a>-Tags. That dropdown does not only show up in postbit.
|
Find in postbit template:
HTML Code:
{vb:raw memberaction_dropdown} HTML Code:
<vb:if condition="$show['guest']">{vb:raw post.musername}<vb:else />{vb:raw memberaction_dropdown}</vb:if> |
1 Attachment(s)
that worked except all formatting is gone for the username.
|
What is happening by doing it that way is removing some of the classes needed for the display. Undo the above edit, then open your memberaction_dropdown template, and find the following:
Code:
<ul class="popupbody popuphover memberaction_body"> Code:
<vb:if condition="$show['member']"> Code:
</ul> Code:
</vb:if> |
Hmmm.. That kind of worked Ozz --
http://www.lincolnvscadillac.com/for...traight-issues The link to the profile is there but doesn't work unless you right click and open in a new window. Ideally - it wouldn't have a link at all. |
Ok give me a minute, stay tuned.
|
OK find this line:
Code:
<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> Code:
<a class="username {vb:raw memberinfo.online} popupctrl" <vb:if condition="$show['member']">href="{vb:link member, {vb:raw memberinfo}}"</vb:if> 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><vb:if condition="$show['member']"></a></vb:if> |
if you meant in addition to the earlier.. Ive done it.
now all text in the first post is subject to hover / ul http://www.lincolnvscadillac.com/for...traight-issues |
Hmmm, ok back to the drawing board.
|
the goal here is to minimize links off page for guests.
|
Ok was your member action dropdown customized before, or was it stock?
|
stock I believe
|
Ok then replace the entire contents with this:
Code:
<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>"> |
That worked almost perfectly. only thing is the username is a little smaller then before....
|
Not that I can see on my site, there should be no reason it does that on yours. Since the css is in there:
Code:
style="font-size:{vb:stylevar font.fontSize}{vb:stylevar font.units}; |
1 Attachment(s)
see
|
Hmmm, that is strange, care to give me a admin account so I can debug it on your site, as I can not replicate it on mine?
|
sure, stand by for a pm
|
Okie dokie.
|
Under normal circumstances the above would have worked for you, but you had a edit in your additional.css that was over riding the class, so I changed, font-size:{vb:stylevar font.fontSize}{vb:stylevar font.units}; to the following, font-size:20px;
So the final is this: Code:
<div class="popupmenu memberaction<vb:if condition="$page_class"> {vb:raw page_class}</vb:if>"> |
Thank you :)))
|
Not a problem, glad to help. :)
|
<a href="https://vborg.vbsupport.ru/showpost.php?p=2488399&postcount=5" target="_blank">This</a> is a tried and tested code, it did not work due to customization in other templates. Anyways problem has been solved.
|
All times are GMT. The time now is 04:55 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|