Newest version of CGSmartImage does not work in CSS

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Newest version of CGSmartImage does not work in CSS

Post by wmdvanzyl »

I updated CGExtensions and CGSmartImage to versions 1.37.2 and 1.12 respectively and instead of my site, i see my CSS file. Uninstalling CGSmartImage makes my site appear without any styling. CGSmartImage works perfectly when used in my template, but since the update i cannot use it in my stylsheets. I see no indication of change of usage in the module description.

This is how i use it in the stylesheet and it completely breaks my site:

Code: Select all

background-image: url([[CGSmartImage src='uploads/theme/img/pageHeaderBG.png' filter_resize='w,1020,1' filter_crop='70,l,c']]);
Same code in template which works:

Code: Select all

{CGSmartImage src='uploads/theme/img/pageHeaderBG.png' filter_resize='w,1020,1' filter_crop='70,l,c'}
Any ideas?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Newest version of CGSmartImage does not work in CSS

Post by calguy1000 »

Please Post system information.

Check error logs for messages?

Clear cache and search the generated CSS file for any invalid code that may be a message output in the generated CSS?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: Newest version of CGSmartImage does not work in CSS

Post by wmdvanzyl »

calguy1000 wrote:Please Post system information.

Check error logs for messages?

Clear cache and search the generated CSS file for any invalid code that may be a message output in the generated CSS?
I will have to get back to you on that. I have a demo with the client first thing Friday morning, so i rolled back the versions one step and everything is working again. After the demo i will update again and then post those results.


----------------------------------------------

Cms Version: 1.11.7

Installed Modules:

CMSMailer: 5.2.1
CMSPrinting: 1.0.4
FileManager: 1.4.3
MenuManager: 1.8.5
MicroTiny: 1.2.5
ModuleManager: 1.5.5
News: 2.12.12
Search: 1.7.8
ThemeManager: 1.1.8
TinyMCE: 2.9.12
AceEditor: 0.2.5
TemplateExternalizer: 2.0.11
CGExtensions: 1.37.2
CGSmartImage: 1.11


Config Information:

php_memory_limit:
process_whole_template:
max_upload_size: 16000000
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding: utf-8
admin_encoding: utf-8
set_names: true


Php Information:

phpversion: 5.3.10-1ubuntu3.7
md5_function: On (True)
gd_version: 2
tempnam_function: On (True)
magic_quotes_runtime: Off (False)
E_STRICT: 0
E_DEPRECATED: 0
memory_limit: 128M
max_execution_time: 60
output_buffering: 4096
safe_mode: Off (False)
file_uploads: On (True)
post_max_size: 16M
upload_max_filesize: 16M
session_save_path: /var/lib/php5 (1733)
session_use_cookies: On (True)
xml_function: On (True)
xmlreader_class: On (True)


Server Information:

Server Api: apache2handler
Server Db Type: MySQL (mysql)
Server Db Version: 5.5.32
Server Db Grants: Found a "GRANT ALL" statement that appears to be suitable


----------------------------------------------
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Newest version of CGSmartImage does not work in CSS

Post by Rolf »

Is the file path in the stylesheet correct? Perhaps needs root url...
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
wmdvanzyl
Forum Members
Forum Members
Posts: 214
Joined: Fri May 06, 2011 12:48 pm

Re: Newest version of CGSmartImage does not work in CSS

Post by wmdvanzyl »

Haven't checked this in a while. Rolling back to previous version solved my issues and i chose to make the problem go away by ignoring it. That always works out well long term :p

Perhaps it has been fixed, i will try it again tomorrow.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Newest version of CGSmartImage does not work in CSS

Post by calguy1000 »

I just tested. it works fine in stylesheets.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Post Reply

Return to “Modules/Add-Ons”