Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 05 Jan 2008, 19:49
gemmo gemmo is offline
Join Date: Dec 2007
Create new page

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?
Reply With Quote
Old 05 Jan 2008, 20:00
SEOvB's Avatar
SEOvB SEOvB is offline
Join Date: May 2007
Real name: Jarvis

Old, but still works.
Reply With Quote
Old 05 Jan 2008, 21:04
Opserty Opserty is offline
Join Date: Apr 2007
Slightly newer version:
Reply With Quote
Old 08 Jan 2008, 13:36
gemmo gemmo is offline
Join Date: Dec 2007
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 08 Jan 2008 at 13:46 ---------------

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:



Last edited by gemmo; 08 Jan 2008 at 13:46. Reason: Auto-Merged DoublePost
Reply With Quote
Old 08 Jan 2008, 15:45
Opserty Opserty is offline
Join Date: Apr 2007
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:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

3) It refers to any file locations you use in script, just try it without if it doesn't work then try it with it.

You'll learn more through trial and error then anyone can teach you
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 04:09.

Layout Options | Width: Wide Color: