blr044 Posted May 29, 2010 Posted May 29, 2010 I installed this without having any problems. But I added another files to the list of files to be edit using admin. I went into the download and copied the shipping file and went through them all and changed shipping to product_material where ever I found the word shipping or shipping.html. The link in the information infobox displays correctly. But when mouseover the link, it displays this url in the task bar at bottom of browser. http://mydomain.com/FILENAME_PRODUCT_MATERIAL. I have checked, file is located in the root and also in includes/filename.php. Even checked to see if something was mistyped. So with it displaying the way it is, isn't that telling me that the code is not correct in filenames? This is what is in the filename.php file: // Linuxuk Add FCK to pages BOF define('FILENAME_ABOUT_US', 'about_us.php'); define('FILENAME_ABOUT_US_HTML', 'about_us_html.php'); define('FILENAME_CONDITIONS_HTML', 'conditions_html.php'); define('FILENAME_PRODUCT_MATERIAL_HTML', 'product_material_html.php'); define('FILENAME_INDEX_HTML', 'index_html.php'); define('FILENAME_CONTACT_HTML', 'contact_html.php'); define('FILENAME_PRIVACY_HTML','privacy_html.php'); define('FILENAME_SHIPPING_HTML','shipping_html.php'); // Linuxuk Add FCK to pages EOF It's a very easy install, but just am seeing where I went wrong, even came back after some sleep and refreshed. So if anyonw has this mod installed or maybe an isea, would appreciate hearing this forum. Thanks. Quote
germ Posted May 29, 2010 Posted May 29, 2010 The define is for FILENAME_PRODUCT_MATERIAL_HTML The link you posted shows FILENAME_PRODUCT_MATERIAL Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted May 29, 2010 Author Posted May 29, 2010 The define is for FILENAME_PRODUCT_MATERIAL_HTML The link you posted shows FILENAME_PRODUCT_MATERIAL yes, you are right. But following instruction, I just copied shipping and the renamed it product_material changed the word shipping to product_material in all the downloaded files. Here is my boxes/information file: $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . // Linuxuk Add FCK to pages BOF '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRODUCT_MATERIAL) . '">' . BOX_INFORMATION_PRODUCT_MATERIAL . '</a><br>' . // Linuxuk Add FCK to pages EOF '<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>'); Am just not seeing it, sorry! Quote
germ Posted May 29, 2010 Posted May 29, 2010 The text in the define and the text in the link need to be the same. They currently are not. Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted May 29, 2010 Author Posted May 29, 2010 Changed everything, but it made matters worse. Get error message at top of page along with erros when trying to access product material page. So rand backup to restore it back. Will have to work on this more later to find a solution. Thanks for your time. Quote
germ Posted May 30, 2010 Posted May 30, 2010 From the code you posted it looked like all you needed to do was change: define('FILENAME_PRODUCT_MATERIAL_HTML', 'product_material_html.php'); To: define('FILENAME_PRODUCT_MATERIAL', 'product_material_html.php'); Then the text in the link would have matched the text in the define. Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
blr044 Posted May 30, 2010 Author Posted May 30, 2010 From the code you posted it looked like all you needed to do was change: define('FILENAME_PRODUCT_MATERIAL_HTML', 'product_material_html.php'); To: define('FILENAME_PRODUCT_MATERIAL', 'product_material_html.php'); Then the text in the link would have matched the text in the define. Thanks. When I have extra time I will give that a try. Quote
blr044 Posted May 30, 2010 Author Posted May 30, 2010 Found Problem. Forgot to create product_material.php for the language/english/*.* and once created a define for that file in filenames, all is ok now. That break away form compute for awhile, makes a difference. So thanks Jim. Quote
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.
Note: Your post will require moderator approval before it will be visible.