idea / wish for image-links

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

idea / wish for image-links

Post 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.
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: idea / wish for image-links

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: idea / wish for image-links

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
stm999999999
Regular
Posts: 1531
Joined: Tue Mar 07, 2006 11:25 pm
Location: Berlin, Germany
Contact:

Post by stm999999999 »

perhaps this one can be used/expanded?

http://article.gmane.org/gmane.comp.ser ... namic+link :D
Ciao, Stephan
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
konus
Regular
Posts: 334
Joined: Mon Jun 16, 2008 1:57 pm
Location: Dresden, Germany
Contact:

Re: idea / wish for image-links

Post 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.
konus
Regular
Posts: 334
Joined: Mon Jun 16, 2008 1:57 pm
Location: Dresden, Germany
Contact:

Post by konus »

I got feedback from stm999999999 today and opend up a new Feature Request on SourceForce.com
Post Reply