inherit
248306
0
Aug 31, 2024 5:08:24 GMT -8
aastinky
46
August 2017
40oz
|
Post by aastinky on Mar 2, 2020 12:22:05 GMT -8
My forum has been using a "Thread Icons" plugin that inserts a bit of code into the subject line of each thread in order to insert a little graphic next to the thread title.
I've been considering removing this plugin but the code remains in the thread titles. Is there something similar to a find and replace that I can run across all the thread titles to remove this? I don't want to edit each thread title one by one.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 2, 2020 12:41:37 GMT -8
My forum has been using a "Thread Icons" plugin that inserts a bit of code into the subject line of each thread in order to insert a little graphic next to the thread title. I've been considering removing this plugin but the code remains in the thread titles. Is there something similar to a find and replace that I can run across all the thread titles to remove this? I don't want to edit each thread title one by one. The first thing we should do is to confirm which plugin you are using. Is it this one: www.proboards.com/library/plugins/item/986support.proboards.com/thread/546220/topic-iconsAlso, a link to your forum would probably be helpful.
|
|
inherit
248306
0
Aug 31, 2024 5:08:24 GMT -8
aastinky
46
August 2017
40oz
|
Post by aastinky on Mar 2, 2020 13:25:05 GMT -8
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 2, 2020 14:02:59 GMT -8
Oh my! It looks like you'll have a serious problem on your hands. If I view one of your boards on an iPad in desktop mode, I see lots of threads with an icon preceding the name. If I view it in mobile mode (plugins don't work in mobile), I can see those thread titles begin with stuff like [ti]boom[/ti], and similar. The plugin altered the thread titles at the time those threads were created. I can't imagine any way to get rid of that other than editing the threads, one-by-one. You might want to post on the Help Thread for that plugin: Topic Icons, and I can tag Brian to ask if he knows of an easy solution but I don't think there will be one.
|
|
Kami
Forum Cat
Posts: 40,201
Mini-Profile Theme: Kami's Mini-Profile
#f35f71
156500
0
Offline
Jul 24, 2021 11:48:29 GMT -8
Kami
40,201
July 2010
kamiyakaoru
Kami's Mini-Profile
|
Post by Kami on Mar 2, 2020 21:50:48 GMT -8
A temporary fix could be to use the censored words list to replace those with nothing. Someone would have to test if they'd come back if you removed the censors, though.
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 3, 2020 6:19:32 GMT -8
A temporary fix could be to use the censored words list to replace those with nothing. Someone would have to test if they'd come back if you removed the censors, though. Good call, KamiThe Censored Words list would be a very easy way to clean up the display of the thread titles. It wouldn't change anything in the database but it would prevent the code in the title from being displayed on the page. Each entry in the list would need to remain in-place or the code would appear.
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 3, 2020 10:08:41 GMT -8
A temporary fix could be to use the censored words list to replace those with nothing. Someone would have to test if they'd come back if you removed the censors, though. Good call, Kami The Censored Words list would be a very easy way to clean up the display of the thread titles. It wouldn't change anything in the database but it would prevent the code in the title from being displayed on the page. Each entry in the list would need to remain in-place or the code would appear. Or you could put this on your Global Footer.. <script> $('.title-bar').each(function(){ $(this).html($(this).html().replace(/\[ti\](\w|\d)+\[\/ti\]/i,'')); }); </script>
|
|
inherit
252032
0
Apr 26, 2024 23:51:41 GMT -8
Retread
Tribbial Pursuit.
5,017
January 2018
retread
|
Post by Retread on Mar 3, 2020 10:24:21 GMT -8
Todge, I think the Censored Words approach, where it removes the code part of the thread title before it even hits the page is a better way to go. Especially since scripts don't work on the mobile version. Do you agree?
|
|
#00AF33
Official Code Helper
19529
0
1
Nov 19, 2012 14:18:28 GMT -8
Todge
**
17,324
January 2004
todge
|
Post by Todge on Mar 3, 2020 14:45:30 GMT -8
Todge, I think the Censored Words approach, where it removes the code part of the thread title before it even hits the page is a better way to go. Especially since scripts don't work on the mobile version. Do you agree? The censored words list is definately the better way to go, the only issue is with the amount of censoring that may need to be done depending on how many icons are in use as each would have to be entered separately.
|
|