vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   need help on how to setup/ mods (https://vborg.vbsupport.ru/showthread.php?t=188673)

mmoore5553 08-20-2008 10:36 PM

need help on how to setup/ mods
 
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 Code:

<?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:

PHP Code:

$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)

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. may also include some extra stuff if you need it.


All times are GMT. The time now is 03:56 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01110 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete