The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi, I'm looking for the code to create a separate page with vB header, footer, CSS etc, that will contain my site's Terms and Conditions. I want to link to it from the navbar, and I've found the code to do that, but not how to create the actual page.
Is there a recent thread that dealt with this, I only found one that was nearly 4 years old? |
#2
|
||||
|
||||
![]()
<a href="https://vborg.vbsupport.ru/showthread.php?t=62164" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=62164</a>
Old, but still works. |
#3
|
|||
|
|||
![]()
Slightly newer version: https://vborg.vbsupport.ru/showthread.php?t=98009
|
#4
|
|||
|
|||
![]()
Thanks guys. Could I just check a couple of things with you.
First change: define('THIS_SCRIPT', 'test'); Do I just change 'test' to the name of my new page, or do I have to change 'THIS_SCRIPT' to anything too? Second change: // change the line below to contain the name of the actual main output template used in your script eval('print_output("' . fetch_template('test_mytesttemplate1') . '");'); I'm lost on this bit. Which template should I use? What I want is to create a page for my Terms and Conditions that looks just like all the other vB pages. Thanks v much for your help... --------------- Added [DATE]1199803581[/DATE] at [TIME]1199803581[/TIME] --------------- OK, I read on... I'm guessing I don't need to change 'THIS_SCRIPT', just 'test'. And then it shows me how to make the template. But if this section tells you where to put it, I'm stuck here: 'Using vBulletin-powered scripts outside vBulletin Directory'. 1) ie which directory do I FTP the file and the template to? 2) Where do I find this code: require_once('./global.php'); ? 3) And where would I find any relative links: Also, make sure you add the following code in the beginning of any relative links: Code: $vbulletin->options['homeurl'] |
#5
|
|||
|
|||
![]()
1) Templates are stored in the database... AdminCP > Styles & Templates > Style Manager > Add New Template.
2) No sure what you mean by "where do I find this code"... Use this in place of what you said: PHP Code:
You'll learn more through trial and error then anyone can teach you ![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|