vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   2 Includes on Non-vBulletin Page Causes Conflict (vBExternal, Deluxe user login) (https://vborg.vbsupport.ru/showthread.php?t=160086)

Awjvail 10-12-2007 05:03 PM

2 Includes on Non-vBulletin Page Causes Conflict (vBExternal, Deluxe user login)
 
Hi,

I'm using this mod on my website, non-vb page: https://vborg.vbsupport.ru/showthread.php?t=108026

In order for it to work, I need to place this at the very top of the page:

PHP Code:

<?php
chdir
('path to forum');
require_once(
'path to global.php');
?>

Now. That works just fine. However, I also want to use vBExternal (https://vborg.vbsupport.ru/showthread.php?t=147344) on my website homepage, which, in order to work, needs this placed at the top of the page:

PHP Code:

<?php
chdir
('../VB');
require_once(
'vBExternal.php');
?>

When I put that there, the deluxe login (first listed) works fine, however, the vBExternal doesn't work, probably because they both need to be at the very top. Is there any way I could bypass this so that I can use both Deluxe login and vBExternal on the same page?

Opserty 10-12-2007 05:34 PM

Are vBExternal.php and path to global.php not located in the same directory?

If not then something like this maybe:
PHP Code:

<?php
$curdir 
getcwd();
chdir('path to forum');
require_once(
'path to global.php')
chdir($curdir);

chdir('../VB');
require_once(
'vBExternal.php');
chdir($curdir);
?>

If they are in the same directory you can just use 1 chdir() and require them both.

Awjvail 10-13-2007 02:45 AM

Yes, they are both located in my forums root directory.

So I would go

PHP Code:

<?php
$curdir 
getcwd();
chdir('path to forum');
require_once(
'path to global.php')
chdir($curdir);

require_once(
'vBExternal.php');
chdir($curdir);
?>

?

Dismounted 10-13-2007 04:09 AM

There's been a few threads about this issue. Search around for the solution.

Awjvail 10-13-2007 04:57 AM

Quote:

Originally Posted by Dismounted (Post 1358734)
There's been a few threads about this issue. Search around for the solution.

Yes, I've searched, however none of the search results appear to come to a working solution.


All times are GMT. The time now is 03:19 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.01108 seconds
  • Memory Usage 1,728KB
  • 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
  • (4)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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