Quote:
|
Great work.
|
Hey everyone!! I have had some great joy with this article, and it has helped me out a lot, but now I am wanting to do a bit more with it. I have now got so many custom pages that I was wondering if I could put them all together to pull up different templates.
For example... radio.php would be the only PHP file I need to build. Then I have a link to radio.php?id=status, that will pull up the status template. radio.php?id=schedule, that will pull up the schedule template And so on. This would then cut down the amount of pages I have on my web server, but keep what I have done already!! I tried using the example above to no avil... not sure how that is supposed to work but it didn't!! I wonder if you could you the "if, elsif, else" solution on it though? PHP Code:
|
If you are using id as the passed variable, then you need to use $_REQUEST['id'] in the code, not $_REQUEST['do']
|
Okay, here is what I am using...
PHP Code:
When I load up radio.php I get the error... HTML Code:
Fatal error: Call to undefined function construct_navbits() in /home/pukkarad/public_html/forum/radio.php on line 15 |
Quote:
|
Sorted!! Was just missing one thing. But now, how do I make sure that the tab shows selected for that page? Page name is "radio.php"?
|
Quote:
|
you don't need all the templates in the globaltemplates array;)
If you need them only for a special action (do == 'xxx') you can use the actiontemplates |
Quote:
|
All times are GMT. The time now is 06:16 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|