[SOLVED] Thumbnail plugin doesn't work /w Connectivity

Grumpster 23 Apr, 2010
Hi all,

I've created a Joomla page using ChronoConnectivity that displays data records.

Each record has up to 3 images, and the HTML img tag code behind the scenes limits the dimensions of the images to 50px by 50px via the HEIGHT= and WIDTH= attributes regardless of the original image's size.

The beauty of this is that I have installed the wonderfully simple Mavik Thumbnails plugin which identifies images with HEIGHT and WIDTH attributes that are smaller than the original. When it finds such an image, it generates a thumbnail and a link to the larger original. When the image is clicked, a lovely lightbox overlay effect displays the original image.

This works fabulously well in regular Joomla articles. Unfortunately, it doesn't work at all on the pages generated by my ChronoConnectivity connection page.

QUESTION: Is there some way I can make the Mavik Thumbnails plugin work on the Connectivity connection-generated pages? I've tried to suss it out myself by looking at the php files in the plugin, but I'm afraid I'm in over my head at this point ... I just don't have the Joomla / PHP chops to figure this out.

All suggestions gratefully accepted.
GreyHead 23 Apr, 2010
Hi grumpster,

Can you provide a link to a broken page?? At present to try to answer this requires downloading and installing the plugin, creating a ChronoConnection and then trying to debug. It's not going to happen in a hurry.

My guess is that there is a JavaScript conflict but I've no idea what it is.

The ChronoForms image resizer will produce thumbnails for you from uploaded images and it's fairly simple to link those to your choice of lightbox in ChronoConnectivity.

Bob
Grumpster 23 Apr, 2010
Greyhead,

Thanks for taking the time to help on this.

I'll see if I can find any Javascript issues and I'll try the image resizer plugin.

If neither of those approaches bear fruit, I'll have to send you the link privately as the page is for Admins only. Do you prefer messages via the forum's PM system or emails via the forum's "Send Email" system?
Grumpster 23 Apr, 2010
Aha!

Your comment about Javascript has revealed a clue.

On every regular Joomla article page, this Javascript call is at the top of the page between the <head> tags:

<script type="text/javascript" src="http://[domain]/plugins/content/mavikthumbnails/slimbox/js/slimbox.js"></script>


It is absent from the ChronoConnectivity connection page.

I tried putting that call in the Connections "Header" box under Connection View Settings, but it had no effect.

Any suggestions on how I can get that line back into the head section of the HTML?
Grumpster 23 Apr, 2010
Greyhead,

One down, unknown number more ...

I got the slimbox.js script call back into the head section of the HTML using the code you suggested in this thread:

<?php
if (!$mainframe->isSite()) {return;}
$doc =& JFactory::getDocument();
$doc->addScript(JURI::base().'slimbox.js');
?>


I put that code into the connection page's "Header" textarea box.

So, that's now there, but Mavik Thumbnails is still not working.

I'll keep searching for clues ...

Come, Watson! To the bat cave! (wait ... that's not right, is it?😉)
Grumpster 23 Apr, 2010
Solved the problem by flanking it rather than a head-on approach.

Seeing as I can't make Mavik Thumbnails "see" the connections page like an article, I just spoofed Mavik into thinking it was an article.

I did this with the Plugin Include Component.

Basically, the plugin allows you to include a component page (like my ChronoConnectivity connection page) inside a regular article page. It's sort of like the loadmodule plugin, but for components.

All I had to do was create a new article and plop the link code from the connections manager in between the special component tags, like this:

{component}index.php?option=com_chronoconnectivity&connectionname=products{/component}


Now Mavik Thumbnails works on the images being displayed on my connections page output.

:)

And there was much rejoicing! Yay!
GreyHead 23 Apr, 2010
Hi Grumpster,

I did download it but never go near to installing.

Well done for finding the work-around.

Bob

PS There is an 'Enable Mambots' switch in the CC setup that might work with Mavik???
Grumpster 23 Apr, 2010
I tried the "Enable Mambots" option, but it had no effect, at least with Mavik Thumbnails.😟
Lord Meshadieme 18 Sep, 2010
Thank you Grumpster, your find has probably solved a ton of problems, this will not only help in including plugins in chronoform AND chronoconnectivity (like the easyflash plugin in my case) but also include chronocomments within those respective articles which was previously not possible. excellent find mate. I request that a topic for this be made sticky'd. or atleast mentioned in the documents somewhere.
Sten 18 May, 2011
Hi everybody !

I'm new on this forum and I apologize for voccabulary.

I've been reading this post with a lot of interest. But I bug on using a plugin in CC.
- Using CC as component in an article with Plugin Include Component: OK
- Refresh (search field) in article redirect on '/index.php?option=com_chronoconnectivity&connectionname=...' and then plugin doesn't work...

I'm looking for a solution to use plugin in CC. That'll be wonderfull for me.

Thanks in advance !
GreyHead 18 May, 2011
Hi Sten,

There is no plug-in for ChronoConnectivity (there is one for ChronoForms). Mostly ChronoConnectivity pages are used in 'stand-alone' form. It may be possible to show a CC listing in an article using general purpose 'wrapper' plug-in though.

Bob
Sten 18 May, 2011
Hi Bob,

Thanks for answering so quick.
I'm very sad 😢 .

I'm looking to do another way.

I will pass.

Bye
This topic is locked and no more replies can be posted.