|
|
|
|
Joined: Dec 2006
Posts: 1,235
veteran
|
|
veteran
Joined: Dec 2006
Posts: 1,235 |
Is it possible to have external pages register visitors info so it displays in who's online?
Example, if I have page2.php in my root directory, is there any way that I can add some code to that page (and of course add to the language file) so it displays "Viewing page2" on the who's online details page?
|
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
Hi, Yes  Just add the info to /languages/yourdir/online.php 
|
|
|
|
|
Joined: Dec 2006
Posts: 1,235
veteran
|
|
veteran
Joined: Dec 2006
Posts: 1,235 |
What info? Can I put a directory address in the language file - /dir1/index.phponline.php has the format - $ubbt_lang['newreply'] =so will it work like - $ubbt_lang['/dir1/index.php'] =BTW - Happy birthday Ian 
|
|
|
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150
|
|
Joined: Jun 2006
Posts: 16,532 Likes: 150 |
FYI, ian's method will only work for items housed within the UBB; not sure how to do it outside of it offhand as it seems thats what you're wanting...
|
|
|
|
|
Joined: Jun 2006
Posts: 9,242 Likes: 1
Former Developer
|
|
Former Developer
Joined: Jun 2006
Posts: 9,242 Likes: 1 |
It's a bit of both of what gizmo and ian stated. If it's outside your forum directory and not using the ubb.threads script/template system, then it will take some coding to accomplish.
You'd need to insert some info into the ubbt_ONLINE table. Take a look at the contents of this and you'll get an idea of what you need to insert when a user visits the page in question. One of the fields is the script name, which is what you'd add to your language file.
|
|
|
|
0 members (),
118
guests, and
136
robots. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|
|