vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Home Enhancements - Track Guest Visits (https://vborg.vbsupport.ru/showthread.php?t=131314)

T.S. 01-04-2007 09:17 PM

1.10 gives guests a blank page on one of my forums, while 1.09 worked fine. It seems to be working normal on my other forum. Both sites are the same vB version and have the same mods installed. :cross-eyed:

paldo 01-04-2007 10:20 PM

updated this last night on my forum and peeps couldnt log in or see the site
/home/birdbox/public_html/forums/global.php(356) : eval()'d code on line 356

was all they could see uninstalled the hack and everything is fine . the old one at least worked lol

Paul M 01-04-2007 11:57 PM

Sorry, but unless someone gives me access to a forum that has an error then we are not going to get anywhere. I cannot make this fail no matter what I try.

BTW both paldo and T.S - I would assume that as with the previous member, turning off Spider Detect should cure the error until someone gives me access to a failing board to trace the problem.

A0007 01-05-2007 02:59 AM

Thanks !

dj_melayu 01-05-2007 03:39 AM

Quote:

Originally Posted by Paul M (Post 1150751)
Hiding the problem is never a good idea, fixing it is much better. Can you confirm that you have read and done this ;

Yes, enable spider display is already enable on who's online options and v1.11 is still couldnt fix that problem..Have to disable detect spider on guest tracking options. Thats not the big issue anyway. Well done and great job for your work! :D

paldo 01-05-2007 04:17 AM

Quote:

Originally Posted by Paul M (Post 1151009)
Just out of interest - can anyone who has an error in global.php upload the version attached to this post and see if it makes any difference.

same error for me

Paul M 01-05-2007 04:44 AM

Sorry, but I cannot find anyway to make it fail on my test forum, so unless one of you wants to give me access to your forum to do some testing then there is nothing I can do. The randomness of it suggests it may be clashing with something else.

BoYagoob 01-05-2007 08:37 AM

installed

Shazz 01-05-2007 01:38 PM

Working perfect on new update

dj_melayu 01-05-2007 02:18 PM

downgrade to v1.90..not blaming to this hacks..maybe it was conflict with other hacks..good job! :)

TheWhite 01-06-2007 01:39 AM

having the same problems, downgraded to version 1.90 toooo :surprised:

Paul M 01-06-2007 03:19 AM

At the risk of repeating myself - unless someone gives me access to a forum displaying the error then nothing is going to get investigated/fixed.

ShawnV 01-06-2007 04:28 PM

Quote:

Originally Posted by Paul M (Post 1151759)
At the risk of repeating myself - unless someone gives me access to a forum displaying the error then nothing is going to get investigated/fixed.

I PM'd you info and access.

_V

Paul M 01-06-2007 05:13 PM

Thank you, I'l take a look in a bit. :)

Paul M 01-06-2007 07:44 PM

I have looked at your forum and you seem to be working ok atm (I have loaded 1.11 for you).

Unfortunately, you are not getting the problem I was looking to try and track down (the "Cannot use string offset as an array" error in global.php).

Can someone who is getting this error please give me access to look into it.

ShawnV 01-06-2007 09:25 PM

Quote:

Originally Posted by Paul M (Post 1152144)
I have looked at your forum and you seem to be working ok atm (I have loaded 1.11 for you).

Unfortunately, you are not getting the problem I was looking to try and track down (the "Cannot use string offset as an array" error in global.php).

Can someone who is getting this error please give me access to look into it.


Thank you sir, appreciated. ;)

edit: for some odd reason though, it will show everything, ergo: Visitors (37), Yahoo! Slurp Spiders (3) Google (1)

Then an hour later it will only show Visitors (37) or visitors and yahoo, is there some cron or something else that is clearing out the stored data for those, it is very random?

Cheers,

_V

Paul M 01-07-2007 10:07 AM

There is a cron function to clear out old records, I didn't notice what you had it set to.

ShawnV 01-07-2007 11:25 AM

Quote:

Originally Posted by Paul M (Post 1152509)
There is a cron function to clear out old records, I didn't notice what you had it set to.


I have it set to 7 days atm, wonder why its only clearing out the spider info though, not the Visitors?

Rop 01-07-2007 11:35 AM

Hi Paul,

Thank you for this nice mod!
Could you explain a bit how guests and spiders are counted? As mentioned by others, it seems to greatly undercount spiders. That's probably by design, and it would help if I understood how a guest/spider is counted. From the dB table it looks like it's tracking IP, so I guess unique IPs are only counted once? Even with that in mind the count seems low, so there must be more to it. How is the ID in the table calculated? Possibly multiple instances of a spider result in the same ID?

In the last few posts you mention there's a cron job doing cleanup. What is job called? Or is it part of an existing job, like Daily Cleanup? There doesn't seem to be anything in my list of cron jobs that's related to guest visit tracking. I just want to make sure there is something cleaning up the guests table, so it doesn't grow unbounded.

Thank you!

-Rob-

Spiffware 01-07-2007 01:40 PM

*updated*

Paul M 01-07-2007 01:56 PM

Quote:

Originally Posted by Rop (Post 1152551)
Hi Paul,

Thank you for this nice mod!
Could you explain a bit how guests and spiders are counted? As mentioned by others, it seems to greatly undercount spiders. That's probably by design, and it would help if I understood how a guest/spider is counted. From the dB table it looks like it's tracking IP, so I guess unique IPs are only counted once? Even with that in mind the count seems low, so there must be more to it. How is the ID in the table calculated? Possibly multiple instances of a spider result in the same ID?

In the last few posts you mention there's a cron job doing cleanup. What is job called? Or is it part of an existing job, like Daily Cleanup? There doesn't seem to be anything in my list of cron jobs that's related to guest visit tracking. I just want to make sure there is something cleaning up the guests table, so it doesn't grow unbounded.

Thank you!

-Rob-

The unique id is generated by standard vbulletin, iirc it's based on ip and useragent - you will see them in the vb session table if you look.

Basically what this does is create a record for each unigue visitor, as determined by vb, and update that record each time that visitor loads a new page (exactly as happens for a member).

If spider detection is enabled then each time a visitor record is updated it loads vb's spider list (as used on the WOL) and uses this to check if the visitor is a known spider, if it is recognised then the record is updated with the spider name as well as the new lastactive time. (That means if it was off, and you turn it on, you will not see an instant change, visitors will only be updated as they visit).

The count is simply built by loading all the records where the lastactive time is greater than the cutoff (either 24 hours ago, or midnight, depending on the setting).

The cleanup does not use a seperate cron job, it's via a hook in the hourly cleanup job.

Rop 01-07-2007 04:31 PM

Thanks Paul! That does make things a little clearer.
I understand now why spiders that come from the same IP will only be counted once, even if they come back multiple times within 24 hours.

I still have a little bit of a puzzle with spiders though: About an hour ago 6 Slurp spiders were showing on my board. They were all from different IPs. Yet the guest stats show that only 3 Slurp spiders have visited in the past 24 hours. So, is this because vBulletin classifies some of these (despite the unique IPs) as 'the same' guest? No way around this I suppose?

-Rob-

Paul M 01-07-2007 05:22 PM

Quote:

Originally Posted by Rop (Post 1152738)
I still have a little bit of a puzzle with spiders though: About an hour ago 6 Slurp spiders were showing on my board. They were all from different IPs. Yet the guest stats show that only 3 Slurp spiders have visited in the past 24 hours. So, is this because vBulletin classifies some of these (despite the unique IPs) as 'the same' guest? No way around this I suppose?

Actually, what is happening is that the slurp spiders are from a similar subset of ips - e.g. 74.6.71.x

By default, vbulletin builds the unique id using just the first three bits of the ip address - so 74.6.71.1 will be seen the same as 74.6.71.2, 74.6.71.3 etc. You can change this in the vBulletin Options > Server Settings and Optimization Options > Session IP Octet Length Check - change it from '255.255.255.0' to '255.255.255.255' and vb (and hence this mod) will see them all as unique.

I think I might add my own option for this in the next update, or maybe just build the guest id seperately from vb so that setting does not cause a problem.

Rop 01-07-2007 10:22 PM

Thanks Paul! Perfectly clear now!
I was going to change the Session IP Octet Length Check to use the full IP address, but the notes that go with it gave me pause. Seems that using the full IP for session IDs can cause trouble for users behind transparent proxies (and there are many of those). So, I'll leave things as they are now, and live with it. Of course, you have my vote to use your own guest ID solution for the mod. It would make a great add-on even better! :)

-Rob-

Paul M 01-07-2007 11:51 PM

Quote:

Originally Posted by Rop (Post 1152939)
Seems that using the full IP for session IDs can cause trouble for users behind transparent proxies (and there are many of those).

It doesn't really affect transparent Proxies - it's mostly AOL users whose proxy IP can change mid session.

funkmeister 01-08-2007 01:13 PM

How can I reposition the output? I want to place the content in a different position on my FORUMHOME, but I don't see any "call" to it within that template?

Is it elsewhere or can I turn off the display and use the contents of the 'Display_Guests' template and place within FORUMHOME in my desired location?

Thanks, awesome product as usual Paul M.

funkmeister 01-08-2007 02:22 PM

To answer my own question! Well, yes I can place the contents of 'Display Guests' into the position I would like it to appear, but with the display turned off, of course, it's content is empty!

So to my original question, is there way of postioning this wherever I would like on FORUMHOME, as I can't seem to find where the relevant code is, other than what I have mentioned.

If it's not possible right now, can you add the ability for folks like me who would like a little more layout possibilities.

Thanks again.

ShawnV 01-08-2007 03:48 PM

Quote:

Originally Posted by Paul M (Post 1152757)
I think I might add my own option for this in the next update, or maybe just build the guest id seperately from vb so that setting does not cause a problem.


Awaiting this one, since I still seem to have a problem with it keeping the spiders info, a conflict I assume is with another mod I have installed, has anyone checked this with the Inferno RPG, or the IBpro Arcade as those are the only new mods that have been added to the site recently.

_V

funkmeister 01-09-2007 12:25 AM

Quote:

Originally Posted by funkmeister (Post 1153650)
To answer my own question! Well, yes I can place the contents of 'Display Guests' into the position I would like it to appear, but with the display turned off, of course, it's content is empty!

So to my original question, is there way of postioning this wherever I would like on FORUMHOME, as I can't seem to find where the relevant code is, other than what I have mentioned.

If it's not possible right now, can you add the ability for folks like me who would like a little more layout possibilities.

Thanks again.

Answering my own question again :) But for the benefit of others, in case it's needed...

You need to edit the .xml and replace the CDATA value in the "text_trg" section of the "<options>" section towards the end of the file. The default value is "<![CDATA[<!-- end logged-in users -->]]>" - simply change the string to the appropriate end string that is defined in your FORUMHOME template, where you would like things positioned.

Sure would be nice to have this as an admincp option though ;)

Thanks.

Paul M 01-09-2007 12:33 AM

Quote:

Originally Posted by funkmeister (Post 1154169)
Sure would be nice to have this as an admincp option though ;)

It's already an ACP option.

vBulletin Options > Auto-Template Settings

:D

funkmeister 01-09-2007 01:34 AM

Thanks Paul - wish I'd spotted that earlier! Is that part of the plug-in? If so, naming it somewhat related would be helpful. Perhaps with initials or something. Or just include the 2 options within the 'Guest Tracking' section.

Anyway, will remember that for next time, will save some editing :)

Paul M 01-09-2007 03:30 AM

Version 1.12 released

This version now generates the unique id for each guest internally rather than using the default vb generated id - this is to get round the potential problems caused by the "Session IP Octet Length Check" setting in vbulletin.

I have also made some minor changes to the spider detection code to try and solve the "Cannot use string offset as an array" problem that some people are experiencing. However, since I cannot replicate this error these are 'blind' changes, and I cannot say if they will work. If they don't then you can run this with spider detection disabled.

Finally, please note - since the guest id generated is now different to the past system, installing v1.12 will clear all the existing guest records so that data collection starts again with a fresh empty table. This is necessary otherwise guest counts would be falsely inflated for a period of time.

Shazz 01-09-2007 03:42 AM

/me updates

red-dna 01-09-2007 09:29 AM

Very nice plugin, thank you.

Only one problem, when i update, the tracking is show only visitors now (no spiders at all).

chkdgate 01-09-2007 09:59 AM

Updated. Thank you.

storpappa 01-09-2007 10:18 AM

Guest Tracking 1.12 Track Guest Visits

Installed or rather updated.

Is this version showing spiders?

Paul M 01-09-2007 11:49 AM

As per the note ;

Quote:

Note: For Spider detection to work you must set Enable Spider Display to 'Yes' in vBulletin Options > Who's Online Options.
Previous versions did not enforce this, which resulted in some problems - v1.12 does enforce it.

KURTZ 01-09-2007 11:55 AM

UPDATED

onehost 01-10-2007 12:19 AM

Quote:

Originally Posted by Zia (Post 1115172)
helo PaulM..this is really a nice modifications..

can it be shown in the same block of "User Visited Today"
also can it show Spider Visited today in the same block? Hence its showing the spider too...

thnx in advance

did you ever get a reply about showing spiders? that is something
I saw on a site, i am looking for that also.

Thank

Paul M 01-10-2007 12:58 AM

This shows spiders.


All times are GMT. The time now is 04:23 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.02024 seconds
  • Memory Usage 1,843KB
  • 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
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete