Problème avec Jlike

More
10 years 1 month ago #46272 by baloudalex
Bonjour,
J'utilise joomla 2.5.17, avec jomsocial et flexicontent.
Je viens d'installer le composant jlike, de techjoomla, qui place un bouton "like" dans mes articles. Quand on clique dessus, le composant copie le titre de l'article sur le mur de jomsocial.
Le problème, c'est que le titre se copie mal.
Mes accents sont remplacés par des codes bizarres, par exemple pour le é : u00e9

Pensez-vous que ce problème de caractères vient de flexicontent (qui le donne pas le titre de l'article à Jlike dans le bon format de caractères) ou de jomsocial (qui du coup copie le titre dans le mauvais format).
Comment puis-je résoudre ce problème ?
Merci.

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

More
10 years 1 month ago #46274 by micker
Replied by micker on topic Problème avec Jlike
pourquoi ne pas utiliser la toolbar de flexicontent ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
10 years 4 weeks ago #46341 by baloudalex
Replied by baloudalex on topic Problème avec Jlike
Oui, ce serait très bien d'afficher mon bouton jlike dans la toolbar de flexi.
J'ai bien affiché la toolbar, mais comment fais-tu pour afficher le bouton du plugin Jlike à cet endroit ?

J'ai trouvé le code qu'il faudrait insérer, mais je n'arrive pas à l'insérer correctement :

Developers who wish to integrate jLike in their own extensions can do so in a very easy way. The following integration guide will help you add jLike (not JomLike) to other extensions in as little as 5 lines of code :) . Depending on your situation you might want to use this code either in the core extension views, in a template override or a content or extension specific plugin.

Get the data needed

Complete URL of resource
Unique Content id : for instance in case of a Joomla article, it should be the id of the article
Element : This is the type of content. You can set this any way you want, but we recommend com_component.view.layout . For a Joomla article, it would be com_content.article & for a category it would be com_content.category
Title : The title of the element that will be stored in the database
Use Set Var to Pass the data to jLike

Code:
JRequest::setVar ( 'data', json_encode ( array ('cont_id' => $cont_id, 'element' => $element, 'title' => $article->title, 'url' => $route ) ) ); Use Set Var to pass the data to jLike.

Show the Like Button :
Code:
//Require the jlike helper require_once(JPATH_SITE.'/'.'components/com_jlike/helper.php'); $jlikehelperObj=new comjlikeHelper(); $likehtml = $jlikehelperObj->showlike(); //return or echo the html depending on where you are using it return $likehtml;


J'ai trouvé cela sur le support de Techjoomla.
Comment faire pour bien insérer ce code dans le plugin de la toolbar de Flexicontent ?

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

More
10 years 3 weeks ago #46350 by ggppdk
Replied by ggppdk on topic Problème avec Jlike
Hello

about JLike, is it a content plugin ?
-- try this make sure that you enable "plugin triggering" in description field AND select none plugin from the list (=trigger ALL)
-- then test (... also disable addThis in FC toolbar in case it conflicts)


-- Finally note that:
the toolbar has social web-site support via intergrating with 'addthis',

please edit toolbar field configuration and test with various available apperarances, i think you can find some one that you like

also you can find on the web some other custom addthis code and use it in the toolbar ...

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

More
10 years 3 weeks ago #46390 by baloudalex
Replied by baloudalex on topic Problème avec Jlike
A priori, cette procédure ne marche pas.
J'ai deux problèmes avec jLike en fait :
- le bouton du composant ne s'affiche pas au bon endroit dans mes templates (il me le met par défaut en haut de chaque articles). Ce n'est pas trop grave, ça peut encore aller.
- Mais surtout, lorsque l'on clique sur "like", le composant prend le nom de l'article de flexicontent, et le copie sur jomsocial en mettant un message du type : (Utilisateur) aime l'article (titre de l'article).

Si le titre de l'article comporte des accents, ces derniers sont remplacés par des sigles bizarres. Par exemple, le "é" est remplacé par 00e9.
Dois-je régler quelques chose dans flexicontent pour éviter cela ?

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

More
10 years 3 weeks ago #46394 by ggppdk
Replied by ggppdk on topic Problème avec Jlike
Hello

i am not sure that i undestand you

the toolbar appearance is broken?

this maybe due to the CSS of your Joomla template,

temporarily change to a built-in Joomla template, to see if your Joomla template is effecting the toolbar appearance

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.298 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline