vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Recycle Bin and Mod log idea (https://vborg.vbsupport.ru/showthread.php?t=47244)

Sasq 01-02-2003 06:50 AM

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

Xenon 01-02-2003 01:46 PM

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

Sasq 01-02-2003 01:59 PM

1 Attachment(s)
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

Sasq 01-02-2003 02:00 PM

1 Attachment(s)
And here is the recycle bin

Sasq 01-02-2003 02:09 PM

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

Xenon 01-02-2003 02:37 PM

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 :))

okrogius 01-04-2003 03:00 AM

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. :)

Sasq 01-04-2003 03:48 AM

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

Dean C 01-04-2003 11:35 AM

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

Regards

- miSt

Sasq 01-04-2003 11:51 AM

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? :D


All times are GMT. The time now is 08:43 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.01016 seconds
  • Memory Usage 1,724KB
  • 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
  • (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
  • (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