vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Question about template based pages (https://vborg.vbsupport.ru/showthread.php?t=137317)

KingPuyol 01-23-2007 02:34 PM

Question about template based pages
 
I've asked this question in vb.com and here's the thread:
http://www.vbulletin.com/forum/showthread.php?t=217356

My question is, can I create these php files out of the forum directory? they only work when they are in the forum directory and didn't when they are somewhere outside, I changed the path to the global.php file and still nothing happened?

I really need help.

humid 01-23-2007 02:44 PM

If you create the php files out of the forum directory, you'll need to change the links on the php file to the direct link.

E.g global.php -> /forum/global.php

KingPuyol 01-24-2007 05:29 AM

Quote:

Originally Posted by humid (Post 1165788)
If you create the php files out of the forum directory, you'll need to change the links on the php file to the direct link.

E.g global.php -> /forum/global.php

I did that before and didn't work.

webmazter 01-24-2007 05:49 AM

you need to put chdir() function before include() / require() forum/global.php

Code:

chdir(PATH_TO_YOUR_FORUM);
require_once('./global.php');


Dismounted 01-24-2007 05:57 AM

And chdir back to the current PHP file's folder or you will have problems :).

KingPuyol 01-24-2007 11:20 AM

I took the CHDIR from the vBa CMPS portal file and I just added it there. Thanks guys. :)

webmazter 01-25-2007 01:28 AM

Glad can help :)


All times are GMT. The time now is 01:07 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.00925 seconds
  • Memory Usage 1,720KB
  • 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)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete