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
question
Moderator: Experts
Re: question
This is absolutely possible. You'll need to manipulate viewtopic_attach_body.tpl under the img section.
Re: question
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
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
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
-
- Posts: 11
- Joined: Fri Aug 31, 2007 6:19 am
Re: question
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
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.
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>
there may be a way around that though.
Re: question
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.
File Link
File Description
and repeat for each subsequent file.