vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Restrictions On Custom Pages (https://vborg.vbsupport.ru/showthread.php?t=301971)

JordanBuss13 09-07-2013 11:19 AM

Restrictions On Custom Pages
 
Hey There

I've got a Custom page I added for my forum however how do i make it so Guests can't view it? It's on my navigation but I'd like it so Resisted Members can only view it? Is there a code or?

ozzy47 09-07-2013 11:59 AM

How was thew page added?

JordanBuss13 09-07-2013 12:08 PM

Quote:

Originally Posted by ozzy47 (Post 2443897)
How was thew page added?

Added Lynn Tutorial

Basically added a new PHP File in my forum folder then added a new template to my theme

ozzy47 09-07-2013 12:12 PM

Link to the article please, so I can see how she adds it.

JordanBuss13 09-07-2013 12:15 PM

Quote:

Originally Posted by ozzy47 (Post 2443902)
Link to the article please, so I can see how she adds it.

https://vborg.vbsupport.ru/showthread.php?t=228112

ozzy47 09-07-2013 12:19 PM

Ok just to be clear, you want the guests to not see the navigation tab, or the article?

JordanBuss13 09-07-2013 12:23 PM

Quote:

Originally Posted by ozzy47 (Post 2443909)
Ok just to be clear, you want the guests to not see the navigation tab, or the article?

Not to see the Navigation Tab

ozzy47 09-07-2013 12:26 PM

OK, IIRC in the Navigation Manager, for the field Show Permission Name add member there, then it should only be visible by members.

cellarius 09-10-2013 12:12 PM

Quote:

Originally Posted by JordanBuss13 (Post 2443911)
Not to see the Navigation Tab

You realize that users can visit that page anyway once they know the link? Security by obscurity does not work.

Better add this to your PHP file, too:

PHP Code:

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

if (!$vbulletin->userinfo['userid'])
{
        
print_no_permission();
        exit();




All times are GMT. The time now is 05:02 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.02110 seconds
  • Memory Usage 1,727KB
  • 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_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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