The Arcive of vBulletin Modifications Site. |
|
Using non-default template set on non-vB page? Details »»
|
|||||||||||||||||||||||||
Hiyis,
I am setting up an external (ie, non-forum) page that is still powered by my vB database. I can pull data through and have it displayed using the default template/style of my forums, but I'd like it to be setup using another template set. How do I do this?? Thanks :bandit: Mark Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
I would think you could do this by hardcoding the templatesetid for templates only and styleid for the full package, or something like this in your script. never tried it tho.
|
|
#3
|
||||
|
||||
|
Tried that - it pulls the bgcolor etc through ok, but retains the default
header and footer etc :ermm: |
|
#4
|
||||
|
||||
|
Then again, I could have the coding for that all messed up
I have this:PHP Code:
|
|
#5
|
||||
|
||||
|
Do that after require('./global.php') and you should be fine.
|
|
#6
|
||||
|
||||
|
Unfortunately, no
The thing is, it pulls the <BODY> tag through ok, everything except for $header and $footer...??This is the full content of my file: PHP Code:
|
|
#7
|
||||
|
||||
|
You'll need to eval() the header/footer/headinclude again since it's a different template now.
Code:
eval('$header = "'.gettemplate('header').'";');
Code:
unset($templatecache['header']); |
|
#8
|
||||
|
||||
|
Once again you assert your legendary status. Thankyou, sir.
|
![]() |
|
|