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)

AshAbed 03-23-2004 08:12 PM

sorry to be a hassle, but can you please tell me what I'm supposed to do here?
my templates are named index_fonts, index_psds...etc like that, what would I change this code to for it to work correctly?
PHP Code:

if ($_REQUEST['do'] == 'xxx'

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


thanks alot

Gary King 03-23-2004 11:13 PM

Quote:

Originally Posted by AshAbed
sorry to be a hassle, but can you please tell me what I'm supposed to do here?
my templates are named index_fonts, index_psds...etc like that, what would I change this code to for it to work correctly?
PHP Code:

if ($_REQUEST['do'] == 'xxx'

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


thanks alot

Change TEMPLATE_XXX to index_fonts, etc.

AshAbed 03-23-2004 11:19 PM

ok.. sorry about this, but http://www.maddpc.com/~ashraf/index.php? is the page, I added
PHP Code:

if ($_REQUEST['do'] == 'xxx'

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


and I don't see index_fonts template when I go to
http://www.maddpc.com/~ashraf/index.php?do=fonts
or
http://www.maddpc.com/~ashraf/index.php?do=index_fonts
thanks

Acido 03-23-2004 11:49 PM

I think you must try this code:

PHP Code:

if ($_REQUEST['do'] == 'fonts'

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



Gary King 03-24-2004 01:15 AM

Quote:

Originally Posted by AshAbed
ok.. sorry about this, but http://www.maddpc.com/~ashraf/index.php? is the page, I added
PHP Code:

if ($_REQUEST['do'] == 'xxx'

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


and I don't see index_fonts template when I go to
http://www.maddpc.com/~ashraf/index.php?do=fonts
or
http://www.maddpc.com/~ashraf/index.php?do=index_fonts
thanks

If you use that code, then go to ?do=xxx

Grendel 03-24-2004 11:43 AM

Quote:

Originally Posted by Grendel
I try to put the "whats-going-on"-content of the forumhome-template into a custom template. Works fine - besides the "calender events". Is there any way to put the events on an "vBulletin-powered page"?

Even if I'm the only one who is interested in this problem I post my solution anyway:

If the events should show up:

define('THIS_SCRIPT', 'test'); (where test is the name of the nonvb-page)

should be

define('THIS_SCRIPT', 'index');

SideFX 03-25-2004 03:54 PM

Ok i am having one hell of an issue, I made a index page for a site i am building but when your not logged into the forum the homepage doesnt show up. This page is out side vb and in the home directory. any help would be appreciated.

EDIT: i put it back into vb and still logged out user cant see it how do i give them permissions to veiw this page?

Marulatree 03-25-2004 10:37 PM

linux server files are case sensitive...

it's all lowercase /forum/test.php - still give me a blank page...
Quote:

Originally Posted by Gary W
What's the template name? Use UPPERCASE not lowercase.


Marulatree 03-25-2004 10:40 PM

got it!!!! test at the bottom of test.php is uppercase there your template needs to be "TEST" uppercase

AutomatikStudio 03-26-2004 01:14 AM

Alright gary...thanks for the tips thus far. He's what I'm trying to do. I'm trying to create an article system of sorts. My database table will have the following fields: Author, Date, Article, Title, and ID. Now, what I'd like to do is have something like:

articles.php?do=viewarticles&artid=4

And that would call the article in the database with the ID of 4. At any rate, how would I do that without having to make a new template for every article.


All times are GMT. The time now is 01:21 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.01899 seconds
  • Memory Usage 1,753KB
  • 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
  • (5)bbcode_php_printable
  • (4)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