The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Pop-up image with text
Author Message
Reply with quote
Post  
scottcrew wrote:
creating a popup page with images on it
HTH!


I am trying to figure out with this one same as you. How can I have clickable on image that will pop up into bigger picture.

I try this one...it does not work right
<a herf="%%image%%.html><TD ALIGN="CENTER" WIDTH="150">%%image%%</TD></a>

The problem with this %%image%% come up with <IMG SRC="picserve.cgi?picserve=/xxxx.gif" BORDER=0>

I dont want that....I want it to come up with xxxx itself only and I would add .html to it. Is this possible?

View user's profile Send private message
Reply with quote
Post  
You are wanting text on the page that pops up with the image?
If so, you will need to create and html page with the image on it and place the file in the 'html/pages' directory of the store.
Then to call your popup html page use the following simple pop-up code:
Code:

<a href="agora.cgi?page=mypopupimg.html" onClick="MyWindow=window.open('agora.cgi?page=mypopupimg.html','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">more info</a>


If you are just wanting an image pop-up use the following:
Code:

<a href="agora.cgi?picserve=mypopupimg.jpg" onClick="MyWindow=window.open('agora.cgi?picserve=mypopupimg.jpg','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">%%image%%</a>


HTH!



Last edited by scottcrew on Thu Nov 03, 05 9:06 am; edited 1 time in total

_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
scottcrew wrote:

If you are just wanting an image pop-up use the following:
Code:

<a href="agora.cgi?picserve=mypopupimg.jpg" onClick="MyWindow=window.open('agora.cgi?picserve=mypopupimg.jpg','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">


HTH!


That is what I am trying to do. Ok, here is what I cant get it working is that line...
href="agora.cgi?picserve=mypopupimg.jpg" --> href="agora.cgi?picserve=%%image%%.jpg"

How can %%image%% just show the image name only??

View user's profile Send private message
Reply with quote
Post  
Nevermind, I figure it out. Thanks for helping Wink

Here is what I just did. I add product in store manager. I enter a image name in 2nd IMAGE. That will be %%userFieldOne%%.

So I look at the website to see the source in HTML. I see this one when the image show up -- picserve.cgi?picserve=/ -- I change the code for this popup and put all my images in /html/image.

<a href="picserve.cgi?picserve=/%%userFieldOne%%" onClick="MyWindow=window.open('picserve.cgi?picserve=/%%userFieldOne%%','MyWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=450,height=450'); return false;" target="new">

It works great but need to change the width and height for depend on the size of the image.

View user's profile Send private message
Reply with quote
Post  
Where do i put that code for the same thing?
Like, which file?

My site is on http://www.diamonds2buy.com/template.htm

View user's profile Send private message
Reply with quote
Post  
productPage.inc file in the 'html/html-templates' directory of the store.

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post  
Sorry. Im not a noob, ive done all the hand coding so far,
but here i feel extremely dumb. I have the file, im assuming that
%%image%% does the whole <img src... tag? or does it just display the filename?
if so, can someone send me the updated file for this with the working edit in place,
and then would i need a 2nd image to do this or would this still show the image placed
in the first image product field?

hope that makes sense, thanks for the speedy reply, much appreciated Smile.

View user's profile Send private message
Reply with quote
Post  
The %%image%% token takes care of the rendering of the whole <img src...> tag.
To have a pop-up image, yes, you would need a 2nd image for the pop-up.
You would only need to have the image file name in the database field.

HTH!


_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum