vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Help with new pages (https://vborg.vbsupport.ru/showthread.php?t=268783)

GavoTrav 08-19-2011 05:22 PM

Help with new pages
 
Well I want to create a new page. I've done it many times with the extension.php

Well Now I want to it with say

Code:

index.php?do=Rules
Instead of
Code:

rules.php
I cannot think of what this is called so I cannot search for it if it was already asked :p

kh99 08-19-2011 06:28 PM

If I understand you correctly, you want to know how to read the parameters from the url? If you write a script called index.php, then in your browser you enter "http://mydomain/dir/index.php?do=Rules", in index.php you can look at $_GET['do'] or $_REQUEST['do'] to see the value of do ($_REQUEST is a combination of form fields and url fields, but unless you're submitting a form it doesn't matter which one you look at).

The vbulletin code has a function called clean_gpc() that gets the values and makes sure they are the right type, then puts them in the $vbulletin->GPC[] array. You can look at any of the vbulletin scripts to see how that's done.

Hopefully I've tried to answer the right question.

Lynne 08-19-2011 10:11 PM

You can see an example of vbulletin using $_REQUEST['do'] in the profile.php page and many other default vbulletin pages.


All times are GMT. The time now is 06:30 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.01079 seconds
  • Memory Usage 1,708KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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