Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AJAX Who's Online Details »»
AJAX Who's Online
Version: 1.00, by Red Blaze Red Blaze is offline
Developer Last Online: Mar 2016 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-12-2006 Last Update: Never Installs: 31
Template Edits
Code Changes Is in Beta Stage  
No support by the author.

First off, this is my first modification. It's tiny, it's obvious, but I'm proud of it. I have Zero Tolerance to thank, he did give me some hints and tips.

Description:
This only refreshes the names of the users in the index page of the forums. Not the "currently online" number of users. It could say currently 4 users online, and there's a huge list of usernames.
I don't really see a need of a picture since there's no visual change. It only calls the names of the users currently online and removes them if they're offline without the need of refreshing the index page of the forums.

Edits:
1 Template to edit (FORUMHOME)
1 File to edit (index.php)

First the File Edit:
Open your index.php file in your forum directory.
Find:
Code:
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTTA HERE... ###
Above add:
Code:
if ($_GET['do'] == 'online')
{
	echo $activeusers;
	exit;
}
Save, close, then upload index.php file to your forum directory.

Next, open your FORUMHOME template.
Find:
Code:
			<div class="smallfont">
				<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
Above that, add:
Code:
<script type='text/javascript'>
<!--
function requestWhoOnline()
{
	doReqOnline = new vB_AJAX_Handler(true)
	doReqOnline.onreadystatechange(ReqOnlineDone)
	doReqOnline.send('index.php?do=online')
}
function ReqOnlineDone()
{
	if (doReqOnline.handler.readyState == 4 && doReqOnline.handler.status == 200)
	{
		fetch_object('whoisonline').innerHTML = doReqOnline.handler.responseText
		setTimeout("requestWhoOnline()", 60000)
	}
}
setTimeout("requestWhoOnline()", 20000)
-->
</script>
Now Find:
Code:
<div>$activeusers</div>
Replace with:
Code:
<div id="whoisonline">$activeusers</div>
====================

Since this is my first mod, I'd back up the files. Forgive me if this hack has already been done. I made a strict search and found no such thing. I decided to try to do it, and voila! Go me.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 01-13-2006, 10:37 PM
Brent H's Avatar
Brent H Brent H is offline
 
Join Date: Sep 2004
Location: Phoenix, AZ
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
You are surely going to be a LOT better than me
Look at my first hack! Only one install and that is mine
What a great idea This is very useful for smaller communities.

If the number changed I'd also install... Great first hack, I'm impressed.
Reply With Quote
  #33  
Old 01-13-2006, 11:18 PM
4number8 4number8 is offline
 
Join Date: Nov 2004
Posts: 118
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great, I appreciate you sharing this with me, and look foward to seeing more of your releases
Reply With Quote
  #34  
Old 01-14-2006, 12:43 AM
o0oicebergo0o o0oicebergo0o is offline
 
Join Date: Dec 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
Oh give the guy a break! He released something and he could not have done it and keep it to himself. You know, what you are doing is nothing but discouraging to new coders. If you don't need it don't install it but please respect his work and the members who need it and don't put him off like that.
Advice is good but you've gotten too far away from advice and are actually moaning about his release!
At least he released something and given back to the community. Have you?

Personally, I think it's an awsome idea and I would install if the number also changed...
you know what, you need to crawl back into the hole that you came out of. Just becuase a hack is released dosen't mean that it should be automatically accepted as something positive. I'm giving constructive knowledge, a lot of newbies see these mods, run and install them... only finding out a day later that their hosting provider has canceled their account. What these types of mods need when released are ethical warnings, a disclaimer of sort for those who don't understand what cpu & memory server load is, or what ssh is, etc. sigh, basically giving the NEGATIVE effects of these modifications along with their positives. It's only fair :tired:
BTW I have given back to the community, allowing this community to continue to exist by purchasing this thing called a vbulletin licence and giving scientific feedback on modifications for knowledgable and new administrators. Please don't reply to this Mic, you'll only find yourself trapped and lost into a loose loose due to the fact that i'm not interested in this discussion anymore after this last smiliey face Now, on to Ruby Tuesday's
Reply With Quote
  #35  
Old 01-14-2006, 03:23 AM
IrPr IrPr is offline
 
Join Date: Mar 2005
Posts: 351
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any way to put this on vBA Online Users Block ???
Reply With Quote
  #36  
Old 01-14-2006, 04:55 AM
EasyTarget EasyTarget is offline
 
Join Date: Nov 2004
Posts: 660
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

way to 'get the last word in' iceberg, you sure showed her.
Reply With Quote
  #37  
Old 01-14-2006, 01:21 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by o0oicebergo0o
you know what, you need to crawl back into the hole that you came out of. Just becuase a hack is released dosen't mean that it should be automatically accepted as something positive. I'm giving constructive knowledge, a lot of newbies see these mods, run and install them... only finding out a day later that their hosting provider has canceled their account. What these types of mods need when released are ethical warnings, a disclaimer of sort for those who don't understand what cpu & memory server load is, or what ssh is, etc. sigh, basically giving the NEGATIVE effects of these modifications along with their positives. It's only fair :tired:
BTW I have given back to the community, allowing this community to continue to exist by purchasing this thing called a vbulletin licence and giving scientific feedback on modifications for knowledgable and new administrators. Please don't reply to this Mic, you'll only find yourself trapped and lost into a loose loose due to the fact that i'm not interested in this discussion anymore after this last smiliey face Now, on to Ruby Tuesday's
Ok, drowl on to your fantasy but when you wake up please be a little more realistic.
I didn't came out of any hole but I can understand you are judging from your own experiences.
And I will reply, if you are not interested in this disscussion do not read it. If you do reply, which will mean you read it you will prove that you are, indeed, interested in the disscussion.
Purchasing vBulletin is not giving back to this community. It's giving back to Jelsoft. You know, the coders here aren't paid or anything sp they don't benefit from your money, or anyone's money in here. Nope, you haven't given back. Discouraging new coders with stating what has already been said is not something that benefits either the hacker or the people who are going to install. 99SIVTEC's first message was enough, there was absolutely no need for your comments. You have a very big ego and that's not good for anyone here.
These newbies have small forums and CAN install this. If they have big enough forums for their account to be suspended because of this, trust me, they know these things.
Reply With Quote
  #38  
Old 01-14-2006, 03:02 PM
o0oicebergo0o o0oicebergo0o is offline
 
Join Date: Dec 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
Ok, drowl on to your fantasy but when you wake up please be a little more realistic.
I didn't came out of any hole but I can understand you are judging from your own experiences.
And I will reply, if you are not interested in this disscussion do not read it. If you do reply, which will mean you read it you will prove that you are, indeed, interested in the disscussion.
Purchasing vBulletin is not giving back to this community. It's giving back to Jelsoft. You know, the coders here aren't paid or anything sp they don't benefit from your money, or anyone's money in here. Nope, you haven't given back. Discouraging new coders with stating what has already been said is not something that benefits either the hacker or the people who are going to install. 99SIVTEC's first message was enough, there was absolutely no need for your comments. You have a very big ego and that's not good for anyone here.
These newbies have small forums and CAN install this. If they have big enough forums for their account to be suspended because of this, trust me, they know these things.
That's funny that nonthing you said about anything is true, please stop talking to me, I think it's called harassment and i'll be giving back to the community by having you muted. God bless.
Reply With Quote
  #39  
Old 01-14-2006, 03:11 PM
Borgs8472 Borgs8472 is offline
 
Join Date: Apr 2004
Posts: 924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey Sonikku, could you maybe do this with the 'who's online' or somehow shunt this to another page?

It might be fun to watch the online/offline page as people join and leave, however if everyone who's visiting the forum home is doing it, it's too much IMO.
Reply With Quote
  #40  
Old 01-14-2006, 05:13 PM
Lea Verou Lea Verou is offline
 
Join Date: Jul 2005
Location: Greece
Posts: 1,856
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by o0oicebergo0o
That's funny that nonthing you said about anything is true, please stop talking to me, I think it's called harassment and i'll be giving back to the community by having you muted. God bless.
How old are you? 14? Geez!
Reply With Quote
  #41  
Old 01-14-2006, 06:26 PM
o0oicebergo0o o0oicebergo0o is offline
 
Join Date: Dec 2005
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Michelle
How old are you? 14? Geez!
i'm 21 and you need to mind your own business woman, god
now you want to come, try to joke, and say "14"
simply annoying, and that's the number one reason why you don't have a real man in your life
stop talking to me woman lol got knit a sock
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08042 seconds
  • Memory Usage 2,323KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete