vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   who is online (https://vborg.vbsupport.ru/showthread.php?t=185190)

khaledkhaled24 07-13-2008 12:15 PM

who is online
 
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.

Quote:

Originally Posted by RLShare (Post 1574205)
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
Code:

<?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

Or use the 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 [DATE]1215982902[/DATE] at [TIME]1215982902[/TIME] ---------------

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!


All times are GMT. The time now is 10:28 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.01000 seconds
  • Memory Usage 1,721KB
  • 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_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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