Tutorials

Eliminate line breaks in html emails generated in the Newsletter Manager.

Eliminate unwanted line breaks in html emails generated in the Newsletter Manager. in catalog/admin/includes/classes/email.php around line 160 find: function add_html($html, $text = NULL, $images_dir = NULL) { $this->html = tep_convert_linefeeds(array(“\r\n”, “\n”, “\r”), ‘<br />’, $html); $this->html_text = tep_convert_linefeeds(array(“\r\n”, “\n”, “\r”), … Continue reading

Posted in Tutorials | Leave a comment

Secure Your Images file

Protect your images folder with this simple .htaccess file. Create a blank file, add this code to it, name it .htaccess and upload to your images file: <FilesMatch "\.(php([0-9]|s)?|s?p?html|cgi|pl|exe){:content:}quot;>Order Deny,AllowDeny from all</FilesMatch> This prevents any files with .php or .exe … Continue reading

Posted in Tutorials | Leave a comment

Misc Tips

Parsing a url Echo a url. Here is an example of a webpage with a query string attached: $url = “http://”.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'].”?”.$_SERVER['QUERY_STRING']; echo $url; example result: http://www.mywebsite.com/mail.php?f2fc1b9ecc1986f34588fd=listAudience&modulemail Echo just the query string of the url: echo $_SERVER['QUERY_STRING']; example result: f2fc1b9ecc1986f34588fd=listAudience&modulemail Echo … Continue reading

Posted in Tutorials | Leave a comment

Registering, or Setting, a Value in OSCommerce.

Set a value on one page that is available for another page, or anywhere on the site: For example, to set the value of $myvar as ‘delorum ipsum’: One the page you wish to carry that value to, simply echo … Continue reading

Posted in Tutorials | Leave a comment