The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
$action is something that PHP automatically does for you, when you do URL.php?action=WHATEVER...it doesn't have to be action either it could be URL.php?url=WHATEVER then you would just replace $action with $url, anyways this is what I do...
PHP Code:
|
#12
|
||||
|
||||
i used this to set the homepage as a default. However its not as efficent as id like. You see the problem im having is that i want to set the action of main
if ($action == "home") { include ("http://www.proxymx.com/main.php"); as the loaded include when you load index.php so i set it out like so if ($action == "home") { include ("http://www.proxymx.com/main.php"); } elseif ($action == "legal") { include ("http://www.proxymx.com/legal.php"); } else include ('http://www.proxymx.com/main.php'); However, this presents a problem, if a page isnt found on request, it simply directs the user back to the mainpage. What i want to do is when a user enters the site {index.php} i want them to see the main.php page included. And then use actions such as ?action=forums for other pages the code i used is sufficent to do so, however if ever a page is not found, it simply returns to the mainpage, when i want it to display the standard error pages if a page is not found. So in short what i want to do is set the main.php as the default include when a user loads index.php, However if they type the wrong action i want the standard error messages to show up |
#13
|
||||
|
||||
Well you could try this
PHP Code:
|
#14
|
||||
|
||||
defeats the purpose :P
|
#15
|
||||
|
||||
no it doesn't because it's saying if it doesn't find the page display an error, it just takes a little bit more work and it does exactly what u wanted it to do.
|
#16
|
||||
|
||||
But then there would be no way to set the home as a deafult
|
#17
|
||||
|
||||
Then try this
PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|