Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online Now
1 registered members (Gizmo), 49 guests, and 202 spiders.
Key: Admin, Global Mod, Mod
Member Spotlight
Posts: 231
Joined: October 2007
Show All Member Profiles 
Top Posters(30 Days)
Gizmo 11
Ruben 5
M4TT 4
Morgan 3
isaac 1
Latest Photos
Previous Thread
Next Thread
Print Thread
Disabling Subject change #172493
01/05/07 07:55 PM
01/05/07 07:55 PM
Joined: Aug 2006
Posts: 1,944
NJ
jgeoff Offline OP
Pooh-Bah
jgeoff  Offline OP
Pooh-Bah
Joined: Aug 2006
Posts: 1,944
NJ

My turn for a question laugh

I don't like how people can change the Subject of a thread when replying to it. Maybe it's my Classic upbringing, but to me it causes confusion when a thread is named one thing in postlist and another in the cfrm "latest post".

Obviously I could comment-out the Subject field for replies; however, I still would like the subject visible. How can I display the subject in plain text in place of the edit box?



GangsterBB.NET (Ver. 7.6.1.1)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (iPhone); No IE, ever!
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
Re: Disabling Subject change [Re: jgeoff] #172494
01/05/07 08:00 PM
01/05/07 08:00 PM
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Gizmo Online tapedshut
UBB.threads Developer
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
I too dislike users being able to edit the subject... I'd like to see an option to not allow users to change the topic in a reply, kind of like how the Quick Reply box works...

I'm pretty sure you can edit it out by:
Find in newreply.tpl:
Code
<input type="text" name="Subject" maxlength="{$config.SUBJECT_LENGTH}" class="form-input" size="60" tabindex="1" value="{$Subject}" />


Replace With:
Code
<input type="hidden" name="Subject" maxlength="{$config.SUBJECT_LENGTH}" class="form-input" size="60" tabindex="1" value="{$Subject}" />{$Subject}


This would use the subject of the parent they're responding to, and show the subject in the new reply as a non editable html entry.

Completely untested though...


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.
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: Disabling Subject change [Re: Gizmo] #172497
01/05/07 08:06 PM
01/05/07 08:06 PM
Joined: Aug 2006
Posts: 1,944
NJ
jgeoff Offline OP
Pooh-Bah
jgeoff  Offline OP
Pooh-Bah
Joined: Aug 2006
Posts: 1,944
NJ

I was just looking at that line wink

Was thinking perhaps I could just comment-out that whole line and just use {$Subject}, but your way is better if the form needs that variable passed through it.

I'll give it a shot when I get a chance... thanks.



GangsterBB.NET (Ver. 7.6.1.1)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (iPhone); No IE, ever!
Re: Disabling Subject change [Re: jgeoff] #172498
01/05/07 08:09 PM
01/05/07 08:09 PM
Joined: Aug 2006
Posts: 1,944
NJ
jgeoff Offline OP
Pooh-Bah
jgeoff  Offline OP
Pooh-Bah
Joined: Aug 2006
Posts: 1,944
NJ
LOL - The file was already open, so I just made the change. Works great! I bolded the subject, tho - looks good. <B>{$Subject}</B>cool

PS - I really need to keep track of my modifications. I gotta redo them all for 7.1 blush


GangsterBB.NET (Ver. 7.6.1.1)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (iPhone); No IE, ever!
Re: Disabling Subject change [Re: jgeoff] #172499
01/05/07 08:13 PM
01/05/07 08:13 PM
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Gizmo Online tapedshut
UBB.threads Developer
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Yeh, I was just going to purge the line, but then you'd end up with absolutely no topic on each post (as it woudln't be submitted with the form).

Glad to hear it worked... this is why I love the templating engine, it makes doing some updates very painless smile


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.
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: Disabling Subject change [Re: Gizmo] #172505
01/05/07 09:57 PM
01/05/07 09:57 PM
Joined: Nov 2006
Posts: 3,390
ntdoc Offline
Carpal Tunnel
ntdoc  Offline
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
Well maybe have the option but we do allow a change. Maybe make it more work for them to change it so that they don't just do it for the heck of it, but realize they are going out of their way to do it which might slow down some changes, but not all.

Re: Disabling Subject change [Re: ntdoc] #172506
01/05/07 10:02 PM
01/05/07 10:02 PM
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Gizmo Online tapedshut
UBB.threads Developer
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Originally Posted by ntdoc
Well maybe have the option but we do allow a change. Maybe make it more work for them to change it so that they don't just do it for the heck of it, but realize they are going out of their way to do it which might slow down some changes, but not all.
what? 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.
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: Disabling Subject change [Re: Gizmo] #172510
01/05/07 10:52 PM
01/05/07 10:52 PM
Joined: Nov 2006
Posts: 3,390
ntdoc Offline
Carpal Tunnel
ntdoc  Offline
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
Just saying I don't want to 100% stop a user from changing the title (what if they initially got it wrong)

I can see where some boards might not like users changing it but for us some change it just not even thinking about it, others change it to a more appropriate title which is okay by us, however I would like to make it more effort so that the casual users isn't changing it just because they are being a bone head.

.

Re: Disabling Subject change [Re: ntdoc] #172511
01/05/07 10:54 PM
01/05/07 10:54 PM
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Gizmo Online tapedshut
UBB.threads Developer
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Nononono, see, this makes it so REPLIES to a thread cannot change the title; if the user wants to change their title they can edit their initial post...

Which brings up another point, the edit post page still has a subject box :x...


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.
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: Disabling Subject change [Re: Gizmo] #172513
01/05/07 10:56 PM
01/05/07 10:56 PM
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Gizmo Online tapedshut
UBB.threads Developer
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
editpost.tpl:
Find
Code
<input type="text" name="Subject" value="{$Subject}" maxlength="{$config.SUBJECT_LENGTH}" class="form-input" size="60" />


Replace With
Code
<input type="text" name="Subject" value="{$Subject}" maxlength="{$config.SUBJECT_LENGTH}" class="form-input" size="60" />{$Subject}


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.
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: Disabling Subject change [Re: Gizmo] #172515
01/05/07 10:58 PM
01/05/07 10:58 PM
Joined: Nov 2006
Posts: 3,390
ntdoc Offline
Carpal Tunnel
ntdoc  Offline
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
Yes, I understand the difference and I still say WE/OUR BOARD do allow and at times encourage a title change.

For YOU and your board and/or many other boards maybe not, but as with other options that were removed from previous versions, I for one vote not to remove it. Modify it, alter it okay, but not remove it.

.

Re: Disabling Subject change [Re: ntdoc] #172517
01/05/07 11:01 PM
01/05/07 11:01 PM
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Gizmo Online tapedshut
UBB.threads Developer
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
so, then don't edit it out 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.
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: Disabling Subject change [Re: Gizmo] #172521
01/06/07 12:53 AM
01/06/07 12:53 AM
Joined: Nov 2006
Posts: 3,390
ntdoc Offline
Carpal Tunnel
ntdoc  Offline
Carpal Tunnel
Joined: Nov 2006
Posts: 3,390
I'm not, but this is a request I thought for Rick to change the behavior, not just a "hack" of the software.

You guys are going to force me to learn more PHP wink

Spent this afternoon setting up a customized web application with shopping cart all written in-house with ASP. I don't know ASP at all but figured out it was calling a couple databases that were not there and some accounts that did not exist. Took a while, but got it running again. The guy that programmed it is out on vacation and the owner was chomping at the bit to get it going again after it was moved from one server to another last week.

.

Re: Disabling Subject change [Re: ntdoc] #172528
01/06/07 02:48 AM
01/06/07 02:48 AM
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
Gizmo Online tapedshut
UBB.threads Developer
Gizmo  Online Tapedshut
UBB.threads Developer
Joined: Jun 2006
Posts: 16,941
Portland, OR; USA
I think jgeoff wants it in, on some level, but I think the template hack should be enough for most...

If Rick did add this ability I'm sure he'd add in a switch so that admin's could choose to allow it or not.


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.
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: Disabling Subject change [Re: Gizmo] #174660
01/20/07 01:49 PM
01/20/07 01:49 PM
Joined: Dec 2003
Posts: 117
Belgium
K
Kayjey Offline

member
Kayjey  Offline

member
K
Joined: Dec 2003
Posts: 117
Belgium
MIND...

there is a problem with this: if the subject is all caps or contains language you want to edit out, you will NO LONGER be able to edit the title, EVEN as an admin or a mod!

Anyone who can correct the code to allow mods and admins to still change the title?

Re: Disabling Subject change [Re: Kayjey] #174664
01/20/07 04:28 PM
01/20/07 04:28 PM
Joined: Aug 2006
Posts: 1,944
NJ
jgeoff Offline OP
Pooh-Bah
jgeoff  Offline OP
Pooh-Bah
Joined: Aug 2006
Posts: 1,944
NJ

Good point, Kayjey!

I suppose the above would be considered a quick fix, and let's hope this is built in with admin/mod override! cool


GangsterBB.NET (Ver. 7.6.1.1)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (iPhone); No IE, ever!
Re: Disabling Subject change [Re: jgeoff] #174825
01/21/07 09:03 AM
01/21/07 09:03 AM
Joined: Dec 2003
Posts: 117
Belgium
K
Kayjey Offline

member
Kayjey  Offline

member
K
Joined: Dec 2003
Posts: 117
Belgium
Yups - it's actually the one thing I keep changing after I switched over from .classic... a few years ago.


Shout Box
Today's Birthdays
No Birthdays
Recent Topics
Member being directed to "stopforumspam?"
by Lisanne. 07/14/18 10:27 AM
7.6.1.1 - Broken ReCaptcha (Not A Bug)
by M4TT. 07/01/18 06:02 PM
Control Panel / Transactions Username
by Morgan. 06/20/18 05:38 AM
Custom Insert won't save
by Baldeagle. 06/18/18 07:44 PM
random 500 server errors on post
by Bad Frog. 05/31/18 09:34 AM
Forum Statistics
Forums36
Topics35,125
Posts191,350
Members12,091
Most Online978
Jun 24th, 2007
Random Image
Powered by UBB.threads™ PHP Forum Software 7.6.2
(Preview build 20180524)