vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   request phpfile outside board (https://vborg.vbsupport.ru/showthread.php?t=76199)

n1ckn4me 02-12-2005 05:50 PM

request phpfile outside board
 
Hi all!

I was wondering how I can request an own-made-phpfile (where I included a script that includes a template made in vb) that is outside my board-folder ? (I still want to use the vb-commands in the requested own-made-phpfile :) )

thanks in advanced,

Greetzzz N1ckN4mE!

zemic 02-12-2005 07:06 PM

I think this is what you need...........

Above:
require_once('./global.php');

put this:
chdir('<path to your forum/home/user/website/forum/');


So it looks like this:
chdir('/home/fhlinux199/k/kroozing.com/user/htdocs/forum/');
require_once('./global.php');

Was that it? :)



This could be an useful topic aswell
How to create your own vbulletin pages:
https://vborg.vbsupport.ru/showthread.php?t=62164

n1ckn4me 02-12-2005 10:21 PM

Quote:

Originally Posted by zemic
Was that it? :)

YES!!

That was excatly what I ment! I succeeded in your advice so Thank you very much!

Catch ya around Zemic ;)




---


ps: one more thing tho....

do you or someone happen to know how I still can use my $stylevar command?

example:

PHP Code:

<img src="$stylevar[imgdir_misc]/image.jpg"

(I could of course writeout the whole path but If there's an option that I still can use the $stylevar command than you make my day :D)

quadroplex89103 03-02-2005 01:57 PM

toobad that using the global.php only gives you like half the features for instance you cant get a who is online thingor the board stats with it


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