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.

problem with title of watched topics in notifications

View previous topic View next topic Go down

Solved problem with title of watched topics in notifications

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

http://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

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
Forumember

Male Posts : 655
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 on 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
 

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
Forumember

Posts : 180
Reputation : 3
Language : english
Location : Dorset U.K

http://newarkcapsandvideos.forumotion.co.uk/

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx on 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
Forumember

Male Posts : 655
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 on 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.

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx on 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
Forumember

Male Posts : 655
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 on 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
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx on 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
Forumember

Male Posts : 655
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 on 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
Forumaster

Male Posts : 13021
Reputation : 2681
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: problem with title of watched topics in notifications

Post by Michael_vx on 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
Forumember

Male Posts : 655
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 on January 7th 2015, 1:28 pm

Topic solved and archived.

Ramdaman
Active Poster

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

http://ndihme.forumotion.com/forum

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