The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Some basics of vB3(mini howto)
Some basics of vB3(mini howto) also some basic php junk the most important thing if you want to make pages based on templates or anything of the such would be to first know how to " connect" to vbulletin, and then learn how to call and eval templates. so lets take a look at the most BASIC page we can do PHP Code:
somthing abit more advanced. suchas calling more than one template, or doing an action it becomes abit more complicated PHP Code:
PHP Code:
if your going to write a script that is ALL actions you should add somthing like this right after the call to gobal.php PHP Code:
Mini Tut by Faranth (with some help from Brad.loo fixing my silly newbie mistakes ) |
#102
|
||||
|
||||
Quote:
Also, I still don't get actions? Can someone explain the system in more details? |
#103
|
||||
|
||||
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. |
#104
|
||||
|
||||
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. |
#105
|
|||
|
|||
If your using the action templates as shown in the original post:
PHP Code:
PHP Code:
PHP Code:
|
#106
|
||||
|
||||
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. |
#107
|
|||
|
|||
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. |
#108
|
|||
|
|||
Where the hell are the templates stored? :O I just cant find them on the installation i have here... Can anyone help please?
|
#109
|
||||
|
||||
In the database (you should access them from vBulletin).
AdminCP > Style Manager > (pick a style) > Edit Templates |
#110
|
||||
|
||||
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 |
#111
|
|||
|
|||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|