Results 1 to 8 of 8
  1. #1
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default Shoutbox Required

    I am in need of a customisable shoutbox {Seperate CSS File If Possible} with an admin panel, and mod panel.. Or just commands for mods and admins..

    The shoutbox needs to be like seperate, so i can put in include for the submit a shout form and another include for the actual list of shoutouts, it needs to have a user defined height with a scrollbar on it {The list of shoutouts} so i can include on my page..

    If anyone can make one or tell me the URL to one i will be very greatful..

    Thanks, Ryan..

  2. #2
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:


  3. #3
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Nope & Nope...

    Techtuts one isnt what i am looking for..

    and myshoutbox no way.

  4. #4
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default

    Yeah well i just thort id do my bit

  5. #5
    Join Date
    Sep 2005
    Posts
    1,604
    Tokens
    0

    Latest Awards:

    Default

    Sorry for double post, cant edit

    try this:
    http://www.zenomgt.com/forums/index.php?showtopic=1100

  6. #6
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Urm i am no good at PHP really, can anyone set that up? If so, PM me :}

  7. #7
    Join Date
    Dec 2005
    Location
    England | Brighton
    Posts
    1,378
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by chris2k6 View Post
    Sorry for double post, cant edit

    try this:
    http://www.zenomgt.com/forums/index.php?showtopic=1100
    That looks good,

    Its very easy to set up. Copy and paste the code into a notepad and save them as what they are.

    I am just telling him what to do.


    Copy and paste this into notepad and save it as
    addtag.php
    PHP Code:
    <?php 
     
    // This gets the information from the form
    $name $_POST['name'];
    $website $_POST['website'];
    $message $_POST['message'];
     
    // This takes the smiley code in the message and turns it into a smiley
    $code = array(
        
    '/:\)/',
        
    '/:P/',
        
    '/:D/'
    );
     
    $image = array(
        
    '<img src="smileys/smile.gif">',
        
    '<img src="smileys/razz.gif">',
        
    '<img src="smileys/biggrin.gif">'
    );
    $formatted preg_replace($code$image$message);
     
    // Set up how it's going to be displayed.
    $tag = ("<font size=\"2\" face=\"Arial\">
    <a href=\"
    $website\" target=\"_blank\">$name</a>: $formatted
    </font><br>"
    );
     
    // Gather the data currently in the file
    $read fopen("content.txt""r");
    $contents fread($readfilesize('content.txt'));
    fclose($read);
     
    // Open the file and write the tag to it
    $write fopen("content.txt""w");
    fwrite($write"$tag $contents");
    fclose($write);
     
    // Refresh!
    print "<meta http-equiv=\"refresh\" content=\"0;shoutbox.php\">";
     
    ?>
    Copy and paste this into notepad and save it as
    shoutbox.php
    PHP Code:
    <html>
    <
    head>
    <
    title>Shout box</title>
    <
    link href="style.css" rel="STYLESHEET" type="TEXT/CSS" />
    </
    head>
    <
    body>
     
    <
    iframe name="messages" src="content.php" marginwidth="1" marginheight="0" height="200" 
     
    width="200" border="0" frameborder="0"></iframe>
    <
    FORM name="shout" action="addtag.php" method="POST">
    Name:<br>
    <
    INPUT TYPE="TEXT" name="name" size="20"><br>
    Website:<br>
    <
    INPUT TYPE="text" name="website" size="20" value="http://"><br>
    Message:<br>
    <
    TEXTAREA NAME="message" COLS=16 ROWS=2></TEXTAREA><br>
    <
    br>
    <
    INPUT TYPE="Submit" name="submit" value="Post IT!" size="20">
    </
    FORM>
     
    </
    body>
    </
    html
    Copy and paste this into notepad and save it as
    content.php
    PHP Code:
    <html>
    <head>
    <link href="style.css" rel="STYLESHEET" type="TEXT/CSS" />
    </head>
    <body>
    <?php include('content.txt'); ?>
    </body>
    </html>
    Copy and paste this into notepad and save it as
    content.txt
    Leave content.txt as a blank file and when you upoad it to your Linux server chmod it to 777 so it over writes it self

    When you want to add it to your site i would say use PHP include because they are much better.

    PHP Code:
    <?php include('shoutbox.php'); ?>
    If you like iframes use

    HTML Code:
    <iframe name="shoutbox" src="shoutbox.php" marginwidth="1" marginheight="0" height="300" width="200" border="0" frameborder="0"></iframe>

    If you still need help read through it and check if what you have done is right
    http://www.zenomgt.com/forums/index.php?showtopic=1100

    Edit: Sorry posted this at the same time as you posted your other thread.
    Last edited by ADAM:; 08-08-2006 at 05:51 PM.

  8. #8
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Heh nevermind eh Adam it was very easy! And it works ;D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •