Shadowbox Media Viewer a duplicate images!

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #131386

-- url of the page with the problem -- : www.hikashop.com/support/documentation/1...ox-media-player.html
-- HikaShop version -- : Last
-- Joomla version -- : 2.5

The plugin Shadowbox Media Viewer a duplicate images.
For example on page I have 2 images of some product, but when I click on thumbnail in the bottom of Shadowbox window displays 1 of 3 :blink: , but on page uploaded only 2 images. The Shadowbox Media Viewer a duplicated first image and display second image normal.

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 12953
  • Thank you received: 1778
11 years 7 months ago #131421

Hi,
Can you give me more information about the problem that you are having through some screenshots for example ?

Please Log in or Create an account to join the conversation.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #131434

...

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #131522

Hi,

In HikaShop 2.2.2, we improved the way that these thumbnails are displayed.
If you remove your custom views, it will use the default popup system and you can, at this moment, set an option to use the "shadowbox" lib instead of "mootools" one.
The improvements that we made for HikaShop 2.2.2 will display the gallery right, without duplicating the images.

You have to create a new entry in the table hikashop_config with the namekey "image_popup_mode" and value "shadowbox".

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #131531

1) How to remove custom views of popup systems and where I need change "mootools" on "shadowbox" library?
2) I need to create a new entry in DB in hikashop_config table?

Please give me a more informations about how to fix this problem...

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #131725

Sorry, but I'm not understand you, please give me more informations (1,2,3) about how I can fix this problem?!

P.S This plugin also has a second problem, I don't know how to close links from search engines, because Shadowbox Media Viewer use attribute rel="shadowbox" and I can not write rel="nofollow" :unsure:

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #131766

Hi,

HikaShop 2.2.2 integrates a shadowbox popup generator, so you do not need anymore the plugin to make the modification.
The problem is that we integrate it but we didn't put any option (in this release) to activate it because we prefer to make a lot of tests before and be sure while releasing it. But you still can activate it manually.

Yes basically "Shadowbox media viewer" need the rel="shadowbox" to work. But I know that in the possible in the JS lib to change how shadowbox will find his "popups".
So if you want to do it, it will require some PHP/development skills in order to modify some files.
But the problem of the rel comes from "shadowbox media viewer" itself, if you want to use another popup system (with a gallery), it is possible.

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #131903

HikaShop 2.2.2 integrates a shadowbox popup generator, so you do not need anymore the plugin to make the modification.

Ок... How to switch on integrated shadowbox in HikaShop or how to fix the problem with duplicates images in Shadowbox media viewer plugin??? How to remove duplicate pictures on HikaShop product page??? :(

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #131914

Hi,

In the file "administrator/components/com_hikashop/helper/popup.php" you will find these lines:

	function image($content, $url, $id = null, $attr = '', $params = array()) {
		$html = '';
		$popupMode = 'mootools';

		switch($popupMode) {
			case 'shadowbox':
				return $this->imageShadowbox($content, $url, $id, $attr, $params);
			case 'mootools':
			default:
				return $this->imageMootools($content, $url, $id, $attr, $params);
		}
		return $html;
	}
By replacing
		$popupMode = 'mootools';
By:
		$popupMode = 'shadowbox';
You will force HikaShop to use shadowbox for the images' popups.

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #131963

I don't know why, but its not working., I also clearing the cookie, restarting localhost server and a browser etc :(

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #132069

Hi,

Do you have a view override for the "product | show_block_img" ?
Did you removed/unpublished the HikaShop-Shadowbox plugin as asked before ?

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #132087

Jerome wrote: Do you have a view override for the "product | show_block_img" ?

Yes, I have

Jerome wrote: Did you removed/unpublished the HikaShop-Shadowbox plugin as asked before ?

Yes, I replace $popupMode = 'mootools'; on $popupMode = 'shadowbox'; in "administrator/components/com_hikashop/helper/popup.php"

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #132090

Hi,

If you have an override, it is highly possible that you don't use the popup helper to creating the image popups.
So, you can modify the helper popup, if it is not used.. It is not used.

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #132092

How to fix the problem in my case?

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #132123

Hi,

By removing your override. Because with the override it can't work and it won't work.

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #132207

Jerome wrote: By removing your override. Because with the override it can't work and it won't work.


The correct code has been added to administrator/components/com_hikashop/helper/popup.php


Override is not connected...


Shadowbox Media Viewer still duplicate images :(

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #132216

Hi,

Please provide a link to one of your product page with several images (so we will be able to test it directly).

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #132223

Jerome wrote: Please provide a link to one of your product page with several images (so we will be able to test it directly).

Site is localhost now., I can send you HTML code of the product page?

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

  • Posts: 26253
  • Thank you received: 4040
  • MODERATOR
11 years 7 months ago #132283

Hi,

The main image does not use any rel="shadowbox[HikaShop]" in my official product page.
The page like that can't work and won't work. The main image HTML is not right.

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.

  • Posts: 126
  • Thank you received: 0
11 years 7 months ago #132319

Again, how to fix this problem?
I installed only HikaShop 2.2.2, Shadowbox Media Viewer 4.0 and Gavickpro template for Joomla 2.5, nothing more :dry:

Last edit: 11 years 7 months ago by neviqimka.

Please Log in or Create an account to join the conversation.

Time to create page: 0.100 seconds
Powered by Kunena Forum