Simple Machines Community Forum

Customizing SMF => Bridges and Integrations => Topic started by: elfynity on June 15, 2010, 04:42:13 AM

Title: RE: image thumbnail viewer
Post by: elfynity on June 15, 2010, 04:42:13 AM
Hello Simple MAchines! What i am trying to do is to find out where on the forum, or what package add in i would use so that images that users post are displayed at the bottom of their messages (horizontally) and not in the message itself.  I saw a screen shot of what it looks like, so i'm aware that this is possible.  Any ideas?
Title: Re: RE: image thumbnail viewer
Post by: Kill Em All on June 19, 2010, 04:17:18 PM
Sorry for the delayed response. This seems to be a common question, attach your theme's Display.template.php. There is a way how to do this, but its sadly sort of a sloppy way. I'm working on a way to help clean it up.
Title: Re: RE: image thumbnail viewer
Post by: elfynity on June 21, 2010, 04:34:14 AM
Hi there, Thanks for getting back to me; anyhow, i did actually figure it all out.  For the next person who is trying to figure this out, this is how i configured it:

I went into the display.template.php of my theme, and looked for this comment line:
// Now for the attachments, signature, ip logged, etc...

Created a new css id (or was it already there, i can't remember now)in the style.css file of my template; made that id float:left and whatever else i wanted to do with it:

#bottomimages {
float:left;
background-color:#ffffff;
width:100%;
}


and then put the id into the attachment table:

// Now for the attachments, signature, ip logged, etc...
echo '
<tr>
<td class="grey" valign="bottom">

<table id="bottomimages">
<tr class="smalltext2" border="0">


<td style="width:100%">';


All very easy once you know where the coding for the attachments is.

Really glad, cos now my uploaded thumbnails float left in their own separate colour box, and takes up alot less space than being underneath each other.
Title: Re: RE: image thumbnail viewer
Post by: Kill Em All on June 21, 2010, 03:55:00 PM
Yes, I agree, it does look a lot nicer. Thank you very much for posting your solution.

I am going to mark the topic solved, please feel free to unmark it solved if you have further questions. :)