I’m trying ...
So, from beginning :
1) I downloaded Yshout
2) I copied yshout folder into my webserver in assets/snippets/
3) I create new snippet called Chat and copied the code below:
<?php
$src = "assets/snippets/yshout/js/jquery.js";
$modx->regClientScript($src);
$src2 = "assets/snippets/yshout/js/yshout.js";
$modx->regClientScript($src2);
$css = "assets/snippets/yshout/css/yshout.css";
$modx->regClientCSS($css);
$src3 = "<script type=’text/javascript’>
$(document).ready(function(){
new YShout({
yPath: ’assets/snippets/yshout/’
});
});
</script>";
$modx->regClientScript($src3);
?>
4) I clicked edit on my CONTACT page in the tree on my left side, and insert in Resource Content :
[!Chat!]
<div id="yshout"></div>
I erase what you told me, i checked in the source of my CONTACT page if it appears and it has.
if I change src of code in my snippet to whole URL it still doesn’t work .
http://ogledalo.si/prodaja/assets/snippets/yshout/.........
my web page is www.ogledalo.si/prodaja