Previous Thread
Next Thread
Print Thread
Hop To
#248360 02/12/2012 2:19 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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
Bert #248361 02/12/2012 2:27 PM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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
Bert #248362 02/12/2012 2:29 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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
Bert #248363 02/12/2012 2:52 PM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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
Bert #248364 02/12/2012 3:01 PM
Joined: Jun 2006
Posts: 81
M
member
member
M Offline
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...

Code
<input type="checkbox" value="1" id="markedit" name="markedit" checked="checked" class="form-checkbox" /><label for="markedit">{$lang.MARK_EDIT}</label>

Remove
Code
checked="checked"


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.

Bert #248365 02/12/2012 3:09 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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
Mike L #248366 02/12/2012 3:14 PM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Mike, thank you for making it more clear on what to edit.
And cautions to be aware of.
I was being lazy.
Quote
Not directly via the CP.
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
Bert #248367 02/12/2012 3:17 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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. smile


UBB version 7.5.8
php version 5.4.22
MySQL version 5.5.36-cll
Bert #248368 02/12/2012 3:19 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
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.
Bert #248369 02/12/2012 3:23 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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
Bert #248370 02/12/2012 3:23 PM
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
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
Bert #248371 02/12/2012 3:37 PM
Joined: Jun 2006
Posts: 81
M
member
member
M Offline
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. wink


Bert #248373 02/12/2012 4:25 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
Joined: Aug 2007
Posts: 386
Thanks Mike,

That is great advice. SD has had to bail us out before. smile


UBB version 7.5.8
php version 5.4.22
MySQL version 5.5.36-cll
Bert #248379 02/13/2012 3:00 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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
Bert #248380 02/13/2012 3:02 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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?"

Originally Posted by Mike L
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
Bert #248386 02/13/2012 5:26 PM
Joined: Jun 2006
Posts: 81
M
member
member
M Offline
Joined: Jun 2006
Posts: 81
You caught me grin

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. wink


Bert #248387 02/13/2012 7:40 PM
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
ninja edits are legal, if not caught wink

SD #248388 02/13/2012 9:45 PM
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by SD
ninja edits are legal, if not caught wink
I do it all the time... lol


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Bert #248389 02/13/2012 9:47 PM
Joined: Aug 2007
Posts: 386
B
enthusiast
enthusiast
B Offline
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

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 396 guests, and 110 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)