|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
When any user edits his or her post, the Mark As Edited option comes up. Is there any way to make the default unchecked rather than checked?
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Did not do a lot of looking but it should be in the editpost.tpl file. Search for edit and change it to 0 or null.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
Hi Ruben,
Thanks for the quick reply. Where would I find the editpost.tpl file? Is it in the Control Panel somewhere?
Thanks
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
You can get to it that way. Display options>templates select the file to edit Find the form field markededit and delete checked="checked"
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 81
member
|
member
Joined: Jun 2006
Posts: 81 |
Not directly via the CP. However, it you want to live on the wild side... Edit the file "editpost.tpl" At around line 97 find... <input type="checkbox" value="1" id="markedit" name="markedit" checked="checked" class="form-checkbox" /><label for="markedit">{$lang.MARK_EDIT}</label> Remove Always make a copy of any files BEFORE doing any edits of them. That way if something blows up, you can revert back to the original. Further, it is best to try any edits of your files on a test instance of your forums and verify it works before going live.
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
Thanks Ruben and Mike,
So I have gotten to step 1: Found code checked="checked"
Haven't done step 2, yet, lol. >> Deleting it.
When you say copy the file, do you mean simply copying and pasting the entire code when you edit "editpost.tpl."
Thanks. Unfortunately, I don't have a sandbox one to play with although SD who helped set it up has always advocated I do.
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
Mike, thank you for making it more clear on what to edit. And cautions to be aware of. I was being lazy. If you are using version 7.x you can edit it via the control panel. But there is one additional caveat in that when you upgrade then your changes will need to be edited again.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
Lazy meets Newbie (scary combination) I doubt we will update much. I may just ask SD to look at it as I am sure he will much less likely to screw it up.
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Jun 2006
Posts: 1,344
veteran
|
veteran
Joined: Jun 2006
Posts: 1,344 |
I always like to download the file make my changes than before I upload it back rename the file on the server side editpost_old.tpl than upload the new. This way if there is an issue you can delete editpost.tpl and rename the old back.
Last edited by gliderdad; 02/12/2012 3:20 PM.
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
Yeah, that was the first post where I actually find the file rather than open it in CP.
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Dec 2003
Posts: 6,562 Likes: 78
|
Joined: Dec 2003
Posts: 6,562 Likes: 78 |
You can do it either way. But Mark and Gliderdad are on the right track. If you download it, save the original then upload a edited file. Then if you hose it up you can just upload the original. If you do it via the control panel there is not a original anymore unless you have a virgin copy of your install zip file.
But it is a very easy modification.
Blue Man Group There is no such thing as stupid questions. Just stupid answers
|
|
|
|
Joined: Jun 2006
Posts: 81
member
|
member
Joined: Jun 2006
Posts: 81 |
Bert, Having SD do any upgrades for you is a smart move if you are not comfortable with such things. Just remember to keep a log of any Mods to the stock code you might implement so that you (or SD) will know what to do after an upgrade. A very important thing to keep in mind is that the stock code is undergoing rather radical changes and so a Mod such as this, though still likely possible, may well require editing of a different file, or the appropriate line of code might be on a different line number within the file after an update. The next release will bring LOTS of changes. Another consideration is that little Mods such as this one just might make it into the stock code as an option within the CP on a future release.
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
Thanks Mike, That is great advice. SD has had to bail us out before.
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
All set. Thanks to everyone for the help. SD took care of it.
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
I may have read Mike's post incorrectly yesterday, but I was rather sure that "wild" was "wide" Therefore, he would have had to edit it and chose not to add the "Mark as Edited?" However, it you want to live on the wild side...
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
|
Joined: Jun 2006
Posts: 81
member
|
member
Joined: Jun 2006
Posts: 81 |
You caught me Yes, I did fat-finger it the first time and only saw my error after posting. This happened in a short time frame and so I thought I could sneak an edit in by un-checking the box. Flag thrown for an illegal edit. 10 yard penalty. Repeat first down.
|
|
|
|
Joined: Apr 2007
Posts: 3,940 Likes: 1
Former Developer
|
Former Developer
Joined: Apr 2007
Posts: 3,940 Likes: 1 |
ninja edits are legal, if not caught
|
|
|
|
Joined: Jun 2006
Posts: 16,299 Likes: 116
|
Joined: Jun 2006
Posts: 16,299 Likes: 116 |
ninja edits are legal, if not caught I do it all the time... lol
|
|
|
|
Joined: Aug 2007
Posts: 386
enthusiast
|
enthusiast
Joined: Aug 2007
Posts: 386 |
Me as well. And, about 95% of the users on our board.
UBB version 7.5.8 php version 5.4.22 MySQL version 5.5.36-cll
|
|
|
Bots
by Outdoorking - 04/13/2024 5:08 PM
|
|
|
|
|
|
|
|