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.

Notifications to display the "actual forum".

View previous topic View next topic Go down

Solved Re: Notifications to display the "actual forum".

Post by Ramdaman on November 3rd 2014, 1:58 pm

When the notification says "in a watched topic", you can click on those words (hyperlink) and it'll bring you to the reply.

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Notifications to display the "actual forum".

Post by Aidejoel on November 3rd 2014, 7:33 pm

Hello!

Add this script in your forum (I found it in the Spanish support forum):

Code:
    $(function(){
   
      var texto_medio = " has writed a message in";
      var si_titulo_vacio = "this topic";
   
      var d=compileNotif;Toolbar.compileNotif=compileNotif=function(b){var a=d(b);if(b.text.type==FA.Notification.NOTIF_TOPIC_WATCH){var c=a.match(/^(.*) has writed a message in (<a href="\/t[0-9]+(p[0-9]+)?-([^#"]*)#[0-9]+">)[^<]+<\/a>$/);c&&(b=c[1]+texto_medio+c[2],a=c[4],a="topic"==a||/^[\s-]*$/.test(a)?si_titulo_vacio:a.replace(/-/g," ").replace(/(^\s+|\s+$)/g,""),a=b+a+"</a>")}return a}
   
    });

You can change the content of the variables Wink

Script by: Ea

Aidejoel
New Member

Posts : 2
Reputation : 1
Language : Spanish
Location : Palma

http://codeadictos.foroactivo.com/

Back to top Go down

Solved Re: Notifications to display the "actual forum".

Post by _Twisted_Mods_ on November 3rd 2014, 7:48 pm

i tested this it dont seem to work for me

_Twisted_Mods_
Helper
Helper

Male Posts : 2032
Reputation : 302
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: Notifications to display the "actual forum".

Post by Ramdaman on November 4th 2014, 1:41 am

It must be outdated.

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Notifications to display the "actual forum".

Post by SLGray on November 4th 2014, 11:01 pm

Try this: Translate the code into English or whatever language your forum is set to.


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


SLGray
Administrator
Administrator

Male Posts : 36657
Reputation : 2443
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Notifications to display the "actual forum".

Post by Ange Tuteur on November 5th 2014, 4:48 am

Hell Draxion,

Give this a try :

Title : Your choice
Placement : In all the pages
Code:
$(function(){
 var texto_medio = "in a watched topic ";
 var si_titulo_vacio = "this topic";
 var d=compileNotif;Toolbar.compileNotif=compileNotif=function(b){var a=d(b);if(b.text.type==FA.Notification.NOTIF_TOPIC_WATCH){var c=a.match(/^(.*)(<a href="\/t[0-9]+(p[0-9]+)?-([^#"]*)#[0-9]+">)[^<]+<\/a>$/);c&&(b=c[1]+texto_medio+c[2],a=c[4],a="topic"==a||/^[\s-]*$/.test(a)?si_titulo_vacio:a.replace(/-/g," ").replace(/(^\s+|\s+$)/g,"").replace(/\?nid=\d+/,""),a=b+a+"</a>")}return a}
});

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Notifications to display the "actual forum".

Post by Ange Tuteur on November 5th 2014, 7:50 am

You're welcome

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.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