Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BB2Nuke
Author Message
pan
Involved
Involved



Joined: Jul 25, 2006
Posts: 354

PostPosted: Tue Nov 17, 2009 5:23 pm Reply with quote

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!
 
View user's profile Send private message
pan







PostPosted: Wed Nov 18, 2009 12:37 am Reply with quote

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: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Nov 18, 2009 4:50 am Reply with quote

Yes it can be done, it's only code Smile
Isn't this text only seen by forum admins/moderators any way?
 
View user's profile Send private message Send e-mail
Unit1
Worker
Worker



Joined: Oct 26, 2004
Posts: 134
Location: Boston

PostPosted: Wed Nov 18, 2009 7:38 am Reply with quote

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>

_________________
* 5 Simple rules to be happy: * Free Your Heart from Hatred * Free Your Mind from Worries * Live Simply * Give More * Expect Less.

Last edited by Unit1 on Wed Nov 18, 2009 1:46 pm; edited 1 time in total 
View user's profile Send private message
Guardian2003







PostPosted: Wed Nov 18, 2009 9:20 am Reply with quote

Nice one!
RavensScripts
 
pan







PostPosted: Wed Nov 18, 2009 4:02 pm Reply with quote

Guardian2003 wrote:
Yes it can be done, it's only code Smile
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?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> BB2Nuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©