“Uncaught SyntaxError: Unexpected token { ” in Bootstrap 2.1.0 bundled with Joomla! 3.0

You have syntax error because you tried to include CSS file as it was JavaScript, so change <script type=”text/javascript” src=”https://stackoverflow.com/questions/14979755/<?php echo $this->baseurl ?>/media/jui/css/bootstrap.css”></script> to <link href=”https://stackoverflow.com/questions/14979755/<?php echo $this->baseurl ?>/media/jui/css/bootstrap.css” rel=”stylesheet” type=”text/css” /> Also close other link tags properly with />, not with just >

How does this site infecting script work?

Notice the replace call after the giant messy string: .replace(/#|\$|@|\^|&|\(|\)|\!/ig, ”). It removes most of the special characters, turning it into a normal URL: evil://dyndns-org.gamestop.com.mybestyouxi-cn.genuinehollywood.ru:8080/softonic.com/softonic.com/google.com/livejasmin.com/videosz.com/ (I manually changed http: to evil:) Note that the regex could have been simplified to .replace(/[#$@^&()!]/ig, ”) If you look at the script, you’ll see that it’s a very simple … Read more

Target a css class inside another css class

Not certain what the HTML looks like (that would help with answers). If it’s <div class=”testimonials content”>stuff</div> then simply remove the space in your css. A la… .testimonials.content { css here } UPDATE: Okay, after seeing HTML see if this works… .testimonials .wrapper .content { css here } or just .testimonials .wrapper { css here … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)