Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Code Requests
  • Completed Requests
  • [Completed] [ZB] resizing img!
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
[Completed] [ZB] resizing img!
Tweet Topic Started: Sep 14 2009, 10:15 PM (197 Views)
Tuanie Sep 14 2009, 10:15 PM Post #1


Posts:
48
Group:
Member
Member
#3,291
Joined:
Jul 6, 2009
my forum will have a lot of members posting screenshots and wallpaper, is there a way to automatically re size them? where you can click on them and it become lager or take you to a new window for the img?
Offline Profile Goto Top
 
Lout Sep 15 2009, 03:14 AM Post #2
Member Avatar


Posts:
402
Group:
Dedicated
Member
#2,400
Joined:
Feb 19, 2009
Indeed there is, see this topic:-

http://if.invisionfree.com/topic/5035662/
Posted Image
Offline Profile Goto Top
 
Tuanie Sep 15 2009, 09:24 AM Post #3


Posts:
48
Group:
Member
Member
#3,291
Joined:
Jul 6, 2009
ah thank you, but isn't working correctly for me.
is resized but not small enough, is still going outside of the board.

this is what i have.

for the CSS
[code=css]
.c_post img,#topic_review img {
fixed-width:200px;
}[/code]

and i put this ontop of my "below the board"

Code:
 
<script type="text/javascript">
//<![CDATA[
window.onload=(function() {
$("td.c_post img[alt='Posted Image']").each(function() {
if (this.width >= 300) {
$(this).wrap("<a href='" + this.src + "'></a>");
$(this).after("<br /><small><a href='" + this.src + "' class='view_full'>View Full Image</a></small>");
}
});
});
//]]>
</script>



as you can see
http://s1.zetaboards.com/aionHeLL/topic/2282003/1/

it only resized it a little :/
Offline Profile Goto Top
 
HolySavior Sep 23 2009, 02:41 PM Post #4
Member Avatar
Modifying The World Around You

Posts:
2,488
Group:
Distinguished Coder
Member
#7
Joined:
Jul 2, 2008
Coding language
Everything
that topic is not found. and you should be able to follow that topic and change the CSS to whatever size you need and it will work.
Offline Profile Goto Top
 
Reid Sep 23 2009, 02:58 PM Post #5
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
These scripts have never worked very well and there is unfortunately not much we can do about it. Finding the correct size of an image in JS seems to be an interesting task. At any rate, going to have to complete this. :(

You're welcome.
See? We can read thoughts too. ;)

Your request has been completed, and we're moving it to the correct forum. We hope it works for you; if it doesn't, feel free to post another request topic in the requests forum. Just remember: read the rules first!

Thanks,
The ZBCode Staff
The Resource Board
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · Completed Requests · Next Topic »
Locked Topic

Track Topic · E-mail Topic Time: 2:27 PM Jul 11
Hosted for free by ZetaBoards · Privacy Policy