Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
0 Registered (), 26 Guests and 20 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Gizmo 11708
Rick 7567
Ian 4107
Mark S 3984
ntdoc 3114
Sirdude 2041
jgeoff 1882
David Dreezer 1759
driv 1569
AllenAyres 1530
Latest Photos
Carrie - So Very
Testing
Test Photo
4TH of July at the river!
Test shots from D300 part 3
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#215272 - 07/07/08 06:10 PM Image Size In Posts
FordDoctor Offline
journeyman

Registered: 06/05/06
Posts: 83
Loc: New Joisey!
This is not a customizing issue. I love having images allowed in posts in my forum because it adds so much to the content especially with technical images. I have PhotoPost integrated with my forum and most of my community that posts images uses it. I have it set up to automatically resize images to a size below 600 pixels wide to work well in the forums. I have one member that insists on posting pictures from his own host with large resolution/dimensions and it forces the forum to widen, most times off screen.

Is there a way to prevent the dynamic resizing of my forum when these images are posted? My forum dimensions are set to a specific dimension but when this happens that apparently gets ignored.

~or~

Is there a way to prevent images from anywhere but my server from displaying?

I suppose I could whip this member into submission but he is likely not going to be the last. Aside from that I don't want to be accused of bandwidth theft.
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.0.2

Top
#215275 - 07/07/08 10:53 PM Re: Image Size In Posts [Re: FordDoctor]
Sirdude Moderator Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
add to the Extra Properties section in each style on your board.

.post-content img {
max-width: 600px;
}

save the style smile

you can also add a max-height, if he's posting very TALL pictures wink
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#215277 - 07/08/08 03:27 AM Re: Image Size In Posts [Re: Sirdude]
FordDoctor Offline
journeyman

Registered: 06/05/06
Posts: 83
Loc: New Joisey!
That unfortunately did not work. I added it to all syles just to be sure. Tested it a few times with one of the offending photos as a reply, new post etc. Is it possible to use htaccess to simply block outside images and force the use of my site's gallery? I do like the idea of trying to do this from within UBB Threads though!
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.0.2

Top
#215283 - 07/08/08 08:26 AM Re: Image Size In Posts [Re: FordDoctor]
Sirdude Moderator Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
um that should work.. can you point me to a thread in question ? i'll dally about with Firebug and should get it right. i might have a typo

not sure.. but i've done similar to this already and got good results..
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#215303 - 07/08/08 05:19 PM Re: Image Size In Posts [Re: Sirdude]
FordDoctor Offline
journeyman

Registered: 06/05/06
Posts: 83
Loc: New Joisey!
I sent you a PM - thanx for messing with this!
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.0.2

Top
#215305 - 07/08/08 05:37 PM Re: Image Size In Posts [Re: FordDoctor]
Sirdude Moderator Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
i'm guessing you are using IE6, which essentially ignores max-width and max-height..
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#215307 - 07/08/08 05:47 PM Re: Image Size In Posts [Re: Sirdude]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11708
Loc: Portland, OR; USA
Originally Posted By: Sirdude
i'm guessing you are using IE6, which essentially ignores max-width and max-height..
As does FFoX3 :snicker:
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#215308 - 07/08/08 05:51 PM Re: Image Size In Posts [Re: Gizmo]
Sirdude Moderator Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
Originally Posted By: Giz-UNiT
As does FFoX3 :snicker:
no FF3 does not ignore it. it does it right

i just verified this on his site, as would be expected

that's css2 stuff and all browsers should handle it smile

Workaround and it's ugly

another workaround that i've done for avatars on certain sites, which would apply here.. is to:

1) run a script that trundles thru all posts and searches for externally linked images.
2) that script then grabs each one and sizes them properly and stores them on your server
3) modify the img tag parser to do this for any [img] tag in the future..

i used that idea with avatars, to corral all the external ones, upload them, resize and then i turned off external avatars..

other option is to disallow IE5.5 and IE6, but it's prolly not a good idea laugh

Top
#215312 - 07/08/08 08:05 PM Re: Image Size In Posts [Re: Sirdude]
FordDoctor Offline
journeyman

Registered: 06/05/06
Posts: 83
Loc: New Joisey!
Originally Posted By: Sirdude
Workaround and it's ugly


I read through that but not sure where to place the code. It is not working anywhere I put it. If I read the info in the link it looks like I can place the code anywhere in the document I wish to control image size. I tried the header and in the style editor under post content... eek
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.0.2

Top
#215342 - 07/09/08 08:55 PM Re: Image Size In Posts [Re: FordDoctor]
FordDoctor Offline
journeyman

Registered: 06/05/06
Posts: 83
Loc: New Joisey!
Well the link you posted was a good start. I did some Googling and found several different methods of attempting this. I then stumbled upon a post on the Eve support forums and modified the code to work within UBB. I tested it in IE-6 and FF and it works in both but I can't test it in any other browsers so if anyone else tries this let us know that you verified that it works or not. Don't be impressed - I read a lot and try many times until something works or I step in shyt! laugh I hope someone else finds this helpful too.

Code:
.post_inner img{
max-width:650px;
width: expression(this.width > 650 ? 650: true);
} 
_________________________
Ford diesel master technician by day...
Webmaster by night! cool
FordDoctorsDTS.com running UBB Threads 7.0.2

Top
#215375 - 07/10/08 05:35 PM Re: Image Size In Posts [Re: FordDoctor]
Sirdude Moderator Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
that's perfect, since ie6 will ignore the max-width and all other standards based browsers will handle it..

then IE6 comes along and evaluates the width line, while ignoring the max-width one smile

good show wink
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#215378 - 07/10/08 05:41 PM Re: Image Size In Posts [Re: Sirdude]
Sirdude Moderator Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
you'll find that if it works in FF, then you have a high probability it will work in ALL other browsers except IE laugh

matter of fact, when i do a site design (css), i'll design for it to look good in Firefox 1st, then i FIX the site for any IE quirks..

safari is the only one that is 'picky', but that is usually with regards javascript quirks, that i've found smile

Top
#216067 - 07/31/08 12:56 PM Re: Image Size In Posts [Re: FordDoctor]
Iann128 Offline
stranger

Registered: 03/21/08
Posts: 11
Loc: Riverview, FL
Originally Posted By: FordDoctor
Well the link you posted was a good start. I did some Googling and found several different methods of attempting this. I then stumbled upon a post on the Eve support forums and modified the code to work within UBB. I tested it in IE-6 and FF and it works in both but I can't test it in any other browsers so if anyone else tries this let us know that you verified that it works or not. Don't be impressed - I read a lot and try many times until something works or I step in shyt! laugh I hope someone else finds this helpful too.

Code:
.post_inner img{
max-width:650px;
width: expression(this.width > 650 ? 650: true);
} 


I just tried it in IE7 and FF3 and it works great thanks!

Ian

Top
#216697 - 09/01/08 11:28 AM Re: Image Size In Posts [Re: Iann128]
Mark S Offline
Carpal Tunnel

Registered: 07/04/06
Posts: 3984
Loc: Liverpool : England : UK
Thank you very much

i think i will be using this too smile

Ive just sent it too myself smile
_________________________
Version v7.2.2 smile smile < Threads satisfaction status
People who inspire me Rick Gizmo Ian David jgeoff ntdoc
To answer the question you must first give a question.

Top
#216730 - 09/02/08 01:01 PM Re: Image Size In Posts [Re: Mark S]
AllenAyres Moderator Offline

***

Registered: 12/29/03
Posts: 1530
Loc: Texas
I believe someone I know asked for this too...
_________________________
- Allen
- ThreadsDev | PraiseCafe

Top
#216748 - 09/02/08 05:43 PM Re: Image Size In Posts [Re: AllenAyres]
ntdoc Offline


Registered: 11/08/06
Posts: 3114
Not sure as I've not investigated the details of this subject but this article may be of some value on the subject.

When the Legend Won't Wrap - Revisited for Firefox 3

Top
Page 1 of 2 1 2 >


Shout Box

Recent Topics
Registration security
by adminwendy
55 minutes 21 seconds ago
Problem with forum move
by AzHousePro
Today at 03:41 PM
[7.3.x] Ignore link showed in userprofile for global moderators
by blaaskaak
Yesterday at 01:27 PM
[7.3.x] Database password shown in adminlogs...
by blaaskaak
Yesterday at 10:24 AM
7.3.1 Flood protection
by MattUK
Yesterday at 03:55 AM
Forum Stats
4027 Members
33 Forums
30887 Topics
156842 Posts

Max Online: 978 @ 06/24/07 08:19 PM