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)

SVTCobraLTD 01-29-2009 02:35 PM

Quote:

Originally Posted by Lynne (Post 1728154)
It says no such file or directory for global.php. Is global in the same folder that test is in?

It wasnt but now it is. But still get the error below.

Code:

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

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


Lynne 01-29-2009 02:50 PM

And does this file exist at this path?
public_html/includes/init.php

amcd 01-29-2009 05:37 PM

and the answer is one post above yours.

SVTCobraLTD 01-29-2009 05:45 PM

Quote:

Originally Posted by Lynne (Post 1728180)
And does this file exist at this path?
public_html/includes/init.php

No everything is it pointing to is not in the root folder but in public_html/forums folder. But i do not see where to change that

amcd 01-29-2009 06:21 PM

it would be much simpler to put the new file in forums directory and use it as www.example.com/forums/test.php in your browser.

SVTCobraLTD 01-29-2009 10:20 PM

Quote:

Originally Posted by amcd (Post 1728329)
it would be much simpler to put the new file in forums directory and use it as www.example.com/forums/test.php in your browser.

That works but I wanted to design this page to be my home page.

amcd 01-30-2009 04:13 AM

Add a rewrite rule to your web server software. Keep the actual php file in the same directory as your forum. It will make life easier.

figu120 02-05-2009 07:20 PM

are excellent and do as my own personal pages ...

Alefux 02-10-2009 12:34 PM

This is the original code:
PHP Code:

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT''test'); // change this depending on your filename 

Can i do this?
PHP Code:

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS'1);
define('THIS_SCRIPT'$_SERVER['PHP_SELF']); 


amcd 02-10-2009 05:54 PM

AFAIK, the THIS_SCRIPT constant is used mainly for tracking user activity and who's online. So I guess you can do that.


All times are GMT. The time now is 12:25 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.01975 seconds
  • Memory Usage 1,744KB
  • 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_php_printable
  • (3)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