Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Support
  • InvisionFree and Zetaboards Support
  • [ZB] Image resizer
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:
Add Reply
[ZB] Image resizer
Topic Started: Oct 6 2009, 10:13 AM (313 Views)
Nasir T Oct 6 2009, 10:13 AM Post #1


Posts:
7
Group:
Member
Member
#3,507
Joined:
Oct 6, 2009
Hey there.

I've been killing myself trying to find a good image resizer for ZB but I have had no luck. So I decided to search other websites for image resizing scripts and found this one. Now I am not a coder myself so this is why I am posting this thread to get some help modifying this code.

I posted this on ZN and I got a little help before my thread got closed for being posted in the wrong forum :glare: but anyway the guy who replied to my thread told me to use this code:
Code:
 
<script type="text/javascript">
$(".c_post img").addClass("magnify");
</script>
to get the script working, which I did and had it working as well. But my request now is to have the code add a style to all posted images as well, the same way it's described on the Dynamic Drive website:
Code:
 
<img src="thepostedimage.gif" class="magnify" style="width:200px; height:150px" />
so it actually resizes the image.

If I was unclear about what I really am requesting for this is a short explanation: I want to use this code in ZB. I want images to get resized when they are posted and have the magnifying script show the actual size upon clicking on the resized image.

Please ask questions if you still don't know what I really am requesting for, thanks in advance :)
Offline Profile Quote Post Goto Top
 
thebawp Oct 6 2009, 12:20 PM Post #2


Posts:
100
Group:
Member
Member
#2,904
Joined:
May 2, 2009
This should be in the request forum ideally, but I think you need 10 posts before you can request a code.
Offline Profile Quote Post Goto Top
 
Nasir T Oct 6 2009, 05:31 PM Post #3


Posts:
7
Group:
Member
Member
#3,507
Joined:
Oct 6, 2009
I'm new to these forums as you can tell from my post count, my apologies for posting in the wrong forum, if possible a mod please move it to the correct one.
Offline Profile Quote Post Goto Top
 
Lout Oct 6 2009, 06:16 PM Post #4
Member Avatar


Posts:
401
Group:
Dedicated
Member
#2,400
Joined:
Feb 19, 2009
If you just want the image to resize, and aren't fussed about being able to click it to view the original size image, then the code from the support forums will work just fine.

All you need add is the CSS changes and forget the javascript.
Posted Image
Offline Profile Quote Post Goto Top
 
Nasir T Oct 6 2009, 08:21 PM Post #5


Posts:
7
Group:
Member
Member
#3,507
Joined:
Oct 6, 2009
LagerLout
Oct 6 2009, 06:16 PM
If you just want the image to resize, and aren't fussed about being able to click it to view the original size image, then the code from the support forums will work just fine.

All you need add is the CSS changes and forget the javascript.
I already tired that but I'm not interested in that since it didn't work well with the skin I was using, it resized the image but the skin still looked disordered.
Offline Profile Quote Post Goto Top
 
Lout Oct 7 2009, 02:15 AM Post #6
Member Avatar


Posts:
401
Group:
Dedicated
Member
#2,400
Joined:
Feb 19, 2009
If you resize the image to the size required then I don't understand what you mean by "disordered"?
Posted Image
Offline Profile Quote Post Goto Top
 
Nasir T Oct 7 2009, 08:55 AM Post #7


Posts:
7
Group:
Member
Member
#3,507
Joined:
Oct 6, 2009
LagerLout
Oct 7 2009, 02:15 AM
If you resize the image to the size required then I don't understand what you mean by "disordered"?
It does the resizing job and act the way it should but the board looks the same as if the image is in it default size, so it pushes out all the tables and disorders the forum even though it's resized.
Offline Profile Quote Post Goto Top
 
Songs Nov 22 2009, 08:32 AM Post #8


Posts:
1
Group:
Member
Member
#2,893
Joined:
Apr 29, 2009
Yea,
I'm looking for something along the same lines as Nasir here, Just giving this post a bit of a bump!

Songs
Offline Profile Quote Post Goto Top
 
zxeyn Feb 16 2010, 11:54 AM Post #9


Posts:
11
Group:
Member
Member
#3,616
Joined:
Dec 22, 2009
Coding language
HTML/CSS
im having the same problem...
Offline Profile Quote Post Goto Top
 
zxeyn Feb 16 2010, 12:16 PM Post #10


Posts:
11
Group:
Member
Member
#3,616
Joined:
Dec 22, 2009
Coding language
HTML/CSS
ill make a request for this
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · InvisionFree and Zetaboards Support · Next Topic »
Add Reply

Track Topic · E-mail Topic Time: 3:52 PM Sep 3
Hosted for free by ZetaBoards