vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Header buttons (https://vborg.vbsupport.ru/showthread.php?t=82656)

ZeroPrime 06-07-2005 11:36 PM

Header buttons
 
what im wanting to do is to make it so if you aint logged in to my forum you cannot view the members page and instead of the forum showing the page it takes you to the login page instead. is this possible ty in advance

i found this code in my header template and was wondering if this was the bit of code i would need ot edit?

Code:

<a href="memberlist.php?$session[sessionurl]" alt="Find other members" title="Find other members" onmouseover="changeImages('image3', 'image3on')" onmouseout="changeImages('image3', 'image3off')"><img name="image3" border="0" src="$stylevar[imgdir_misc]/nav/members.gif"></a>

Andreas 06-07-2005 11:46 PM

If you don't want guests to be able to view user profiles and the memberslist: Change the permission for Userground Unregistered / Not logged in.


If you do want guests to be able to view profiles but not the memberlist:

In memberlist.php
FIND
PHP Code:

// permissions check
if (!($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))


REPLACE that with
PHP Code:

// permissions check
if (!$bbuserinfo['userid'] OR !($permissions['forumpermissions'] & CANVIEW) OR !($permissions['genericpermissions'] & CANVIEWMEMBERS))



ZeroPrime 06-08-2005 12:27 AM

Username, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

this is what i get now i have added that mod im the top admin so i do have access so any clues now plz ?? :S

Andreas 06-08-2005 12:38 AM

Hmm, does work just fine for me.
Please check your file edit.


All times are GMT. The time now is 05:44 PM.

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.01006 seconds
  • Memory Usage 1,721KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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