vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add Who's Online locations from Admin CP (https://vborg.vbsupport.ru/showthread.php?t=32849)

KuraFire 12-10-2001 01:44 PM

I have a suggestion: explain to use how to incorporate home-made files that reside in the directory of vbulletin.


For instance:

http://www.kurafire.com/files/thecouch/portal2.php

http://www.kurafire.com/files/thecouch/ is the directory of my board, and the portal2.php is a home-made portal page that lists 50 threads that have last had a reply in (excluding threads from a private forum). (oh, and portal.php lists 250 instead of 50).

Now, can we just list portal2.php in the input panel of this hack and it'll work already? That's all I want to know, how to make that work :)

(I read it already works, with some editing, for the vbstats hack)

Admin 12-10-2001 02:26 PM

If portal2.php requires global.php, then yes you can simply list it using the hack. :)

KuraFire 12-10-2001 02:45 PM

No, it doesn't use global.php. It only creates an opening to the forum's database, runs one query and creates an output of that.

How would I go and include global.php for it? I want to know that because I want to use some of the global functions in the new version of the portal2.php page (which will actually LOOK like something, unlike now).

Admin 12-10-2001 02:52 PM

PHP Code:

require('./global.php'); 

just add it to the file and it'll act just like any other vB file.

KuraFire 12-10-2001 03:03 PM

Great, thanks :)

So what exactly does it allow me to use in my code with that?

KuraFire 12-10-2001 03:06 PM

While I'm at it: how did you do that awesome "user is away" script ???? That's awesome! :eek:

Edit: nm, I see the hack already. :)

Admin 12-10-2001 03:11 PM

The major advantage is using the sessions vBulletin provides.
Other than that, checking for permission becomes easier, and also templates. You can use templates with that.

KuraFire 12-10-2001 03:30 PM

Ooh, permissions, THAT I like very much! ^_^

KuraFire 12-11-2001 08:00 AM

[QUOTE]Originally posted by FireFly
PHP Code:

require('./global.php'); 

just add it to the file and it'll act just like any other vB file.

Admin 12-11-2001 08:07 AM

What are the exact warnings?


All times are GMT. The time now is 05:09 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.01115 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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