vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Administrative and Maintenance Tools - ZH - Clean Log (https://vborg.vbsupport.ru/showthread.php?t=138063)

Ziki 01-30-2007 10:00 PM

ZH - Clean Log
 
This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Hack name
Clean Log

~Hack description
This hack allows your to prune all entries from cron log,mod log and admin log.As I am the only admin on my site I don't really need this info.It just takes too much space in my database and I don't like clicking it all the time.With this hack I only have to click one button and boom!All entries are gone ;)

Works with log logins hack by Abe1

~Hack options
None

~Hack info
File uploads: 1
File edits: 0
Templates: 0
Template edits: 0
Plugins: 1
SQL Queries: 0
Phrases: 2
Settings: 0
Hooks: 0

Install time: 3 sec
Install level: Easy

~Hack installation

Step 1: Import Product

Step 2: Upload zh_cleanlog.php to your ./includes/cron/ directory



~Hack screenshots
None


~Hack copyright
This may not be distributed,released or claimed as your work without author's permission.

Ziki 01-31-2007 10:00 PM

~Reserved~

TheBlackPoet 01-31-2007 10:11 PM

in installed and pruned 41,00+ entries.... bye-bye..... thanks....

Ziki 01-31-2007 10:13 PM

Yes I guess I should also include a count :) thanks will add in a few mins

Genjuro-Sensei 01-31-2007 10:18 PM

Thx, will install right after the count version is out ;)

Ziki 01-31-2007 10:28 PM

1.0.1 released

Counting added :)

Ziki 02-01-2007 12:53 AM

Cron job added :)

FleaBag 02-01-2007 01:14 AM

Where do I find it in the ACP?

Tulsa 02-01-2007 02:13 AM

It's hiding under maintenance > update counters, last item.

da420 02-01-2007 02:52 AM

Awesome, 42,400 something entries cleared. Thanks Ziki...

rinkrat 02-01-2007 04:03 AM

Deleting 282161 entries from log....

Done

Thanks

roger.kore 02-01-2007 05:47 AM

Very nice, thanks a lot.
As suggestion, integrate it with logLogins hacks? To clean it too ;D

Lizard King 02-01-2007 06:01 AM

Nice job :)

bashy 02-01-2007 08:49 AM

Installed thanks, I have like 4500+ entries in the log logins hack, would be great if you can included in this please?

soulface 02-01-2007 10:14 AM

Deleting 97566 entries from log...

LOL. 3yrs of logs

/me installed

Ziki 02-01-2007 10:23 AM

Quote:

Originally Posted by roger.kore (Post 1171826)
Very nice, thanks a lot.
As suggestion, integrate it with logLogins hacks? To clean it too ;D

will be added

projectego 02-01-2007 12:27 PM

Awesome! Nice work, Ziki. :)

bashy 02-01-2007 04:46 PM

Quote:

Originally Posted by Ziki (Post 1171963)
will be added

Thanks Ziki, Look forward to the update :)

Ziki 02-01-2007 05:05 PM

Lol I didn't know this would become such hit :p

da420 02-01-2007 05:44 PM

It's very usable... Ziki is the king of simple, yet great usable mods.

Ziki 02-01-2007 05:47 PM

I'm honored :)

pauloo 02-25-2007 08:12 AM

Nice thank you !

Keyser S?ze 02-25-2007 01:23 PM

Deleting 103285 entries from log...

WOW thanks for the mod

Ziki 03-13-2007 05:14 PM

1.0.2 released

Works now with log logins hack as requested :)

projectego 03-13-2007 05:20 PM

Thanks for the update, Ziki! ;)

Seb@ 03-19-2007 01:00 AM

ZH - Clean Log


Fatal error: Call to a member function on a non-object in /home/xxxxxxxx/public_html/foros/includes/cron/zh_cleanlog.php on line 9

:(

Ziki 03-19-2007 12:39 PM

What vb version?

Seb@ 03-21-2007 01:35 AM

Quote:

Originally Posted by Ziki (Post 1207280)
What vb version?

vb 3.6.5 :(

Ziki 03-21-2007 06:57 PM

Did you reupload the new version?

Seb@ 03-22-2007 02:58 AM

yep men :(

Dismounted 03-22-2007 06:29 AM

Quote:

Originally Posted by Seb@ (Post 1206973)
ZH - Clean Log


Fatal error: Call to a member function on a non-object in /home/xxxxxxxx/public_html/foros/includes/cron/zh_cleanlog.php on line 9

:(

In zh_cleanlog.php, find all instances of:
PHP Code:

$db-> 

Replace With:
PHP Code:

$vbulletin->db-> 

Try that :p.

Seb@ 03-23-2007 12:16 AM

Nice Men Thanks

ZH - Clean Log

Deleting 18267 entries from log...
Done cleaning log
Done

Ziki 03-23-2007 12:00 PM

Those who had cron problems please reupload the zh_cleanlog.php

projectego 03-23-2007 12:05 PM

Thanks for the 1.0.2 update, Ziki. :)

bluechris 03-23-2007 01:33 PM

I updated to the latest version and my box crashed totally for some reason... i did the upgrade in the mod as normal, replaced the .php file and update the product.
The crashed occured when i runned the schedulle manually.

In the logs that i received just before the hung of the server i saw that forum lost connectivity to mysql totally. This huppened immediatly when i runned the schedulle task, so after the rst i disabled the plugin and atm i dont dare to run it.... cause that never huppend again in that server.
Anyone else have seen this kind of behavior?

Ziki 03-23-2007 02:20 PM

Quote:

Originally Posted by bluechris (Post 1210371)
I updated to the latest version and my box crashed totally for some reason... i did the upgrade in the mod as normal, replaced the .php file and update the product.
The crashed occured when i runned the schedulle manually.

In the logs that i received just before the hung of the server i saw that forum lost connectivity to mysql totally. This huppened immediatly when i runned the schedulle task, so after the rst i disabled the plugin and atm i dont dare to run it.... cause that never huppend again in that server.
Anyone else have seen this kind of behavior?

I don't really think that is normal.

thincom2000 03-24-2007 05:13 AM

O_O Did you have several billion log entries?

bolly.beats 03-24-2007 07:55 AM

Deleting 34953 entries from log...

O Boy this is really cool.

bluechris 03-24-2007 08:15 AM

Strange strange strange... what can i say... i choosed a low traffic time and i runned it again and runned fine.
Quote:

ZH - Clean Log
Deleting 19231 entries from log...
Done cleaning log
I still havent figured what caused it but its ok now... sorry for the alert... maybe it was a strange coinsindence that huppened who knows.

Ziki 03-24-2007 12:53 PM

I think the system was just overloaded.


All times are GMT. The time now is 04:53 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.01386 seconds
  • Memory Usage 1,790KB
  • 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
  • (2)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (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