News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

RE: image thumbnail viewer

Started by elfynity, June 15, 2010, 04:42:13 AM

Previous topic - Next topic

elfynity

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?

Kill Em All

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.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

elfynity

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.

Kill Em All

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. :)


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Advertisement: