vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Remove "Member Profiles" from Navbar for non-members. (https://vborg.vbsupport.ru/showthread.php?t=192056)

David LeBow 09-27-2008 12:31 PM

Remove "Member Profiles" from Navbar for non-members.
 
I'd like to have the "Member Profiles" link removed from the Navbar for guests.

I find this under Navbar:

PHP Code:

<if condition="$vboptions['enablememberlist']">
<
td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td

</if>

Where can I find out the details about "enablememberlist" (et al.)? Is there a setting I've overlooked which is user-group specific?

Thanks.

Lynne 09-27-2008 01:35 PM

You can disallow this for the usergroup - Usergroups > Unregistered Users > Can View Member Info > No
Quote:

Originally Posted by help
Can View Member Info
This option refers to user profiles on your forums. If this option is disabled then members of this group will not be able to view user profiles on your forums.


David LeBow 09-28-2008 08:19 AM

Quote:

Originally Posted by Lynne (Post 1631645)
You can disallow this for the usergroup - Usergroups > Unregistered Users > Can View Member Info > No

Hi Lynne,

Thanks for the reply. I already have that setting set to "no" and indeed, those user's can't get at the actual member information (a signon form appears) but the item is still on the navbar. The question is how to drop it off the navbar altogether. I can change it to:

PHP Code:

<if condition="$show['member']"

instead of

PHP Code:

<if condition="$vboptions['enablememberlist']"

but I was hoping to work out how some of these codes actually resolve. Have I missed the documentation somewhere?

Lynne 09-28-2008 02:13 PM

Why don't you try:
PHP Code:

<if condition="$vboptions['enablememberlist'] AND $show['member']"
link for users who are logged in and are allowed to see the profile
</if> 


David LeBow 09-28-2008 02:23 PM

Thanks Lynne,

I've gone to the $show['member'] in the meantime, but have I overlooked the documentation or is there really nowhere to find out what the various variable and functions mean without plowing through miles of PHP scripts...?

Lynne 09-28-2008 02:54 PM

Well, you can plow through the articles forums. There are some pretty cool articles there that I keep bookmarked for use:
https://vborg.vbsupport.ru/showthread.php?t=179930
https://vborg.vbsupport.ru/showthread.php?t=98047

I have tons of others, but I just wanted to link to a couple to show you that there is a ton of info over there. I don't know if there is an article that tells you exactly what you want, but it would be a good start.


All times are GMT. The time now is 11:26 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.01719 seconds
  • Memory Usage 1,732KB
  • 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
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete