I'm trying to use a packaged addon for my website and I'm having errors with it displaying the images correctly. I am basically getting a double // on most of my image insertions on my table. The mod's web site devs told me that I needed to
Pretty much you need to search for every place and image is prepared for insertion to the db
well my examples that they gave me were: if it looks like this
$item['item_texture'] = $item_data['Texture'];
then it needs to be changed to this
$item['item_texture'] = preg_replace('|\\\\\\\\|','/', $item_data['Texture']);
well that wasn't hard but it didn't fix my problems. I'm guessing I must have to use it with this line too but I am not sure how to format it
$this->add_value('recipe_texture', $recipe['recipe_texture']) ;
Help anyone??? I can't find the preg_replace described in detail in any of the books I've bought on the subject.