The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Remove Topic Prefixes

View previous topic View next topic Go down

In progress Remove Topic Prefixes

Post by Vanityy on May 29th 2016, 11:13 pm

Can I please have help removing Global Announcement, Announcement, and Pinned from Topics in a forum? I want them to look like a normal topic except with the special topic icon.
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by SLGray on May 29th 2016, 11:36 pm

AP > General > Messages & Emails > Configuration
What happens when you enter
Code:
&nsbp
in the boxes for the announcements and sticky?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40177
Reputation : 2714
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on May 31st 2016, 11:10 pm

It shows as &nsbp
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Poser on May 31st 2016, 11:49 pm

Should it be
Code:
 
?
avatar
Poser
Helper
Helper

Male Posts : 391
Reputation : 40
Language : English and Filipino
Location : Whale Island

http://www.bowtieblogs.forumotion.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on June 2nd 2016, 12:47 am

Bump.
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Van-Helsing on June 2nd 2016, 2:11 am

Hi,
What is your forum url?
avatar
Van-Helsing
Hyperactive

Male Posts : 2306
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on June 2nd 2016, 3:33 pm

It is irrelevant but here:
www.forumpromocean.forumotion.com
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Rhino.Freak on June 2nd 2016, 5:09 pm

Poser wrote:Should it be
Code:
 
?
Tried this?
avatar
Rhino.Freak
Helper
Helper

Male Posts : 1248
Reputation : 105
Language : English
Location : Mumbai, India

http://freetest.forumotion.net/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Van-Helsing on June 2nd 2016, 10:12 pm

Hello,
I asked for your forum link to check the forum version to adapt the js, now create a new javascript and adjust it in subforums and paste the following code:

Code:
$(document).ready(function(){
$('dd.dterm strong:contains("Global announcement:').each(function(){
$(this).replace("Global announcement:","NEW_VALUE");
$(document).ready(function(){
$('dd.dterm strong:contains("Announcement:').each(function(){
$(this).replace("Announcement:","NEW_VALUE");
$(document).ready(function(){
$('dd.dterm strong:contains("Sticky:').each(function(){
$(this).replace("Sticky:","NEW_VALUE");

In the NEW_VALUE variable you can add your new text, then press submit.
avatar
Van-Helsing
Hyperactive

Male Posts : 2306
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by SLGray on June 2nd 2016, 10:20 pm

Van-Helsing wrote:Hello,
I asked for your forum link to check the forum version to adapt the js, now create a new javascript and adjust it in subforums and paste the following code:

Code:
$(document).ready(function(){
$('dd.dterm strong:contains("Global announcement:').each(function(){
$(this).replace("Global announcement:","NEW_VALUE");
$(document).ready(function(){
$('dd.dterm strong:contains("Announcement:').each(function(){
$(this).replace("Announcement:","NEW_VALUE");
$(document).ready(function(){
$('dd.dterm strong:contains("Sticky:').each(function(){
$(this).replace("Sticky:","NEW_VALUE");

In the NEW_VALUE variable you can add your new text, then press submit.
He wants the words removed.


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 40177
Reputation : 2714
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Van-Helsing on June 2nd 2016, 10:26 pm

Hello SLGray,
in this case he must leaving blank the place of the NEW_VALUE variable like this javascript:

Code:
$(document).ready(function(){
        $('dd.dterm strong:contains("Global announcement:').each(function(){
        $(this).replace("Global announcement:","");
        $(document).ready(function(){
        $('dd.dterm strong:contains("Announcement:').each(function(){
        $(this).replace("Announcement:","");
        $(document).ready(function(){
        $('dd.dterm strong:contains("Sticky:').each(function(){
        $(this).replace("Sticky:","");
avatar
Van-Helsing
Hyperactive

Male Posts : 2306
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on June 2nd 2016, 11:08 pm

Didnt work.
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Luffy on June 2nd 2016, 11:10 pm

Van-Helsing wrote:Hello SLGray,
in this case he must leaving blank the place of the NEW_VALUE variable like this javascript:

Code:
$(document).ready(function(){
        $('dd.dterm strong:contains("Global announcement:').each(function(){
        $(this).replace("Global announcement:","");
        $(document).ready(function(){
        $('dd.dterm strong:contains("Announcement:').each(function(){
        $(this).replace("Announcement:","");
        $(document).ready(function(){
        $('dd.dterm strong:contains("Sticky:').each(function(){
        $(this).replace("Sticky:","");
Aren't there missing some
Code:
}}}};
@Van-Helsing ?





avatar
Luffy
Manager
Manager

Male Posts : 4782
Reputation : 484
Language : Greek, English
Location : Greece

http://vibes.forumotion.com/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on June 2nd 2016, 11:15 pm

I was thinking the same thing lol
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Van-Helsing on June 3rd 2016, 1:48 am

Oh yes I forgot to close the branches and parenthesis. Sorry. Sad

Code:
        $(document).ready(function(){
                $('dd.dterm strong:contains("Global announcement:').each(function(){
                $(this).replace("Global announcement:","");
                })});
                $(document).ready(function(){
                $('dd.dterm strong:contains("Announcement:').each(function(){
                $(this).replace("Announcement:","");
                })});
                $(document).ready(function(){
                $('dd.dterm strong:contains("Sticky:').each(function(){
                $(this).replace("Sticky:","");
                })});
avatar
Van-Helsing
Hyperactive

Male Posts : 2306
Reputation : 90
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on June 3rd 2016, 2:04 am

Still not working.
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on June 11th 2016, 7:34 pm

Bump.
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Vanityy on June 20th 2016, 8:36 pm

Bump.
avatar
Vanityy
Helper
Helper

Male Posts : 2336
Reputation : 323
Language : English
Location : Forumountain

http://forumpromocean.com

Back to top Go down

In progress Re: Remove Topic Prefixes

Post by Nemo on June 29th 2016, 11:16 am

Hello,

Is this still needed?

Hello
avatar
Nemo
Active Poster

Male Posts : 1201
Reputation : 119
Language : Greek, English, French

http://www.helpgr.forumgreek.com

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum