Gossamer Forum
Home : Products : Gossamer Forum : Pre Sales :

Re: [Alex] Inline Image Attachments

Quote Reply
Re: [Alex] Inline Image Attachments In reply to
Could you elaborate on how to do this?

I see that this is the template to edit: include_post_display.html

Right at:

<%body_font%>
<a href="gforum.cgi?do=post_attachment;postatt_id=<%postatt_id%>;<%hidden_query%>">
<img src="<%GForum::Attachment::icon($postatt_content, $postatt_filename)%>" border=0>
<%postatt_filename%>
</a>
(<%GForum::Attachment::friendly_size($postatt_size)%>)
<%/body_font%>


But how do I do an <%if%> statement that checks postatt_filename to see if it contains ".gif" or ".jpg" at the end?

Thanks for your help!

Stephen




In Reply To:
Ah, so it's not really inline, it doesn't let you display the image in the middle of your post like you could do with a [image] tag, right?

This could be done in the template then, you could just do something in the attachment loop so that if it is an image, add an <img> tag to display it.

Cheers,

Alex
Subject Author Views Date
Thread Inline Image Attachments memobug 9395 Jun 12, 2002, 6:56 PM
Thread Re: [memobug] Inline Image Attachments
Alex 9169 Jun 12, 2002, 11:55 PM
Thread Re: [Alex] Inline Image Attachments
memobug 9135 Jun 13, 2002, 12:34 AM
Thread Re: [memobug] Inline Image Attachments
Alex 9129 Jun 13, 2002, 8:22 AM
Thread Re: [Alex] Inline Image Attachments
memobug 9156 Jun 13, 2002, 11:10 AM
Thread Re: [memobug] Inline Image Attachments
Alex 9134 Jun 13, 2002, 11:14 AM
Post Re: [Alex] Inline Image Attachments
memobug 9100 Jun 13, 2002, 11:27 AM
Thread Re: [Alex] Inline Image Attachments
ellipsiiis 9111 Jun 13, 2002, 11:40 AM
Post Re: [ellipsiiis] Inline Image Attachments
memobug 9065 Jun 28, 2002, 11:06 PM
Thread Re: [Alex] Inline Image Attachments
biketrials 8476 Jun 17, 2003, 7:23 PM
Thread Re: [biketrials] Inline Image Attachments
Alex 8473 Jun 18, 2003, 9:40 AM
Post Re: [Alex] Inline Image Attachments
biketrials 8471 Jun 18, 2003, 1:24 PM