- Posts: 3
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- [Solved] No images displaying on frontend
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.
[Solved] No images displaying on frontend
- coleus
-
Topic Author
- Offline
- New Member
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
- Posts: 4696
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- mariolano
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Justin Thomas
-
- Offline
- Senior Member
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
- Posts: 4696
Please do.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Justin Thomas
-
- Offline
- Senior Member
Realising that the image galleries WERE being bought in from flickr (visible in the back-end) I realised that this is a database call issue. I have played with EVERY setting imaginable within K2 and nothing shows. I have accessed my db through phpmyadmin (HeidiSQL interface) and all the values are sitting there correctly. So, I simply added the
{gallery}...{/gallery}
into the full-text of the item and....the gallery displays. The issue here is with the call to the database. Sadly I am falling short here. All my read-throughs are showing that the calls are correct. However I am noting that from the beginning of the rendering this is not showing as being called. Even though I have ALL the settings on I am NOT seeing an anchor link being rendered into my page.
My knowledge of K2 calls runs out here. Katia, I think this is the problem. Potentially a K2 issue, but one that is in your best interest to get a grip on. Your SIGPro is working fine, but the calls to the db to get the image galleries back is doing nothing. Over to you. I suspect this is going to be as simple as you providing us with a "replace this code with this code" answer then pinging your results over to the K2 dev team for 2.5.7 (I will not touch 2.5.6 with a barge-pole after it chewed up 2 of my sites and produce memory limit errors on one of the finest servers I have ever known).
Looking forward to this resolution.
Please Log in or Create an account to join the conversation.
- Justin Thomas
-
- Offline
- Senior Member
OK. I have found the culprit code, but I am now hacking to get it to work.
Go to:
components\com_k2\models\item.php --> line 391 (ish)
//Gallery
if(
($view=='item' && $item->params->get('itemImageGallery')) ||
($view=='itemlist' && ($task=='' || $task=='category') && $item->params->get('catItemImageGallery')) ||
($view=='relatedByTag')
)
{
if($item->gallery) {
if(JString::strpos($item->gallery, 'flickr.com') === false) {
$item->gallery = "{gallery}{$item->id}{/gallery}";
}
if(JFolder::exists(JPATH_SITE.DS.'media'.DS.'k2'.DS.'galleries'.DS.$item->id)){
$params->set('galleries_rootfolder', 'media/k2/galleries');
$item->text = $item->gallery;
$dispatcher->trigger ( 'onPrepareContent', array (&$item, &$params, $limitstart ) );
$item->gallery = $item->text;
}
else {
$item->gallery = null;
}
}
}
is the naughty code. I replaced the
else {
$item->gallery = null;
}
statement with
else {
$item->gallery = "{$item->gallery}";
}
and managed to see the correct
{gallery}..URL...{/gallery}
call being rendered, but the plug-in didn't want to react. When the same code was placed in the full text section of the page the plug-in was invoked.
From this we can assume the following:
The first if statement is NOT being triggered....why?
My php coding is RUBBISH :)
So, a bit closer, but I am not the person to solve this....oh how I wish I was. Somehow I feel that our best hope lies with a person FAR better than I....Katia, wake up :)
p.s. I work at GMT + 7 so I am well ahead of most people on this forum :)
Please Log in or Create an account to join the conversation.
- coleus
-
Topic Author
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- bjornd
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
- Posts: 4696
@coleus,
Did you enable SIG PRO.?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- coleus
-
Topic Author
- Offline
- New Member
- Posts: 3
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
- Posts: 4696
do you use Flickr images?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Nathan Gallahan
-
- Offline
- New Member
- Posts: 1
Please Log in or Create an account to join the conversation.
- Katia
-
- Offline
- Platinum Member
- Posts: 4696
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Justin Thomas
-
- Offline
- Senior Member
2nd item on the release notes:
We have fixed a nasty bug where Flickr galleries set via Simple Image Gallery Pro where not displaying the frontend of your site, but had no problem rendering in the backend! I know, some of you almost got insane with this stupid bug. All sorted now of course.
Haven't had time to test personally, but I can see that Katia dropped the fixes into my demo site and it has fixed the problem, so all is good.
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- [Solved] No images displaying on frontend