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)

Vaupell 01-11-2009 05:33 PM

Quote:

Originally Posted by Lynne (Post 1708695)
You may want to make a thread in the Programming Discussions group and post your php code and template code and then we can help you figure out what is wrong.

off the rails, love your avatar ;)

gtrts 01-11-2009 10:27 PM

Quote:

Originally Posted by Lynne (Post 1708695)
You may want to make a thread in the Programming Discussions group and post your php code and template code and then we can help you figure out what is wrong.

thanks, I'll post there, but all I have done is copy the article's code into my own file.and the template works fine in index.php, it just wont work in test.php.

the thread:https://vborg.vbsupport.ru/showthread.php?t=201452

RS25com 01-19-2009 09:36 PM

Ah, I was having the same problem. The solution for me was to make sure the template name was lower case. I had it as upper case, which didn't work!

Digital Jedi 01-20-2009 04:53 AM

The template name is case sensitive, so if you don't use caps for the template name in the PHP file and don't use it for the name of the actual template, or vice-versa, then the template won't be called.

SVTCobraLTD 01-28-2009 06:19 PM

I am sure this is simple but what am I missing here??

Code:

Warning: require_once(./global.php) [function.require-once]: failed to open stream: No such file or directory in /home/svtcobra/public_html/test.php on line 32

Fatal error: require_once() [function.require]: Failed opening required './global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/svtcobra/public_html/test.php on line 32


ragtek 01-28-2009 06:28 PM

Have you created the file in an other folder?

If yes, you have to make this: https://vborg.vbsupport.ru/showthrea...ir#post1692069

SVTCobraLTD 01-29-2009 10:03 AM

I created a php file called test.php with coding above - Added a template called TEST with coding above.

But I am getting an error message. Is there something else I need to be doing?

amcd 01-29-2009 10:23 AM

what is the error message?

SVTCobraLTD 01-29-2009 12:25 PM

Its 3 posts above yours

Lynne 01-29-2009 02:28 PM

It says no such file or directory for global.php. Is global in the same folder that test is in?


All times are GMT. The time now is 10:41 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02441 seconds
  • Memory Usage 1,733KB
  • 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
  • (2)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