| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
HTML Catalog Cleaner - Removes excess white space | ||||
|
|
Thread Tools | Search this Thread |
#21
|
|||||||
|
|||||||
Same problem here in 3.5.10...parse error line2.....If you take take out the lines:
<?php б═ б═ini_set('zlib.output_compression', 'Off'); // Turn off zlib compression, if On, to prevent Mozilla output problems. ?> It gives a parse error on line 44....any ideas?
__________________
Version 4.1.9 |
|||||||
#22
|
|||||||||
|
|||||||||
Smarty has this built-in
Code:
http://smarty.incutio.com/?page=SmartyTips
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart. |
|||||||||
#23
|
|||||||
|
|||||||
Quote:
Yep, but it doesn't clear out the white spaces in the HTML catalog. It also won't remove all excess white space just multiples of the same kind. All of our templates are enclosed ing {strip} tags and our pages download as one long line of code. Remove the tags and turn on that output filter, and the code remains multi-line. As for the problem people are having here with the code I posted, I haven't a clue what could be wrong as I verified the code in Zend Studio and everything checks out fine. The one I have is the same version and runs just fine.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#24
|
|||||||
|
|||||||
I figured it out. The problem is that when you copy the file there is a lot of white space before some lines. Take out all of that space, and the code works great. Awesome mod. It stripped 391,200 white spaces from my catalog
-Bradley
__________________
Version 4.1.9 |
|||||||
#25
|
|||||||
|
|||||||
Will this mod have any affect on Google spidering (positive or negative?)
-Bradley
__________________
Version 4.1.9 |
|||||||
#26
|
|||||||
|
|||||||
Quote:
Positive in that the pages will download somewhat faster. Other than that I do not know.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#27
|
|||||||
|
|||||||
Compatibal with 4.0.6?
Will this work with 4.0.6?
__________________
R Nixon X-Cart 4.0.6 PHP 4.3.8 MySQL Server 4.0.20 MySQL Client 3.23.49 Linux/Apache Net::SSLeay 1.25 |
|||||||
#28
|
|||||||
|
|||||||
I'm gonna' try it on 4.06 (nice job!)
|
|||||||
#29
|
|||||||
|
|||||||
X-Cart Version 3.5.4
Mod is very sick! Worked like a clock! Here's the data: ----------------------------------------------------- There were 82,069 successful cleanings and 1 failures out of a total of 82,070 files. Your HTML Catalog files had a total combined length of 2,500,312,154 characters. They now have a total length of 2,009,804,777 characters. That is a total of 490,507,377 excess white spaces removed from your files. ----------------------------------------------------- Never mind the failure - it was garbage in the database. Anyone had more whitespaces removed than I have? Metal-X |
|||||||
#30
|
|||||||
|
|||||||
Works like a charm! Nice one!
|
|||||||
|
|||
X-Cart forums © 2001-2020
|