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)
-   -   Reason for post edit (https://vborg.vbsupport.ru/showthread.php?t=32540)

Admin 11-19-2001 10:00 PM

I won't talk too much, it's been a very very long day. :)

This hacks lets your users specify the reason for editing their post.
If you ever worked with CVS (and alike), you can write the reason you edited the file.
I thought it'd be cool to have the same thing here. :)

So when you edit a post, you'll see a text box at the bottom, for you to enter the reason for editing the post.
That's instead of the ridiculous:
Just fixing a type --Chen.
messages at the bottom of the post.
If you leave the box empty, nothing will be displayed.

This is installed here, so if you want a demo just edit one of your posts here.
(don't forget to wait 2 minutes before editing, that's the setting here)

Download the installed (attached), upload to your admin folder and run from your browser.
Most is automatic, but you need to edit 2 files and 2 templates (1 edit each).

That's it, feedback! :D

RobAC 11-20-2001 05:04 PM

Very cool. How about a working demo? :D :D :D

Admin 11-20-2001 05:07 PM

*points up* ;)

RobAC 11-20-2001 05:12 PM

LOL, looks like there's a bug in it....your smilies don't show up. :D :D

xware 11-20-2001 05:14 PM

good hack.
But I think it's only to be used by mods or admin would be better .;)

Admin 11-20-2001 05:17 PM

That's by design, to make the bottom part as scanty and not cluttered as possible.

You can 'fix' this easily thought, in functions.php, add this:
Code:

                        $post[editreason]=bbcodeparse2($post[editreason],0,0,1,0);
right after this:
Code:

                if ($post[editreason]!='') {

Lesane 11-20-2001 05:25 PM

Cool, thanks Firefly

snyx 11-20-2001 06:58 PM

So now when I say something stupid like
"Sinecure, you... wonderful guy!"

Great hack man, im tempted to install it now before work, but im late as is. When I get home for sure! Thanks.

Btw, its helpful to turn your "Show edited by, after edited...." to 1 or something, cuz I know I edit my posts the most after the first 2 mins of posting it. (that made NO sence)

snyx

Kumaro 11-20-2001 07:53 PM

Very Nice Hack!...

Dalius 11-20-2001 08:14 PM

Quote:

Originally posted by xware
good hack.
But I think it's only to be used by mods or admin would be better .;)

ditto


All times are GMT. The time now is 08:24 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.01191 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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