Forum Moderators: not2easy

Message Too Old, No Replies

How to import CSS from different domain to make sure client pays me

Can I host a 2nd stylesheet to protect myself?

         

moxie81

9:38 pm on Jan 20, 2010 (gmt 0)

10+ Year Member



I have a client who has me installing multiple Joomla installs on his server and customizing the templates. I have done about 5 different sites for him, and he is asking me to do a few more, but he hasn't paid me for the work yet. I truly believe he intends to, but he said he just needs to make sure the site buyer pays him on Thursday, so he can pay me on Friday.

What I would like to do, just as a precaution, is to use the @import css technique to import the style declarations from my own server, that way, if he ends up not paying for the work I have done, I can disable the stylesheet on my server, leaving him with a blank or visibility-blocking styles.css on his server.

Example:
< head >
link maindomain/style.css

content of this file:
html, body, p, img, h1, h2 { display:none; margin-left:999px; visibility:hidden }

@import mydomain/protection.css
content of this file: all the actual css for the template

< /head >

Is this possible? Would it display an alert in the browser saying you are trying to view content across multiple domains?

Again, I really don't think this guy is out to screw me over, but it has happened before, so I would like to have some type of measures in place to protect myself, having already invested a lot of time into building these sites for his clients. I don't want to do anything unprofessional, like vandalize the sites, I just want to make sure that I have a way to remove the work I have done if it's not paid for. Then after I am paid, I could restore all the CSS declarations to the main domain's stylesheet and get rid of the protect.css import...

Perhaps a simpler way would just be to use a remotely-called header image instead of the entire stylesheet, but this could easily be edited and restored by someone just going in and seeing the external URL in the header class. So it wouldn't be as fool-proof as the first option.

Thanks for your opinions, input, and suggestions.

BeeDeeDubbleU

10:14 pm on Jan 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sounds like a good idea but I suppose if he was really clued up he could download the CSS file before you remove it but it is unlikely that it would occur to him.

Hope you get paid!

moxie81

10:45 pm on Jan 20, 2010 (gmt 0)

10+ Year Member



The thing is, I have tried it and it's not working. I must have the syntax wrong. As long as the import line comes after the linked css, it should take precedence, correct?

BeeDeeDubbleU

11:07 pm on Jan 20, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Sorry, I am not able to help you with the technical side but there are lots of results in G.
[google.com...]