The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Auto resizing of pictures??

4 posters

Go down

Auto resizing of pictures?? Empty Auto resizing of pictures??

Post by urbexleeds September 22nd 2008, 8:26 pm

Can this be done on these forums?
Any picture I have on my forum over a certain size about 580 width, will be cropped.
Now with my site mainly down to photography this is a bit of a pain.
I know of other PHPbb site that have an auto resize feature on there pictures, can this be done with just a bit of code??
or would it be easier/better for the forum to resize?
Im no coder so I have no idea what to do to sort this but it would be a HUGE help if someone knows a fix.

Any ideas?

Cheers ppl
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 2:54 am

Anyone any ideas on this?

Also are we able to insert are own code into the forums, if so how do we go about doing this??
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by Punkarella September 23rd 2008, 2:59 am

thats a good idea and question
I too share photos on my site and if the photo is large, it gets half cut off. I try to tell people to resize them before posting them but some just dont and others don't know how to.
Punkarella
Punkarella
Forumember

Female Posts : 334
Reputation : 3
Language : English
Location : Australian

http://www.funkyfriendsonline.ace.st

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 12:56 pm

Yea i know of a few sites that do it, would be great if mine could do this too.

Anyone salut
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by Misery_Kitty September 23rd 2008, 1:27 pm

avatar
Misery_Kitty
Forumember

Posts : 165
Reputation : 0
Language : English

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 7:33 pm

Well that is what I need but ive no idea when in the code to put it. Mad

Code:
#topicreview .postbody {
width: auto;
float: none;
margin: 0;
height: auto;
}
#topicreview .post {
height: auto;
.post img{max-width: 520px;}

Thats where i added it and nothing happened.

Please help this is starting to drive me nuts ouou
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 8:30 pm

~Bump~
Sorry but im really wanting to sort this now, almost there just have no idea what to do with this bit of code :'(
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by Guest September 23rd 2008, 9:52 pm

try the following modified code Smile

Code:
#topicreview .postbody {
width: 100% !important;
height: auto !important;
float: none;
margin: 0;
}
#topicreview .post {
height: auto !important;
width: 100% !important;
.post img{max-width: 520px;}

Regards






Craig
avatar
Guest
Guest


Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by paint September 23rd 2008, 9:57 pm

I needed that, thanks!! Very Happy
paint
paint
Forumember

Male Posts : 686
Reputation : 3
Language : English

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 10:04 pm

Cheers ill give it a try Thanks a million.....if it works Wink
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 10:07 pm

Damm still nothing.

http://urbexleeds.forum-motion.com/hospitals-schools-religious-sites-f5/the-mansionchapel-allerton-hospital-t143-15.htm

You should be able to see this.

Thanks for your time, hope we can crack this
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 10:14 pm

nope sorry

User: ****
Password: *******

^^Removing once sorted

Edit: Removed username and password - Placehold
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by Guest September 23rd 2008, 10:15 pm

take the last part out of the code

Code:
#topicreview .postbody {
width: 100% !important;
height: auto !important;
position:relative !important;
}
#topicreview .post {
height: auto !important;
width: 100% !important;
position:relative !important;
}

Couldn't see it for looking at it lmao

Please dont post user details even if it is for a test account Smile

regards







Craig
avatar
Guest
Guest


Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 10:19 pm

sorry bout that.

still nothing Sad

Heres the code as it stands now.
Code:

}
/* Topicreview-------------------------------------------------*/
#topicreview {
padding-right: 5px;
overflow: auto;
height: 300px;
}
#topicreview .postbody {
width: 100% !important;
height: auto !important;
position:relative !important;
}
#topicreview .post {
height: auto !important;
width: 100% !important;
position:relative !important;
}
#topicreview h2 {
border-bottom-width: 0;
}

Not sure if this is in the right place :/
Also this should affect all post new and old. correct??

Thanks again
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by Guest September 23rd 2008, 10:41 pm

As standard the following code for phpbb3 controls the size of the whole forum

Code:
body#phpbb div#wrap {
   width: 85%;
    margin: 0;
   }
#wrap {
   width: 98%;
   margin: 0px auto;
   background-color: #ffffff;
   border: 1px # solid;
   padding: 5px;
   min-width: 768px;
   }
#simple-wrap {
    padding: 6px 10px;
    }



Then the next one controls the posts size

Code:
/* dl dt dd----------------------------------------------*/
dd.lastpost {
   width: 20%;
   font-size: 1.1em;
   }
dd.mark {
   float: right !important;
   width: 9%;
   text-align: center;
   line-height: 200%;
   font-size: 1.2em;
   }
dd.posts, dd.topics, dd.views {
   width: 8%;
   text-align: center;
   line-height: 2.2em;
   font-size: 1.2em;
   border: none;
   }
dd.info {
   width: 30%;
   }
dl.details {
   font-size: 1.1em;
   }
dl.details dt {
   float: left;
   width: 16em;
   text-align: right;
   color: #536482;
   display: block;
   }
dl.details dd {
   margin-left: 16em;
   padding-left: 5px;
   margin-bottom: 5px;
   color: #536482;
   }
.span-tab {
   font-size: 0.9em;
   }

Try having a look into them

regards








Craig
avatar
Guest
Guest


Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 10:49 pm

Wow thats deep for my knowledge but ill give it a good nice one Very Happy
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 10:52 pm

ok now im reall lost niether of those sections I can find.

Would it help if I poste my whole css???

Seriously though thanks for your help. This will be awesoem if we can get this working
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by Guest September 23rd 2008, 10:59 pm

Hmmmm i would advise against posting the whole CSS

What version of the forum are you using?

I took it forum the one that was linked to your profie

You could also technically change the wisdths of the code i posted and add it to your CSS code, Should work fine Smile

regards









Craig
avatar
Guest
Guest


Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 11:03 pm

Yea sorry i did find it im just slack.
Ill be honest looking at CSS hurts my eyes and I have no idea what does what.
Would this section have anything to do with it.
Code:

/* Postbody (preview)---------------------------------------------------*/
.postbody {
padding: 0;
line-height: 1.48em;
color: #6b6b6b;
width: 76%;
float: left;
clear: both;
}
.postbody h3 {
font-size: 1.5em;
padding: 2px 0 0 0;
margin: 0 0 0.3em 0 !important;
text-transform: none;
border: none;
font-family: Verdana,Arial,Helvetica,sans-serif;
line-height: 125%;
color: #6b6b6b;
}
.postbody .content {
font-size: 1.3em;
}
.postbody ul.profile-icons {
float: right;
width: auto;
padding: 0;
}
.postbody ul.profile-icons li {
margin: 0 3px;
}
.postbody h3 img {
 vertical-align: bottom;
 }
* html .postbody h3 img {
 vertical-align: middle;
 }
.search .postbody {
 width: 68%;
 }
#cp-main .postbody p {
 font-size: 1.1em;
 }
#cp-main .postbody h3 {
 margin-top: 0;
 }
.content {
color: #6b6b6b;
min-height: 3em;
overflow: hidden;
line-height: 1.4em;
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 1em;
}
.content blockquote {
 color: #333333;
 }
.content p {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 1.2em;
margin-bottom: 1em;
line-height: 1.4em;
}
.content li {
 list-style-type: inherit;
 }
.content ul, .content ol {
margin-bottom: 1em;
margin-left: 3em;
}

Sorry to be such a noob, im sure youve got more pressing matters to sort out. Thanks soooo much though
Cheers
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by Guest September 23rd 2008, 11:11 pm

They could effect it yes

The main sections to look at are in bold

/* Postbody (preview)---------------------------------------------------*/
.postbody {
padding: 0;
line-height: 1.48em;
color: #6b6b6b;
width: 76%;
float: left;
clear: both;
}


.search .postbody {
width: 68%;
}

regards








Craig
avatar
Guest
Guest


Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 11:13 pm

ahh yes changed them to 100%
This has made the whole picture show but has pushed the user details to the bottom of the post.
Almost there now me thinks Very Happy:D:D
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 23rd 2008, 11:15 pm

ahh its also made every post do the same picture or not.

Not sure if this is any help
http://www.derelictplaces.co.uk/main/showthread.php?t=6698

The way the pictures resize is perfect, was hoping something like this could be done??
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds September 24th 2008, 12:42 am

Ok so ive been readin on this for the past few hours and it seems its a MOD.

Sad

Unless someone can add this for me looks like im without. soooo upsetting.

Big thanks to placehold for helping out
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Auto resizing of pictures?? Empty Re: Auto resizing of pictures??

Post by urbexleeds October 3rd 2008, 11:42 pm

Still no help on this one?
Any chance we can get a MOD installed? I really could do with this on my forums, some people just dont listen to "have your picture no wider than 580pixels"

Anyone Hello
urbexleeds
urbexleeds
Forumember

Male Posts : 62
Reputation : 0
Language : english UK
Location : LEEDS

http://urbexleeds.forum-motion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum