News:

Wondering if this will always be free?  See why free is better.

Main Menu

Disable Subject Change

Started by tyty1234, August 06, 2009, 01:35:20 PM

Previous topic - Next topic


tyty1234

Hey guys,

I want to apologize for not updating the mod periodically and addressing your errors. I've been real busy and it's been so long since I coded for SMF, but with the release of SMF 2.0, the mod will need to be updated. Before I do that however, if you guys would go here to report some bugs or errors that you found in the mod so that I can fix those bugs and errors and the next version of this mod can be bug-free and is working smoothly. I promise that I will do my best to update and fix the mod in a timely manner as I have a little free time on my hands.

Thanks,
tyty1234
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

tyty1234

Version 2.0 has been released! It supports SMF 2.0, but no longer supports SMF 1.1.x forums. Please refer to the OP for what's new in this version. This mod, along with the other mods that I wrote are also available on my site.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

wwwserfer

#64
Hi!

Is it possible modify code for SMF 1.1.15:

Quote from: miftahx on August 09, 2010, 11:58:02 PM

...that moderators able to modify the subject change as well? (other that admin)


my test  :D Construction:

............$context['is_first_post'] || $context['subject'] == '' || $context['user']['is_admin'] || $context['user']['is_mod'] ? '' :................

does not work :-\

Thanks!

=========================
SOLVED

tyty1234

As of version 2.0 of this mod, I do not provide support for SMF 1.1.x as version 2.0 is not compatible with SMF 1.1.x. Version 1.6 is however compatible with SMF 1.1.x,  but you are to use it at your own risk.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

tyty1234

Hi Fernando,

That's odd...it should say "RE: Topic Subject" for every reply to a topic. It could be something I missed in the coding...I'll take a look as soon as I can. Thanks for reporting.

Regards,
tyty1234
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Fernando Rocker

Oh... you see. I haven't installed your mod yet.

I installed another mod to remove the RE: prefix.

Could you please take a lot to this thread I just created and see if you can help me? I would really appreciate that. It's the only thing I want to do before launching my forum. Thanks!

http://www.simplemachines.org/community/index.php?topic=462282.0

tyty1234

It looks like a Support Specialist is already helping you on your matter. Coordinate with him as he tries to help you out with your situation. :)
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.


Fernando Rocker

No luck... could you help me, please?

=)

tyty1234

He's asking for your Display.template.php file that is found in the Themes folder for that theme you are using. If you attach it to your reply, he will be able to manually edit the file for you and make changes to your liking.
My Activity: Inactive
My Links: tyty1234's SMF Site | SMF Package Parser | SMF Helper | My Mods [5]
Subscribe to my SMF blog for updates
PMs for support will not be accepted, unless requested otherwise.

Fernando Rocker

I see!

Thanks for your response. I'm such a newbie.

=)

Fernando Rocker

Well... the problem I had was solved.

But I want to use this mod too. Is there a way to install this mod in SMF 2.0.1?

Owdy

Does this work in wap2 mode?
Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

TomW

Nice mod !  And it works for 2.0.2.

DeroZ

i successfully installed and check option on "admin > Post and Topics > Post settings", and don't work in any theme

my forum is 2.0.4


Aaron10

#77
This breaks quick reply:

// Disable Subject Change Mod.
if (isset($modSettings['disableSubjectChange']))
{
// Check for admin, moderator and first post. Show subject textbox, otherwise, we just won't have it.
if ($modSettings['disableSubjectChange'] == 0 || ($context['user']['is_admin'] || $context['user']['can_mod']))
echo '
sTemplateSubjectEdit: ', JavaScriptEscape('<input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" />'), ',';
}


How can I fix it? This is the closest I've gotten but don't want the blanked out input field, just display like a regular link like in post.template:

// Check for admin, moderator and first post. Show subject textbox, otherwise, we just won't have it.
if ($context['is_first_post'] || $context['user']['is_admin'] || $context['user']['can_mod'])
echo '
sTemplateSubjectEdit: ', JavaScriptEscape('<input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" />'), ',';
}
echo '
sTemplateSubjectEdit: ', JavaScriptEscape('<input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" disabled />'), ',


EDIT: Well this works but as you click quick edit the subject disappears but it saves fine and the Re: subject comes back after saving.

// Check for admin, moderator and first post. Show subject textbox, otherwise, we just won't have it.
if ($context['is_first_post'] || $context['user']['is_admin'] || $context['user']['can_mod'])
echo '
sTemplateSubjectEdit: ', JavaScriptEscape('<input type="text" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" />'), ',';
}
echo '
sTemplateSubjectEdit: ', JavaScriptEscape('<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.msg%msg_id%#msg%msg_id%" rel="nofollow"></a><input type="hidden" style="width: 90%;" name="subject" value="%subject%" size="80" maxlength="80" tabindex="' . $context['tabindex']++ . '" class="input_text" disabled />'), ',
sTemplateBodyNormal: ', JavaScriptEscape('%body%'), ',
sTemplateSubjectNormal: ', JavaScriptEscape('<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.msg%msg_id%#msg%msg_id%" rel="nofollow">%subject%</a>'), ',
sTemplateTopSubject: ', JavaScriptEscape($txt['topic'] . ': %subject% &nbsp;'), ',
sErrorBorderStyle: ', JavaScriptEscape('1px solid red'), '
});


Not sure what to put within the anchor

<a href="' . $scripturl . '?topic=' . $context['current_topic'] . '.msg%msg_id%#msg%msg_id%" rel="nofollow"></a>

Have tried %subject% but that will change it to %subject% on saving. Also tried ', $message['subject'], ' but no luck.

SirLouen

It would be great to have it updated for latest SMF versions.

I don't know why SMF does not support this by default.

Steve

Quote from: SirLouen on February 01, 2017, 08:28:41 AMI don't know why SMF does not support this by default.

Probably because in the four years or so I've been coming here you're the first person I remember asking for such a feature. Just a guess on my part though.

I use this mod which has become one of my top two or three favorites: http://custom.simplemachines.org/mods/index.php?mod=3167

While it doesn't do want you want until or unless this one is updated, it does allow you to change the subject title of all posts in two clicks.
DO NOT pm me for support unless asked to!

Advertisement: