vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Show Thread Enhancements - Limited Guest Viewing -- Motivate Guests to Register (https://vborg.vbsupport.ru/showthread.php?t=231352)

Ted S 07-05-2011 03:19 PM

Quote:

Originally Posted by BadgerDog (Post 2217015)
Combined with storing the IP log forever (if you wanted), this seems to be an obvious method of getting people who clear cookies (or have that browser option OFF) be forced to register to continue to view our site all, unless of course they change IP addresses.

The issue is less about your users and more about your server.

Far larger boards run this mod with IP logging on but also have large servers, or clusters in some cases, to support it.

Thus the question is really how much load you are already placing on your system and how much it adds too it.

BadgerDog 07-05-2011 03:26 PM

Quote:

Originally Posted by Ted S (Post 2217038)
Thus the question is really how much load you are already placing on your system and how much it adds too it.

Thanks Ted ... :)

We're on a dedicated server...

According to the list that our host shows me, here's our configuration ...

Quote:

Intel2.0 GHz 1333FSB - ClovertownXeon 5335 (Quad Core)
Intel2.0 GHz 1333FSB - ClovertownXeon 5335 (Quad Core)
Generic1024 MBDDR2 667 FB DIMM
Generic1024 MBDDR2 667 FB DIMM
Dell1066/1333FSB Dual XeonPowerEdge 1950/2950
Maxtor 250GB:SATA:7200RPM
MaxLine Plus II Dell9G Drive Controller - SAS/SATA
SAS 5/i Dell4 Drive MaxDrive Bay for 2950
Our home page is currently showing this as performance for 470 users online (55 members and 415 guests)....

Quote:

Page generated in 2.12171 seconds with 30 queries [Server Load Averages (1:5:15) 0.16 : 0.29 : 0.36]
Does that help?

Regards,
Doug

Ted S 07-05-2011 04:33 PM

Quote:

seconds with 30 queries
Yikes :eek:

Still... you've got pretty low load averages. Lots of room to grow.

Quote:

[Server Load Averages (1:5:15) 0.16 : 0.29 : 0.36]
Run the option for a couple days and compare them against those benchmarks when you have similar traffic on. If you rise to more than 0.50 let me know.

BadgerDog 07-05-2011 11:16 PM

Quote:

Originally Posted by Ted S (Post 2217078)
Yikes :eek:

Still... you've got pretty low load averages. Lots of room to grow.

Run the option for a couple days and compare them against those benchmarks when you have similar traffic on. If you rise to more than 0.50 let me know.

Thanks Ted..... :)

I assume you would NOT recommend the "Never" setting for the IP "Activity Log"?

I wonder whether using the IP activity log set at 7 days is more effective than the life of a "cookie" in which gets cleared first so an unregistered guest can start the cycle over again?

If I turn IP Logging ON, is the "cookie" method still active and used also?

By the way, great mod and has really helped in driving increased membership .. :up:

Regards,
Doug

Ted S 07-06-2011 12:19 AM

Quote:

Originally Posted by BadgerDog (Post 2217241)
I assume you would NOT recommend the "Never" setting for the IP "Activity Log"?

Never is a long time and the table will grow so ya, I'd stay away from that. It's very easy to go from 7 days to 15 or 30 if you so wish.

Quote:

If I turn IP Logging ON, is the "cookie" method still active and used also?
Yup yup. Cookie check comes first as there's no sense in a query if we're already going to say no.

BadgerDog 07-06-2011 10:26 AM

Quote:

Originally Posted by Ted S (Post 2217249)
Never is a long time and the table will grow so ya, I'd stay away from that. It's very easy to go from 7 days to 15 or 30 if you so wish.



Yup yup. Cookie check comes first as there's no sense in a query if we're already going to say no.

Thanks. :)

I see e log clearing check box up to 7, so if I wanted 30 days before it clears, how do I set that?

Regards
Doug

Ted S 07-06-2011 05:17 PM

Open the file lgvdb.php and replace

Code:

$vbulletin->db->query_write("
  DELETE FROM " . TABLE_PREFIX . "lgv
  WHERE (lastactivity + (". $vbulletin->options['lgvcleardays'] ." * 86400)) < ". TIMENOW ."
 ");

With code

Code:

$vbulletin->db->query_write("
  DELETE FROM " . TABLE_PREFIX . "lgv
  WHERE (lastactivity + (30 * 86400)) < ". TIMENOW ."
 ");


BadgerDog 07-07-2011 09:23 AM

Quote:

Originally Posted by Ted S (Post 2217474)
Open the file lgvdb.php and replace

Code:

$vbulletin->db->query_write("
  DELETE FROM " . TABLE_PREFIX . "lgv
  WHERE (lastactivity + (". $vbulletin->options['lgvcleardays'] ." * 86400)) < ". TIMENOW ."
 ");

With code

Code:

$vbulletin->db->query_write("
  DELETE FROM " . TABLE_PREFIX . "lgv
  WHERE (lastactivity + (30 * 86400)) < ". TIMENOW ."
 ");


Thanks Ted ... I did that ... :)

I just turned ON logging ...

I notice that the AdminCP options do not show 30 days, but still the "Never" to 3 day range ...

I left the "Never" checked, but I assume your code change above overrides that and the cron job will clear it out at 30 days now?

Appreciate your help ... :up:

Regards,
Doug

Ted S 07-07-2011 03:46 PM

Quote:

Originally Posted by BadgerDog (Post 2217716)
Thanks Ted ... I did that ... :)

I just turned ON logging ...

I notice that the AdminCP options do not show 30 days, but still the "Never" to 3 day range ...

I left the "Never" checked, but I assume your code change above overrides that and the cron job will clear it out at 30 days now?

Appreciate your help ... :up:

Regards,
Doug

Turn it to one of the other options so it runs but you are correct, we manually overwrote the date so 30 won't show up.

It's Damn Real! 07-07-2011 05:00 PM

Fantastic mod. Works incredibly well for well-timed events. I run a hockey forum and utilize this on specific dates like the trade deadline, major trades, singings, etc. Works PERFECTLY.


All times are GMT. The time now is 11:11 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.01567 seconds
  • Memory Usage 1,755KB
  • 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
  • (4)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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