vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] Create your own vBulletin page (https://vborg.vbsupport.ru/showthread.php?t=228112)

aryung 11-02-2012 02:57 PM

Quote:

Originally Posted by cellarius (Post 2377736)
Have you tried it? Just do nothing, i.e create the page as described. You would have to add permission checking if you wanted it.

yes i do as described works well
the only problem is that it redirects to login page due to no guest access of whole forum
i check register.php and its template thoroughly to check which line of code pass permissions but did not found anything

so on this page how i add permissions for guests ?

Lynne 11-02-2012 03:30 PM

What is the content of your php page? (Please use the code tags.)

aryung 11-02-2012 05:47 PM

Content of the page is simple text not code lines
Which tells
Why unregistered or not logedin users are not able to access Forum
Why our forum is private to registered members only
actually these are Lessons for students and forum only allow our academy students to view threads

Lynne 11-03-2012 01:41 AM

Quote:

Originally Posted by aryung (Post 2377879)
Content of the page is simple text not code lines
Which tells
Why unregistered or not logedin users are not able to access Forum
Why our forum is private to registered members only
actually these are Lessons for students and forum only allow our academy students to view threads

This article is about writing a php page which is code. Are you saying that your problem has nothing to do with a php page you created? If so, then you shouldn't be posting in this thread. If it does have to do with the php page you created, then you need to post the code.

ARNK 11-03-2012 11:54 PM

Quote:

1. Create the php page:
Where do you put this file specifically?

Quote:

2. Create the Template:
- If you are in debug mode, create the template in your MASTER STYLE so it shows up in all your styles, otherwise make sure you create the template in the style you are using. If following the page above, call the template TEST (WARNING: the template name is CASE SENSITIVE!!!) with the following content:
Where does this file go specifically? Where does the code go?

What should it be named?

I need this in layman's terms please ;)

cellarius 11-04-2012 07:35 AM

What file? There is no file involved. You create a new template for your style in the Style Manager.
http://www.vbulletin.com/docs/html?m...rsion=40200603

aryung 11-04-2012 08:10 PM

Quote:

Originally Posted by Lynne (Post 2377956)
This article is about writing a php page which is code. Are you saying that your problem has nothing to do with a php page you created? If so, then you shouldn't be posting in this thread. If it does have to do with the php page you created, then you need to post the code.

We know Register.php loads if registration is enable no mater forum is open or private the line
Code:

define('THIS_SCRIPT', 'register');
makes it happen. it seems Permissions for Register dot php/Template setup in a file to bypass CanView restrictions for not logedin / not registered usergroup

i do not need to do anything with test.php i put my Text Here
Code:

<h2 class="blockhead">Title</h2>
    <div class="blockbody">
      <div class="blockrow">
        Our Forum is Private to our Academy Students Only
      </div>
    </div>


ARNK 11-05-2012 03:26 AM

Quote:

Originally Posted by cellarius (Post 2378249)
What file? There is no file involved. You create a new template for your style in the Style Manager.
http://www.vbulletin.com/docs/html?m...rsion=40200603

Quote:

1. Create the php page:
- Create a new file, whatever you want to call it (let's say test.php).
- Open up test.php and add the following (replace TEST with whatever template you want to show - WARNING: the template name is CASE SENSITIVE!!!):
If we're to create a new PHP page, does it not have to go somewhere?

kh99 11-05-2012 12:52 PM

You can name your php file whatever you want, as long as it ends in .php and isn't named the same as one fo the existing vbulletin files. It should go in your forum directory, the same directory with fourm.php, showthread.php, etc.

aryung 11-07-2012 05:33 AM

i am waiting for response according to non registered / not logedin users permissions


All times are GMT. The time now is 10:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03369 seconds
  • Memory Usage 1,743KB
  • 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
  • (2)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (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