ultrandy Posted April 25, 2010 Share Posted April 25, 2010 Hello, I can't figure out this frustrating problem!! My images on certain listings that have ' (apostrophe) in their titles.. they disappear! I have added stripslashes everywhere and they still disappear! I have no other problems anywhere else with them just the image!.. is there something I should look at for this? I just checked my images folder and the images that disappear don't have a ' in their titles either!! I am using the additional images module.. but this was happening way before right when I started my cart! http://www.oscommerce.com/community/contributions,1032 Thank you!!! Link to comment Share on other sites More sharing options...
NodsDorf Posted April 25, 2010 Share Posted April 25, 2010 add a \ before each apostrophe. Example I can't help you = I can\'t help you. Hope that helps. Link to comment Share on other sites More sharing options...
ultrandy Posted April 25, 2010 Author Share Posted April 25, 2010 add a \ before each apostrophe. Example I can't help you = I can\'t help you. Hope that helps. I tried that and my images show up!! however now my shopping cart, checkout, and product_listing all show the /'! Is that the only way? Link to comment Share on other sites More sharing options...
ultrandy Posted April 25, 2010 Author Share Posted April 25, 2010 Any idea on how to integrate this? Like on this one.. I can't figure out how to stripslahes on it!! $info_box_contents[$row][$col] = array('align' => 'center', 'params' => 'class="smallText" width="'.(100/PRODUCTS_PER_ROW).'%" valign="top"', 'text' => $border . '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $image, $products['products_name'], PRODUCT_IMAGE_WIDTH, '') . '</a>' . '<br><br><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products['products_id']) . '">'. (PRODUCT_LIST_NAME ? '<b>' . $products['products_name'] . '</b>' : '' ) . '</a><br><br>' . ($products['short_desc'] && (PRODUCT_SHORT_DESC == 'true') ? $products['short_desc'] . '<br><br>' : '') . $model . $show_price . $borderend . $button); I tried but I keep getting confused, and its not in the loop properly. I tried to fit my product name into it and I couldn't figure it out!! The code I tried to integrate <?php echo stripslashes($products['products_name']); ?> Link to comment Share on other sites More sharing options...
ultrandy Posted April 25, 2010 Author Share Posted April 25, 2010 I come from a wordpress background, and many times "smart quotes" were used for similar problems. Is there something similar to that? Oscommerce is utf-8 right? Link to comment Share on other sites More sharing options...
chooch Posted April 25, 2010 Share Posted April 25, 2010 Hello, I can't figure out this frustrating problem!! My images on certain listings that have ' (apostrophe) in their titles.. they disappear! I have added stripslashes everywhere and they still disappear! I have no other problems anywhere else with them just the image!.. is there something I should look at for this? I just checked my images folder and the images that disappear don't have a ' in their titles either!! I am using the additional images module.. but this was happening way before right when I started my cart! http://www.oscommerce.com/community/contributions,1032 Thank you!!! I would not have added an image contribution until or unless I had fixed the image issue first as it may mean more issues for you to sort out. What is the URL? Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.