Page 1 of 1

idea / wish for image-links

Posted: Sat Jul 28, 2007 2:26 pm
by stm999999999
we have clear, nice structures with textile, bbcode or even nl2br, there is no need to use a wysiwyg-editor.

every one can write and READ and imagine things like

Code: Select all

h4. blala

and now a [color=red]listint[/color]

# item 1
** subitem 1.1
# item 2

...


But then, we have monsters! Monsters like

Code: Select all

<div class="serendipity_imageComment_left" style="width: 130px"><div class="serendipity_imageComment_img"><a class='serendipity_image_link' href='/uploads/Artikel/Gemeinde/Kirche/aussen/IMG_4421test.JPG'><!-- s9ymdb:237 --><img width='130' height='98'  src="/uploads/Artikel/Gemeinde/Kirche/aussen/IMG_4421test.serendipityThumb.JPG" alt="" /></a></div><div class="serendipity_imageComment_txt">test</div></div>
This makes everything crappy and unreadable in the editor field. Even if you use more than one image side by side :cry:

Would it be possible to add an option to the media-library to make code like this

<s9y_image_with_text id=237 side=left text=test />
<s9y_image_no_text id=237 side=right />


which is transcribed on the fly to the normal html when viewing the article?

I know, this would cause an sql-query for each image on every article-view (to get image-name/url and size, but I think this would be worth for this effort.

Re: idea / wish for image-links

Posted: Sat Jul 28, 2007 3:08 pm
by garvinhicking
Hi!

Yeah, such a syntax has always been on our todolist. For 4 years, now. I'm afraid it might take some longer, because it's some overhead, and it needs to be inserted only as an alternative. By default it should still contain the old HTML code for better compatibility and no impacts on performance.

Best regards,
Garvin

Re: idea / wish for image-links

Posted: Sat Aug 04, 2007 3:47 pm
by garvinhicking
Hi!

Maybe you can check if you find this feature request on the tracker of www.sf.net/projects/php-blog - and if not, add it there?

Regards,
Garvin

Posted: Sat Aug 04, 2007 4:33 pm
by stm999999999
perhaps this one can be used/expanded?

http://article.gmane.org/gmane.comp.ser ... namic+link :D

Posted: Sat Aug 04, 2007 4:45 pm
by garvinhicking
Hi!

Yes, it could. If the code were still there. It got lost in a HDD crash of mine, which is the reason I'm so little motivated to do all the work that I've done already :-D

Best regards,
Garvin

Re: idea / wish for image-links

Posted: Thu Jun 26, 2008 11:15 am
by konus
garvinhicking wrote:Maybe you can check if you find this feature request on the tracker of www.sf.net/projects/php-blog - and if not, add it there?
@stm999999999: did you make the feature request as suggested? I could not find it.

Note: I today wrote a similar request in german and was pointed at this post afterwards.

Posted: Mon Jun 30, 2008 12:31 am
by konus
I got feedback from stm999999999 today and opend up a new Feature Request on SourceForce.com