 |

matrix
User
May 19, 2003, 1:20 PM
Post #1 of 35
(19196 views)
Shortcut
|
|
Images in sized popups
|
Can't Post
|
|
Is there a hack (or a feature) available to display images in listings in a popup window sized exactly for the image (like greymatter's default image display?). I saw something somewhere about js and form fields, but am not sure how to implement this. I looked for this answer in the forums and couldn't find it, so please forgive me if this question is redundant. I'd surely like to know and thanks in advance for any help you can give. Off topic, I'd like to say to anyone reading this that I've used IT products for several years and have always been delighted with the support and the great attitude toward upgrades. From the very first, they've been super. (Thanks, Dave and guys/gals.) I'm a happy repeat customer. M Happy Interactive Tools product user since 1999
|
|
|  |
 |

dedbob
User
May 19, 2003, 4:35 PM
Post #2 of 35
(19188 views)
Shortcut
|
|
Re: [matrix] Images in sized popups
[In reply to]
|
Can't Post
|
|
Use this script in your listings pages: <script language="Javascript"> function PopupPic(sPicURL) { window.open( "http://www.yourdomain.com/listings/popup.htm?"+sPicURL, "", "resizable=1,HEIGHT=200,WIDTH=200"); } </script> Then make a page called popup.htm. Put that page in your listings directory and use this code for the page: <HTML> <HEAD> <TITLE>Corvettes For Sale</TITLE> <script language='javascript'> var temp=self.location.href.split("?"); var picUrl = (temp.length>1)?temp[1]:""; var NS = (navigator.appName=="Netscape")?true:false; function fitPic() { iWidth = (NS)?window.innerWidth:document.body.clientWidth; iHeight = (NS)?window.innerHeight:document.body.clientHeight; iWidth = document.images[0].width - iWidth; iHeight = document.images[0].height - iHeight; window.resizeBy(iWidth, iHeight-1); self.focus(); }; </script> </HEAD> <BODY bgcolor="#FFFFFF" onload='fitPic();' topmargin="0" marginheight="0" leftmargin="0" marginwidth="0"> <script language='javascript'> document.write( "<img src='" +picUrl +"' border=0>" ); </script> </BODY> </HTML> Next... all you have to do is for your image link, use this line: javascript:PopupPic('http://www.yourdomain.com/listings/images/$file$') I just started using this last night... works like a charm. Check out my Corvette site in my signature... I'm using it there. Thanks, Scott Edwards Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on May 19, 2003, 5:32 PM)
|
|
|  |
 |

matrix
User
May 19, 2003, 4:41 PM
Post #3 of 35
(19184 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Wow, thanks. You surely use that to excellent effect on your own site. Nice work. Thanks a bunch for your help!!! Happy Interactive Tools product user since 1999
|
|
|  |
 |

dedbob
User
May 19, 2003, 4:48 PM
Post #4 of 35
(19180 views)
Shortcut
|
|
Re: [matrix] Images in sized popups
[In reply to]
|
Can't Post
|
|
Thanks... also... this is cross browser compliant (netscape, IE, opera, etc...) it even werks on an older MAC I have Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

Donna
Staff
/ Moderator

May 19, 2003, 5:29 PM
Post #5 of 35
(19176 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hey folks, Excellent little script, thanks for posting it. :) In fact, I think it's better than the ones that I use on a few sites I've built... hmm. Might have to switch over. Ah, who am I kidding, I'm far too lazy... Thanks! Donna Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

fsbo
User
Jun 13, 2003, 8:20 PM
Post #6 of 35
(19095 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi Scott, I love what this does for your site, I'd also love it on mine, I've tried installing it as you stated, but can't seem to get it to work, any help would be greatly appreciated. Thanks, James
|
|
|  |
 |

dedbob
User
Jun 13, 2003, 9:14 PM
Post #7 of 35
(19091 views)
Shortcut
|
|
Re: [fsbo] Images in sized popups
[In reply to]
|
Can't Post
|
|
Not a problem... I've attached 2 web pages to this post and everything has been removed but the bare essentials, so you can probably work it out from here (right click and "save target as"). All you have to do is add the javascript in this _publish_listing.html page to your _publish_listing.html page, change the link of the photo to your domain and path, and then, upload popup.htm to the server (to the correct directory of course). **Be careful NOT to overwrite your _publish_listing.html with this one.** If you still have trouble getting it to work using these attachments, let me know and I'll set it up for you (for free) Thanks! Scott Edwards Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on Jun 13, 2003, 9:16 PM)
|
|
Attachments:
|
popup.htm
(0.84 KB)
|
|
|
_publish_listing.html
(1.40 KB)
|
|
|  |
 |

fsbo
User
Jun 14, 2003, 7:16 AM
Post #8 of 35
(19080 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi Scott, That worked great! Thanks for the help! I love the effect! Thanks again, James
|
|
|  |
 |

darksky
Novice
Jun 15, 2003, 11:40 PM
Post #9 of 35
(19057 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
dedbob- Excellent little script... have had my eye open for awhile now, looking for a script does exactly this. Thanks so much...
|
|
|  |
 |

dedbob
User
Jun 17, 2003, 2:17 PM
Post #10 of 35
(19014 views)
Shortcut
|
|
Re: [darksky] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi all, someone was asking me some questions about how I wrote this script, but just for clarification, I didn't write it. This was originally put out here: http://www.sitepoint.com/print/1022 They put it out on the net for eveyone. All I did, was offer it in a 'specific' format for the needs here in this forum. I just want to make sure proper credit is given to the people that wrote it. Thanks, Scott Edwards Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

gfahey
Novice
Jun 18, 2003, 2:54 PM
Post #11 of 35
(18979 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
This is OT on this thread but, I have a question regarding how visitors upload photos to your Vette site. Appreciate any help here: 1) Does AutoManager allow visitors to upload their own photos? I see that the online demo of AM allows photo file size limits. 2) Upon notification by PayPal, are visitors taken to a page automatically to fill in a form? If so, how is this done? Via PayPal of AM scripts? Ideally, I want something similar to the site ( nice BTW ) you have in that I want it "automated" so that visitors get their photos and ads up quickly. Please email at sk4x10x@hotmail.com I would really appreciate some help. Thanks....Greg
|
|
|  |
 |

dedbob
User
Jun 18, 2003, 3:30 PM
Post #12 of 35
(18977 views)
Shortcut
|
|
Re: [gfahey] Images in sized popups
[In reply to]
|
Can't Post
|
|
Greg, AutoManager has an upload option, but my site is a little different because it's open for public posting of ads and not dealers only. If the photos are under 50kb, they can upload through the AM script, but if not, I've provided another script where people can upload files and I can manually resize them from there. I give a 24 hour expectation for those photos to be placed with their ad. If I had a dollar for everytime someone tried to upload a 2 or 3 meg photo, I'd be rich by now . As for the paypal payment option. Once someone pays with paypal or 2checkout.com (I would strongly suggest 2checkout.com instead of paypal), they are automatically forwarded to a script that allows them to sign up. I didn't use the free signup script offered by interactivetools because it's horribly difficult to customize. I wrote this script myself so that I could customize fields such as automatically limiting them to 1 ad and setting the expiration date to either 90 days or 1 year depending on the ad they choose. It also automatically logs them in so they can post immediately. I also get their ip address and a copy of a customized signup letter that is automatically emailed to them with an automatic login link (talk about automated! I love perl!). PayPal and 2checkout.com both allow the return url once a payment is made. 2checkout.com costs more, but they don't require the customer to have a specific account like paypal requires you to have a paypal account that you are absolutely forced to use. This is important because the more hassle someone has trying to sign up, the less likely they are to do it. Say someone used a paypal account a year ago to buy a beanie baby off of ebay. What are the chances they will remember that info? They have to go through a whole process of getting their account info from paypal and that's a pain. Not to mention, if they wanted to use another email address, they can't because their credit card is associated with that old paypal account (another pain to deal with). I can't tell you how many complaint letters I've received and sales I've lost over this type of thing. 2checkout.com is just all around easier. Let me know if you have any other questions Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on Jun 18, 2003, 4:54 PM)
|
|
|  |
 |

dedbob
User
Jun 18, 2003, 4:56 PM
Post #13 of 35
(18965 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
By the way... you can see it in action if you want (what people will see after they've paid): http://www.collectorcarsforsale.com/cgi-bin/am/exec/place-an-ad.cgi (once my site comes back up of course). Of course... I'll have to delete your account if you don't actually post a vehicle and once I start charging for ads, this link will change. Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
(This post was edited by dedbob on Jun 18, 2003, 5:10 PM)
|
|
|  |
 |

Si
User
Oct 31, 2003, 9:37 AM
Post #14 of 35
(18637 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi Scott An old thread I know but.... I would love to use this pop-up script on my site and have noticed that you now have a click on this image to close window addition. It works really well and wondered if you would mind posting the updated code for this. Cheers Si Turkish Homes
|
|
|  |
 |

dedbob
User
Oct 31, 2003, 8:14 PM
Post #15 of 35
(18619 views)
Shortcut
|
|
Re: [Si] Images in sized popups
[In reply to]
|
Can't Post
|
|
Sure.. not a prob... I've attached the popup.htm file to this message because that's all I've changed. Let me know if you need any help getting it going. Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
Attachments:
|
popup.htm
(1.74 KB)
|
|
|  |
 |

jm4vision
User
Dec 18, 2004, 11:07 AM
Post #16 of 35
(16710 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi... The script works beautifully on my Mac systems..Not on Windows xp. I have no idea about other Windows versions. I am assuming it must work fine for you.. Any ideas..?
|
|
|  |
 |

dedbob
User
Dec 18, 2004, 12:27 PM
Post #17 of 35
(16707 views)
Shortcut
|
|
Re: [jm4vision] Images in sized popups
[In reply to]
|
Can't Post
|
|
Works on every XP system i've ever had tried it on (countless). I've also helped many people implement this and never heard a complaint. Are you using XP with Service Pack 2? The IE popup blocker will seemingly make this not work. Check to be sure. Thanks, Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

jm4vision
User
Dec 18, 2004, 1:19 PM
Post #18 of 35
(16703 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi Scott..Appreciate your responding so quickly. Not sure if the realtor operation has service pack 2..I'll have to wait until monday to find out.. perhaps it's the way i implemented the code, but I have double checked libne by line and it's exactly as you posted.. if you want you could check out tjhe listings at: http://www.toptallahasseehomes.com/listman/listings I'f it works for you then most likely it is this SP2 popup blocker.. regards..Jim
|
|
|  |
 |

dedbob
User
Dec 18, 2004, 1:37 PM
Post #19 of 35
(16701 views)
Shortcut
|
|
Re: [jm4vision] Images in sized popups
[In reply to]
|
Can't Post
|
|
Actually... I see your problem: In your _publish_listing.html page, change: <A HREF="javascript:PopupPic('http://www.toptallahasseehomes.com/listman/listings/images/$file$');" TARGET="_blank"> To: <A HREF="javascript:PopupPic('http://www.toptallahasseehomes.com/listman/listings/images/$file$')"> The "target="_blank" is causing the problem. There's also the ; that you need to remove. Just put it in just as I have above, and you should be in great shape . Let me know if you have any problems with it. Thanks! Scott Need ImageMagick? GD.pm? You need to GetStacked! Listings Manager friendly Cheap Web Hosting only $5.95 a month!
|
|
|  |
 |

ross
Staff
/ Moderator

Dec 18, 2004, 1:53 PM
Post #20 of 35
(16697 views)
Shortcut
|
|
Re: [jm4vision] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi Jim. Thanks for posting and welcome to the board! I actually just sent off an email to you regarding this and I think I may have the problem solved for you as well . I went about it another way though. What I did was to remove the <A HREF> altogether and leave the JavaScript as an onClick attribute of the image tag. That seemed to get the pictures working fine for me on both Windows and Mac. Looks like you have two ideas to work with now so just keep us up to date with how you are getting on. Thanks for the help with this Scott! You have a great script here, keep up the good work . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

jm4vision
User
Dec 19, 2004, 9:23 AM
Post #21 of 35
(16680 views)
Shortcut
|
|
Re: [dedbob] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hey Thanks..! Works beautifully.. appreciate the response and support from you on this issue.. Also am impressed with Interactive Tools hands on response to BB issues brought up ..great software..great support.. Jim
|
|
|  |
 |

Alastair
User
Feb 15, 2005, 1:22 AM
Post #22 of 35
(15200 views)
Shortcut
|
|
Re: [jm4vision] Images in sized popups
[In reply to]
|
Can't Post
|
|
Yes - this is an excellent script - gives that really nice professional touch to a site. A very useful addition to a LM based site. Alastair
|
|
|  |
 |

eleven
User
Feb 15, 2005, 8:54 AM
Post #23 of 35
(15198 views)
Shortcut
|
|
Re: [matrix] Images in sized popups
[In reply to]
|
Can't Post
|
|
Would anyone be able to help me install this? I tired and couldnt get it to work? Would be appreciated?
|
|
|  |
 |

Alastair
User
Feb 15, 2005, 11:05 AM
Post #24 of 35
(15194 views)
Shortcut
|
|
Re: [eleven] Images in sized popups
[In reply to]
|
Can't Post
|
|
Try this link to my site: http://www.psnet.org.uk/listman/listings/l0019.html Click on the picture and it pops up and resizes - at least it does for me on my Mac. The instructions above are pretty easy to follow. remember to put the first bit of javascript in the header of the listings page, and remember every time you edit your listings page, you will have to go to setup options in listing manager and republish all listings - otherwise your changes will only be included on new listings! Alastair
|
|
|  |
 |

ross
Staff
/ Moderator

Feb 15, 2005, 3:27 PM
Post #25 of 35
(15185 views)
Shortcut
|
|
Re: [eleven] Images in sized popups
[In reply to]
|
Can't Post
|
|
Hi eleven. Thanks for posting! I have actually got this script running in the past, however, I am not exactly an expert on the script . As Alastair said though, it isn’t difficult, so I think between me, you and anyone else that can lend us a hand, we’ll be able to get you going . (thanks Alastair for the help already). Could you let me know how far you got already and we’ll just take it from there. I look forward to hearing from you . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|