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

Dalius 11-20-2001 08:38 PM

Does the show admin edit thingy have to be on?

Syphin 11-20-2001 09:30 PM

ooo... *is amazed* lol great hack... ^^

-Syphin

MarkB 11-20-2001 10:22 PM

Very tidy work! :D

squawell 11-20-2001 10:23 PM

that's a great hack!!:)

thankz FireFly:D

where can change this word--why

Princeton 11-20-2001 11:35 PM

nice hack ... just testing

Tommy Boy 11-21-2001 12:23 AM

Great hack! The installer is also amazing! Great job!

TheComputerGuy 11-21-2001 02:36 AM

This is sweet

Baratator 11-21-2001 06:34 AM

cool :) i'll install it ^^

Admin 11-21-2001 07:35 AM

[QUOTE]Originally posted by snyx
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)

Mark Hewitt 11-21-2001 08:45 AM

A feature for the next version methinks.

squawell 11-22-2001 06:43 AM

Quote:

Originally posted by FireFly

After you installed it, it's in the postbit template.

FireFly i cann't find this word why in postbit

template??why??should i reinstall this hack again~~

Admin 11-22-2001 11:43 AM

Hmm, sorry.
It should be in the postbit_editedreason template.

squawell 11-22-2001 12:53 PM

Quote:

Originally posted by FireFly
Hmm, sorry.
It should be in the postbit_editedreason template.

thankz~~~FireFly~~

i find it!!:D

Ambex Net 11-23-2001 11:48 PM

Help I'm lost on this hack :confused:. Sorry to sound dumb but I just bought a vB licence today, I got my color scheme all done so I decicded to start to do some hacks and this is nothing like ubb lol, well actualy the hacking part but anywho I get to this step:

Changes to
postbit template (1)

postbit template

Step 1 of 1 FIND:


$post[editedby]

AFTER that ADD
<br>$post[editedreason]


Now where are these template or postbit template files :confused:. This is probely a stupid question b/c I bet it's right under my nose but I never did a vB hack yet and this would be my first one so I'm just wondering where the heck this is. All help apprecaited, thanks!

Ambex Net 11-23-2001 11:57 PM

I really hate to double post but I just wanted to say a friend of mine showed me where the templates were and that i had to click show all. I knew it was right under my nose ;)...anyways it's install now. and awesome hack!

Nupraptor 11-24-2001 04:05 PM

Going to try it soon. :)

Prezident 11-24-2001 07:19 PM

Very cool. Love the install script.

Thanks for the hack...

SgtSling 11-25-2001 01:23 AM

I installed this hack.. but for some reason..
my posts do not say
"Edited By"

anymore

I made sure that this was enabled in the admin panel.. so it should appear like before..

Any clues?

Ambex Net 11-25-2001 01:27 AM

Quote:

Originally posted by SgtSling
I installed this hack.. but for some reason..
my posts do not say
"Edited By"

anymore

I made sure that this was enabled in the admin panel.. so it should appear like before..

Any clues?

Maybe you deleted a code segment that had to do with that or maybe you deleted something in a template. I dunno just a thought on what might've happened.

SgtSling 11-25-2001 01:56 AM

Ok I found out why!

Something is messed up in my functions.php!

The "edited by"
won't show when I make the new changes in it.

anyone see anything the matter with this?

I am including the chunk on code before and after on my functions.php

if ($post[edituserid]!=0) {
if ($post['edituserid']!=$post['userid']) {
$edituser=getuserinfo($post[edituserid]);
} else {
$edituser = $post;
}
$post[edittime]=vbdate($timeformat,$post[editdate]);
$post[editdate]=vbdate($dateformat,$post[editdate]);

// Edit Reason (v1.0)
if ($post[editreason]!='') {
eval("\$post[editedreason] = \"".gettemplate("postbit_editedreason")."\";");
} else {
$post[editedreason]='';
}
// Edit Reason (v1.0)

} else {
$post[editedby]="";
}

if ($post[dateline]>$bbuserinfo[lastvisit]) {
$post[foldericon]="<img src=\"{imagesfolder}/posticonnew.gif\" border=\"0\" alt=\"New Post\">";
} else {
$post[foldericon]="<img src=\"{imagesfolder}/posticon.gif\" border=\"0\" alt=\"Old Post\">";
}
if (!$forum[allowicons] or $post[iconid]==0) {
if ($showdeficon) {
$post[icon]='<img src="{imagesfolder}/icons/icon1.gif" border="0" alt="">';

SgtSling 11-25-2001 03:37 AM

i nailed it.
Forget about it
:)

Dark Blaze 11-30-2001 11:51 AM

Nice hack :)

Exactly what I needed for my forum's users

I'm going to install it very soon indeed.

Axel Foley 12-03-2001 11:30 PM

Hi Chen...

I have a little problem that I noticed after I installed your hack. Don't think it's related to it (I hope) but I found it while testing your hack and I'd like to solve it.

The problem is simple: in the CP I have both EDIT BY options checked (for users AND admin), but EDITED BY XXX IN DATE never comes up for anybody (users, mods and admins. Now with your hack the only thing that comes up is "WHY: blablabla". :(

Can't understand what's wrong...could you please help me?


Thanks a lot...

Island Roots 12-12-2001 10:18 PM

Testing

Sadie Frost 12-19-2001 07:24 PM

Parse error girl here again lol.

Okay, I'm getting a parse error in the very last line of editpost.php when I go to edit a post. The weird thing is, that I unistalled this hack, and re-uploaded my backup copy of editpost, and I'm still having the same problem. I also don't think I had ever edited it before, and edit was working fine earlier.

Any tips?

:)

Nevermind - I jsut uplaod the original file and it's working now. :)

DelusionalMind 12-29-2001 07:05 AM

for some reason it won't show up on my board??

hmmm...i followed everything correctly...

Admin 12-29-2001 11:49 AM

Wait 3 minutes and then edit your post. :)

DelusionalMind 12-29-2001 05:01 PM

it adds the empty space at the bottom but no text

hmmmm

i'll try re-installing on a fresh install

Psychdrone 12-29-2001 09:55 PM

TESTING!

LouChipher 01-06-2002 12:03 PM

testing...


All times are GMT. The time now is 04:43 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.01348 seconds
  • Memory Usage 1,808KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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