- Posts: 3
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- [Solved] No images displaying on frontend
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
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.
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
Less
More
12 years 8 months ago - 12 years 7 months ago #47742
by coleus
[Solved] No images displaying on frontend was created by coleus
I've installed SIGP and added the Flickr API. In K2, the gallery thumbnails only show up in administration, but not on the frontend. Please tell me how to rectify this problem.
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 8 months ago #47743
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: No images displaying on frontend
Could you provide us with a link to your gallery page please?
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
Less
More
- Posts: 1
12 years 8 months ago #47744
by mariolano
Replied by mariolano on topic Re: No images displaying on frontend
we are still waiting for the link :)
Please Log in or Create an account to join the conversation.
- Justin Thomas
- Offline
- Senior Member
12 years 8 months ago #47745
by Justin Thomas
Replied by Justin Thomas on topic Re: No images displaying on frontend
Rather than start another thread can I also pm you my details so you can check mine too. Exactly the same issue. Been puzzling me all day...not how I want to spend my birthday :'(
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 8 months ago #47746
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: No images displaying on frontend
@draftvader,
Please do.
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
12 years 8 months ago #47747
by Justin Thomas
Replied by Justin Thomas on topic Re: No images displaying on frontend
I have sent my details to Katia. However, I would imagine that due to the amount of people suffering this issue, she has not got back to me yet. I have decided to "hack" around this issue to see where the problem lies.
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
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.
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
12 years 8 months ago #47748
by Justin Thomas
Replied by Justin Thomas on topic Re: No images displaying on frontend
I am hacking away. Could somebody else PLEASE join me :)
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)
is the naughty code. I replaced the
statement with
and managed to see the correct
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 :)
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
Less
More
- Posts: 3
12 years 8 months ago #47749
by coleus
Replied by coleus on topic Re: No images displaying on frontend
Please Log in or Create an account to join the conversation.
- bjornd
- Offline
- New Member
Less
More
- Posts: 1
12 years 8 months ago #47750
by bjornd
Replied by bjornd on topic Re: No images displaying on frontend
Did anyone come up with a solution to this problem? I also suffer from it. In every other aspect, thanks for a great product.
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 8 months ago #47751
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: No images displaying on frontend
We are still checking it.
@coleus,
Did you enable SIG PRO.?
@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.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- [Solved] No images displaying on frontend