[serendipity_event_imageselectorplus] wrong link for thumb

Creating and modifying plugins.
Post Reply
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

[serendipity_event_imageselectorplus] wrong link for thumb

Post by bernd_d »

It seems, that serendipity_event_imageselectorplus produces wrong code for frontend...

If i use the gallery-ability, i get following code in html

Code: Select all

<img width="100" height="150" src="//uploads/Urlaub/2012-06-Kroatien/DSC_6593.serendipityThumb.JPG">
and thumbnail isn't shown.

If i remove one of the slashes within chrome-inspector

Code: Select all

<img width="100" height="150" src="/uploads/Urlaub/2012-06-Kroatien/DSC_6593.serendipityThumb.JPG">
the thumbnail is shown.

Don't know when this problem occured first time, but with version 0.31 it happens.
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: [serendipity_event_imageselectorplus] wrong link for thu

Post by bernd_d »

If someone is searching for this problem...

I had to remove the slash in file /plugins/serendipity_event_imageselectorplus/plugin_mediainsert.tpl from line 9 between {$serendipityHTTPPath} and uploads/

Code: Select all

<img width="{$medium.thumbwidth}" height="{$medium.thumbheight}"  src="{$serendipityHTTPPath}uploads/{$medium.path}{$medium.name}.{$medium.thumbnail_name}.{$medium.extension}" />
For me it seems to work again now.
Post Reply