The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How would I make a page show on WOL
How would I make a page show on the whos on line.
I have my main site that is tied in with vbulletin but I dont use the skin templates. How ever I would like to show people on these pages on the WOL. I already include my global.php I added the plugin to add custom pages to the WOL but the page has to show there first as Unknown location before I can do the plugin to show what I want. I tried adding Code:
define('THIS_SCRIPT', 'test'); |
#2
|
||||
|
||||
<a href="https://vborg.vbsupport.ru/showthread.php?t=157329&highlight=online" target="_blank">Display Users Viewing non-vBulletin Pages in "Online Users"</a>
If you include global.php, all you should need to do is step 3 (along with defining THIS_SCRIPT at the top of your custom page). |
#3
|
||||
|
||||
I have and its not working.
I have added Code:
define('THIS_SCRIPT', 'test'); It wont even show as unknown location. |
#4
|
||||
|
||||
Are you sure that you are including global.php correctly? If so, you should be able to print out your userid in the page. If you can't get it to print out the userid, then global.php is not included correctly.
|
#5
|
||||
|
||||
yes I am sure you can login and out on the page. I have other scripts I coded that post the users id and username to another database where I am storing information.
Now if I call a template it will show on WOL with unknown location(which I can fix). But I don't want to call a template from vbulletin if I don't plan on using it that would be a waste of resources of the server. --------------- Added [DATE]1239197151[/DATE] at [TIME]1239197151[/TIME] --------------- I can get it to show if I add the following. Code:
$navbits = array(); $navbits[$parent] = 'Test Page'; $navbits = construct_navbits($navbits); eval('$navbar = "' . fetch_template('navbar') . '";'); eval('print_output("' . fetch_template('test') . '");'); But then that messes up the whole page its either blank or if I make the template it still isnt what I want to do. The pages are made I just want to show them in WOL. --------------- Added [DATE]1239229628[/DATE] at [TIME]1239229628[/TIME] --------------- No one has any ideas? |
#6
|
||||
|
||||
No help on this one?
|
#7
|
||||
|
||||
It's hard to say what is wrong with the little bit of info in this thread. I've never made a page without using a template when I wanted it to show up on the WOL, so I really can't say why it won't work without a template. Perhaps post your page and someone may be able to see what is wrong.
|
#8
|
||||
|
||||
This is what I have the login works the bbcode parses and I pull other data.
Just cant get it to show on WOL. I don't get it. I can only get it to show if I use VB templates. Code:
<?php error_reporting(E_ALL & ~E_NOTICE); define('NO_REGISTER_GLOBALS', 1); define('THIS_SCRIPT', 'test'); chdir('path/to/dir'); $phrasegroups = array(); $globaltemplates = array(); $actiontemplates = array(); $specialtemplates = array(); require_once('/path/to/dir/global.php'); require_once('/path/to/dir/forums/includes/class_bbcode.php'); chdir ('path/to/dir'); ?> |
#9
|
|||
|
|||
Online users is called from index.php
Check lines #432 - 550 in your index.php |
#10
|
||||
|
||||
Ok I see all the code but how would I add that to that the pages on the other parts of my site are shown there.
I am sure I don't have to copy all that to my pages. I don't want to show the WOL on other pages of my site I want the other pages of my site to show on WOL. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|