vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   How would I make a page show on WOL (https://vborg.vbsupport.ru/showthread.php?t=210615)

Lynne 04-10-2009 01:18 AM

These lines are incorrect. You've already chdir, so don't put the whole path in there:
PHP Code:

require_once('/path/to/dir/global.php');
require_once(
'/path/to/dir/forums/includes/class_bbcode.php'); 

I'm not sure if that has anything to do with the problem though.

BBR-APBT 04-10-2009 01:21 AM

I have to use the whole path otherwise it don't work.
No bbcode parses and logins don't work.

Quote:

Originally Posted by Lynne (Post 1787877)
These lines are incorrect. You've already chdir, so don't put the whole path in there:
PHP Code:

require_once('/path/to/dir/forums/global.php');
require_once(
'/path/to/dir/forums/includes/class_bbcode.php'); 

I'm not sure if that has anything to do with the problem though.

I posted the correct paths I took out an extra forum dir when editing the real path.

Lynne 04-10-2009 02:31 AM

You don't need to use the whole path in those lines. I use this on one of my pages outside of the /forums directory and it works just fine:

PHP Code:

chdir('/home/path/to/my/forums');
require_once(
'./global.php'); 


BBR-APBT 04-10-2009 03:07 AM

ok but if the login works and it pulls the user name for the chat room etc. That cant be a problem.

BBR-APBT 04-11-2009 11:05 AM

Still doesn't work.

Lynne 04-11-2009 01:39 PM

I am guessing that when you call a template that has a header, headinclude, and footer in it, that there is something in the page that triggers the plugins you created for the WOL to work. Since you aren't calling those templates, then your WOL isn't working.

Andreas 04-11-2009 02:04 PM

To cut a log story short:

You must call
PHP Code:

exec_shut_down(); 

right before the end of your script.

Lynne 04-11-2009 02:13 PM

Thanks, Andreas. I was kinda out of ideas here!

BBR-APBT 04-11-2009 02:38 PM

wow umm lol. That was easy thanks a lot man all is working swell.

Thanks for trying to help lynne.


All times are GMT. The time now is 05:31 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.01725 seconds
  • Memory Usage 1,727KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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