  | 
	
		Page 1 of 1 
		
	 | 
 
 
	
 
	| Author | 
	Message | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		  Larger Image / Popup Image   
		
			You will need to replace the %%image%% token in your ppinc (productPage.inc) file with one of the following bits of code 
 
(This code assumes that the larger image or html file name is in the USer 2 field of the product database:
 Code:<a href="%%URLofImages%%/%%userFieldTwo%%" onClick="MyWindow=window.open('%%URLofImages%%/%%userFieldTwo%%','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>
for popup html file:
 Code:
 
<a href="agora.cgi?page=%%userFieldTwo%%" onClick="MyWindow=window.open('agora.cgi?page=%%userFieldTwo%%','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 Fri Feb 29, 08 5:24 am; edited 1 time in total
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Mon Nov 12, 07 4:17 pm | 
	               | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		 
			I don't know, I might be missing something here but I tried to add that snippet of code 
 
to my ppinc file and I can't seem to get it work. I simply opened my ppinc file up in wordpad, searched for the snippet saying "%%image%%" (there is only one) and replaced it with the 
 
code you suggested.. Doesn't look pretty. 
 
Am I taking your suggestion to literal Bonnie when you say replace the %%image%% 
 
token with that snippet of code? %%image%% looks like text in a column in a table 
 
on the ppinc and of course when I copy it in it shows up as text on the site....
 
Thanks for your help.. I think I need the bone head instructions...
 
 
-Gene
  
			
			
		 
	 | 
 
	| Tue Jan 01, 08 9:49 pm | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		
		
			Gene,
 
You can edit files in WordPad... it changes stuff and messes things up.
 
Only edit files using a plain html editor or plain text editor file notepad 
 
(save in ANSI mode) or EditPad. Also, always upload/download files in ASCII mode. 
 
If you don't things will not render properly in the store.
 
There was no inferring in my post, it was to be taken literal. 
 
Of course, the user field in the snippet needs to correlate to whatever user field 
 
that contains the larger image.
 
HTH!
			 
  Last edited by scottcrew on Wed Jan 02, 08 9:58 am; edited 1 time in total
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Wed Jan 02, 08 8:06 am | 
	               | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		 
			ahh.. I changed the name of the user field... That might have something to do with it...
 
I have never had any problems with word pad in the past then again the store is a different
 
breed and I am new to it.. I'll give it a shot and see what I can do... 
 
Thanks for advice Bonnie..
 
 
 
-Gene
  
			
			
		 
	 | 
 
	| Wed Jan 02, 08 9:48 am | 
	          | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		
			Hi Bonnie, I don't know what it is but I can't seem to make your instructions work for the life of me..I upload in ascii mode, used editpad as my editor and I still run into the same problems. All my larger images are uploaded to User2 field (I just renamed it as to not confuse those that are helping me add products). Here is what I did:
 
Code:</form></td><td class="ac_product_image">%%image%%</td></tr>
and replaced %%image%% to look like this:
 Code:      </form></td><td class="ac_product_image"><a href="%%URLofImages%%/%%userFieldTwo%%" onClick="MyWindow=window.open('%%URLofImages%%/%%userFieldTwo%%','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></td></tr>
 
What am I doing wrong here?? Thanks again for your help, I would be Dead in the Water without you.
 
Gene[/quote]
			 
			
		 
	 | 
 
	| Wed Jan 02, 08 6:25 pm | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		
		
			Gene,
 
Did you make sure to force download/upload of the file in ASCII mode?
			 
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Thu Jan 03, 08 4:54 am | 
	               | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		 
			You bet... That was my first troubleshooting option. I use smart ftp and it allows you to move through the options rather easy. So I don't think I messed up there...
  
			
			
		 
	 | 
 
	| Thu Jan 03, 08 10:28 am | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		
		
			Gene,
 
Send me the file (to my email) you tried editing or upload the file to your server and I'll take a look at it in its entirety.
			 
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Thu Jan 03, 08 10:42 am | 
	               | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		 
			Thanks Bonnie... its on the server and titled "productpage2.inc" It was edited in editpadlight and uploaded in ascii.
 
 
Again, thanks for taking the time to look into this for me...
  
			
			
		 
	 | 
 
	| Thu Jan 03, 08 11:33 am | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		
		
			Gene,
 
It looks like it is working... 
 
Just rename it to productPage.inc and it will become your default ppinc file.
			 
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Thu Jan 03, 08 12:24 pm | 
	               | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		
			Hi bonnie, I have the page live... If you visit this link you'll se what I am talking about:
 
http://www.paralore.com/store5/agora.cgi?product=Metaphysical&user4=Pendulums
			
			
		 
	 | 
 
	| Thu Jan 03, 08 12:29 pm | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		
		
			Gene,
 
Remove the %%IMG%% tag from in front of the image file name in the database.
 
You only use the %%IMG%% token in the 2nd image field, no other field.
 
HTH!
			 
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Thu Jan 03, 08 12:33 pm | 
	               | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		 
			ahhhhhhh....now I got it...Thanks for the advice...
  
			
			
		 
	 | 
 
	| Thu Jan 03, 08 12:34 pm | 
	          | 
 
	  | 
 
	
		genebadd 
		Newbie - Two Blades 
		
		
		
			Joined: 18 Sep 2007 
			Posts: 25 
			
		  
		 
	 | 
	
		
		
		 
			eureeka!! That did it.. Thanks again bonnie....
  
			
			
		 
	 | 
 
	| Thu Jan 03, 08 1:07 pm | 
	          | 
 
	  | 
 
	
		apimienta 
		Newbie - One Blade 
		
		
		
			Joined: 19 Dec 2007 
			Posts: 11 
			
		  
		 
	 | 
	
		
		
		 
			I dislike kinda sorta maybe to ask, I'm such a n00b... what and where is the "ppinc file"? I can't find any file with "ppinc" anywhere in my installation. Thanks for your time.
  
			
			
		 
	 | 
 
	| Fri Jan 04, 08 4:22 pm | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		
		
			ppinc = productPage.inc 
			
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Fri Jan 04, 08 4:33 pm | 
	               | 
 
	  | 
 
	
		apimienta 
		Newbie - One Blade 
		
		
		
			Joined: 19 Dec 2007 
			Posts: 11 
			
		  
		 
	 | 
	
		
		
		 
			Ok, I found the file and edited the code, now when I click on a image the pop up window opens but I get the following error "I am sorry, but you may only use this program to view HTML pages.", I know that the URL to the image is correct but whats with that error? 
 
 
THANKS!!!
  
			
			
		 
	 | 
 
	| Mon Jan 07, 08 4:44 pm | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		
		
		
			Please review the following post before making your next post:
 
http://www.agoraguide.com/faq/viewforum.php?f=53
What is the URL to your store???
			 
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Mon Jan 07, 08 4:53 pm | 
	               | 
 
	  | 
 
	
		apimienta 
		Newbie - One Blade 
		
		
		
			Joined: 19 Dec 2007 
			Posts: 11 
			
		  
		 
	 | 
	
		
		
		
	 | 
 
	| Mon Jan 07, 08 5:27 pm | 
	          | 
 
	  | 
 
	
		scottcrew 
		Moderator 
		
		 
		
			Joined: 13 Feb 2004 
			Posts: 7516 
			Location: The West Side of MI USA
		  
		 
	 | 
	
		      
		    
		
			You got some problems with your cart...
 
The header file has stuff in it that MUST be removed.
 
Namely:
 Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head>
 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
<title>RushSports.Com - WELCOME -</title>
 
<script type="text/javascript">
 
<!--
 
function MM_findObj(n, d) { //v4.01
 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
 
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
 
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
 
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
 
  if(!x && d.getElementById) x=d.getElementById(n); return x;
 
}
 
function MM_preloadImages() { //v3.0
 
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
 
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
 
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
 
}
 
function MM_swapImgRestore() { //v3.0
 
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
 
}
 
function MM_swapImage() { //v3.0
 
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
 
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
 
}
 
//-->
 
</script>
 
<style type="text/css">
 
<!--
 
body {
 
   background-color: #333333;
 
   margin-left: 0px;
 
   margin-top: 0px;
 
}
 
a:link {
 
   color: #FF6600;
 
   text-decoration: none;
 
}
 
a:visited {
 
   color: #FF9966;
 
   text-decoration: none;
 
}
 
a:active {
 
   color: #FF0000;
 
   text-decoration: none;
 
}
 
a:hover {
 
   text-decoration: underline;
 
}
 
.style14 {
 
   color: #F9671C;
 
   font-weight: bold;
 
   font-family: Arial, Helvetica, sans-serif;
 
   font-size: smaller;
 
}
 
.style17 {
 
   font-family: Arial, Helvetica, sans-serif;
 
   color: #F66B18;
 
   font-weight: bold;
 
   font-size: smaller;
 
}
 
-->
 
</style>
 
</head>
 
 
<body onload="MM_preloadImages('../../../img/layout/bot01+on.gif','../../../img/layout/bot02+on.gif','../../../img/layout/bot03+on.gif','../../../img/layout/bot04+on.gif','../../../img/layout/bot05+on.gif','../../../img/layout/bot06+on.gif','../../../img/layout/barra01on.gif','../../../img/layout/barra02on.gif','../../../img/layout/barra03on.gif','../../../img/layout/barra04on.gif','../../../img/layout/barra05on.gif','../../../img/layout/barra06on.gif','../../../img/layout/cats/pods_on.jpg','../../../img/layout/cats/shorts_on.jpg','../../../img/layout/cats/canones_on.jpg','../../../img/layout/cats/caretas_on.jpg','../../../img/layout/cats/caretasaccs_on.jpg','../../../img/layout/cats/gorras_on.jpg','../../../img/layout/cats/guantes_on.jpg','../../../img/layout/cats/jerseys_on.jpg','../../../img/layout/cats/maletas_on.jpg','../../../img/layout/cats/marcadoras_on.jpg','../../../img/layout/cats/marcadorasaccs_on.jpg','../../../img/layout/cats/mujeres_on.jpg','../../../img/layout/cats/ninos_on.jpg','../../../img/layout/cats/pants_on.jpg','../../../img/layout/cats/playeras_on.jpg','../../../img/layout/cats/protecciones_on.jpg','../../../img/layout/cats/chamarras_on.jpg','../../../img/layout/cats/paintballs_on.jpg','../../../img/layout/cats/loaders_on.jpg','../../../img/layout/cats/paquetes_on.jpg','../../../img/layout/cats/usado_on.jpg','../../../img/layout/cats/tanques_on.jpg')">
 
AND:
 Code:        <script language="JavaScript">
 
 
<!--
 
 
function adArray() {
 
 
 for (i=0; i*2<adArray.arguments.length; i++) {
 
 
  this[i] = new Object();
 
 
  this[i].src = adArray.arguments[i*2];
 
 
  this[i].href = adArray.arguments[i*2+1];
 
 
 }
 
 
 this.length = i;
 
 
}
 
 
function getAdNum() {
 
 
 dat = new Date();
 
 
 dat = (dat.getTime()+"").charAt(8);
 
 
 if (dat.length == 1)
 
 
  ad_num = dat%ads.length;
 
 
 else
 
 
  ad_num = 0;
 
 
 return ad_num;
 
 
}
 
 
var ads = new adArray(
 
 
"img/rot+01.jpg","",
 
 
"img/rot+02.jpg","",
 
 
"img/rot+03.jpg");
 
 
var ad_num = getAdNum(); 
 
 
document.write('<TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD '
 
 
+'<TR></TR><TD><div align="right"><IMG SRC="'+ads[ad_num].src+'" '
 
 
+'WIDTH="359" HEIGHT="213" BORDER=0 name=js_ad></A></TD></TR></TABLE>');
 
 
link_num = document.links.length-1;
 
 
function rotateSponsor() {
 
 
 if (document.images) {
 
 
  ad_num = (ad_num+1)%ads.length;
 
 
  document.js_ad.src = ads[ad_num].src;
 
 
  setTimeout("rotateSponsor()",10000);
 
 
 }
 
 
}
 
 
setTimeout("rotateSponsor()",10000);
 
 
// -->
 
 
          </script> 
That stuff must be managed through the appropriate places in the manager... 
 
Specifically, the CSS Editor.
 
You, also MUST remove:
 Code:</body>
 
</html>
You need to remove the same stuff from the footers, too...
 
NOW, as far as the popup image... You are using the code for a popup HTML page, not the image coding.... Please review the coding specified that uses %%URLofImages%%/%%userFieldTwo%% in it... The other thing was ONLY for presenting a popup .html page...
 
HTH!
			 
			_________________ God Bless!
 
Bonnie - AgoraCart Moderator
 Get a Gold Membership
		 
	 | 
 
	| Mon Jan 07, 08 5:48 pm | 
	               | 
 
	  | 
 
	| 
		
	 | 
 
 
	
	
		
			The time now is Tue Nov 04, 25 3:37 am | All times are GMT - 7 Hours
		 
		 
	 
 
	   | 
	
		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
  | 
	
		
 
		 
		
	 | 
 
 
   |