Ajax Scroller and Twitter link on other modules

11 years 3 weeks ago #7194 by lupo_75
Hi all,
I'm using Ajax Scroller on my website www.marsicacalcio5.it/joomla_test to display twitters came from a user.
Sometimes happen that, expecialy if twitters contain a link created with Share This service or similar, the link affects also other modules such as images on the scroller and first item (see image below); they get this link and if I click on it I will be redirect to the page mentioned on the twit and not on the real page in the website.


Below the module configuration:


How can I solve this problem?
Is there any way to "block" the link inside the Ajax Scroller module?
Thanks

Luca

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

11 years 3 weeks ago #7196 by Saka
Sorry, I don't understand. Send me a mail with the exact issue replicated so I can see. Saying "sometimes something happens" doesn't help at all.

Emir Sakic
www.sakic.net

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

11 years 3 weeks ago #7198 by lupo_75
Saka,
thanks for your answer...
It's not so simple explain what happen... Anyway I'll try to be more clear!
I've published the Ajax Scroller on top of my site that catch Twitters from a specific user. Now if the twitters contain a link created with any kind of service called "URL Shortening" (such as Share This for example) this link will be applied also at the images in the scroller below Ajax Scroller (that normally are linked to the "Next match" and "Standing" of the league) and in the first item of the news section (in picture you can see first item in red - -normally is black -  and the link at the bottom shows that the link associated is an url shortening)
This doesn't happen if the first Twitter loaded doesn't contain any url shotening.
I know is difficult to explain, and is quite impossible to relicate everytime (I should twit with url shortening on the official page... and is not possible for me!). For this reason I say "sometimes something..." :-)
Anyway the situation has shown in figure I posted.... The link associated on the two red circle is the same as the first Twitter fom Divisione Calcio a 5 (you can see the link on the bottom of page).
If you need the image bigger, let me know.
Regards

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

11 years 3 weeks ago #7200 by Saka
It sounds like a CSS issue, that the a tag is so big that it goes beyond the borders of module position. You can debug such issues in Firebug.

Emir Sakic
www.sakic.net

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

11 years 3 weeks ago #7201 by lupo_75
Problem is now present...
What should I check with Firebug (even if I use Chrome)?
What I see using CHrome COnsolle is that the link inside the twitter is propagated on the position below but I don't understand what I have to check (it seems that every blank space or text not linked, get the link present in twitter module!)

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

10 years 11 months ago #7226 by lupo_75
Ok Saka... seems to be, with help of one of my colleagues, we found somethig of interesting...
Problem appear everytime that the browser (every browser) try to "understand" the tag associated the link fomatted not as usual.
To explain I report what is the code that the browser receives from the module, after it get the twett and format it:

"<div id="m1463">
<a href="Invalid consumer key/secret in configuration" title="DivCalcio5" target="_blank">
<img width="40" src=" pbs.twimg.com/profile_images/1139611412/...ne-C5-New_normal.jpg "  hspace="2" align="left" alt="DivCalcio5" />
</a>
<a href=" twitter.com/DivCalcio5 " target="_blank" class="user_screen_name">DivCalcio5</a>
: RT @DelegC5Sardegna: Il mondo del calcio a 5 sardo raccoglie fondi per le vittime dellâ??alluvione
<a href=" t.co/4fM3UK1tCo " target="_blank"/>
</div>

As you can see last link (in bold before div closure) seems to be formatted in a different way of the other (tag is not formally close even if there is a / at the end) and we suppose that this kind of code doesn't "like" to the browser (or to the templates I have tested - more than one).
Is there any possibility to format the code as the standard a tag (closing it with </a>)? Or is this an Api twitter issue?
Thank for your help.

Luca

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

About us

We provide high quality Joomla components created by a co-founder and original core developer of Joomla. For over a decade, our products have been used by more than 20.000 webmasters around the world.

Stay in touch