vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   include in product xml? (https://vborg.vbsupport.ru/showthread.php?t=236905)

Dylanblitz 02-25-2010 11:01 PM

include in product xml?
 
I have a product xml that has an include statement to call a php file. It used to work in 3.x but with 4.x it keeps saying it can't find the file. I've tried changing it to require_once and require with no dice. Anyone know the proper syntax to call a php file located in the admincp from the install code of a product?

The line is

Code:

require_once(DIR . '/admincp/garage_update_2.0.0.php');

Paul M 02-26-2010 10:52 AM

Nothing has changed in 4.0.

The only reason it would fail is if the file does not exist - since its the acp, are you sure the folder name has not been changed.

Dylanblitz 02-26-2010 03:45 PM

yeah it's still admincp, I checked on a 3.8.4 upgrade and fresh install just to be sure heh.

I'm not sure what the problem is. I can get it to work locally on my windows test box. It seems a lot of the users have having problems with it on linux systems.
If it was just one person I'd think they just didn't upload the file to the right directory but it's happening with a lot of users.

Ah well, thanks for the input, I'll keep plugging at it :)

compwhizii 02-27-2010 02:18 PM

Quick suggestion, for usability you should be getting the name of the folder from $vbulletin, as a user could change it.

Vaupell 02-27-2010 02:52 PM

Quote:

Originally Posted by compwhizii (Post 1992885)
Quick suggestion, for usability you should be getting the name of the folder from $vbulletin, as a user could change it.

yes agree, i didnt think any user would use default named admincp and modcp folders
i always rename them, and create a dummy, also on boards i setup..

you know,, just in case..

Dylanblitz 02-27-2010 07:35 PM

duh, I see what you meant now Paul. Thought you were talking about the out of box ACP directory :)

Thanks guys, I'll try that. Didn't even think about it.


All times are GMT. The time now is 08:43 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.00980 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
  • (6)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