Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2003, 06:50 AM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Recycle Bin and Mod log idea

Well, after looking around at some of the recycle bin hacks and mod log hacks, I couldn't find anything that did quite what I was after...

So 5 days of beating my head against code later, I have a fully functional recycle bin for deleted threads and posts, as well as the ability to 'backup' all post edits.

I won't go in to details as to why, but its useful at times to be able to see what was originally posted before a mod or the user edited it.

The hack logs all this info (plus optionally logs all access to locking/unlocking threads, viewing up's/ moveing etc....) which by the time i finish will be able to be set up via the admin cp. the log display uses more or less the same template as the admin log with a few changes.

While the recycle bin is 95% finished (I just need to tweak it so you can turn it off - along with the edited post saver), the admin log display is not.

My question is, what would you like to see in log display/ability.

obviously being able to track certain actions or users/mods...

What else would you like to use - I've gone this far I might as well make it something everybody would like ;p

Looking forward to feedback - good or bad

Dan
Reply With Quote
  #2  
Old 01-02-2003, 01:46 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks like a very intresting hack.

what should be in is of course move/delete how much post edits of a mod and so on
Reply With Quote
  #3  
Old 01-02-2003, 01:59 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yup got that in there, here is a sample of what I've got up so far, still tweaking the display a little bit.

Dan

Edit, actually re-read what you said, (damn its late here :knockedout: )

Good idea, I havn't coded in a direct stats section yet.... yet....

Here is the Admin cp log section
Attached Images
File Type: jpg admincp.jpg (53.6 KB, 0 views)
Reply With Quote
  #4  
Old 01-02-2003, 02:00 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And here is the recycle bin
Attached Images
File Type: jpg recycle.jpg (76.9 KB, 0 views)
Reply With Quote
  #5  
Old 01-02-2003, 02:09 PM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, thinking about it, any suggestions on the easiest way to get a moderator list. atm, this hack logs all edit activity so normal users will appear in the edit list - that will be configurable but still....

I could of course do a cross check on non post edit logs for user id's.. but I was wondering if there was an easier way.. maybe check the forum permissions for all user groups that can edit others posts???

suggestions welcome

Dan
Reply With Quote
  #6  
Old 01-02-2003, 02:37 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the method is right, use a select distinct query on the moderator table, save all userids in a string, then add all userids of supermod users to that list

and then run anotherquery checking the post-table which posts these users had edited without their own posts (group and count query )
Reply With Quote
  #7  
Old 01-04-2003, 03:00 AM
okrogius okrogius is offline
 
Join Date: Dec 2001
Location: USA
Posts: 264
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just a note for someone not aware of this - both of these features (mod log, and "recyclable" posts) are standard in vb3 to my awareness.
Reply With Quote
  #8  
Old 01-04-2003, 03:48 AM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I do hope they are, however even after vb3 is released, it will be a while before I can cut our site over. I'm currently going through the last of a portal adaptaion and a few other things..
So we'll be using vb2.2.x for a while.

My other reason is the only way I get used to a programming language is to do something 'big' in it

Dan

On a side note, the hack is mostly finished, just working out the installer package now - there are a fair few small code additions here and there to log mod movements, trying to make the install as painless as possible

Dan
Reply With Quote
  #9  
Old 01-04-2003, 11:35 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This system looks very nice - especiially the mod log - it looks better than other mod logs that have been posted for definate

Regards

- miSt
Reply With Quote
  #10  
Old 01-04-2003, 11:51 AM
Sasq's Avatar
Sasq Sasq is offline
 
Join Date: Mar 2002
Location: Japan
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If i can get my code insertion routines sorted soonish, i should have the beta install up by the weekend.

The mod log section won't be perfect, but the bugs will only be minnor - I hope.

So who wants to help beta?
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 09:59 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.07486 seconds
  • Memory Usage 2,267KB
  • Queries Executed 12 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete