Advertisement:

Author Topic: TopicRenamer  (Read 22723 times)

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
TopicRenamer
« on: September 08, 2011, 11:07:38 AM »
Ссылка на мод

TopicRenamer

Author: D#S (russian support: BIOHAZARD)
Current Version: 2.2
Compatibility: SMF 2.0-2.0.1
Languages:

Features
This mod allow you to rename all messages in topic by two clicks.

Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Useful Links
Manual Installation Of Mods
How Do I Modify Files?

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)





This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License (applies to all versions past and present).

  • Attribution —  You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
  • Noncommercial —  You may not use this work for commercial purposes.
  • No Derivative Works —  You may not alter, transform, or build upon this work.



Changelog
Legend:
! = Bugfix
- = Removed
+ = New Feature
o = Update
> = New Language
^ = Initial/New Release

Code: [Select]
2011.09.22 - v. 2.2
> Croatian added.
> Serbian latin and cyrillic added.
o SMF 2.0.1 compatible.
2011.09.10 - v. 2.1
> Italian added.
> Polish added.
2011.08.14 - v. 2.0
o Hooks based installation.
2011.08.13 - v. 1.0
^ Initial release.
ai dont spik inglish
@ ol

Offline MotRude

  • Semi-Newbie
  • *
  • Posts: 95
    • @@cruetube on Twitter
    • CrüeTube
Re: TopicRenamer
« Reply #1 on: September 08, 2011, 02:46:43 PM »
All your Mods Are Great!

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: TopicRenamer
« Reply #2 on: September 08, 2011, 04:10:02 PM »
Nice mod. They need to make this a default feature within SMF


EDIT::  This mod does not show whether or not the executions will be "succesful" or if there are any "test failed". Do not know id that is a mod issue or an SMF issue as I have never had that happen before.

Also you might want to put a screenshot or two on your mod page showing how to use the mod. "2 clicks" isnt real descriptive. ;)






The xml file cannot be opened either. I think I will wait until someone else has installed it before I try it ;)
« Last Edit: September 08, 2011, 04:23:10 PM by Kimmie »

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: TopicRenamer
« Reply #3 on: September 09, 2011, 05:12:34 AM »
All your Mods Are Great!
tnx

EDIT::  This mod does not show whether or not the executions will be "succesful" or if there are any "test failed". Do not know id that is a mod issue or an SMF issue as I have never had that happen before.
not needed
after redirect to a theme you'll see it

Also you might want to put a screenshot or two on your mod page showing how to use the mod. "2 clicks" isnt real descriptive. ;)
it is, it is :о)

The xml file cannot be opened either. I think I will wait until someone else has installed it before I try it ;)
it is first public release, so mod was tested official smf moderators
ai dont spik inglish
@ ol

Offline bruce86

  • Jr. Member
  • **
  • Posts: 135
Re: TopicRenamer
« Reply #4 on: September 09, 2011, 07:11:48 PM »
Italian Translation..;)
« Last Edit: September 11, 2011, 06:30:25 AM by bruce86 »

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: TopicRenamer
« Reply #5 on: September 09, 2011, 08:35:52 PM »
Quote
EDIT::  This mod does not show whether or not the executions will be "succesful" or if there are any "test failed". Do not know id that is a mod issue or an SMF issue as I have never had that happen before. not needed
after redirect to a theme you'll see it


It most certainly is needed  lol. I need to know if the files will be installed successfully or if there are any fails and I need to make any manual edits. This is a given with "any" mod you install. Heavily modded forums need it most of all because chances are they will need to make manual edits to atleast their custom themes and quite possibly the default themes and we need to know what those files are that it is failing on and why.

Standard practice on any mod

Quote
The xml file cannot be opened either. I think I will wait until someone else has installed it before I try it ;)
it is first public release, so mod was tested official smf moderators

Doesnt matter, its an XML file and I should still be able to open it so I can see the code.

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: TopicRenamer
« Reply #6 on: September 09, 2011, 09:48:00 PM »
Italian Translation..;)
this is an italian or italian-utf8?
ai dont spik inglish
@ ol

Offline Adrek

  • Sophist Member
  • *****
  • Posts: 1,093
  • Gender: Male
    • pages/smfpl/171860759503032 on Facebook
    • Adrek.pl
Re: TopicRenamer
« Reply #7 on: September 10, 2011, 04:21:59 AM »
and here you have polish and polish-utf8 translations ;)

A jeśli ktoś już zainstalował tą modyfikację tutaj znajduje się wersja "instalacyjna" spolszczenia ;)
« Last Edit: September 10, 2011, 07:19:56 AM by ph4ntom »
Polskie wsparcie SMF na simplemachines.org

the simplest solution is most likely the right one

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: TopicRenamer
« Reply #8 on: September 10, 2011, 05:08:32 AM »
and here you have polish and polish-utf8 translations ;)
tnx
dziękuję :о)
ai dont spik inglish
@ ol

Offline bruce86

  • Jr. Member
  • **
  • Posts: 135
Re: TopicRenamer
« Reply #9 on: September 11, 2011, 06:31:50 AM »
Italian Translation..;)
this is an italian or italian-utf8?
In Italian and Italian-utf8..;)

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: TopicRenamer
« Reply #10 on: September 11, 2011, 10:39:23 AM »
In Italian and Italian-utf8..;)
tnx
grazie
ai dont spik inglish
@ ol

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
Re: TopicRenamer
« Reply #11 on: September 11, 2011, 12:07:25 PM »
Serbian_latin,Serbian_cyrillic and Croatian, both...ISO/UTF-8
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Offline Doburpally

  • Jr. Member
  • **
  • Posts: 151
  • Gender: Male
Re: TopicRenamer
« Reply #12 on: September 20, 2011, 05:27:02 PM »
Nice mod ;)

However, the package needs to be updated for 2.0.1
   <install for="2.0 - 2.99.99">

   <uninstall for="2.0 - 2.99.99">

 ;)

Offline D#S

  • Jr. Member
  • **
  • Posts: 105
  • Gender: Male
    • UserJS for Opera
Re: TopicRenamer
« Reply #13 on: September 22, 2011, 09:51:43 AM »
Serbian_latin,Serbian_cyrillic and Croatian, both...ISO/UTF-8
tnx
хвала
ai dont spik inglish
@ ol

Offline jsx

  • Full Member
  • ***
  • Posts: 536
  • Gender: Male
Re: TopicRenamer
« Reply #14 on: January 25, 2014, 11:49:22 AM »
TopicRenamer is not only changing the title of the topic, but also removing the Re: (reply) why this is happening? It can't be this way, that this modification remove "Re:" from title of topic from reply. Author by this modification why is happen this way?

Your modification should change title of topic, without remove Re:

Perhaps somebody is able to correct this topicrenamer modification? I think that the author this modification didn't offend for this.
« Last Edit: January 25, 2014, 12:42:35 PM by rimh101 »
The Great Winged Hussars

https://www.youtube.com/watch?v=DCdNC1i2eZE

We remember
In september
When The Winged Hussars arrived!

Offline NekoJonez

  • Full Member
  • ***
  • Posts: 503
  • Gender: Male
  • Stuff
    • @NekoJonez on Twitter
    • My blog
Re: TopicRenamer
« Reply #15 on: February 22, 2014, 09:54:37 AM »
TopicRenamer is not only changing the title of the topic, but also removing the Re: (reply) why this is happening? It can't be this way, that this modification remove "Re:" from title of topic from reply. Author by this modification why is happen this way?

Your modification should change title of topic, without remove Re:

Perhaps somebody is able to correct this topicrenamer modification? I think that the author this modification didn't offend for this.

Yeah, same issue here.
Retro video game blogger, writer, actor, podcaster and general amazing dude.

Twitter
My Blog

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: TopicRenamer
« Reply #16 on: August 25, 2014, 03:35:06 PM »
I need to get this mod removed, but I have a question. I installed this mod way back when we had an earlier version of SMF (before it was gold) so I don't have an "uninstall" option. I realize I have to do this all manually which is fine. I parsed the mod and it doesn't have any "find/replace" code. These are the only operations it carried out.






==================






Is it safe to assume all I have to do is delete these 3 files and it will be uninstalled or is there something else I need to do?


Thanks :)



Edit: Nevermind. I emulated the site to 2.0 and when that happened I had an "Install Mod" option there so I just clicked on delete files.

Sorry to bother you.  :P

Offline Mstcool

  • Sr. Member
  • ****
  • Posts: 910
Re: TopicRenamer
« Reply #17 on: August 25, 2014, 09:19:49 PM »
You should upgrade to 2.0.8 because it fixes a lot of bugs and security issues. :p

Offline Kimmie

  • SMF Hero
  • ******
  • Posts: 1,590
Re: TopicRenamer
« Reply #18 on: August 25, 2014, 10:08:44 PM »
You should upgrade to 2.0.8 because it fixes a lot of bugs and security issues. :p


I already have 2.0.8. This mod was installed way before 2.0.8 even came out and has never been updated for it. That is why I got rid of it. The mod no longer works.

Offline Mstcool

  • Sr. Member
  • ****
  • Posts: 910
Re: TopicRenamer
« Reply #19 on: August 25, 2014, 10:34:30 PM »
Oh, ok.

Offline BeatsMe

  • Semi-Newbie
  • *
  • Posts: 53
  • Gender: Male
    • mcdracingforum on Facebook
    • MCD Racing Forum
Re: TopicRenamer
« Reply #20 on: November 10, 2015, 01:41:34 AM »
Just wondering if this mod is still supported by the developer, and if it works under 2.0.11 ???

Failing that is another mod that does the same.

Offline br360

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 2,398
    • GenXcommunity
Re: TopicRenamer
« Reply #21 on: November 10, 2015, 02:51:01 AM »
The mod author may not be around, but this mod works just fine on 2.0.11. It's using hooks so it's even working on my 2.1 test site with no issues as well.

Offline BeatsMe

  • Semi-Newbie
  • *
  • Posts: 53
  • Gender: Male
    • mcdracingforum on Facebook
    • MCD Racing Forum
Re: TopicRenamer
« Reply #22 on: November 10, 2015, 03:26:21 AM »
Good to know it works on 2.1 too  ;)
Thanks for the reply.

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 448
  • Gender: Male
Re: TopicRenamer
« Reply #23 on: November 16, 2015, 03:00:09 AM »
This is a great mod works with 2.0.11 so easy to use, smf should apply this to their main SMF release. I love this mod it was suggested to me by br360. So easy and simple to use, it's sexy man.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 5,000
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: TopicRenamer
« Reply #24 on: November 16, 2015, 08:27:03 AM »
Does it still do this?

TopicRenamer is not only changing the title of the topic, but also removing the Re: (reply) why this is happening? It can't be this way, that this modification remove "Re:" from title of topic from reply. Author by this modification why is happen this way?

Your modification should change title of topic, without remove Re:

Perhaps somebody is able to correct this topicrenamer modification? I think that the author this modification didn't offend for this.
Please do not PM me for support.

Offline Wellwisher

  • Full Member
  • ***
  • Posts: 448
  • Gender: Male
Re: TopicRenamer
« Reply #25 on: November 16, 2015, 03:25:44 PM »
Steve'o works on 2.0.11 beautifully 100%. Tested on local and now running this on production. I also heard it works on 2.1.

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 5,000
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: TopicRenamer
« Reply #26 on: November 16, 2015, 05:17:33 PM »
Thanks. :)
Please do not PM me for support.

Offline BeatsMe

  • Semi-Newbie
  • *
  • Posts: 53
  • Gender: Male
    • mcdracingforum on Facebook
    • MCD Racing Forum
Re: TopicRenamer
« Reply #27 on: November 26, 2015, 02:49:36 AM »
Just installed this mod on my test forum.... strips the "Re:" from all the replies when you do the rename :(

Not the way I would want a rename mod to work.

Does it still do this?

TopicRenamer is not only changing the title of the topic, but also removing the Re: (reply) why this is happening? It can't be this way, that this modification remove "Re:" from title of topic from reply. Author by this modification why is happen this way?

Your modification should change title of topic, without remove Re:

Perhaps somebody is able to correct this topicrenamer modification? I think that the author this modification didn't offend for this.

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,667
  • Gender: Male
    • i30 Owners Club
Re: TopicRenamer
« Reply #28 on: May 19, 2017, 03:35:41 AM »
Quote from: ErrorLog
Only variables should be passed by reference

To avoid the warning message when using PHP7.1...

Sources/TopicRenamer.php
Code: (Find) [Select]
// Stripslashes and htmlspecialchars
$context['currentSubject'] = strtr(censorText($smcFunc['db_unescape_string']($currentSubject)), array("\r" => '', "\n" => '', "\t" => ''));

Code: (Replace with) [Select]
// Stripslashes and htmlspecialchars
$tempText = $smcFunc['db_unescape_string']($currentSubject);
$context['currentSubject'] = strtr(censorText($tempText), array("\r" => '', "\n" => '', "\t" => ''));

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,667
  • Gender: Male
    • i30 Owners Club
Re: TopicRenamer
« Reply #29 on: July 11, 2021, 08:12:53 AM »
To anyone who is annoyed that messages subordinate to the opening message lose the "RE:" prefix, please find a fix below.

Sources/TopicRenamer.php

Code: (find) [Select]

// Do the dew.
$update = $smcFunc['db_query']('', '
UPDATE {db_prefix}messages
SET subject = {string:subject}
WHERE id_topic = {int:topic}',
array(
'subject' => $_POST['subject'],
'topic' => $ID_TOPIC,
)
);

Code: (Upgrade to) [Select]

// Do the dew.
$update = $smcFunc['db_query']('', '
UPDATE {db_prefix}messages
SET subject = {string:subject}
WHERE id_topic = {int:topic}
LIMIT 1',
array(
'subject' => $_POST['subject'],
'topic' => $ID_TOPIC,
)
);

$REsubject = 'RE: ' . $_POST['subject'];

// Update subordinate messages.

$update = $smcFunc['db_query']('', '
UPDATE {db_prefix}messages
SET subject = {string:REsubject}
WHERE id_topic = {int:topic}
AND subject != {string:newsubject}',
array(
'newsubject' => $_POST['subject'],
'REsubject' => $REsubject,
'topic' => $ID_TOPIC,
)
);

Offline Steve

  • Freak
  • Support Specialist
  • SMF Hero
  • *
  • Posts: 5,000
  • Gender: Male
  • I have not yet begun to procrastinate.
Re: TopicRenamer
« Reply #30 on: July 11, 2021, 09:08:49 AM »
Nice.
Please do not PM me for support.