View Full Version : need help on how to setup/ mods
mmoore5553
08-20-2008, 10:36 PM
i am looking for way to make a way to add a new page in which i can have a my regular index be it wth flash on it and some other stuff
kinda like vbcovers.com
i like the new products and also random ones just want to make it bigger ..anyone know a good mod ..i download something but having trouble with it
if someone could point me to the right direction or mods i would appreciate it ....
i love vbcover setup and then you click forum ..it has same style as other ...
i got the webtemplates mod and working with that and also need to sell products ... let me know since you all know it better
Jacob B
08-20-2008, 11:13 PM
Just create your own pages, mate.
Create a file called jacob.php (replace 'jacob' with the name you want) and input the following:
(this PHP will work so long as you aren't using a form to pass data)
<?php
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);
// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'jacob'); // change this depending on your filename
// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array(
);
// get special data templates from the datastore
$specialtemplates = array(
);
// pre-cache templates used by all actions
$globaltemplates = array(
'JACOB',
);
// pre-cache templates used by specific actions
$actiontemplates = array(
);
// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
// ################################################## #####################
// ######################## START MAIN SCRIPT ############################
// ################################################## #####################
$navbits = array();
$navbits[$parent] = 'Jacob's Page';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('JACOB') . '");');
?>
Throughout that file replace 'JACOB' (both lower and higher cases) with whatever you require.
eval('print_output("' . fetch_template('JACOB') . '");'); - "JACOB" is the name of the template within your vB Admin CP.
$navbits[$parent] = 'Jacob's Page'; - Where it says 'Jacob's Page' that is what appears in the navigation menu at the top of the page: Index > This Page
Save the file.
Then go to your Admin CP and go to Style Manager, create a template by clicking on the drop-down menu on your style list and input the following information:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head>
<title>$vboptions[bbtitle] - Your Page</title>
$headinclude
</head>
<body>
$header
$navbar
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat">Header Title</td>
</tr>
<tr>
<td class="alt1">Content goes here..</td>
</tr>
</table>
$footer
</body>
</html>
Marco van Herwaarden
08-21-2008, 07:32 AM
Why are you copying the content of an article to post as your own reply instead of simply linking to the article: How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)
Opserty
08-21-2008, 12:08 PM
It definitely would have been a lot simpler ;)
Here is an updated version of the article given above: [How-To] vBulletin API Basics: Creating Custom Pages & Misc. (https://vborg.vbsupport.ru/showthread.php?t=98009) may also include some extra stuff if you need it.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.