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)

PKRWUD 03-28-2004 01:43 PM

Okay, I just copied it straight out of the control panel, and those "+" marks weren't there. I have no idea where they came from, but when I pasted here, they showed up.

PKRWUD 03-28-2004 01:49 PM

Fascinating. For some reason, my copy of BBEdit is placing characters in those places in my files when I save them. Looks like problem solved. Thank you.

One question, though; There's no link in the NavBar for the page. Where in the NavBar should it be?

Gary King 03-28-2004 02:07 PM

Quote:

Originally Posted by FASherman
I believe this is incorrect. If yo do it this way, you will display a non-functioning navbar. The pop-up menus will not work. I don't know why, and I don't know how to fix it, but I do know if you create test.php in your forum root dir and the TEST template exactly as given in the first post, it works.

Take that same script and more it to another directory and it breaks on global.php. Add the chdir as above just before your require statement and you will have a non-functioning navbar. No pulldown menus.

Any ideas on how this is resolved?

Just chdir() back to the vBulletin directory.

SVTBlackLight01 03-28-2004 03:13 PM

Quote:

Originally Posted by FASherman
I believe this is incorrect. If yo do it this way, you will display a non-functioning navbar. The pop-up menus will not work. I don't know why, and I don't know how to fix it, but I do know if you create test.php in your forum root dir and the TEST template exactly as given in the first post, it works.

Take that same script and more it to another directory and it breaks on global.php. Add the chdir as above just before your require statement and you will have a non-functioning navbar. No pulldown menus.

Any ideas on how this is resolved?

Check out this post.

https://vborg.vbsupport.ru/showpost....3&postcount=36



Code:

$vboptions[homeurl]/
also needs to be added to the beginning of all the relative linnks in the navbar and footer templates.

I have many operating pages outside the forums directory using this hack.

AutomatikStudio 03-28-2004 03:36 PM

Quote:

Originally Posted by PKRWUD
One question, though; There's no link in the NavBar for the page. Where in the NavBar should it be?

You have to manually code in what you want in the navbar. Just go to the navbar template and type it in and link it to your custom page.

FASherman 03-28-2004 05:19 PM

Quote:

Originally Posted by SVTBlackLight01
Check out this post.

https://vborg.vbsupport.ru/showpost....3&postcount=36



Code:

$vboptions[homeurl]/
also needs to be added to the beginning of all the relative linnks in the navbar and footer templates.

I have many operating pages outside the forums directory using this hack.


I knew I could count on a fellow Texan for help.

SVTBlackLight01 03-28-2004 06:12 PM

Some of us need all the help we can get. :D

attroll 03-29-2004 03:51 PM

I have removed the following code from the PHP file and it still works. Could you tell me what the purpose of this code is and what it does?

Code:

// ################### 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(

);


Indy 03-29-2004 04:37 PM

OK, read through everything - I think. When I run test.php located in my development forum dir, it comes out correct

When I try to run test.php outside of my dev forum, I get this:

http://www.rimfirecentral.com/test.php

I have modified test.php with:
PHP Code:

chdir('/home/rfc/public_html/forumsdev/'); 
require(
'./global.php'); 

I'll keep playing with it until someone responds, but any assistance would be appreciated.

Thanks,
Dan

raynett 03-29-2004 05:41 PM

I had the same style problem on my page outside of the forum. Copying the clientscript and images folders in the directory the test.php page resides seemed to correct that.

The problem I can't figure out though... the links in the navbar and footer portion of the test page do not link properly if the page is outside of the forum folder. The address is missing the forum portion of the URL. Example: link leads to http://www.yourdomain.com/register.php when it should lead to http://www.yourdomain.com/forum/register.php.


All times are GMT. The time now is 11:31 PM.

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.03000 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)bbcode_code_printable
  • (1)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
  • (4)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