Welcome, Guest. Please Login or Register.
May 05, 2024, 01:17:27 AM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Admin Edit Posts- No show « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Admin Edit Posts- No show  (Read 2762 times)
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Admin Edit Posts- No show
« on: April 02, 2003, 08:36:06 PM »
Reply with quote

Either I am total Cr*p at searching or there isn't one, but I am trying to find a mod that when admin edits a post, it doesn't change the "last edited by" section.

Does one exist??
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Admin Edit Posts- No show
« Reply #1 on: April 02, 2003, 09:32:58 PM »
Reply with quote

I remember there's an option to not show the "last edit "message, but it applies to everyone, I think

what you want is one that if the person is admin, it won't show, but if the person is not, it will?
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:Admin Edit Posts- No show
« Reply #2 on: April 03, 2003, 07:22:26 AM »
Reply with quote

Yes, Thats right.
It was available for yabb Sp1.1
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:Admin Edit Posts- No show
« Reply #3 on: April 08, 2003, 04:48:19 PM »
Reply with quote

anyone any ideas about this mod please.
Maybe it is difficult to write because of the MySql bit?
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Anguz
YaBB God
*****
Posts: 641


llama me?!

WWW
Re:Admin Edit Posts- No show
« Reply #4 on: April 08, 2003, 05:11:03 PM »
Reply with quote

I don't think it must be too hard... I don't know the forum code much, but there must be and id to know when someone's an admin, so where the modified text appears, there could be a condition where if the person that did it is an admin, then it isn't displayed, I don't think it has anything to do with mysql...

what file has the code that displays that?
Logged

My Mods: Avatar & Sig Size Control, No Show Msg Subject, Msg URL Composer, Built-in Avatar Rand, Built-in Sig Rand, Remove New-lines Excess, Show All Stars, Search Bar, Smart URLs
[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Admin Edit Posts- No show
« Reply #5 on: April 08, 2003, 11:39:38 PM »
Reply with quote

ModifyMessage.php:

      $request = mysql_query("UPDATE {$db_prefix}messages SET subject='$subject',icon='$icon', body='$message', modifiedTime=" . time() . ", modifiedName='" . addslashes($realname) . "', smiliesEnabled=$smilies WHERE ID_MSG=$postid $doLimitOne;") or database_error(__FILE__, __LINE__);

Replace with:

      $request = mysql_query("UPDATE {$db_prefix}messages SET subject='$subject',icon='$icon', body='$message', " . ($settings[7] != 'Administrator' ? "modifiedTime=" . time() . ", modifiedName='" . addslashes($realname) . "', " : '') . "smiliesEnabled=$smilies WHERE ID_MSG=$postid $doLimitOne;") or database_error(__FILE__, __LINE__);

This will make all future admin edits not show....

-[Unknown]
Logged
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:Admin Edit Posts- No show
« Reply #6 on: April 09, 2003, 08:06:17 AM »
Reply with quote

Thank you [Unknown]

To you, this was a simple mod. But to amateurs like myself it is a great benefit to have coders like yourself helping us.

P.S. Why not make this an official mod?, I am sure I am not the only one who would like to edit posts (change spelling "there/their" etc) without drawing attention to it.
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
GWP
Sr. Member
****
Posts: 252


A total PHP MySQL Novice :) - but getting better!

Re:Admin Edit Posts- No show
« Reply #7 on: January 07, 2004, 10:44:35 AM »
Reply with quote

Quote$request = mysql_query("UPDATE {$db_prefix}messages SET subject='$subject',icon='$icon', body='$message', " . ($settings[7] != 'Administrator' ? "modifiedTime=" . time() . ", modifiedName='" . addslashes($realname) . "', " : '') . "smiliesEnabled=$smilies WHERE ID_MSG=$postid $doLimitOne;") or database_error(__FILE__, __LINE__);
This works fine for just the Administrator, but
Could anyone tell me how to add another group to this eg: Moderator.
Logged

YabbSE 1.5.1rc Mods:AdvIm, Member Map, Password Prompt, Report to mod, Smilies SE 2.0, Bio, collapsable_yabb, Ignore user, Name, allowed user, search member, enchanced ban, posts per day, Mute User, Memberlist Plus,Who,ExactPostLink. Remove_Clicklog,mc_BoldOwnThreads.QuickReply, UserEnableDisableCensor, RefererMod, lastlogin_profile,PostBasedImRestrict, ExactPostLink, UserBrowsing,
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Admin Edit Posts- No show « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.016 seconds with 19 queries.