Support Online: Mon - Fri / 08:00am - 05:00pm (GMT +7)
Your Time: Our Time:

question-circle Limit the Facebook text display

More
5 years 3 months ago #35352 by laffite
Hello,

I would like to know if this is possible to limit the number of characters for the Facebook post display ?

Thanks,

François Laffite

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35355 by HaiND
Hi
Thank you for feedback us
in the file:...\modules\mod_jux_social_stream\assets\js\jux_social_stream_network_wall.js at line 610

z = linkify(item.content,type);
edit:
z = linkify(cut(item.content,200),type);


Hope it will help you
Thanks

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35371 by laffite
Hello,
Thanks for the answer, it worked ! But I was wondering if I can add like "..." at the end of the 200 letters ?

Another question : Can I change the text filter "ALL" to french (same for the date of the published items 5 days + 3 hours ago into french).

Thanks for your support.

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35396 by HaiND
Hi again
1: with transalte "All"
in file: ...\language\en-GB\en-GB.mod_jux_social_stream.ini at line 261 and change it
2: with translate days and hours
in file: ...\modules\mod_jux_social_stream\assets\js\jux_social_stream_network_wall.js at line 1063 and 1064 and change it
hope it will help you
Thanks

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35415 by laffite
Hey,

Thanks for this instructions.

I'm still in need of adding "..." at the end of the text of a post facebook.

Thanks

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35435 by HaiND
Hi again
if want add ... please edit it to:

z = linkify(cut(item.content,200)+'...',type);

Hope it will help you
Thanks

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35448 by laffite
Hello,

Thanks for the answer, I have a problem, I don't have a link to the facebook post...

When I click on the thumbnail I'm redirect to the picture itself, can I changed it to a link to the post itself ?

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35480 by HaiND
Hi
I'm sorry but I don't understand
where thumbnail you click?
You can describe the problem in more detail or send me one image of the problem via: prnt.sc/
I will check it for you soon

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35607 by laffite
Hello,

www.noelshack.com/2019-37-2-1568099595-s...019-9-10-accueil.png

As you see in the picture attached in the link. I have a thumbnail in top of my facebook post. When I click the picture the link is the picture link. I want to have the post link.

Here is the link of the facebook post : www.facebook.com/sdis65/posts/2260640774063564

Please Log in or Create an account to join the conversation.

More
5 years 3 months ago #35631 by HaiND
Hi again
Do you want to click the image and go to detail post?
in file ...\modules\mod_jux_social_stream\assets\js\jux_social_stream_network_wall.js at line at line 606

y = '<a onclick="myFunction_click(this)" class="jux-url" data-link="'+q+'"><img src="'+thumb+'" alt="" /></a>';

edit:

y = '<a class="jux-url" data-link="'+q+'" href="'+q+'"><img src="'+thumb+'" alt="" /></a>';

hope it will help you
Thanks

Best Regards
--HaiND--

Please Log in or Create an account to join the conversation.

Moderators: Jackie
Time to create page: 0.251 seconds
Powered by Kunena Forum