Page 1 of 1

question

Posted: Sun Aug 05, 2007 9:42 pm
by cry8wolf9
ok i was wondering if it was possible to show the images side by side then if the templates about to break it goes to another line

but then when an image is clicked it opens a bigger picture(the actual size of the picture) in a new window mabe somehow using the target_blank or somethign equivlent

hope this is possible cause my forum is gonna be mostly image heavy

Re: question

Posted: Tue Aug 07, 2007 7:33 am
by DavidIQ
This is absolutely possible. You'll need to manipulate viewtopic_attach_body.tpl under the img section.

Re: question

Posted: Thu Aug 09, 2007 7:21 am
by cry8wolf9
lol any idea how?

Re: question

Posted: Thu Aug 09, 2007 10:05 am
by DavidIQ
You'll need someone to do this for you. You'll basically need to replace the contents of the img section with divs instead of tr tds. Try looking at the NoseBleed template files that are here.

Re: question

Posted: Tue Aug 28, 2007 1:09 am
by cry8wolf9
ok i was thinking and im trying to get it like this now[refer to attachment] this way itll be better on my bandwidth

i tryed to do it my self but broke the template horribly lol

also is there a mod for batch uploading files like allowing the user to upload more than one file at a time

Re: question

Posted: Fri Aug 31, 2007 6:27 am
by johnny_angel
you can use float: left, its css

just do a search

OR:
My suggestion would be to use ezportal's portal_body.tpl as an example

Like stated above, using td's

search for ezportal, download, and look at the tpl file mentioned above.


You will see the first line is tha "main" table

it isnt closed until the end of the file

in between you will see td's and widths

those also arent closed until all content is coded in, than an ending

Code: Select all

</td>
Float left will give you the "break" that you want, but if all images arent the same height, it can look funky

there may be a way around that though.

Re: question

Posted: Fri Aug 31, 2007 7:28 am
by DavidIQ
The problem with what you're proposing is that for each attachment the viewtopic_attachments_body.tpl file is called separately so it would be pretty hard to get it to do what you're proposing. I would maybe try mimiking what phpBB3 does and SORT OF do what you're looking for. So you would end up with something like:
File Link
File Description

and repeat for each subsequent file.