View Full Version : Static HTML Pages
Allen Mead
09-13-2004, 03:54 PM
Hi guys,
Anyone wanna lend a hand to help me create some static html pages with vbulletin 3.0.3.??
Here's a link to it on vbulletin.org. I must be really thick as I can't get it to ********** work :mad: :o
Cheers!
http://www.vbulletin.org/forum/showthread.php?p=552298&posted=1#post552298
KW802
09-13-2004, 04:45 PM
Allen,
For static HTML pages have you contemplated creating new pages in CMPS and then using the Custom Content Template feature?
If (big if there) I'm following the VB.org thread correctly the results would be same of what you're trying to do.
Allen Mead
09-13-2004, 05:31 PM
Actually, errrrm no to bo honest. I haven't really played that much with it. I was just flicking through vbullten.org and stumbled across this.
KW802
09-13-2004, 05:43 PM
Actually, errrrm no to bo honest. I haven't really played that much with it. I was just flicking through vbullten.org and stumbled across this.
In that case, try this.... ;)
Create a new custom template named adv_portal_test with the following content into it....<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr><td class="tcat"><span class="smallfont">
<strong>$vba_options[portal_blockbullet] $mods[title]</strong>
</span></td></tr><tr>
<td class="$getbgrow" width="100%"><center>
STATIC HTML CONTENT GOES HERE!
</center></td></tr></table><br /> Create a new page in CMPS with the following parameters: Page Title = Test / Page Identifier = test / Page Template = adv_portal_test. Make sure that the "Custom Page Content" is turned on! Save the page Goto to http://www.yoursite.com/index.php?page=test After you see the results play around with the properties of the page to turn on & off the modules that you may want included on the page.
Have fun. :D
Allen Mead
09-14-2004, 02:50 AM
Cool cheers Kevin!! I'll have a look at doing this later. :cool: :cool:
Allen Mead
09-15-2004, 12:47 PM
This may sound like a silly questio, but I assume with the above, there is no linking with an external html file, the actual code is written into the adv_portal_test file?
KW802
09-15-2004, 12:55 PM
This may sound like a silly questio, but I assume with the above, there is no linking with an external html file, the actual code is written into the adv_portal_test file?
Correct. The advantage to that method is that the HTML is presented inside of a 'module' to have the same look & feel as the rest of the page. The disadvantage is that to make changes to the HTML you'll need to modify the template instead of an stand-alone HTML file. :o
If you need to reference a stand-alone HTML file let me know and I have something else up my sleeve that may be of assistance in regards to vBa CMPS. :D
blkthndr
09-15-2004, 01:42 PM
Is there any way to get the vBulletin search to pull in the "pages", so the search is more complete?
Goto to http://www.yoursite.com/index.php?page=test After you see the results play around with the properties of the page to turn on & off the modules that you may want included on the page.
Have fun. :D
That's weird: I can only access the custom page at http://www.yoursite.com//index.php?page=test (with a double slash). Why is that? All other links in vbadvanced work and show up perfectly?
KW802
09-15-2004, 05:31 PM
That's weird: I can only access the custom page at http://www.yoursite.com//index.php?page=test (with a double slash). Why is that? All other links in vbadvanced work and show up perfectly?
HHHmm... it should work fine. :confused: Is the URL public to check out?
Allen Mead
10-02-2004, 11:53 AM
KW802 it works fine! see link here
http://www.astra-mk2.com/index.php?page=Merchandise
But i don't want the bulletin board border.
The template that works can be seen here
http://www.astra-mk2.com/Untitled.php
But I can't get it to call the html file, this is the code:
<?php
// GO TO FORUM DIR
chdir('./forum');
// STANDARD VBULLETIN STUFF
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'Articles_Main');
require_once('./global.php');
// GENERIC_SHELL VARS
$pagetitle = "Title of Page";
$HTML = ""; // PIECED TOGETHER IN SCRIPT
eval('$HTML = "' . fetch_template('./forum/Articles_Main.php') . '";');
$navbits = array();
$navbits[$parent] = 'Meganman';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('GENERIC_SHELL') . '");');
?>
Allen Mead
10-03-2004, 05:36 PM
Right, that's it, i still can't get it to work!!! I'll pay for someone to do this for me as long as it's not stupid money.
Allen Mead
10-13-2004, 04:30 PM
Sorted!! :cool: :cool: Thanks to a guy called David Robinson from Freelancers.net
Well chuffed. You can see a test page here if you're interested http://www.astra-mk2.com/untitled.php
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.