MyBB Community Forums

Full Version: Fake members online
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
written in javascript

a nice add on for the fake statistics, with this script you can make members appear in the online list in the statistics,

should be added to the footer
Quote:
<script>
var OnlineMembs=[];n=0
OnlineMembs[n++]=['LINKY1','NAMY1']
OnlineMembs[n++]=['LINKY2','NAMY2']
OnlineMembs[n++]=['LINKY3','NAMY3']

a=document.getElementsByTagName("span")
for(i=0;i<a.length;i++){
if(a[i].className=='smalltext' && a[i].innerHTML.match(/users active in the past/i)){
for(blah in OnlineMembs){
a[i].innerHTML+=', <a href="'+OnlineMembs[blah][0]+'">'+OnlineMembs[blah][1]+'</a>'
}}}
</script>

to edit find these lines
OnlineMembs[n++]=['LINKY1','NAMY1']
OnlineMembs[n++]=['LINKY2','NAMY2']
OnlineMembs[n++]=['LINKY3','NAMY3']

LINKY is the link to the profile, NAMY is the users name,
you can add as many of these lines as you want,

enjoy
Haha, very interesting.
anyone can discover it by disable the js from his browser :|
pepotiger Wrote:anyone can discover it by disable the js from his browser :|

would anyone really look?
depends how suspicious your members are
pepotiger Wrote:anyone can discover it by disable the js from his browser :|

yeah but no1 would compare pages with js enabled and js disabled,
if they got it disabled they just won't notice it ^^
ty for comments
dosnt wor 4 me Sad
nice idea, and it is working
nice job
Works, but you can easily figure out that these members are not online without switching JS off.

11 users active in the past 15 minutes (2 members, 0 of whom are invisible, and 9 guests).
GoogleBot, Yahoo! Slurp, DevilsWrath, Wrathchild, chairath, beckyisherwood, ololo

2 members lol but showing 5 usernames Wink
Not sure why you want to fake members online, but I did it for testing purposes on my localhost forum simply by creating some fake users in the mybb_users table, and creating some fake user sessions for them in the mybb_sessions table. If you set the session timestamp to some time in the future the session and therefore the online status won't vanish until that time is reached.

However the 'complete list' will show the time of activity and if that time isn't within 15 minutes in the past that's a dead giveaway... Wink
good point frostschutz
thanks