| ||||||||||
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 |
#31
|
|||||||||
|
|||||||||
GM,
Could you post your 4.0 code for us please? |
|||||||||
#32
|
|||||||
|
|||||||
Quote:
So tell me, I see your on vs 4.0.9 now. What did you do to the code to make it work for this version? Will ADP's last post with all of the corrections made do the trick, or is there more to it than that? Thanks in advance for the help.
__________________
vs 4.1.12 |
|||||||
#33
|
|||||||
|
|||||||
I never changed the original code (NuAlpha revised version) XCart v4.09 and my sight is smokin' ! I'm on a shared server too.But I also applied Boomers Smarty Mod for the flipover.
This is the mod of the year man! Well.... that's not all... I trimmed out the tags in home.tpl, trashed fancy cats, optimized my graphics, souped up the head.tpl...etc. (Nice Holley four barrel pumper...) |
|||||||
#34
|
|||||||
|
|||||||
And to think, shortly after writing this mod we decided using the HTML catalog was not feasible because of the number of product pages we have. Had to write some complex PHP and MySQL code distributed throughout Xcart to tie in precisely with mod_rewrite code. It all worked so well (after many migraine related bug fixes) our HTML catalog has since been deleted.
The only time this code became a server drain was when the Pompos/dir.com search engine bot brutalized our site, sucking more pages per minute than MSN, Google, Google-Media, Froogle, Yahoo, Teoma, etc. combined. They have since been banned.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#35
|
|||||||
|
|||||||
Quote:
In my cart, I have a few scripts that did not work with the literal tags, so I removed them and they worked. I noticed ADP had a complaint about the script issues up front and then there was a bit of tweaking going on, but if I remember, in the thread I thought I saw a mention of the use of literal tags to keep it working. With my inability to add the literal tags on the few scripts that didn't work until they were removed, will this Mod work for me without damage to the scripts? Thanks for the input, I appreciate it.
__________________
vs 4.1.12 |
|||||||
#36
|
|||||||||
|
|||||||||
Path Issues in php script
Hi NuAlpha
Thanks for the post - it looks good. I'm having problems with setting the absolute path in the Defining Constants. My site has the following structure to the catalog: http://www.eotr.com/Light4Life/catalog I have created the .php file and put it into the directory, but it keeps complaining about the "is not a directory! Please check the path and try again." for all the path methods I have used so far. Do we need to set special permissions for the php script and the html files? I have 1200 files with average size of 200Kbytes each. It would be interesting to see what it does to them Regards Ing. Stephen Hatton
__________________
Apache Linux V1.3.33 PERL version: 5.8.0 PHP version: 4.3.11 MySQL version: 4.0.22-standard X-cart V4.0.17: Addons: X-PConfig, X-Giftreg, X-Fancycat, X-AOM |
|||||||||
#37
|
|||||||
|
|||||||
Re: Path Issues in php script
Quote:
You have to enter the absolute file path from root. For instance, most setups would look like-> "/home/user-dir-name/public_html/Light4Life/catalog" Don't include your domain name or http:// with that directory path. Your absolute file path should start with forward slash, which is root-> "/" Quote:
Permissions for the catalog directory should be chmod 777.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#38
|
|||||||
|
|||||||
Quote:
The mod I posted is only supposed to be used on the HTML catalog that you generate through Xcart.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
#39
|
|||||||
|
|||||||
Quote:
Yes I understand that, yet the javascripts I am refering to are based in the customer home.tpl, where this is used to generate those HTML cat pages. So, when the catalog generation has been completed, and this mod has run to remove white spaces, the code embedded in the html pages, will it be damaged? Thanks for the reply
__________________
vs 4.1.12 |
|||||||
#40
|
|||||||
|
|||||||
Quote:
If you are refering to the javascript being damaged by striping the whitespaces, then no that code won't be damaged. The javascript is accounted for and allowed to have extra whitespaces. As for any other non-javascript code encased in {literal} tags, there is no way to prevent spaces from being striped as they are written purely as HTML once the catalog has run, not in Smarty template form. Is this what you were refering to? Sorry if I over/under explained myself.
__________________
X-Cart Pro 4.5.5 Platinum X-Payments 1.0.6 PHP 5.3.14 MySQL 5.1.68 Apache 2.2.23 |
|||||||
|
|||
X-Cart forums © 2001-2020
|