![]() |
aww poo, this would be good, but doesnt' seem to work for me. blank white page, no source at all when inspected LoL.
I'm at a loss, every character is accounted for - no missing ;s or similar. :( eta - it's case sensitive... TEST test :p problem resolved LoL |
1 Attachment(s)
Quote:
every template, you want/need can be put in!(navbar,header,footer,option,postbit,...) for the menu: http://www.vbulletin.com/docs/html/m...mplates_vbmenu or do you mean this:Attachment 66682 |
Quote:
|
in navbar template ad:
Code:
<br /><div id="navcontainer"> Code:
#navcontainer |
Excellent Man Love Ya Thanks A Lot
I created 2 pages www.stepheniansonline.com/forum/Oops.php http://www.stepheniansonline.com/for...ertisement.php |
If you want your pages to viewable only to members add this under require_once('./global.php'); in your php file.
PHP Code:
|
I Have Made 3 Of These Pages
http://www.dieselbombers.com/sponsors.php http://www.dieselbombers.com/linkswap.php http://www.dieselbombers.com/toptruck.php And I have added the Whos online (Where) additional Hack , IT Displays as so.. UNKNOWN LOCATION /toptruck Ect.. For all 3 pages How do i change the UNKNOWN LOCATION TO ( Currently Viewing ) ? |
are your files in the same folder as the the global.php? You might have to specify the location.
|
I have made several pages but I was wondering if it would be possible to add some forum sections to 1 of these pages?
|
So you can put like a regular html page on your VB website? This is kind of cool.
|
Quote:
|
Quote:
|
what you mean with forumsection?
threads?userpages?userdata? |
Quote:
|
It's not difficult - store your script's working directory in a constant/variable, chdir to the vBulletin working directory, call global.php, and then chdir back to your script directory.
Basically, just do this: Code:
// vBulletin path (edit the value) |
I have my script in another directory. Using the above advice, it now works, but the images and links are broken. Anyone know how to get around that?
|
This is an entirely different issue. This is a problem with the html of the website.
Keep in mind that most links to images, stylesheets, scripts used within vBulletin are relative to the forums path. So, if you want to output templates that link to images in your forums' directory using relative links, you can probably just add a base href tag. Of course, having a link to your forums/custom page would make finding the cause of this small issue very easy. Hope this helps! |
works great thanks!
|
does it works in all versions (3.6.7 ?)
|
Quote:
I've a question, I created a page: PHP Code:
when I run this script it does not show the content of template temp2 ? :confused: why? |
you have to eval temp2 and store the result in a variable before you try to print_output from temp1. see how navbar is processed in the example in the first post.
|
I had this page working for about 2 years, and all of the sudden it stops working and if i'm not login it ask me to login and when I log-in it says
"username, you do not have permission to access this page. This could be due to one of several reasons:... etc". Like I said I had this working for 2 years and it stops working and I haven't changed any of the code on the page. How can I get this back to work? Can someone really help me out with this. I can't figured out why I'm getting permission deny on my custom page. I did follow all the steps propertly. |
If you want, send to my e-mail (carlito@psfantasy.com) a copy of the file that is giving you issues. Of course, being able to see your exact setup would make debugging this very easy - maybe you could give us more details?
|
umm how do i limit the page to be viewed ONLY to registered members?
|
Did everything right but am just getting a blank page. Any suggestions? :)
Template Name: About_Us Code: PHP Code:
|
A blank page usually means that display_errors is off in php.ini. Either switch that on or set the error_log variable to a file writable by nobody.
Quote:
Code:
if ($vbulletin->userinfo->userid==0) |
It should actually be $vbulletin->userinfo['userid'] . To simplify the code, and fix:
PHP Code:
|
Quote:
Quote:
EDIT: Works perfectly! |
Quote:
Quote:
|
What's your code?
|
I posted it about halfway up the page ^^^^.
|
Try changing THIS_SCRIPT to just about_us, no complete url address
|
Quote:
|
Your code parsed fine for me, so post your exact code. :)
|
Hi all!
This looks like exactly what i need! The only problem is I just spent an hour editing the php & template and then trying to get them to work without much luck! I don't know much about doing this kind of thing as you could probably guess. I changed all the 'Test' areas to 'MORE' I added the php to the root I created the template and added 'MORE' where applicable I made sure the global path was correct and nothing worked! Have I overlooked something! Quote:
Quote:
Thanks |
Quote:
Thanks for the help guys. |
I know this has probably been answered a 1000 times but i get a blank page. My PHP file and template are :
test.php PHP Code:
Code:
$stylevar[htmldoctype] |
i also had the same problem
try editing this TEST to test in ur last line of php file Code:
eval('print_output("' . fetch_template('TEST') . '");'); Everything shall be fine........ the code is not wrong anywhere else |
Template names are case sensitive. :)
|
Quote:
Quote:
Yes i was aware of that but wasn't aware that line needed editing :) Thanks anyway :) |
All times are GMT. The time now is 06:21 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|