The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

fake guest for phpbb3

View previous topic View next topic Go down

fake guest for phpbb3

Post by indoromance on May 16th 2012, 6:17 pm

Is there any way to manipulate the online guest counter?
Like, if there´s no guest online display 10. Or any amount of guests +10.

i installed 4 script in my JS management but, all doesn't work......can you help me? Razz Razz

Code:
$logged_visible_online = 0;
$logged_hidden_online = 0;
$guests_online = 0;
$online_userlist = '';
$l_online_users = '';

Code:
$total_online_users
$logged_visible_online
$logged_hidden_online
$guests_online

Code:
// Build online listing
      $vars_online = array(
        'ONLINE'  => array('total_online_users', 'l_t_user_s'),
        'REG'      => array('logged_visible_online', 'l_r_user_s'),
        'HIDDEN'  => array('logged_hidden_online', 'l_h_user_s'),
        'GUEST'      => array('guests_online', 'l_g_user_s')

      );

Code:
// Skip multiple sessions for one user
if ($row['session_ip'] != $prev_session_ip)
{
  $guests_online++;
}

Regards,
~Indoromance

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Re: fake guest for phpbb3

Post by kirk on May 16th 2012, 6:57 pm

i dont know any way of doing it.
It seems a little misleading to me.

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: fake guest for phpbb3

Post by indoromance on May 16th 2012, 7:18 pm

@kirk wrote:i dont know any way of doing it.
It seems a little misleading to me.

i know, some admin can do this.....but they won't reveal their secret information Sad Sad

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Re: fake guest for phpbb3

Post by Ahkrir on May 16th 2012, 7:21 pm

Why would you want to do this?

Ahkrir
Forumember

Male Posts : 288
Reputation : 14
Language : English
Location : The Netherlands

http://smarterweb.go-board.com/forum

Back to top Go down

Re: fake guest for phpbb3

Post by kirk on May 16th 2012, 7:23 pm

why would you want it to look like there are more guest then what are on anyway? It's not doing any good if they are not real guest or potential members trying to register? Plus i I'm not sure how it would work unless you are able to add the same or different ip for each one.. Because even when a guest appears it shows the ip in the admin panel???

But yeah idk, i am sure if there is a way someone will post it thumright

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: fake guest for phpbb3

Post by indoromance on May 16th 2012, 7:35 pm

@kirk wrote:why would you want it to look like there are more guest then what are on anyway? It's not doing any good if they are not real guest or potential members trying to register? Plus i I'm not sure how it would work unless you are able to add the same or different ip for each one.. Because even when a guest appears it shows the ip in the admin panel???

But yeah idk, i am sure if there is a way someone will post it thumright

no....
sorry, i understand what you mean, but i mean faking guest only on index, not in admin panel too.

Faking member possible, why faking guest impossible?

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Re: fake guest for phpbb3

Post by LGforum on May 16th 2012, 8:47 pm

The codes in your first post are PHP, and for the index.php file that comes with a proper phpbb3 forum. They're no use to you on Forumotion Razz


Anyway, putting this in a JS file and clicking 'in the homepage' only, will add 10 guests to your guest count. Assuming your using phpbb3 like your profile states.
Code:

$(function(){
var x = document.getElementById('i_whosonline').nextSibling;
var num = x.innerHTML.match(/(\d+) Guests/i, '$1');
num = parseInt(num) +10;
x.innerHTML=x.innerHTML.replace(/(\d+) Guests/,num+' Guests');
});

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: fake guest for phpbb3

Post by Ahkrir on May 16th 2012, 9:27 pm

@LGforum wrote:The codes in your first post are PHP, and for the index.php file that comes with a proper phpbb3 forum. They're no use to you on Forumotion Razz


Anyway, putting this in a JS file and clicking 'in the homepage' only, will add 10 guests to your guest count. Assuming your using phpbb3 like your profile states.
Code:

$(function(){
var x = document.getElementById('i_whosonline').nextSibling;
var num = x.innerHTML.match(/(\d+) Guests/i, '$1');
num = parseInt(num) +10;
x.innerHTML=x.innerHTML.replace(/(\d+) Guests/,num+' Guests');
});

It's saying Invision here.. Not PHPbb3

Ahkrir
Forumember

Male Posts : 288
Reputation : 14
Language : English
Location : The Netherlands

http://smarterweb.go-board.com/forum

Back to top Go down

Re: fake guest for phpbb3

Post by LGforum on May 16th 2012, 9:39 pm

Ah yes, my mistake. I think I automatically thought phpbb3 since the codes in the first post were PHP for phpbb3 forums. That would insinuate he searched for phpbb3 solutions.

Just looked at his forum and it is phpbb3 rather than invision.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: fake guest for phpbb3

Post by kirk on May 17th 2012, 12:52 am

Oh.
I am still wondering what the whole purpose is for.
Can someone explain why you need to have fake guest appear?
I just dont understand what the purpose or significance is ? Sad

Dose it help with bots or something?

kirk
Forumaster

Male Posts : 11037
Reputation : 651
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Re: fake guest for phpbb3

Post by runawayhorses on May 17th 2012, 1:11 am

My understanding of bots is they scan the topics and posts not how many people are online. The only logical conclusion why someone would want to artificially inflate how many people are online is to give the illusion that the site is more popular than it really is.

runawayhorses
Hyperactive

Male Posts : 2537
Reputation : 162
Language : English
Location : United States

http://runawayhorses.alldiscussion.net/

Back to top Go down

Re: fake guest for phpbb3

Post by indoromance on May 17th 2012, 4:01 am

@LGforum wrote:The codes in your first post are PHP, and for the index.php file that comes with a proper phpbb3 forum. They're no use to you on Forumotion Razz


Anyway, putting this in a JS file and clicking 'in the homepage' only, will add 10 guests to your guest count. Assuming your using phpbb3 like your profile states.
Code:

$(function(){
var x = document.getElementById('i_whosonline').nextSibling;
var num = x.innerHTML.match(/(\d+) Guests/i, '$1');
num = parseInt(num) +10;
x.innerHTML=x.innerHTML.replace(/(\d+) Guests/,num+' Guests');
});

thank u before....
right, i Use Phpbb3 at my forum.
i follow your instruction
but your script not work..... Question

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Re: fake guest for phpbb3

Post by indoromance on May 17th 2012, 4:10 am

Rideem3 wrote:I created a quick one that will generate a random number from 0 -1000 (for a realistic sense). It will display 10 users online if it's 0, and if it's not, then will generate a random number. Most likely it will be in the hundreds:
Code:
var x =document.getElementById('i_whosonline').nextSibling.getElementsByTagName('strong')[0];
if (x.innerHTML == 0) x.innerHTML = "10";
else x.innerHTML = Math.floor(Math.random()*1001);

However if you want to define a definite number use this:
Code:
var x =document.getElementById('i_whosonline').nextSibling.getElementsByTagName('strong')[0];
if (x.innerHTML == 0) x.innerHTML = "10";
else x.innerHTML = "NUMBERHERE"

we might also use that script......but how to hide next content like this ":: 4 Registered, 1 Hidden and 4 Guests :: 2 Bot" Wink

indoromance
Forumember

Male Posts : 84
Reputation : 1
Language : Indonesian
Location : Indonesia

http://www.indoromance.friendhood.net

Back to top Go down

Re: fake guest for phpbb3

Post by Jophy on May 17th 2012, 9:53 am

Please don't double/triple post. Your post need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button instead! This is your 3rd reminder about this.

Jophy
ForumGuru

Male Posts : 17924
Reputation : 835
Language : English
Location : Somewhere

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum