Guest Posted January 15, 2004 Share Posted January 15, 2004 I am installing the add_favorites v1.0 and it went it quite easily and works properly BUT- I cannot find where to knock the corners off the header of the box and (more importantly) instead of saying "Add to favorites" it keeps appearing as BOX_INFORMATION_BOOKMARK_TEXT I've gone through and double-checked the call in english.php and it's fine (// favourites box text in includes/boxes/add_favourites.php define('BOX_INFORMATION_BOOKMARK', 'Add to Favourites');) There are 2 instances in the actual php file that use this line and I've tried replacing both with no luck. I ran into the same problem with show_random and found the problem was a misplaced pair of ' and thought it might be causing it here but neither instance is enclosed with '. The code looks like this: $text = "<a href=\"java script:window.external.AddFavorite('$self','$HTTP_HOST Online Shop - " . str_replace("'", "\'", $product_box_info_values["products_name"])."')\" > " . BOX_INFORMATION_BOOKMARK_TEXT . $product_box_info_values['products_name']."</a>"; } else { $text = "<a href=\"java script:window.external.AddFavorite('$self','$HTTP_HOST Online Shop')\">" . BOX_INFORMATION_BOOKMARK_TEXT . "</a>"; } $info_box_contents[] = array('align' => 'center', And you can see the shop here: http://oddsandinsonline.com/catalog/ Quote Link to comment Share on other sites More sharing options...
Guest Posted January 15, 2004 Share Posted January 15, 2004 Yay! I got that part fixed- it was missing a define: // favourites box text in includes/boxes/add_favourites.php define ('BOX_INFORMATION_BOOKMARK', 'Add to Favourites'); define('BOX_INFORMATION_BOOKMARK_TEXT', 'Click to Add!'); Now for those corners! Quote Link to comment Share on other sites More sharing options...
Druide Posted January 15, 2004 Share Posted January 15, 2004 welcome to the world of coding...lol Quote Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2004 Share Posted January 16, 2004 (edited) This is my second shop install (the first one is here: http://oldewillowstitchery.com/catalog) and wouldn't you know it? Just enough time between to forget everything I thought I knew. >sigh< Reminds me of having kids. Oh well, off to try to get SaleMaker and Wishlist in AND working... Edited January 16, 2004 by quin Quote Link to comment 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.
Note: Your post will require moderator approval before it will be visible.