sjuettn Posted February 20, 2006 Posted February 20, 2006 Hello, I am learning to get along quite well with OSC and PHP, however I am still learning. Can someone help me find where I managed to have added the letter n that appears for each catagory image. If there are six catagories, six n's, four catagories, four n's http://securitas-inc.com/catalog/index.php?cPath=22 I have looked at the source code for the web page and found it, <td align="center" class="smallText" width="33%" valign="top"><a href="http://securitas-inc.com/catalog/index.php?cPath=22_32"><img src="images/fre3n1.jpg" border="0" alt="3-N-1" title=" 3-N-1 " width="125" height="64"><br>3-N-1</a></td>n <td align="center" class="smallText" width="33%" valign="top"><a href="http://securitas-inc.com/catalog/index.php?cPath=22_36"><img src="images/fredeo.jpg" border="0" alt="Deodorant" title=" Deodorant " width="125" height="64"><br>Deodorant</a></td>n <td align="center" class="smallText" width="33%" valign="top"><a href="http://securitas-inc.com/catalog/index.php?cPath=22_35"><img src="images/freshamp.jpg" border="0" alt="Shampoo" title=" Shampoo " width="125" height="64"><br>Shampoo</a></td>n </tr> but that doesn't help me with the OSC files and where to find it... Any hints would be appreciated. Thanks, Sandy
Guest Posted February 20, 2006 Posted February 20, 2006 look in your catalog\index.php file. You should have the carriage returns there, typically at the end of html content lines, like "\n" and not "n"
sjuettn Posted February 20, 2006 Author Posted February 20, 2006 Hello,I am learning to get along quite well with OSC and PHP, however I am still learning. Can someone help me find where I managed to have added the letter n that appears for each catagory image. If there are six catagories, six n's, four catagories, four n's http://securitas-inc.com/catalog/index.php?cPath=22 I have looked at the source code for the web page and found it, <td align="center" class="smallText" width="33%" valign="top"><a href="http://securitas-inc.com/catalog/index.php?cPath=22_32"><img src="images/fre3n1.jpg" border="0" alt="3-N-1" title=" 3-N-1 " width="125" height="64"><br>3-N-1</a></td>n <td align="center" class="smallText" width="33%" valign="top"><a href="http://securitas-inc.com/catalog/index.php?cPath=22_36"><img src="images/fredeo.jpg" border="0" alt="Deodorant" title=" Deodorant " width="125" height="64"><br>Deodorant</a></td>n <td align="center" class="smallText" width="33%" valign="top"><a href="http://securitas-inc.com/catalog/index.php?cPath=22_35"><img src="images/freshamp.jpg" border="0" alt="Shampoo" title=" Shampoo " width="125" height="64"><br>Shampoo</a></td>n </tr> but that doesn't help me with the OSC files and where to find it... Any hints would be appreciated. Thanks, Sandy I might have found something in catalog\index.php echo ' </tr>' . "n"; echo ' <tr>' . "n"; are these the little devils? Sandy
Guest Posted February 20, 2006 Posted February 20, 2006 yea they should been echo ' </tr>' . "\n"; echo ' <tr>' . "\n";
sjuettn Posted February 20, 2006 Author Posted February 20, 2006 yea they should been echo ' </tr>' . "\n"; echo ' <tr>' . "\n"; WONDERFUL! Thank you!!! Sandy
Jack_mcs Posted February 20, 2006 Posted February 20, 2006 The most likely reason they are there in the first place is that you used the file manager in admin. If that is the case and you want to continue to use it, you should install the secruity update, which has a fix for that problem. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
sjuettn Posted February 20, 2006 Author Posted February 20, 2006 The most likely reason they are there in the first place is that you used the file manager in admin. If that is the case and you want to continue to use it, you should install the secruity update, which has a fix for that problem. Jack You are right. I did use file manager to edit this particular file in the beginning and goofed things up. Now that you mention it-I learned through the forum that doing that strips some of the \'s out. So I use a php editor or the cpanel file manager now. Thanks for the reminder, I forgot why I was doing it that way. Thanks again, Sandy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.