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)

fiber_cut 11-18-2005 08:18 PM

i am only using one style and I added it as a template.

matter of fact if I go into the style and edit the file I created it is in fact under the style.
Code:

define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'upload'); // 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(
    'applied',

AHH Shoot I feel like an idiot...

I didnt see the last spot where you had TEST..

Sorry man!!

Good work though!!!

gracye 11-27-2005 02:29 AM

I'm using vb2, is there a custom page for that? I tried using this one and it wouldn't work, I kept getting an error. I tried just modyfying a page I had and then creating a template but it wouldn't work.

HELP!

MRGTB 11-29-2005 07:09 PM

How do I change this so on the new page you create in the Nav Bar it doesn't show the page title as a sub title under the forum home title on the left in the navbar. Instead I just want it to list the page title only without a link back to the forum home

nader 11-30-2005 05:16 AM

how to inculde the vbphrase ?

bitblaster 12-02-2005 10:10 PM

This is very nice!

I am using vB 3.5.1, and it worked perfectly fine!

http://runescapeproject.com/updates.php is where I have mine at, and it worked WITHOUT ERROR.

Nader, I am not an expert, but I think it might be worth it to look in the vB user manual or API guide or something... just my opinion.

ncangler 12-15-2005 03:26 PM

I don't know if this is possbile or not but I'm trying to create a stand alone index.php file that contains some code for a Beach Tide Table. The trick is getting the vBulletin header, footer and navbar on the page so it looks consistent with the rest of my site. The Tide Table code has to be in the index.php file as it contains information for multiple locations that is refreshed when you click on the location you want. Here is the Tide Table link:

http://www.ncangler.com/tides/wilmington/index.php

My forums are located here: http://www.ncangler.com/forums/

Can anyone tell me if this can be implemented with this hack? Thanks for your help!

Cebby 12-18-2005 10:13 PM

A shot in the dark, but what if you nest the tidetable index.php under a directory of your choosing?

ncangler 12-18-2005 10:28 PM

Hi Cebby. Thanks for the response. I'm not familiar with nesting. How would I do that?

Quote:

Originally Posted by Cebby
A shot in the dark, but what if you nest the tidetable index.php under a directory of your choosing?


Cebby 12-19-2005 01:05 AM

Nesting might not be the right nomenclature. Basically instead of calling the index.php that is the main vB page (in the root), you put another file called index.php inside another directory and point to that file instead. Like I said...shot in the dark... ;)

FWIW, I haven't implemented this hack yet, but will tonight... :cheeky:

Cebby 12-20-2005 01:05 AM

Another thought (and probably more reliable). I was poking around in the admincp tonight and found where you can change the name of the main forum page. The default is index.php, but you can name it anything you want - you just need to rename the vB index.php file to the new name you choose.

Under vBulletin Options -> Forum Home Page Options -> (first item)


All times are GMT. The time now is 09:45 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.02081 seconds
  • Memory Usage 1,741KB
  • 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_code_printable
  • (1)bbcode_quote_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