vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   How to create your own vBulletin-powered page! (uses vB templates) (https://vborg.vbsupport.ru/showthread.php?t=62164)

ckandes1 06-24-2006 04:50 AM

nice writeup

heyitsjeremy 07-07-2006 03:15 AM

is there another copy of this that would work on 3.5.4 ?

vBSkins 07-09-2006 05:33 AM

This works fine with vBulletin 3.5.4 I used it on my site at vBSkins.com to create a couple of pages.

Gryphon 07-10-2006 08:48 PM

Works fine with 3.6.0 as well.

vBSkins 07-10-2006 10:01 PM

It should work with all future versions of vBulletin, all it does is creates a template and you upload one simple .php file, its a great release :)

dodjer42 07-16-2006 10:42 PM

I had a problem with the test page coming up blank. Turns out I created the test template as 'Test' rather than 'TEST'. Although my test server is Windows, it appears its still case sensitive. So once that was changed, it all worked perfectly.

Great hack :)

rootnik 07-21-2006 07:46 PM

Can somebody please look over this and tell me why it doesn't work?

edit: Nevermind, It turned out to be a problem with the template, not the php code.

Ipuck 08-08-2006 01:04 AM

It works great thanks!!!:D

I created another template(templeate2) with some information in html. Can insert that new template in the template a created first(template1).

template2 in template1.

I have tried but it doesn't work. Nothing is showing up.

Thanks

AzzidReign 08-11-2006 06:08 PM

If im making an affilaite system, would I use:

PHP Code:

<?php

// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''test'); // 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(
    
'TEST',
);

// pre-cache templates used by specific actions
$actiontemplates = array(

);

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

$affiliates $vbulletin->db->query_read_slave("
        SELECT *
        FROM " 
TABLE_PREFIX "affiiates 
        ORDER BY order ASC
    "
);


$navbits = array();
$navbits[$parent] = 'Test Page';

$navbits construct_navbits($navbits);
eval(
'$navbar = "' fetch_template('navbar') . '";');

while (
$affiliates $vbulletin->db->fetch_array($affiliates))
{


eval(
'print_output("' fetch_template('affiliates') . '");');

}

?>


gonecountry 08-16-2006 04:34 PM

Ok please forgive me for the ??? I didn't have coffe today.

If I understand this correctly, for every page you want to create whether its 1 or 20 you make a new php file and an new template????

TIA


All times are GMT. The time now is 01:26 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.02320 seconds
  • Memory Usage 1,743KB
  • 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
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete