PDA

View Full Version : 'Edited by' Counter v1.0


Sho
11-29-2003, 10:00 PM
This hack will make the board software count how many times a post has been edited and show the corresponding information in the 'Edited by' line that appears below a post's message text. For existing posts that have been edited in the past, it will assume a modification count of one.

SQL Queries: 2
File Modifications: 2 (editpost.php, admin/functions.php)
Template Modifications: 1 (postbit_editedby)

This hack was tested with vBulletin 2.2.7 and 2.3.3 . I'm confident it will work with every version of vBulletin in the 2.2.x and 2.3.x branches. Probably even with older versions.

A screenshots of the hack in action is included in the ZIP archive and attached to this thread, showing a plain vBulletin 2.3.3 modified according to the instructions given in editedbycounter_v1.txt.

MindTrix
11-30-2003, 07:19 AM
Surprised this hasnt been done already. Nice work mate is a nice little addition, Congrats!

I'll check this one out :)

gmarik
11-30-2003, 07:21 AM
Hey, a nice idea!

Sho
11-30-2003, 07:33 AM
Surprised this hasnt been done already.

As was I :). Well, a few minutes later it was :).

MindTrix
11-30-2003, 07:43 AM
As was I :). Well, a few minutes later it was :).


LoL true, well i just installed this and did everything as instructed yet nothings showing up for me,

Sho
11-30-2003, 07:47 AM
Well, of course this is subject to the board options - per default, the 'Edited by' line only appears if the modification takes place at least two minutes after a post was created, for example. You can also chose not to display 'Edited by' at all or only for regular users and not for Admins. The hack doesn't change this behavior. Sure you took that into account?

MindTrix
11-30-2003, 07:50 AM
Doh! :p

Ok ill leave it a little while then i will try again :) Sorry about that.

MindTrix
11-30-2003, 08:01 AM
Ok it worked like a charm nice one :)

On the final template edit on there though you might want to change the ; too a , on this bit here

has been edited $editcount;

Would look better ;)

Sho
11-30-2003, 08:04 AM
Well, according to what I learned in school, you'd definitely want a ";" there :).

I'm going to leave it as is for now, it's transparent enough for anyone to change it during the installation process if they really want to. Still, thanks for your suggestion!

Dean C
11-30-2003, 10:10 AM
Nice idea... thanks for sharing :)!

Bison
12-01-2003, 02:57 AM
Nice hack young man!

Sure liven up things while most of us are waiting for RC1! :)