question

Since Opentools.de has now gone away I've created this forum to house FAQs and support for this mod in phpBB2.

Moderator: Experts

Locked
cry8wolf9
Posts: 3
Joined: Sun Aug 05, 2007 9:36 pm

question

Post 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
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: question

Post by DavidIQ »

This is absolutely possible. You'll need to manipulate viewtopic_attach_body.tpl under the img section.
cry8wolf9
Posts: 3
Joined: Sun Aug 05, 2007 9:36 pm

Re: question

Post by cry8wolf9 »

lol any idea how?
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: question

Post 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.
cry8wolf9
Posts: 3
Joined: Sun Aug 05, 2007 9:36 pm

Re: question

Post 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
Attachments
wanted.jpg
johnny_angel
Posts: 11
Joined: Fri Aug 31, 2007 6:19 am

Re: question

Post 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.
DavidIQ
Site Admin
Posts: 619
Joined: Thu Sep 07, 2006 4:31 pm
Location: Earth
Contact:

Re: question

Post 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.
Locked