Forum Hosting  

Go Back   Forum Hosting > IPB Support > IPB General Support

IPB General Support Post your questions here, no bug reports.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 09-23-2007, 07:11 PM   #1 (permalink)
Member
 
ClaireBear's Avatar
 
Join Date: Jul 2006

Posts: 3
Rep Power: 0 ClaireBear is on a distinguished road
fTrader: (0)
fBuck$: 190.0
Bank: 0.0
Total fBuck$: 190.0

My Forumer
My Country:
Default People keep posting images in thier posts that are too big...

People on my forum are always posting images in thier posts that are too large. It throws off the entire page. Is there a way to put a limit on the size of images posted in a topic?
ClaireBear is offline  
Old 09-23-2007, 09:42 PM   #2 (permalink)
Junior Forumer
 
AnneFan's Avatar
 
Join Date: Feb 2006

Location: Philippines
Posts: 139
Rep Power: 3 AnneFan is on a distinguished road
fTrader: (3)
fBuck$: 854.4
Bank: 4,691.6
Total fBuck$: 5,546.0

My Forumer
My Country:
Send a message via Yahoo to AnneFan
Default Re: People keep posting images in thier posts that are too big...

I have the same problem also. :/
AnneFan is offline  
Old 09-23-2007, 09:48 PM   #3 (permalink)
Banned User
 
set2soar's Avatar
 
Join Date: Jul 2007

Location: ballarat
Posts: 156
Rep Power: 0 set2soar is on a distinguished road
fTrader: (0)
fBuck$: 786.0
Bank: 0.0
Total fBuck$: 786.0

My Forumer
My Country:
Send a message via Yahoo to set2soar
Default Re: People keep posting images in thier posts that are too big...

Quote:
Originally Posted by ClaireBear View Post
People on my forum are always posting images in thier posts that are too large. It throws off the entire page. Is there a way to put a limit on the size of images posted in a topic?
Yes there is a size limit config in General config which is in your AdminCP
set2soar is offline  
Old 09-24-2007, 04:29 AM   #4 (permalink)
Elite Forumer
 
Wild Cat's Avatar
 
Join Date: May 2007

Location: UK
Posts: 6,618
Rep Power: 9 Wild Cat has a spectacular aura aboutWild Cat has a spectacular aura about
fTrader: (3)
fBuck$: 3,797.0
Bank: 130,000.2
Total fBuck$: 133,797.2

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

Quote:
Originally Posted by set2soar View Post
Yes there is a size limit config in General config which is in your AdminCP
It's not in General config......... where exactly is it?

If you want to provide support then do it the way that it actually helps people... write down the exact path how get there and how to do it ....
Wild Cat is online now  
Old 09-24-2007, 09:46 AM   #5 (permalink)
Banned User
 
Inny's Avatar
 
Join Date: Sep 2005

Posts: 1,082
Rep Power: 0 Inny is on a distinguished road
fTrader: (1)
fBuck$: 7,874.5
Bank: 364.3
Total fBuck$: 8,238.8

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

There is a modification. You put this in
ACP
SKINS & TEMPLETS
HTML
MANAGE HTML
TOPIC VEIW
POST ENTRY

Place the code at the very top before the other coding.
change the desired height and width in red.
*Note: This will also resize your banner temporarily in topic veiw, your banner returns to its normal size on the main page.
I sugest keeping both variables (in red) the same so images are not destorted.

Quote:
<script type="text/javascript">
function resizeImages() {
if (document.images) {
var mw = 200;
var mh = 200;
for (var ii = 0; ii < document.images.length; ii++) {
var i = document.images[ii];
var iw = i.width;
var ih = i.height;
if (ih > iw && ih > mh) {
i.style.height = mh + 'px';
} else if (iw > mw) {
i.style.width = mw + 'px';
}
}
}
}
if (window.addEventListener) {
window.addEventListener('load', resizeImages, false);
} else if (window.attachEvent) {
window.attachEvent('onload', resizeImages);
} else {
window.onload = resizeImages;
}
//-->
</script>
There is no better automatic image resizing avail at this time than the code above. I am working on a mod that will also make clickable the resized pics which will popup in a new window.
Meanwhile this one is good!

Last edited by Inny; 09-24-2007 at 09:50 AM. Reason: add postscript
Inny is offline  
Old 09-24-2007, 10:08 AM   #6 (permalink)
Elite Forumer
 
Wild Cat's Avatar
 
Join Date: May 2007

Location: UK
Posts: 6,618
Rep Power: 9 Wild Cat has a spectacular aura aboutWild Cat has a spectacular aura about
fTrader: (3)
fBuck$: 3,797.0
Bank: 130,000.2
Total fBuck$: 133,797.2

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

So this will actually re-size the image which is linked in from another source?

Or the ones that are uploaded in your forum? Or both?
Wild Cat is online now  
Old 09-24-2007, 10:13 AM   #7 (permalink)
Banned User
 
Inny's Avatar
 
Join Date: Sep 2005

Posts: 1,082
Rep Power: 0 Inny is on a distinguished road
fTrader: (1)
fBuck$: 7,874.5
Bank: 364.3
Total fBuck$: 8,238.8

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

This will resize all linked images! To adjust the size of uploaded images check your ACP, I think its in general config, you tick to make thumbnails automatically.

Sorry, to create thumbnails of, and control size of uploaded pics, look in
Topics, Post & polls section.

Last edited by Inny; 09-24-2007 at 10:17 AM. Reason: add postscript
Inny is offline  
Old 09-24-2007, 10:22 AM   #8 (permalink)
Elite Forumer
 
Wild Cat's Avatar
 
Join Date: May 2007

Location: UK
Posts: 6,618
Rep Power: 9 Wild Cat has a spectacular aura aboutWild Cat has a spectacular aura about
fTrader: (3)
fBuck$: 3,797.0
Bank: 130,000.2
Total fBuck$: 133,797.2

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

Quote:
Originally Posted by Inny View Post
This will resize all linked images! To adjust the size of uploaded images check your ACP, I think its in general config, you tick to make thumbnails automatically.

Sorry, to create thumbnails of, and control size of uploaded pics, look in
Topics, Post & polls section.
I was just making sure

Thanks
Wild Cat is online now  
Old 09-25-2007, 04:08 AM   #9 (permalink)
Active Forumer
 
Dr. Fix's Avatar
 
Join Date: Aug 2007

Posts: 337
Rep Power: 2 Dr. Fix is on a distinguished road
fTrader: (9)
fBuck$: 171.9
Bank: 0.0
Total fBuck$: 171.9

My Forumer
My Country:
Send a message via ICQ to Dr. Fix Send a message via AIM to Dr. Fix Send a message via MSN to Dr. Fix Send a message via Yahoo to Dr. Fix Send a message via Skype™ to Dr. Fix
Default Re: People keep posting images in thier posts that are too big...

Quote:
Originally Posted by Inny View Post
There is a modification. You put this in
ACP
SKINS & TEMPLETS
HTML
MANAGE HTML
TOPIC VEIW
POST ENTRY

Place the code at the very top before the other coding.
change the desired height and width in red.
*Note: This will also resize your banner temporarily in topic veiw, your banner returns to its normal size on the main page.
I sugest keeping both variables (in red) the same so images are not destorted.



There is no better automatic image resizing avail at this time than the code above. I am working on a mod that will also make clickable the resized pics which will popup in a new window.
Meanwhile this one is good!
Is it possible to make something like vbulletin, the image get resized automatically, and when you click on a yellow bar above it shows the images actual size in the same window, is it possible?
Dr. Fix is offline  
Old 09-25-2007, 10:27 AM   #10 (permalink)
Member
 
ClaireBear's Avatar
 
Join Date: Jul 2006

Posts: 3
Rep Power: 0 ClaireBear is on a distinguished road
fTrader: (0)
fBuck$: 190.0
Bank: 0.0
Total fBuck$: 190.0

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

Thanks so much, that was exactly what I was looking for.
ClaireBear is offline  
Old 09-25-2007, 11:45 AM   #11 (permalink)
Banned User
 
Inny's Avatar
 
Join Date: Sep 2005

Posts: 1,082
Rep Power: 0 Inny is on a distinguished road
fTrader: (1)
fBuck$: 7,874.5
Bank: 364.3
Total fBuck$: 8,238.8

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

not at this time DR FIX! however, heres an update for you guys, this one resizes and you click on the pic to open it in a new window full size!

This goes in

TOPIC VEIW
FOOTER

(AFTER) all other coding, right at bottom!

Notes: alter in red desired thumbnail size
please remove old code first so it dosent interfere!

Enjoy!

Quote:
<script type='text/javascript'>
<!--
function ResizeThem(){
maxheight=300;
maxwidth= 300;
imgs=document.getElementsByTagName("img");
for (p=0; p<imgs.length; p++) {
if (imgs[p].getAttribute("alt")=="user posted image") {
w=parseInt(imgs[p].width);
h=parseInt(imgs[p].height);
if (parseInt(imgs[p].width)>maxwidth) {
imgs[p].style.cursor="pointer";
imgs[p].onclick=new Function("iw=window.open(this.src,'ImageViewer','resizable=1');iw.focus()");
imgs[p].height=(maxwidth/imgs[p].width)*imgs[p].height;
imgs[p].width=maxwidth;}
if (parseInt(imgs[p].height)>maxheight) {
imgs[p].style.cursor="pointer";
imgs[p].onclick=new
Function("iw=window.open(this.src,'ImageViewer','resizable=1');iw.focus()");
imgs[p].width=(maxheight/imgs[p].height)*imgs[p].width;
imgs[p].height=maxheight;}}}}
ResizeThem()
//-->
</script>

Last edited by Inny; 09-25-2007 at 11:47 AM.
Inny is offline  
Old 09-25-2007, 01:56 PM   #12 (permalink)
Active Forumer
 
Dr. Fix's Avatar
 
Join Date: Aug 2007

Posts: 337
Rep Power: 2 Dr. Fix is on a distinguished road
fTrader: (9)
fBuck$: 171.9
Bank: 0.0
Total fBuck$: 171.9

My Forumer
My Country:
Send a message via ICQ to Dr. Fix Send a message via AIM to Dr. Fix Send a message via MSN to Dr. Fix Send a message via Yahoo to Dr. Fix Send a message via Skype™ to Dr. Fix
Default Re: People keep posting images in thier posts that are too big...

Quote:
Originally Posted by Inny View Post
not at this time DR FIX! however, heres an update for you guys, this one resizes and you click on the pic to open it in a new window full size!

This goes in

TOPIC VEIW
FOOTER

(AFTER) all other coding, right at bottom!

Notes: alter in red desired thumbnail size
please remove old code first so it dosent interfere!

Enjoy!
Wonderful! It just got better, thank you.

I was wondering if it's possible to set the setting to decrease the image size by 'Ratio', for example make it smaller by XX%, possible?

Keep the good work up...

Thanks again.
Dr. Fix is offline  
Old 09-25-2007, 04:06 PM   #13 (permalink)
VIP Team
 
Winnopeg's Avatar
 
Join Date: Jan 2005

Location: Canada, eh?
Posts: 6,736
Rep Power: 10 Winnopeg is on a distinguished road
fTrader: (24)
fBuck$: 2,917.5
Bank: 385,127.9
Total fBuck$: 388,045.4

My Forumer
My Country:
Default Re: People keep posting images in thier posts that are too big...

Dr. Fix, this is not the place to be requesting changes to a modification.

--

Support Resolved!

If you have any further questions, feel free to create a new thread.

Thanks for choosing Forumer!

This is an automated message.

Please do not PM me for support.
Winnopeg is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I prevent people from posting images? Jedediah phpBB2 General Questions 3 03-13-2007 05:48 PM
Posting images.... Sturmcollector phpBB2 General Questions 2 10-15-2006 10:22 AM
Problems with Logging in, Posting and posting images drdeath76 IPB General Support 6 07-19-2006 02:10 PM
I don't want people posting as guests on my site... M0DCH1PZ0NE phpBB2 General Questions 3 08-21-2005 12:00 AM
posting images tdcboard phpBB2 General Questions 5 04-23-2005 07:42 AM