PDA

View Full Version : who is online


khaledkhaled24
07-13-2008, 12:15 PM
Hello All,
In the online.php file, I want to edit it the table that shows me the users who are online, and add a new column such that I can put some data that I can get, so how is it possible to add this new column to this table in this php file?

Thanks in advance

RLShare
07-13-2008, 12:42 PM
The HTML for the who is online section is actually in the FORUMHOME template. So go to your styles manager->your skin->edit templates->Forum Home templates->FORUMHOME. And then find this comment '<!-- what's going on box -->' as it symbolizes the start/end of the 'who is online' section.

Opserty
07-13-2008, 01:28 PM
(Ignore the above post)

You need to edit the templates.

WHOSONLINE
whosonlinebit

Are probably to two you will need.

The HTML for the who is online section...
The OP isn't talking about the index who's online.

RLShare
07-13-2008, 01:52 PM
oops.. sorry, I just payed attention to the title and skimmed the rest

khaledkhaled24
07-13-2008, 02:41 PM
Thanks a lot RLShare and Opserty, I did make the change in the table correctly, but may I ask is it possible to add PHP function when I edit the tempelate?? meaning if I am going to start a php code should I write

<?php

//whatever the code is..
//

?>


or how should I add the PHP function correctly?

Opserty
07-13-2008, 03:39 PM
No PHP in template.

Including External Files (http://www.vbulletin.com/docs/html/main/templates_externalfiles)

Or use the Plugin System (http://www.vbulletin.com/docs/html/plugin_system)

khaledkhaled24
07-13-2008, 04:29 PM
Thanks Opserty, I will check it out, and I will inform you if things work out.

--------------- Added 1215982902 at 1215982902 ---------------

Hey Opserty,
Things didn't work out as I wanted. I wanted to access a cookie on the users machine from a different site originated on the users file. As I didn't know that it isn't allowed to access cookies from a different site.

Oh well, but really you were a great help.
Thanks PRO!