Jump to content


Photo

Pop-up thumnail


  • Please log in to reply
5 replies to this topic

#1 telp

telp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 26 June 2006 - 11:54 PM

Please forgive me, I'm kind of a newbie at php and I am having issues with a pop up-window code. I am trying to put a different image into the pop-up thumnail and the code that I am trying to adjust points at what I would think is the images folder.

<?php echo tep_image(DIR_WS_IMAGES. $products['products_image'], $products['products_name']); ?>

I renamed it to this:

<?php echo tep_image(DIR_WS_IMAGES_ENLARGED . $products['products_image'], $products['products_name']); ?>

here is the url:

www.team-huge.com/shop

can someone please help me or point me in the right direction?

Many many thanks,

Trevor

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 27 June 2006 - 12:49 AM

DIR_WS_IMAGES is a constant. did you rename it, where it is initially defined? You aren't being very clear, so i am going to guess that you have a directory where your images are stored, and you changed the directory name, and thought you would change DIR_WS_IMAGES to DIR_WS_IMAGES_ENLARGED up in that code. Is your directory named WS_IMAGES_ENLARGED or something? you need to go the part of your script that defines the constant and change the value of it to the new directory, not the name of the constant itself.

And unless you plan on renaming the constant where it is declared (and every place that it is used as well), you are going to have to change that up there, back to just DIR_WS_IMAGES
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 telp

telp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 27 June 2006 - 01:17 AM

Can I at that point; where it is defined define an enlarged folder aswell and call that constent as opposed to this one?.....does that make sence?

#4 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 27 June 2006 - 01:23 AM

you can define whatever constants you want. now, i don't know if what you want will actually work or not, as far as making your script do something else than what you have, as i don't see your code or anything. but a rose by any other name is still a rose, as they say.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#5 telp

telp
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 28 June 2006 - 05:00 PM

[!--quoteo(post=388310:date=Jun 26 2006, 07:23 PM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ Jun 26 2006, 07:23 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
you can define whatever constants you want. now, i don't know if what you want will actually work or not, as far as making your script do something else than what you have, as i don't see your code or anything. but a rose by any other name is still a rose, as they say.
[/quote]

Can we corespond Via email as I am having issues posting a reply to this for some reason.

my address is:
telp_rovert@shaw.ca

thanks again muchly,

Trevor

#6 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 28 June 2006 - 07:39 PM

please read this thread:

[a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=96050\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=96050[/a]
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users