vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   'Edited by' Counter v1.0 (https://vborg.vbsupport.ru/showthread.php?t=58906)

Sho 11-29-2003 10:00 PM

'Edited by' Counter v1.0
 
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

Quote:

Originally Posted by MindTrix
Surprised this hasnt been done already.

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

MindTrix 11-30-2003 07:43 AM

Quote:

Originally Posted by Sho
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

PHP Code:

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


All times are GMT. The time now is 12:34 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.01204 seconds
  • Memory Usage 1,729KB
  • 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)bbcode_php_printable
  • (2)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
  • (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