PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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?
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

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 Visit poster's website
Unit1
Worker
Worker


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

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

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
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 6373
Location: Vsetin, Czech Republic

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

Nice one!
RavensScripts
View user's profile Send private message Send e-mail Visit poster's website
pan
Involved
Involved


Joined: Jul 25, 2006
Posts: 354

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

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?
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum