We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13928
    • 28 Posts
    how I call yshout


    I copied a code from text file repo-1234.txt into a snippet called chat

    i write in my Contact page( resource content )

    [[chat]]
    <div id="yshout"></div>


    but it still doesn’t appear



    I also copied

    <script src="yshout/js/jquery.js" type="text/javascript"></script>
    <script src="yshout/js/yshout.js" type="text/javascript"></script>
    <link rel="stylesheet" href="yshout/example/css/light.yshout.css" />

    <script type="text/javascript">
    new YShout({
    yPath: ’http://ogledalo.si/prodaja//assets/snippets/yshout/’
    });
    </script>

    into my head of template
      • 21475
      • 80 Posts
      Hello,
      Have you tried to call your snippet uncached? [!...!] ?
        • 13928
        • 28 Posts
        yes....

        there s something i didn’t do , but I don’t know what
          • 21475
          • 80 Posts
          Quote from: Jelen at Aug 31, 2009, 12:17 AM


          yPath: ’http://ogledalo.si/prodaja//assets/snippets/yshout/’


          You have a // in the path.
          Are you also sure of the path?
            • 13928
            • 28 Posts
            should i try just assets/snippets/yshout/

            i ll try everything again...

            tnx for helping me !
              • 13928
              • 28 Posts
              No, it doesn’t work...

              I change it to yPath: ’assets/snippets/yshout/’ and yPath: ’http://ogledalo.si/prodaja/assets/snippets/yshout/’ with no //


              Do you maybe have msn ?



              are those path (src) right ? I have yshout in assets/snippets/yshout

              <script src="yshout/js/jquery.js" type="text/javascript"></script>
              <script src="yshout/js/yshout.js" type="text/javascript"></script>
                • 7923
                • 4,213 Posts
                Quote from: Jelen at Aug 31, 2009, 03:07 AM

                are those path (src) right ? I have yshout in assets/snippets/yshout

                <script src="yshout/js/jquery.js" type="text/javascript"></script>
                <script src="yshout/js/yshout.js" type="text/javascript"></script>
                Ofcourse not then.. you need to use:

                <script src="[(site_url)]/assets/snippets/yshout/js/jquery.js" type="text/javascript"></script>
                <script src="[(site_url)]/assets/snippets/yshout/js/yshout.js" type="text/javascript"></script>

                Also note that yshout uses jquery, so if you have other js libraries running on the same page, you will most probably get js collisions and it won’t work. In that case you can try running jQuery in "no conflict" mode.


                  "He can have a lollipop any time he wants to. That's what it means to be a programmer."
                  • 13928
                  • 28 Posts
                  It’s still doesn’t work.

                  Where’s the problem sad
                    • 21475
                    • 80 Posts
                    Have you check that your files are readable by apache?
                    If you look at the sources, have you check that you can display js code? Try to paste the url in the browser and see if js is displayed.
                      • 13928
                      • 28 Posts
                      yes i changed everything to 777 in my ftp server(checked)

                      And if i copy url from my template

                      <script src="http://ogledalo.si/prodaja/assets/snippets/yshout/js/jquery.js" type="text/javascript"></script>
                      <script src="http://ogledalo.si/prodaja/assets/snippets/yshout/js/yshout.js" type="text/javascript"></script>
                      <link rel="stylesheet" href="http://ogledalo.si/prodaja/assets/snippets/yshout/example/css/light.yshout.css" />

                      <script type="text/javascript">
                      new YShout({
                      yPath: ’http://ogledalo.si/prodaja/assets/snippets/yshout/’
                      });
                      </script>




                      I get in browser js code