Quote:
|
Ahh the original :)
|
Quote:
Your already connected to the Database via global.php |
Any way of forcing the page to use a style that is not the default style.?
|
Quote:
Thank you endlessly. |
Could anyone please explain to me what the $phasegroups variable is for.
|
Quote:
|
Quote:
|
Quote:
|
My apoligies for thinking you are a guru ;)
|
Quote:
|
can this be done Zachery?
say I have a var called $a and i want it evald on its own so that I can use it in the templates how do i assign just a value to that and still eval? i.e value 22 |
Thankyou very much this is good newbs like me who have come from along time experince with phpBB and IpB :squareeyed:
|
Warning: main(): open_basedir restriction in effect. File(./global.php) is not within the allowed path(s): (/home/latch/:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/latch/public_html/test.php on line 16
.... my forums are in /home/forums/public_html/ is there anyway to get it to work :S |
read the error it tell's you the prob right away.
open_basedir restriction in effect. File(./global.php) is not within the allowed path in other words the server setup does not let you pull files from other site paths this is because there might be other sites on the server you dont own and if there not any open_basedir restriction you could pull files from other peoples sites and this could let people hack people or nick personal information. |
Quote:
|
PHP Code:
|
OMG Thanks, I feel like a god now !!!
|
Hey, i suppose you lot have been asked this loads of times, i am using this code:
Code:
<?php Here is the page: http://www.justonxbox.com/test.php Also i know the template is called index.php, this is so that when i make my site from these they are easily edited as that will be the name for this page once done etc... etc... Thanks Paul |
yes, thank you!
|
Quote:
Also, I still don't get actions? Can someone explain the system in more details? |
I think I understood actions now. It's no big deal it just pulls outany templates that are defined (somewhere? init.php?) for that action.It's a "shortcut" but it doesn't make any difference as long as youpull out any template you use in globaltemplates you should be ok.Correct me if I'm wrong.
I'd still like to know about the $HTML thing though. |
Quote:
href=" with href="../forums/ and src=" with src="../forums/, etc. There's got to be an easier way. :( The huge problem I am running into now is that by including global.php, and by extension init.php, cookies are being established. That's not what I want. Is there a way to load templates without all that other stuff happening? What I may need to do is create a cron task that dumps the evaluated contents of the templates I need to flat HTML files and then include those. :( :( |
If your using the action templates as shown in the original post:
PHP Code:
PHP Code:
PHP Code:
|
Hi
I've got the page to work, but I'd like to use a custom header and footer because the links do not show correctly at present - I've created the new templates for them and called them in my 'test' template instead of the standard ones. But it doesnt work :-( Can someone give me a quick run-down of how it can be achieved? thanks. |
Can that be used for this (from another post) -
I've seen a few scripts that prompt a user to login, but nothing that would redirect the user to the internal login page on non-vB pages. I have a directory structure like this - /forums /ads /games /faqs /blog and so on. I want to use vB security throughout my entire site, even outside the actual /forums dir. If you would go straight to /blog/blog.php for example, a piece of code would detect whether the visitor is logged in or not. If so, display the page normally. If not, redirect them to the exact same login screen that's invoked when you go to http://www.onlinepokerlistings.com/forums/calendar.php. Ok, after logging in, the visitor would be directed back to /blog/blog.php. It would work exactly the same as normally requiring a login to see a vB page, but in this case it's outside of vB. |
Where the hell are the templates stored? :O I just cant find them on the installation i have here... Can anyone help please?
|
In the database (you should access them from vBulletin).
AdminCP > Style Manager > (pick a style) > Edit Templates |
I have this system setup for my site locksmithcafe.com. However, when I log out of the forum and go to locksmithcafe.com it gives me the following error:
Quote:
whats up with that do you think? Here is my index.php page: PHP Code:
thanks Lem |
You are trying to start another page that is trying to set the http headers after they have allready been set. I had this problem and got around it with some php http posts that then caught the output stripped out the headers and then set them on final output!
Contact me gary@behindtheweb.co.uk if you need any more help on this problem. I'd be happy to help. |
Just remove everything above the opening php-tag.
You can not output ANYTHING before you require global.php. |
NxTek - that's exactly what I want to do. Did you find the solution? Any one else?
Thanks. Quote:
|
No, but I'm using vBa.
Quote:
|
Very nice, good information!
|
All times are GMT. The time now is 08:34 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|