WordPress.org

Ready to get started?Download WordPress

Forums

Adding PHP Chat (15 posts)

  1. intrepid9
    Member
    Posted 2 years ago #

    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="http://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?

  2. Kevin Muldoon
    Member
    Posted 2 years ago #

    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.

  3. Snat
    Member
    Posted 2 years ago #

    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.

  4. intrepid9
    Member
    Posted 2 years ago #

    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="http://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?

  5. intrepid9
    Member
    Posted 2 years ago #

    Ok, I got it to display but it isn't displaying correctly... Help anyone?

  6. Snat
    Member
    Posted 2 years ago #

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

  7. intrepid9
    Member
    Posted 2 years ago #

    Here is the link

  8. Snat
    Member
    Posted 2 years ago #

    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.

  9. intrepid9
    Member
    Posted 2 years ago #

    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.

  10. intrepid9
    Member
    Posted 2 years ago #

    So, there is no way to do this?

  11. Snat
    Member
    Posted 2 years ago #

    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.

  12. intrepid9
    Member
    Posted 2 years ago #

    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.

  13. Snat
    Member
    Posted 2 years ago #

    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.

  14. intrepid9
    Member
    Posted 2 years ago #

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

  15. intrepid9
    Member
    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic