vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   add a location outside vb to wol ! (https://vborg.vbsupport.ru/showthread.php?t=62824)

corsacrazy 03-23-2004 08:13 AM

add a location outside vb to wol !
 
im looking to add every page in another folder not in forums directory to the whos online page of vb.. is this possle ?

NTLDR 03-23-2004 10:23 AM

You'll need to require global.php in each of the files and then edit includes/functions_online.php too add the files names and location names.

corsacrazy 03-23-2004 12:17 PM

Quote:

Originally Posted by NTLDR
You'll need to require global.php in each of the files and then edit includes/functions_online.php too add the files names and location names.

advice taken :) cheers

corsacrazy 03-23-2004 12:36 PM

how do i include ot functions online ? shall i put the full path ie /home/corsacrazy/directoryfile.php/

or another way?

NTLDR 03-23-2004 01:13 PM

PHP Code:

chdir('/path/to/forums');
require_once(
'./global.php');
require_once(
'./includes/functions_online.php'

You don't need to require functions_online.php in your pages unless you are using the functions on that page. It just needs to be edited for the pages to appear with titles etc on online.php/member.php

glo 03-23-2004 09:34 PM

can it be done so that each page does not have to be renamed .php?
and so that each location is identified by page name?

NTLDR 03-23-2004 09:46 PM

Note sure I follow. The page can have any extension as long as its parsed as PHP (for example I use .ts3 and .core on my sites). All the pages are detemined by the script name.

glo 03-25-2004 09:47 AM

Hi NTLDR,

I can see from your last post that it doesnt have to be a .php file extension which is good.

How is the page name identified?

And how do we ensure that the code is being parsed properly, as i only intend on using it with html code.

Thanks in advance.

ryancooper 05-21-2004 04:36 PM

Quote:

Originally Posted by glo
Hi NTLDR,


I can see from your last post that it doesnt have to be a .php file extension which is good.

How is the page name identified?

And how do we ensure that the code is being parsed properly, as i only intend on using it with html code.

Thanks in advance.

I am a little confused so i put
Code:

<php>
chdir('/path/to/forums');
require_once('./global.php');
require_once('./includes/functions_online.php') </php>

into my html page . . . then what do i need to ad to the functions?

ryancooper 05-23-2004 01:00 AM

OK got this up and running but one question when a guest is viewing the page it says viewing forum home with a error message and the location is /

But when a member is on hte apge it works fine some of the time. Other times I get the same as above?

Any suggestions?

This is what i have in the php
<?php

require_once('./global.php');

?>
it is in the same directory as the forums so I don;t need the chdir('/path/to/forums');

thanks ;)

apokphp 08-13-2004 07:21 AM

What is the sample code to put into the /functions_online.php ? I tried to use what was there as a "template" for the code....but nothing seemed to work.

My page is a .php page.

Let's say the page is: www.mysite.com/test/index.php

How can I get that index page to show upon the WOL when the forums are located at:
www.mysite.com/forums/ ?


All times are GMT. The time now is 04:06 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.01271 seconds
  • Memory Usage 1,734KB
  • 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_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (11)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