- Posts: 220
- Thank you received: 8
Shadowbox not showing image title
-- Joomla version -- : 2.5.27
-- PHP version -- : 5.4.33
-- Browser(s) name and version -- : Firefox 32.0.3
Hi,
Some days ago I migrated from Joomla 1.5 to Joomla 2.5 and upgraded Hikashop Business from 2.3.0 to 2.3.3.
The Image popup mode is shadowbox (embedded).
The problem was that the product image titles are not displayed in the popup anymore. Searching for a way to repair this I found out 2 things.
1. The shadowbox integration has changed. Before it was the Shadowbox plugin, now it's shadowbox.js
Up till now I didnot realize that and I still use the Shadowbox plugin.
I switched to shadowbox.js, but still the image titles don't show. The plus of shadowbox.js is that the first image stops showing twice.
2. After installing the old override hikashop_image.php in the template/html map the images titles are displayed again!
Alas the first image is loaded twice again.
My question: is there a way to get shadowbox.js to show the image titles in the popup?
If that's not possible I prefer using the old override.
Regards,
Udo
Please Log in or Create an account to join the conversation.
We put the title on the image but we do not put the title on the link.
You can override the view "product | show_block_img" and replace
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
The override also works when using the shadowbox plugin in stead of shadowbox.js.
regards,
Udo
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Like I wrote, in the view "product | show_block_img".You can override the view "product | show_block_img" and replace
www.hikashop.com/support/documentation/1...ize-the-display.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
$attr = '';
if (!empty ($this->element->images) && count($this->element->images) > 1) {
$attr = 'onclick="return window.localPage.openImage(\'hikashop_main_image'.$variant_name.'\');"';
}
In the CSS
Please Log in or Create an account to join the conversation.
if (!empty ($this->element->images) && count($this->element->images) > 1) {
$firstThunb = true;
foreach ($this->element->images as $image) {
if($this->image->override) {
echo $this->image->display($image->file_path, 'hikashop_main_image'.$variant_name, $image->file_name, 'class="hikashop_child_image"','', $width, $height);
}
Please Log in or Create an account to join the conversation.
Yes, the code changed since then.
Actually, if you look at the sho_block_img file via the menu Display>Views, you'll see this:
take.ms/qCdsF
So as you can see the title is now added automatically. So these modifications should not be necessary.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please backup and remove the override of the view "product / show_block_img" via the menu Display > Views.
I think that you have overrides on that view so you don't have the latest version.
Do you have the latest version of HikaShop ?
ps: the domain name has expired.
Please Log in or Create an account to join the conversation.
I now have 2.5.
I always have issues with .me sites
For whatever reason, they don't automatically renew according to the settings. The host has to manually do it So what do I try now?
Please Log in or Create an account to join the conversation.
For the registration of your website with your subscription, you have to do that in the "my subscription" page.
www.hikashop.com/my-account/your-subscriptions.html
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The patch explained in the previous post is the current working solution.
www.hikashop.com/forum/integrations/8721...ge-title.html#174828
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
As I said in my previous message here www.hikashop.com/forum/integrations/8721...ge-title.html#205052 , there is no need to change any code. The title is displayed by shadowbox automatically with the latest versions of HikaShop, as long as you specify it in your images.
I've just tried on my end and it works just fine.
If you sitll have the issue, it means that you have a template override on the show_block_img file.
Rename the file templates/YOUR_TEMPLATE/html/com_hikashop/product/show_block_img.php to something else via FTP and that will solve the problem.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
I have the latest version of Hikashop Business and no override on the show_block_img. The image title is only displayed in image pop up mode shadow box, but not in mode mootools. Is there any way to show title in mootools mode as well?
Please Log in or Create an account to join the conversation.
The "Squeezebox" (mootools) library provided by Joomla does not allow to display title.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.