serendipity_event_imageselectorplus not working?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

serendipity_event_imageselectorplus not working?

Post by bernd_d »

I have tried to insert a galery into my posting with imageselectorplus, but it doesn't work.

The code i use in my post

Code: Select all

<mediainsert>
<gallery name="Urlaub/2010-11-Bad-Wildungen/" />
<media type="gallery" />
</mediainsert>
If i save the posting, i get following message/warning

Code: Select all

Warning: SimpleXMLElement::__construct() [simplexmlelement.--construct]: Entity: line 1: parser error : Opening and ending tag mismatch: mediainsert line 1 and p in /www/htdocs/w00c40c0/serendipity/plugins/serendipity_event_imageselectorplus/serendipity_event_imageselectorplus.php on line 774
Source-Code in frontend looks good so far...

Code: Select all

  <div class="serendipity_imageComment_left" style="width: 300px;">
      <div class="serendipity_imageComment_img">
      <a class="serendipity_image_link" href="/uploads/Urlaub/2010-11-Bad-Wildungen/CIMG1716.JPG">
        <!-- s9ymdb:795 -->
        <img src="//uploads/Urlaub/2010-11-Bad-Wildungen/CIMG1716.serendipityThumb.JPG" height="199" width="300">
      </a>
      </div>
      <div class="serendipity_imageComment_txt">CIMG1716</div>

  </div>
But now, there is a problem...the preview-thumbnails are not shown...
within Firefox
within Firefox
galerie-firefox.png (6.05 KiB) Viewed 3456 times
within Internet Explorer
within Internet Explorer
galerie-ie.png (7.62 KiB) Viewed 3456 times
You can see an example-posting here.

Could it be, that the thumbnails are not shown, because there is no ending slash within the img-tag? Then, i think, it would be a bug in the plugin, right?

And yes...my english is really bad ;)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_imageselectorplus not working?

Post by Timbalu »

Hi

The parnings p tag is irritating me! Do you use nl2br with the P option?
What happens to the warning when using no newlines?

Code: Select all

<mediainsert><gallery name="Urlaub/2010-11-Bad-Wildungen/" /><media type="gallery" /></mediainsert>
Try to change plugin_mediainsert.tpl inside the Plugin and change the line with

Code: Select all

<img width="{$medium.thumbwidth}" height="{$medium.thumbheight}" src="{$serendipityHTTPPath}/uploads/{$medium.path}{$medium.name}.{$medium.thumbnail_name}.{$medium.extension}" />
to

Code: Select all

... {$serendipityHTTPPath}uploads ...
And what is the difference to serendipity_event_usergallery plugin?
serendipity_event_usergallery works.

Ian
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: serendipity_event_imageselectorplus not working?

Post by bernd_d »

Thank you for your suggestions!
The parnings p tag is irritating me! Do you use nl2br with the P option?
What happens to the warning when using no newlines?
Yes i do. I now have moved nl2br to end of plugin-list and wrote the gallery-tag into one line. The error-messages are gone :)


I have removed the slash between {$serendipityHTTPPath} and uploads/, the thumbnail is shown now :) HTML-Validator still shows a lot of errors, but i think thats another problem :oops:
Try to change plugin_mediainsert.tpl inside the Plugin and change the line
I have removed the slash between {$serendipityHTTPPath} and uploads, looks great now :)
Here is a new example-posting.
And what is the difference to serendipity_event_usergallery plugin?
As far as i can see, the usergallery-plugin makes an new static page where a visitor can browse the media-tree. With imageselectorplus i can include all pictures of a special folder into a posting, so the visitor doesn't need to go to another side if he wants to see the images relating to the posting.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_imageselectorplus not working?

Post by Timbalu »

Good news that these corrections did help you! ;-)

Ah I see, I tried the usergallery last week to have a gallery on a page, thats why I asked. I wish imageselectorplus had the pagination of usergallery... Something like a merge would be interesting..!

Ian
bernd_d
Regular
Posts: 468
Joined: Thu Jun 03, 2010 9:28 am
Contact:

Re: serendipity_event_imageselectorplus not working?

Post by bernd_d »

A lot of my html-validation-errors seems to be because of nl2br with p-option. Doesn't matter if it's the first or last plugin in the list. The errors only disappear, if i delete nl2br :(

Would be nice, if someone would have a solution for this problem too.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: serendipity_event_imageselectorplus not working?

Post by Timbalu »

bernd_d wrote:A lot of my html-validation-errors seems to be because of nl2br with p-option. Doesn't matter if it's the first or last plugin in the list. The errors only disappear, if i delete nl2br :(

Would be nice, if someone would have a solution for this problem too.
Yes, I know about these Problems.
If your connoting name is supporting a native German language as background ;-) have a deep look into this thread
http://board.s9y.org/viewtopic.php?f=10 ... #p10421423
Maybe your are the tester I am waiting for.... But I was focused to nl2br...

Ian
Post Reply