The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

problem with title of watched topics in notifications

4 posters

Go down

Solved problem with title of watched topics in notifications

Post by Michael_vx January 3rd 2015, 9:03 am

https://help.forumotion.com/t137560-title-of-watched-topics-in-notifications
i think there is a little problem with the code above
1st is an image
problem with title of watched topics in notifications Image
as you see looks like it can not get the topic name Sad
only
testname replied to this topic
Shocked
also its fail when i try translate it to Arabic
here is a forum i make to test forumotion codes
http://micsoft-test.forumg.biz
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by cassini January 3rd 2015, 11:01 am

Hello  Smile

I am having the same problem that when I create a Topic & post into it  says topic does not exist even when you have the topic title showing.
I even tried changing versions & restarting a thread after deleting the original thread.
1st Pic in the forum board
2nd Pic is the thread
3rd is Pic is the missing thread & post
 problem with title of watched topics in notifications 9c323f378395777 problem with title of watched topics in notifications Ff4b1e378395788 problem with title of watched topics in notifications C51fa6378395799

Regards
Cassini

Just had a thought that possible reconfigure the board to an earlier date might resolves the problem Question
Regards
Cassini Smile


Last edited by cassini on January 3rd 2015, 12:07 pm; edited 1 time in total (Reason for editing : added comment)
cassini
cassini
Forumember

Male Posts : 583
Reputation : 13
Language : english
Location : Dorset U.K

https://cassinicaptures.forumotion.com/

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Ange Tuteur January 3rd 2015, 6:51 pm

Hi @Michael_vx,

If the text of the topic title cannot be simplified, the placeholder texts "This topic" will be used.

@cassini I do not think your question is related to this topic. If you can, please create your own support topic.

Thanks Smile
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx January 4th 2015, 5:20 pm

@Ange Tuteur
will

Your first subject

مشاركة تجريبية

both are wont show in the bar
they lead to the post okay with no problem as i see
only the topic title that wont show
What the fuck ?!? 
how ill make the title simplified
blackeye
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Ange Tuteur January 4th 2015, 9:21 pm

Did you make any modifications to the code. Try this :
Code:
$(function(){
  var middle_text = " replied to ";
  var empty_title = "this topic";
  if(typeof(compileNotif)!="function")return;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(/^(.*) wrote a message (<a href="\/t[0-9]+(p[0-9]+)?-([^#?"]*)[^"]+">)[^<]+<\/a>$/);c&&(b=c[1]+middle_text+c[2],a=c[4],a="topic"==a||/^[\s-]*$/.test(a)?empty_title:a.replace(/-/g," ").replace(/(^\s+|\s+$)/g,""),a=b+a+"</a>")}return a}
});

I made a test and "Your first subject" worked, but "مشاركة تجريبية" did not.
problem with title of watched topics in notifications Captur27
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx January 5th 2015, 5:44 pm

hmm i think this mean the Script needs the Arabic letters
ا ب ت ث ج ح خ د ذ ر ز س ش ص ض ع ف ق ك ل م ن و ى ئ ي
let me know how i can add these letters into the Script
because still some letters when being with other letters they have a style like
مشاركة
means topic
and thanks a lot for the hard work Smile
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Ange Tuteur January 6th 2015, 1:04 am

Well the problem when characters like those are used is that the URL of the topic changes to : /t1-topic

instead of : /t1-مشاركة

To get the name of the topic we strip it from the topic URL, but in the case of arabic titles, the topic title in the URL is always "topic"
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx January 6th 2015, 7:20 am

Ange Tuteur wrote:Well the problem when characters like those are used is that the URL of the topic changes to : /t1-topic

instead of : /t1-مشاركة

To get the name of the topic we strip it from the topic URL, but in the case of arabic titles, the topic title in the URL is always "topic"
so this one will not be solved since the its from the URL Sad
okay
i like to ask for one last thing
change these words
قام بالرد على
instead of replied to
بموضوع تراقبة
instead of this topic
when i tried to that the Script fails
then do any thing you like to the topic blackeye
and thanks a lot
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Ange Tuteur January 7th 2015, 12:06 am

Yes, unfortunately that is the case. Confused

For the script, try this :
Code:
$(function(){
  var middle_text = " قام بالرد على ";
  var empty_title = "بموضوع تراقبة";
  if(typeof(compileNotif)!="function")return;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(/^(.*) wrote a message (<a href="\/t[0-9]+(p[0-9]+)?-([^#?"]*)[^"]+">)[^<]+<\/a>$/);c&&(b=c[1]+middle_text+c[2],a=c[4],a="topic"==a||/^[\s-]*$/.test(a)?empty_title:a.replace(/-/g," ").replace(/(^\s+|\s+$)/g,""),a=b+a+"</a>")}return a}
});
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx January 7th 2015, 1:25 pm

worked
by the way its working on firefox only Safari not working
topic is end
Smile
thanks for the help @Ange Tuteur
Michael_vx
Michael_vx
Forumember

Male Posts : 659
Reputation : 29
Language : Arabic and some English
Location : Egypt

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Ramdaman January 7th 2015, 1:28 pm

Topic solved and archived.
Ramdaman
Ramdaman
Active Poster

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

http://ndihme.forumotion.com/forum

Back to top Go down

Back to top

- Similar topics

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