vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   How can I eliminate postbit links for guests? (https://vborg.vbsupport.ru/showthread.php?t=309681)

joeychgo 03-19-2014 08:19 AM

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?

Barcham 03-19-2014 01:59 PM

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.

joeychgo 03-19-2014 07:01 PM

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.

cellarius 03-19-2014 08:24 PM

Then you need to go through all templates and wrap conditions around the <a>-Tags. That dropdown does not only show up in postbit.

Seven Skins 03-19-2014 08:28 PM

Find in postbit template:

HTML Code:

{vb:raw memberaction_dropdown}
Replace it with:

HTML Code:

<vb:if condition="$show['guest']">{vb:raw post.musername}<vb:else />{vb:raw memberaction_dropdown}</vb:if>

joeychgo 03-19-2014 11:19 PM

1 Attachment(s)
that worked except all formatting is gone for the username.

ozzy47 03-19-2014 11:45 PM

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">
Above that add this:
Code:

<vb:if condition="$show['member']">
Then find the following:
Code:

</ul>
And below that add this:
Code:

</vb:if>

joeychgo 03-19-2014 11:58 PM

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.

ozzy47 03-20-2014 12:00 AM

Ok give me a minute, stay tuned.

ozzy47 03-20-2014 12:04 AM

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>
And change it to this:
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>


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.01099 seconds
  • Memory Usage 1,738KB
  • 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
  • (6)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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