• I’m trying to get ShoutCloud to work with my site.

    Now the instructions say that I have to do add this to my page

    <?php session_start(); ?>
    <?php include('shoutcloud.php'); ?>
    <link type="text/css" rel="stylesheet" href="shoutcloud/ShoutCloud-min.css" media="screen">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="shoutcloud/ShoutCloud-min.js"></script>

    I used this plugin to try to add it but it doesn’t work. Any help?

Viewing 14 replies - 1 through 14 (of 14 total)
  • It looks like you are trying to add it to a post or page. I would instead try hard coding it into your template e.g. sidebar.php or page.php.

    You would be best to do it on it’s own page and then use a page template to add the needed code that you have above.

    Thread Starter intrepid9

    (@intrepid9)

    So I add

    <?php session_start(); ?>
    <?php include('shoutcloud.php'); ?>

    to the page.php template and add

    <link type="text/css" rel="stylesheet" href="shoutcloud/ShoutCloud-min.css" media="screen">
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
    <script type="text/javascript" src="shoutcloud/ShoutCloud-min.js"></script>

    to the page?

    Thread Starter intrepid9

    (@intrepid9)

    Ok, I got it to display but it isn’t displaying correctly… Help anyone?

    A link to the page would be useful in seeing what exactly you mean by “isn’t displaying correctly”.

    Thread Starter intrepid9

    (@intrepid9)

    Here is the link

    Okay, it is due to where you place the code. If you are allowed, can you post the whole template file you edited and I will replace it to where it is meant to go in that file.

    Thread Starter intrepid9

    (@intrepid9)

    Oh, by the way, this is another one I did. This one looks more like what it is supposed to look like, however, it still doesn’t function correctly…
    I checked the smilies and the path they are looking for; it is like /page/shoutcloud/smilies/bla but since wordpress makes dynamic pages, it isn’t able to be put where it wants to.

    I used a custom template because I didn’t want to destroy the main pages. It is basically a direct copy of the page.php

    Anyway, I have pasted everything here on pastebin.

    Thread Starter intrepid9

    (@intrepid9)

    So, there is no way to do this?

    Did you include all of shoutcloud files in the template folder?

    Reason I ask is we may need to change how the include bit works and edit the file a bit to point to the correct location for the images as you pointed out.

    Thread Starter intrepid9

    (@intrepid9)

    The template folder? I put a copy of the folder in the main directory and also another copy in the theme folder…

    Also, the images was just an example; all the stuff that is needed is in the shoutcloud folder which it can’t find.

    Right, I am going to give it a try on my site tomorrow and if I get it working I will post how I did it for you.

    Thread Starter intrepid9

    (@intrepid9)

    Ok thanks. Do you need the shoutbox folder and php files?

    Thread Starter intrepid9

    (@intrepid9)

    I know this is old, but it still isn’t resolved… Can anyone help?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Adding PHP Chat’ is closed to new replies.