News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Reason For Editing Mod

Started by Nibogo, May 23, 2006, 12:44:11 AM

Previous topic - Next topic

Bigguy

Same as the first he posted only it has er_who instead of edit reason. Here is the error:

Database Error

Duplicate entry 'er_who' for key 1
File: /home/******/public_html/forum/Packages/temp/reasonforeditinginstall.php
Line: 3



winrules

DELETE FROM {$db_prefix}settings WHERE variable = 'er_who' LIMIT 1


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Bigguy

#122
Well either he will see this post or the one at my forum which I will point him to this one. :)

Bigguy

I found out what my error was i think. The edits weren't added to the display.php file in the Sources directory. I hope thats it, I am checking it out now.

Vinspire

Quote from: winrules on October 24, 2006, 05:10:17 PM
DELETE FROM {$db_prefix}settings WHERE variable = 'er_who' LIMIT 1

I've got this error when i posted this command.



Thanks bigguy for the help :)

Harzem

Change {$db_prefix} to your smf prefix. Probably smf_

Vinspire

Quote from: HarzeM on October 25, 2006, 01:17:23 AM
Change {$db_prefix} to your smf prefix. Probably smf_

Tried this and i've gotten this error.


Harzem

No, you'll change {$db_prefix} to smf_ :)


DELETE FROM smf_settings WHERE variable = 'er_who' LIMIT 1

Vinspire

Quote from: HarzeM on October 25, 2006, 04:17:26 AM
No, you'll change {$db_prefix} to smf_ :)


DELETE FROM smf_settings WHERE variable = 'er_who' LIMIT 1

Just did this. Here is the screenshot of it.



and i've gotten back the edit_reason error  :'(


Bigguy

You could go in and delete it manually, but do all of them have to be deleted or just the one in the settings table.

winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.



winrules



winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Pedja

A suggestion: make this mod work on message deletion too. That is also kind of editing, and if forum is set to move deleted messges to specific board instead of actually deleting it, edit reason could be used do inform why message is deleted which would be very useful.

DemonicInfluence

I think this mod should work in ajax editing. That would be so useful

trenchteam

It would be great if it would include a soft delete so that admins can still view what was deleted or modified.

ivo2296

Quote from: ivo2296 on October 05, 2006, 08:33:39 PM
Quote from: winrules on October 05, 2006, 04:43:04 PM
Quote from: ivo2296 on October 05, 2006, 12:44:04 AM
Hello,

Is there a way the reason text to be in red color?
The whole edited by line or just the reason?

I think whole line will be fine.

Thanks


Any chance to have it red :) ?

ladyshanae

Not terribly important, but a curious question.  I know php reads things differently, but I don't know enough about it to know how to fix this (or if it can be fixed).  Whenever myself or my mods edit a post and use an apostrophe, it adds a slash.  For example:

QuoteYou don't need to use . . . blah blah blah

turns into:

QuoteYou don\'t need to use . . blah blah blah

So, yes . . . anyway to get rid of the slash?

KHVT

#138
I'm using SMF 1.1RC3, when added Reason for Editting mod, I found in Forum Error log:
8: Use of undefined constant er_who - assumed 'er_who'
File: /home2/domain/public_html/forum/Themes/default/Post.template.php (eval?)

8: Use of undefined constant er_who - assumed 'er_who'
File: /home2/domain/public_html/forum/Themes/default/languages/Modifications.vietnamese-utf8.php (eval?)

File: Modifications.vietnamese-utf8.php:

<?php
?>


I don't know what happen with my forum, plz help me!
Thanks before!
Never Stop Thinking

winrules

You will have to copy the er_who language string from Post.english.php to Post.vietnamese-utf8.php.


winrules
SMF Developer
               
My Mods
Please do not PM me for support.


Advertisement: