Previous Thread
Next Thread
Print Thread
Hop To
Anonymous
Unregistered
Anonymous
Unregistered
UBB.classic 6.5.0 BR 1

The answer to this question is found in ubb_edit_post.cgi

I have commented out the required line as here:
Quote
# If you wish to prevent admin / mod edits of
# messages from having the edited message,
# comment out the following line:
# $appender = $string;
This worked fine in previous versions, but in 6.5.0 messages edited by admin/mods after the time period we have set still show the "edited by" message.

What else do I need to do to prevent this happening?

I assume the answer lies in the need for a code change in the next few lines ...
Quote
} elsif($vars_misc{EditWordingTimer} > 0) {
my $ut = $GotTime{CurrentEpoch};
my $tt = &ConvertPostTimeToUnixEpoch($post_info[3], $post_info[4]) + ($vars_misc{EditWordingTimer} * 60);
if($ut > $tt) {
$appender = $string;
} # end if
Paul

[This message was edited by maokaang on February 19, 2003 at 01:31 AM.]

Anonymous
Unregistered
Anonymous
Unregistered
OK, I think I've fixed this one myself for the time being by adding the line highlighted in bold below ....

Quote
if(($vars_misc{EditWordingTimer} == 0) || ($is_admin_mod && ($username ne $post_info[2]))) {
# If you wish to prevent admin / mod edits of
# messages from having the edited message,
# comment out the following line:
# $appender = $string;
} elsif($is_admin_mod) {
} elsif($vars_misc{EditWordingTimer} > 0) {
my $ut = $GotTime{CurrentEpoch};
my $tt = &ConvertPostTimeToUnixEpoch($post_info[3], $post_info[4]) + ($vars_misc{EditWordingTimer} * 60);
if($ut > $tt) {
$appender = $string;
} # end if
} # end if
I don't, however, like making changes to the scripts. Will a fix for this be made in time for the 6.5.0 final?

Paul

Anonymous
Unregistered
Anonymous
Unregistered
The section noted in the comments only impacts admin/mod editing of other messages. When an admin/mod edits a message that he or she posted, it is done as a user, not as an admin/mod, thus the message will always show up. This behavior will not be changing for the forseeable future...

--
Charles Capps
UBB.classic™ Developer
Having problems? Open up a support ticket!

Anonymous
Unregistered
Anonymous
Unregistered
Thanks for the explanation Charles <img src="https://www.ubbcentral.com/boards/images/graemlins/smile.gif" alt="" />

Paul


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 803 guests, and 448 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)