| Author |
Message |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Tue Nov 17, 2009 5:23 pm |
|
Can I make it so it only shows up after more than 5 edits?
..or something?
Where can I edit this variable.
I want to edit the first post in a thread but I don't want the 'Post edited by user blah' to show up at the bottom of the post.
Please halp! |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Wed Nov 18, 2009 12:37 am |
|
I remember looking into this once for PHPnuke so it CAN be done, yes?
At least extending the number of edits allowed before 'This post has been edited by...' shows up? |
|
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Wed Nov 18, 2009 4:50 am |
|
Yes it can be done, it's only code
Isn't this text only seen by forum admins/moderators any way? |
|
|
|
 |
Unit1 Worker


Joined: Oct 26, 2004 Posts: 134 Location: Boston
|
Posted:
Wed Nov 18, 2009 7:38 am |
|
To Remove It
open viewtopic.php
FIND
| Code: | //
// Editing information
//
if ( $postrow[$i]['post_edit_count'] )
{
$l_edit_time_total = ( $postrow[$i]['post_edit_count'] == 1 ) ? $lang['Edited_time_total'] : $lang['Edited_times_total'];
$l_edited_by = '<br /><br />' . sprintf($l_edit_time_total, $poster, create_date($board_config['default_dateformat'], $postrow[$i]['post_edit_time'], $board_config['board_timezone']), $postrow[$i]['post_edit_count']);
}
else
{
$l_edited_by = '';
} |
Comment it out //
FIND
| Code: | | 'EDITED_MESSAGE' => $l_edited_by, |
Comment it out //
OPEN
Your Theme/forums/viewtopic_body.tpl
FIND
| Code: | <tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span><span class="gensmall">{postrow.EDITED_MESSAGE}</span></td>
</tr> |
REPLACE WITH
| Code: | <tr>
<td colspan="2"><span class="postbody">{postrow.MESSAGE}{postrow.SIGNATURE}</span></td>
</tr> |
|
Last edited by Unit1 on Wed Nov 18, 2009 1:46 pm; edited 1 time in total |
|
|
 |
Guardian2003 Site Admin

Joined: Aug 28, 2003 Posts: 6373 Location: Vsetin, Czech Republic
|
Posted:
Wed Nov 18, 2009 9:20 am |
|
Nice one!
 |
|
|
|
 |
pan Involved


Joined: Jul 25, 2006 Posts: 354
|
Posted:
Wed Nov 18, 2009 4:02 pm |
|
| Guardian2003 wrote: | Yes it can be done, it's only code
Isn't this text only seen by forum admins/moderators any way? |
Really? I thought it's seen by anyone who edits their post after it's had a reply?
Last edited by Unit1 on Thu Nov 19, 2009 5:46 am; edited 1 time in total
^
Thanks for the code Unit1
Is there a way to just alter how many edits you can do before it shows up? |
|
|
|
 |
|
|
|
|