![]() |
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 |
Very cool. How about a working demo? :D :D :D
|
*points up* ;)
|
LOL, looks like there's a bug in it....your smilies don't show up. :D :D
|
good hack.
But I think it's only to be used by mods or admin would be better .;) |
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); Code:
if ($post[editreason]!='') { |
Cool, thanks Firefly
|
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 |
Very Nice Hack!...
|
Quote:
|
Does the show admin edit thingy have to be on?
|
ooo... *is amazed* lol great hack... ^^
-Syphin |
Very tidy work! :D
|
that's a great hack!!:)
thankz FireFly:D where can change this word--why |
nice hack ... just testing
|
Great hack! The installer is also amazing! Great job!
|
This is sweet
|
cool :) i'll install it ^^
|
[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) |
A feature for the next version methinks.
|
Quote:
template??why??should i reinstall this hack again~~ |
Hmm, sorry.
It should be in the postbit_editedreason template. |
Quote:
i find it!!:D |
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! |
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!
|
Going to try it soon. :)
|
Very cool. Love the install script.
Thanks for the hack... |
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? |
Quote:
|
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="">'; |
i nailed it.
Forget about it :) |
Nice hack :)
Exactly what I needed for my forum's users I'm going to install it very soon indeed. |
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... |
Testing
|
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. :) |
for some reason it won't show up on my board??
hmmm...i followed everything correctly... |
Wait 3 minutes and then edit your post. :)
|
it adds the empty space at the bottom but no text
hmmmm i'll try re-installing on a fresh install |
TESTING!
|
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|