By Justin Throngard on Wednesday, 19 February 2014
Posted in Technical Issues
Replies 9
Likes 0
Views 1.3K
Votes 0
Got another one for you guys. I am trying to open a link in Easyblog that will open an article in a rokbox or JCEmediabox popup. I've set up the links as I'm supposed in the documentation but when you click the link the popup opens briefly and then disappears and the browser directs to the article as if it was a normal link. This only happens in Easyblog content area. See here:
http://www.gll-getalife.com/entry/how-to-stop-smoking-forever-in-6-days

Click the Get Chantix link is where the problem is. But the same link code exists above that in the Disclaimer module (below header - has two links) and that works fine. Is there some conflict with Javascript?
Looking at the source of the page, it looks like the link is appearing as a normal hyperlink


<a target="_blank" rel="nofollow" href="http://www.gll-getalife.com/component/content/article?id=1110" type="text/html" title="Chantix" class="jcepopup noicon" ondragstart="return false;">Get Chantix</a>


How does it appear on other pages? Any page with the sample link?
·
Wednesday, 19 February 2014 02:06
·
0 Likes
·
0 Votes
·
0 Comments
·
Yeah that's the code that the JCEmediabox spits out.

If you look at the disclaimer module (right below header) the code is:
<a ondragstart="return false;" href="/index.php/medical-disclaimer?tmpl=component&type=raw" data-rokbox="">Medical Disclaimer</a>


Which is rokbox but if I replicate that within the Easyblog blog entry the result is the same as JCEmediabox. The modal popups up for a second and then disappears and you go to the article.
·
Wednesday, 19 February 2014 02:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

Can you please provide us with the Joomla back end access as well as the FTP access so that I can check on the issues on your site?
We actually need these information so that we can debug on your issues quickly.

It seems like the error message in the developer tools is flooding the console.

Thanks
·
Wednesday, 19 February 2014 04:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Sending
·
Wednesday, 19 February 2014 04:52
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

It looks like you need to use the exact codes below to have it open up in a dialog modal. This is assuming that you are referring to rokbox?


<a data-rokbox="" href="/index.php/general-disclamer?tmpl=component&type=raw" ondragstart="return false;">General Disclaimer</a>
·
Wednesday, 19 February 2014 11:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Using that code produces the exact same result. It doesn't matter whether it is JCEmediapopup or Rokbox. The results are the same. Only in Easyblog.
·
Thursday, 20 February 2014 01:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Justin,

I have tested with the same exact code that I have posted above and it works fine. See my test post here, http://www.gll-getalife.com/get-success/entry/test-blog-post-from-support
·
Thursday, 20 February 2014 22:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Well I'm not sure what the problem is but I got it figured out. Not sure if it's Joomla or what, but the url MUST have /index.php/ in front of it whether you are using mod_rewrite or not. Which is really stupid....

Thanks for the help!
·
Friday, 21 February 2014 01:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Ah, yes the SEF system plugin rewrites the URL.
·
Friday, 21 February 2014 01:21
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post