Previous Thread
Next Thread
Print Thread
Hop To
Edit Post #248360 02/12/2012 1:19 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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
Re: Edit Post [Re: Bert] #248361 02/12/2012 1:27 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
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
Re: Edit Post [Re: Bert] #248362 02/12/2012 1:29 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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
Re: Edit Post [Re: Bert] #248363 02/12/2012 1:52 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
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
Re: Edit Post [Re: Bert] #248364 02/12/2012 2:01 PM
Joined: Jun 2006
Posts: 81
Mike L Offline
member
Offline
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...

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.

Re: Edit Post [Re: Bert] #248365 02/12/2012 2:09 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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
Re: Edit Post [Re: Mike L] #248366 02/12/2012 2:14 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
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
Re: Edit Post [Re: Bert] #248367 02/12/2012 2:17 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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. smile


UBB version 7.5.8
php version 5.4.22
MySQL version 5.5.36-cll
Re: Edit Post [Re: Bert] #248368 02/12/2012 2:19 PM
Joined: Jun 2006
Posts: 1,344
gliderdad Offline
veteran
Offline
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 2:20 PM.
Re: Edit Post [Re: Bert] #248369 02/12/2012 2:23 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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
Re: Edit Post [Re: Bert] #248370 02/12/2012 2:23 PM
Joined: Dec 2003
Posts: 5,998
Ruben Offline
Offline
Joined: Dec 2003
Posts: 5,998
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
Re: Edit Post [Re: Bert] #248371 02/12/2012 2:37 PM
Joined: Jun 2006
Posts: 81
Mike L Offline
member
Offline
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. wink


Re: Edit Post [Re: Bert] #248373 02/12/2012 3:25 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
enthusiast
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
Re: Edit Post [Re: Bert] #248379 02/13/2012 2:00 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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
Re: Edit Post [Re: Bert] #248380 02/13/2012 2:02 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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?"

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
Re: Edit Post [Re: Bert] #248386 02/13/2012 4:26 PM
Joined: Jun 2006
Posts: 81
Mike L Offline
member
Offline
member
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


Re: Edit Post [Re: Bert] #248387 02/13/2012 6:40 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
ninja edits are legal, if not caught wink

Re: Edit Post [Re: SD] #248388 02/13/2012 8:45 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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.
Need to Upgrade?
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!
Re: Edit Post [Re: Bert] #248389 02/13/2012 8:47 PM
Joined: Aug 2007
Posts: 386
Bert Offline OP
enthusiast
OP Offline
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

Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
0 registered members (), 84 guests, and 418 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)