Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
ZH - Clean Log Details »»
ZH - Clean Log
Version: 1.0.2, by Ziki Ziki is offline
Developer Last Online: Nov 2015 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 3.6.x Rating:
Released: 01-30-2007 Last Update: 03-22-2007 Installs: 49
Uses Plugins
Additional Files  
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 03-22-2007, 06:29 AM
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Location: Melbourne, Australia
Posts: 15,047
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seb@ View Post
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 .
Reply With Quote
  #33  
Old 03-23-2007, 12:16 AM
Seb@'s Avatar
Seb@ Seb@ is offline
 
Join Date: Aug 2005
Posts: 66
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice Men Thanks

ZH - Clean Log

Deleting 18267 entries from log...
Done cleaning log
Done
Reply With Quote
  #34  
Old 03-23-2007, 12:00 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Those who had cron problems please reupload the zh_cleanlog.php
Reply With Quote
  #35  
Old 03-23-2007, 12:05 PM
projectego's Avatar
projectego projectego is offline
 
Join Date: Feb 2006
Location: UK
Posts: 724
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the 1.0.2 update, Ziki.
Reply With Quote
  #36  
Old 03-23-2007, 01:33 PM
bluechris bluechris is offline
 
Join Date: Nov 2006
Location: Athens. Greece
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #37  
Old 03-23-2007, 02:20 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bluechris View Post
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.
Reply With Quote
  #38  
Old 03-24-2007, 05:13 AM
thincom2000 thincom2000 is offline
 
Join Date: May 2006
Location: Bronx, NY
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

O_O Did you have several billion log entries?
Reply With Quote
  #39  
Old 03-24-2007, 07:55 AM
bolly.beats's Avatar
bolly.beats bolly.beats is offline
 
Join Date: Aug 2006
Location: USA
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Deleting 34953 entries from log...

O Boy this is really cool.
Reply With Quote
  #40  
Old 03-24-2007, 08:15 AM
bluechris bluechris is offline
 
Join Date: Nov 2006
Location: Athens. Greece
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #41  
Old 03-24-2007, 12:53 PM
Ziki's Avatar
Ziki Ziki is offline
 
Join Date: Nov 2005
Posts: 2,704
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think the system was just overloaded.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:32 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.04866 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete