In de link on top on every image gallery page, the piclens button is not showing. The picture location shows "/sites/all/modules/..."

Could this be the case when my temporary-6.2-site is actually in a subdirectory of my 5.7-site?
A.k.a. fiselier.mooo.com refers to the 5.7 site, wheras fiselier.mooo.com/drupal/ should bring you to my 6.2-site.

The thumbs are showing the correct piclens-button though...

Pls help

Greetings from F2

Comments

swentel’s picture

Hi, could you open up 'mediarssapi.inc' file and change following line

  return '<div id="piclenslite"><a href="javascript:PicLensLite.start();">'. t('Start Slideshow') .' <img src="/'. $path .'/PicLensButton.png" alt="PicLens" title="PicLens" width="16" height="12" border="0" align="absmiddle"></a></div>';

on line 81 by

  return '<div id="piclenslite"><a href="javascript:PicLensLite.start();">'. t('Start Slideshow') .' <img src="'. base_path() . $path .'/PicLensButton.png" alt="PicLens" title="PicLens" width="16" height="12" border="0" align="absmiddle"></a></div>';

Can you report back if that's working for you ?

Frank_F2’s picture

We're slightly improving...
My node shows the following after editing 'piclens.module' (trick question?), off course with "<"'s and ">"'s:

Xdiv id="piclenslite"XXa href="javascript:PicLensLite.start();">Start Slideshow Ximg src="//drupal/sites/all/modules/piclens/PicLensButton.png" alt="PicLens" title="PicLens" width="16" height="12" border="0" align="absmiddle"XX/aXX/divX

The "//drupal" should be "http://fiselier.mooo.com/drupal"

Gr, F2

swentel’s picture

Mmm just to be sure, did you remove the forward slash in the original code?
Because '/drupal/....' should be fine now, but I see 2 forward slashed instead of one.
If you did, I'll have to look try a different approach using the l() function.

swentel’s picture

I did a small test using the core theme_image function. Could you try this:

return '<div id="piclenslite"><a href="javascript:PicLensLite.start();">'. t('Start Slideshow') . theme('image', $path.'/PicLensButton.png, 'PicLens', 'PicLens', array('width' => '16', 'height' => '12',  'border' => '0',  'align' => 'absmiddle') .'</a></div>';
swentel’s picture

There is an errror in the first one, this should be better:

  return '<div id="piclenslite"><a href="javascript:PicLensLite.start();">'. t('Start Slideshow') .' '. theme('image', $path .'/PicLensButton.png', 'PicLens', 'PicLens', array('width' => '16', 'height' => '12',  'border' => '0',  'align' => 'absmiddle')) .'</a></div>';
Frank_F2’s picture

Sorry Kristof, for disturbing your nightly occupations...

I indeed forgot to remove the / in front of the base_path().
Things are working fine after that 'minor detail' removed.

Thanks for helping.

Greetings, F2

swentel’s picture

Status: Active » Closed (fixed)

Ok great! Commited to both D5 & D6 branch.
Thanks for reporting!