nkahook Posted December 18, 2009 Share Posted December 18, 2009 Hi, I'm updating a site and I'm having problems with some php links that are inserted in the information box. The script is: <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_INFORMATION); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>'. '<a href="' . tep_href_link(FILENAME_HOWORDER) . '">' . BOX_INFORMATION_HOWORDER . '</a><br>' . '<a href="' . tep_href_link(FILENAME_FAQS) . '">' . BOX_INFORMATION_FAQS . '</a></br>'. '<a href="' . tep_href_link(FILENAME_4PRESCRIPTION) . '">' . BOX_INFORMATION_4PRESCRIPTION . '</a>'); The code I bolded is the one giving me the problem. Instead of showing up as $4 Prescriptions on the web page its showing as BOX_INFORMATION_4PRESCRIPTION. Every time I try to make a change the whole site goes down except for the header and a thin beige line. My php experience is limited so someone please please help! Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/ Share on other sites More sharing options...
cytech Posted December 18, 2009 Share Posted December 18, 2009 BOX_INFORMATION_4PRESCRIPTION - looks to be a globally defined variable, check in a config file or "customization" file to see where they are setting the others - such as "BOX_INFORMATION_FAQS". Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-979929 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 Do you have any idea where I can locate that file? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-979968 Share on other sites More sharing options...
emopoops Posted December 18, 2009 Share Posted December 18, 2009 tep makes no sense. i sugst just sticking with href Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-979981 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 I've tried that and the whole page goes down. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980098 Share on other sites More sharing options...
emopoops Posted December 18, 2009 Share Posted December 18, 2009 u need to work your code around href.. what do u think is making it go down. and by go down what do u mean exactly? got a screensnip? Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980104 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 Go to www.prescriptiongiant.com. Every time I touch that code that whole thing goes down except the header and a thin beige line. Which is I'm assuming the background of the Information box. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980108 Share on other sites More sharing options...
emopoops Posted December 18, 2009 Share Posted December 18, 2009 i dont see anything on that website that is of this going down on thing Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980111 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 Its not down now but if you look at the information box do you see the $4 link and also if you click the shipping page it goes to a white page. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980146 Share on other sites More sharing options...
emopoops Posted December 18, 2009 Share Posted December 18, 2009 i dont see the four odllar link Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980148 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 It says Box_Information_4Prescription Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980155 Share on other sites More sharing options...
premiso Posted December 18, 2009 Share Posted December 18, 2009 Where did this script come from? I take it you did not write it. Is it a 3rd party script or did you have it custom built? If custom built ask the coder, if third party, what is the script you are using and I will move this post to the proper section so someone familiar with that script may be able to help you. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980160 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 A team from India did it before I started working here. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980163 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 There is no way for me to contact them. I thought it was php code. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980204 Share on other sites More sharing options...
nkahook Posted December 18, 2009 Author Share Posted December 18, 2009 We are using oscommerce if that has anything to do with it Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980206 Share on other sites More sharing options...
premiso Posted December 18, 2009 Share Posted December 18, 2009 It will help for anyone who looks at this that knows or has OSCommerce. I moved the topic to the proper section (Third Party). I would suggest going onto OSCommerce forums and seeing if they will help you. I have not used OSCommerce in a long time, and taken that the code was modified I do not know what or why it is not working. I would take it up with the people who modified it. Quote Link to comment https://forums.phpfreaks.com/topic/185606-php-script-for-links/#findComment-980248 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.