vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   small hack required (https://vborg.vbsupport.ru/showthread.php?t=51956)

sbryan 04-22-2003 03:24 AM

small hack required
 
if you go to http://www.xboxworld.com.au/index.php

up the top right hand side, i want to put a small line of text in there that lists the amount of users online in the forum. ill make the graphic a bg image and put the text over the top..

nothing too detailed, just something that reads like

'40 users online, register now!' with 40 pulled from the 'Currently Active Users: 41' figure thats on the forum. ill just make 'register now' a link to the signup form.

is it possible to use that data from the forum in the include that i use in the main site?

DigitalDesktops 04-22-2003 03:41 AM

try putting this somewhere in your forumhome template:

PHP Code:

$totalonline Users Online, <a href="register.php?s=&amp;action=signup">Register Now!</a


sbryan 04-22-2003 03:45 AM

how do i get that 'whos online' figure into my main site though?

DigitalDesktops 04-22-2003 03:51 AM

hmm, i'm not sure how you would do this, sorry. :(

Logik 04-22-2003 09:20 PM

Theres a hack that already does that. Search for it..

sbryan 04-22-2003 10:24 PM

ok cheers!

Logik 04-22-2003 10:39 PM

Your welcome!


All times are GMT. The time now is 07:07 AM.

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.01009 seconds
  • Memory Usage 1,719KB
  • 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_php_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