Thanks for the answer it didnt work.!
I found this topic today, http://forums.pligg.com/questions-co...p-problem.html.
Here you gave extended info.!
Ive put this <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip')) ob_start("ob_gzhandler"); else ob_start(); ?>
At the top of libs.html1.php.
And i got the gzip working for the whole site.. Finaly some months later down this topic
Question chuckroast or yankidank.
Why does when inserting the above code gzip works.
And not when i only use the .htaccess code you gave me. Do i use both? the code in .htaccess and the code in libs/html1.php ?
Can i better use this code in the .htaccess instead of the other standard pligg gzipcode for the .htaccess?
Code:
# php compression – use with caution
<ifmodule mod_php4.c>
php_value zlib.output_compression 16386
</ifmodule>
# BEGIN Compress text files
<IfModule mod_deflate.c>
<FilesMatch "\.(css|js|x?html?|php)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
# END Compress text files
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "access plus 2592000 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 216000 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<FilesMatch "\\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
<FilesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</FilesMatch>
<FilesMatch "\\.(x?html?|php)$">
Header set Cache-Control "max-age=600, private, must-revalidate"
</FilesMatch>
</IfModule>
# END Cache-Control Headers
# BEGIN Turn ETags Off
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
# END Turn ETags Off
# BEGIN Remove Last-Modified Header
<IfModule mod_headers.c>
Header unset Last-Modified
</IfModule>
# END Remove Last-Modified Header
How do you other pligg site owners have your gzip setup?
Working or not and how ?
And chuckroast in the other topic you explain this bout the js and {if}
Code:

Originally Posted by
chuckroast
Another thing you can try if you are still trying to get the gzip thing to work is go though your pligg.tpl file in your template.
Near the top where there are javascript calls.. add the following to them
{if $enable_gzip_files eq 'true'}.gz{/if}
So it would look like this
filename.js
would now look like
filename.js{if $enable_gzip_files eq 'true'}.gz{/if}
Hope that helps.
How would i ise that like below ? Is the code below good to compres the js with if ?
{if check_for_enabled_module('jquery',0.2)}{else}<scri pt type="text/javascript" src="{$my_pligg_base}/templates/{$the_template}/js/jquery-1.4.2.min.js">{if $enable_gzip_files eq 'true'}.gz{/if}</script>{/if}
Thanks in advance for your time.