FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Forcing linked and uploaded pics into an IFRAME
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Forcing linked and uploaded pics into an IFRAME [message #32667] Thu, 13 July 2006 14:50 Go to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member

Hello,

I was wondering if it's possible to make images uploaded or linked to display in an IFRAME of the size of the pic itself or say 800x800 pix sized or whichever is smaller?

I'm asking because people link up these huge pics and force everyone to scroll to read anything. Having a fixed IFRAME size for all linked or uploaded pics would be 2nd best, but then all pictures would be forever trapped inside a relatively larger IFRAME and away from corresponding text or other pics.

Thanks for any help you might give in this matter!
Re: Forcing linked and uploaded pics into an IFRAME [message #32668 is a reply to message #32667] Thu, 13 July 2006 14:52 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Rather then an iframe you can try using CSS to put images into a div with max dimensions causing it to scroll. You'd need to edit postproc.inc.t for that.

FUDforum Core Developer
Re: Forcing linked and uploaded pics into an IFRAME [message #32669 is a reply to message #32668] Thu, 13 July 2006 14:59 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member

Hi Ilia,

thanks for your quick reply. I'm a total newb to CSS. I couldn't find postproc.inc.t in the theme editor or the file manager. Where is that guy? Smile
Re: Forcing linked and uploaded pics into an IFRAME [message #32670 is a reply to message #32669] Thu, 13 July 2006 15:07 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
This is actually a PHP script file which contains the code responsible for generating image tags inside messages. The style sheet is called forum.css.tmpl, but before you tweak the style you'd need to adjust the generated image tag to support css size container.

FUDforum Core Developer
Re: Forcing linked and uploaded pics into an IFRAME [message #32671 is a reply to message #32670] Thu, 13 July 2006 15:29 Go to previous messageGo to next message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member

OK, I found forum.css.tmpl but where do I adjust the generated image tag? Is that within the forum.css.tmpl, another tmpl (can't find it) or somewhere else?
Re: Forcing linked and uploaded pics into an IFRAME [message #32687 is a reply to message #32671] Fri, 14 July 2006 19:22 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You'd need to create a new tag and make the forum generated <img src> tags indicate that style via a class attribute.

FUDforum Core Developer
Re: Forcing linked and uploaded pics into an IFRAME [message #32690 is a reply to message #32667] Fri, 14 July 2006 20:08 Go to previous message
dfgngirl is currently offline  dfgngirl   United States
Messages: 87
Registered: December 2005
Karma: 0
Member

Looks like beyond the scope of my knowledge to do that. Thanks for your replies anyway.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: IE-only attachment download problems
Next Topic: Regex to URL rewrite.
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 05:10:51 GMT 2024

Total time taken to generate the page: 0.02079 seconds