Product Thumbnail Image Not Expanding Consistantly

  • Posts: 3
  • Thank you received: 0
13 years 4 months ago #19919

The code to be pasted didn't seem to show, may be it has to be screened first(?), here it is in plain text:

*********************************************
<? Php
hikashop_image_link_render function (& $ obj, $ path, $ addPopUp, optionslink $, $ html) {
return '<a rel="rokbox (Album)" title ="'.$ alt. "Target =" _blank "href ="'.$ obj-> uploadFolder_url. $ Path." Onclick = "SqueezeBox. fromElement (this, {parse: \ "rel \ '}) return false;"'. optionslink .'>'.$ $ html. '</ a>';
}

hikashop_small_image_link_render function (& $ obj, $ path, $ addPopUp, optionslink $, $ html) {
return '<a class="hikashop_image_small_link" rel="rokbox (Album)" title ="'.$ alt. "Href ="'.$ obj-> uploadFolder_url. $ Path." Onclick = "SqueezeBox.fromElement (this, { parse: \ "rel \ '}) return false;
"Target =" _blank "onmouseover =" return hikashopChangeImage (\''. $ AddPopUp. '\', \''. $ Obj-> uploadFolder_url_thumb. '\', \''. $ Obj-> thumbnail_x. '\' , \''. $ obj-> thumbnail_y. '\', this); "'. optionslink .'>'.$ $ html.' </ a> ';
}

*********************************************

Tom

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 4 months ago #19922

The code tag of the forum don't accept a mix of PHP and HTML and the <?php is considered as HTML. I've removed the code tags on your previous message.

Thank you for your clear explanation. It might be a good idea to add that somewhere in the documentation directly. We'll look at doing that.

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

  • Posts: 3
  • Thank you received: 0
13 years 4 months ago #19933

OK Thanks.

The fix is still working, but I did notice that FireBug is giving the following error on every load/display of a large picture:

missing ] in index expression
[Break On This Error] (rokbox[720 480](album))
mootools-core.js (line 1)

It doesn't seem to matter, I guess the Firefox Browser is correcting the syntax?

But its a bit messy ignoring it?

No doubt there will be proper fixes quite soon, with Joomla! 1.7, etc, in August.

Tom

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 4 months ago #19938

It might be a javascript conflict between the javascript code of rokbox and the code of the mootools library of joomla. That's a common problem with joomla websites. There is nothing we can do on our end :/
If it works like that, then you can ignore it...

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

  • Posts: 26
  • Thank you received: 0
13 years 4 months ago #19998

Tried it, Now my site is blowing up.

following message.

Parse error: syntax error, unexpected T_STRING in /home7/innovbn8/public_html/templates/beez5/html/hikashop_image.php on line 2

Going back to prior config.

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 4 months ago #20007

You should use the file in the last archive I posted which shouldn't have the problem.

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

  • Posts: 26
  • Thank you received: 0
13 years 4 months ago #20017

Agreed, that's the one I went back to.

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

  • Posts: 164
  • Thank you received: 0
13 years 4 months ago #20971

I feel like I'm really close and would like to fix this issue, however I'm having trouble getting started.

The line above says "Open the hikashop_image-20110620.zip archive and extract the hikashop_image.php file." But I'm not sure where to get this file in order to solve this problem.

Is this downloaded via FTP from my Hika Shop Installation?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
13 years 4 months ago #20990

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

  • Posts: 26
  • Thank you received: 0
13 years 4 months ago #21037

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

  • Posts: 473
  • Thank you received: 30
  • Hikashop Business
12 years 5 months ago #52040

Need title in the modal box? You need to add $alt after $html

<?php
function hikashop_image_link_render(& $obj, $path, $addPopUp, $optionslink, $html, $alt) {
return '<a rel="rokbox (Album)" title="'.$alt. '" target="_blank" href="'.$obj->uploadFolder_url. $path.'" onclick="SqueezeBox.fromElement(this, {parse: \'rel\'}) return false;"'. $optionslink .'>'.$html. '</a>';
}

function hikashop_small_image_link_render(& $obj, $path, $addPopUp, $optionslink, $html, $alt) {
return '<a class="hikashop_image_small_link" rel="rokbox (Album)" title="'.$alt. '" href="'.$obj->uploadFolder_url. $path.'" onclick="SqueezeBox.fromElement(this, {parse: \'rel\'}) return false;" target="_blank" onmouseover="return hikashopChangeImage(\''. $addPopUp. '\', \''. $obj->uploadFolder_url_thumb. '\', \''. $obj->thumbnail_x. '\' , \''. $obj->thumbnail_y. '\', this); "'. $optionslink .'>'. $html.' </a> ';
}

Last edit: 12 years 5 months ago by lesyeux.

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

  • Posts: 473
  • Thank you received: 30
  • Hikashop Business
12 years 5 months ago #52041

Problems with images sizes in the modal box? Use "auto" in the rokbox rel part: rel="rokbox[auto auto] (Album)"

<?php
function hikashop_image_link_render(& $obj, $path, $addPopUp, $optionslink, $html, $alt) {
return '<a rel="rokbox[auto auto] (Album)" title="'.$alt. '" target="_blank" href="'.$obj->uploadFolder_url. $path.'" onclick="SqueezeBox.fromElement(this, {parse: \'rel\'}) return false;"'. $optionslink .'>'.$html. '</a>';
}

function hikashop_small_image_link_render(& $obj, $path, $addPopUp, $optionslink, $html, $alt) {
return '<a class="hikashop_image_small_link" rel="rokbox[auto auto] (Album)" title="'.$alt. '" href="'.$obj->uploadFolder_url. $path.'" onclick="SqueezeBox.fromElement(this, {parse: \'rel\'}) return false;" target="_blank" onmouseover="return hikashopChangeImage(\''. $addPopUp. '\', \''. $obj->uploadFolder_url_thumb. '\', \''. $obj->thumbnail_x. '\' , \''. $obj->thumbnail_y. '\', this); "'. $optionslink .'>'. $html.' </a> ';
}

Last edit: 12 years 5 months ago by lesyeux.
The following user(s) said Thank You: nicolas

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

  • Posts: 5
  • Thank you received: 1
12 years 4 months ago #56652

Fantastic... a real lifesaver!!! :)

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

Time to create page: 0.127 seconds
Powered by Kunena Forum