Nevermind I don't know what I did but I got it to work. And thanks very much for showing me how to do this. I like this "how to". Thanks
|
Nothing like bumping a very old topic...
I've used this tutorial to create a page, and for the most part, it's working. But this part: define('THIS_SCRIPT', 'yourscript'); What does 'yourscript' refer to? I'm not sure what to replace there. |
Hello just feeling my way too...
I havce an insight and a question... There are two places in the .php program where you must put the name of your script. If the .php program is calles say "wunderbar.php" then near the top of the program is define('THIS_SCRIPT', 'wunderbar');// note no .php towards the end of the program you need eval('print_output("' . fetch_template('wunderbar') . '");'); In my case the template is called wunderbar too so that things work. My question. I'd like to know the user name in the program wunderbar.php. I've jsut got it working a little. I have a post with a link to my-forum/wunderbar.php If I click on the link it executes wunderbar.php. wunderbar.php calls the template script wuinderbar. I need some way to get the username in here. I'd really like to put some dynamic content into the template script. Or perhaps have two templates, a top and a tail, and I'll put in the dynamic content in wunderbar.php. John |
Is there an updated version for 3.6.x ?
|
Ok I'm stumped
I have put in the php file betaform.php http://askatech.autorepairdata.com/betaform.php Modified the base template Code:
<?php Code:
$stylevar[htmldoctype] |
You need to include global.php from your forum directory...
Change: PHP Code:
PHP Code:
|
Quote:
Here is my folderstructure. /rootfolder/forum I want a php file to work in /rootfolder/anotherfolder So here is the code I am trying to use in my php file in /rootfolder/anotherfolder PHP Code:
Thanks if you can help. BTW, I have dropped a straight HTML file in /rootfolder/anotherfolder and that works fine. The php files gives me a white screen and when I view the source all I see are the default html structure tags. |
Try:
PHP Code:
PHP Code:
|
Code:
<?php Code:
$stylevar[htmldoctype] If the code you posted is what you're actually using, you need to change the DEFINE 'yourscript' to the name of the PHP file, minus the .php extension. |
I have no idea how to do this sorry I have managed to do the first part but the second code i have no idea what to do with where to put it or what i should do cause when i did put it onto a blank page i got errors.
|
All times are GMT. The time now is 05:28 PM. |
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:
|