phpBB2Refugees.com Logo
Not affiliated with or endorsed by the phpBB Group

Register •  Login 

Continue the legacy...

Welcome to all phpBB2 Refugees!Wave Smilie

This site is intended to continue support for the legacy 2.x line of the phpBB2 bulletin board package. If you are a fan of phpBB2, please, by all means register, post, and help us out by offering your suggestions. We are primarily a community and support network. Our secondary goal is to provide a phpBB2 MOD Author and Styles area.

Problem with Easy Resized Posted Images MOD


 
Search this topic... | Search General Support... | Search Box
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Author Message
Slackervaara
Board Member



Joined: 01 Jan 2009

Posts: 70



PostPosted: Wed Mar 25, 2009 5:56 pm 
Post subject: Problem with Easy Resized Posted Images MOD

This javascript MOD for viewtopic_body.tpl works very well, but if the forum is embedded in an html-page with a 800 px-image at the top of the page this image not situated directly in the forum is also resized and diminished, but only when viewtopic is used. Is it possible to disable javascript for just this large image in the html-code?
Back to top
lumpy burgertushie
Board Member



Joined: 19 Nov 2008

Posts: 224


flag
PostPosted: Thu Mar 26, 2009 5:22 pm 
Post subject: Re: Problem with Easy Resized Posted Images MOD

what do you mean it is "embedded" in a html page?

are you using a iframe or something?


robert
Back to top
Slackervaara
Board Member



Joined: 01 Jan 2009

Posts: 70



PostPosted: Thu Mar 26, 2009 5:32 pm 
Post subject: Re: Problem with Easy Resized Posted Images MOD

Actually its is a PHP-Nuke site and the forum is just a part of the page with blocks to the left and an header at the top and footer at the bottom. In PHP-Nuke phpbb is a module and especially adapted for PHP-Nuke. However, I think this problem is not specific to PHP-Nuke, but can happen to anyone with a more than 600 px image on the identical page as the forum.
Back to top
Slackervaara
Board Member



Joined: 01 Jan 2009

Posts: 70



PostPosted: Sun Mar 29, 2009 5:05 am 
Post subject: Re: Problem with Easy Resized Posted Images MOD

I have found the solution with this modification that worked:

Code:
if (im.width > 500 && im.src != "http://www.swordfactsbenelux.nl/forums/styles/sfb/imageset/site_logo.gif")
         {


I found it here:
http://phpbbegypt.com/phpBB3/viewtopic.php?f=9&t=79
Back to top
lumpy burgertushie
Board Member



Joined: 19 Nov 2008

Posts: 224


flag
PostPosted: Sun Mar 29, 2009 4:06 pm 
Post subject: Re: Problem with Easy Resized Posted Images MOD

good work!


robert
Back to top
Display posts from previous:   
Register or Login to Post    Index » General Support  Previous TopicPrint TopicNext Topic
Page 1 of 1 All times are GMT
 
Jump to:  

Index • About • FAQ • Rules • Privacy • Search •  Register •  Login 
Not affiliated with or endorsed by the phpBB Group
Powered by phpBB2 © phpBB Group
Generated in 0.0262 seconds using 15 queries. (SQL 0.0023 Parse 0.0009 Other 0.0230)
phpBB Customizations by the phpBBDoctor.com
Template Design by DeLFlo and MomentsOfLight.com Moments of Light Logo