Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 1 of 6 12345 ... LastLast
Results 1 to 10 of 54

Thread: Please Help

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

    Default Please Help

    Just before i say this, all people that help me will recieve the shoutbox with admin panel etc. free of charge when it is fully done ;D

    Basically this is the default text of the content.txt;

    Code:
    <font size="1" face="Verdana">
    <b>Shoutbox cleared by Ryan..</b></font><br> <br>
    <font size="1" face="verdana">
    <b>Message From Ryan {Admin}</b><br>Just a quick note to say if anyone named 'Admin' or 'Moderator' or something along the lines of trying to make out they are a staff member says anything, it is not really from a member of staff, staff will speak in announcements like this, not in the form of a normal shoutout, thanks..</b>
    </font><br><br>
    <font size="1" face="verdana">
    <b>Message From Ryan {Admin}</b><br>Hey, thanks for coming to PixelResources, please do not abuse the ShoutBox as it is put here for your use, so do not abuse it, or we may have to remove it, enjoy the site, Ryan..</b>
    </font><br><br>
    <font size="1" face="verdana">
    <i>We reserve the right to ban your IP if found abusing the Shoutbox</i>
    </font><br><br>
    <font size="1" face="verdana">
    <i>© PixelResources 2006 - 2007</i>
    </font><br><br>
    And basically, when the shoutbox gets full i go into content.txt and overwrite all the content in there with that.

    I want like a button or link which i can place in the admin panel for the shoutbox which just overwrites all the shoutbox content with that when clicked, thanks.

    Edited by ---MAD--- (forum moderator): Thread locked as it has gone off topic, thanks .
    Last edited by Jin; 10-08-2006 at 01:00 PM.

  2. #2
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    $myFile = "testFile.txt";
    $fh = fopen($myFile, 'w') or die("can't open file");
    $stringData = "basic text here\n";
    fwrite($fh, $stringData);
    fclose($fh);
    just run this file everytime you want to empty shoutbox and were it says basic text here put the text you want to add after it emptys
    Last edited by Colin-Roberts; 09-08-2006 at 12:08 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


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

    Default

    Colin where do i put that though?

    Hold on a sec

    Right i have this;

    PHP Code:
    <?php

    if($_COOKIE['in'] == "1"){}
    else{
    die(
    "You are not authrised to view this page.");


    ?>
    Put it in ;D

    Edit: I see where your coming from, when i run the page it deleted shoutbox, i was looking for a button so when you click on the button it then runs that so like on.click it runs that.
    Last edited by Drugs; 09-08-2006 at 12:13 PM.

  4. #4
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    new file
    Shoutdelete.php
    PHP Code:
    $myFile "content.txt";
    $fh fopen($myFile'w') or die("can't open file");
    $stringData "<font size="1" face="Verdana">
    <b>Shoutbox cleared by Ryan..</b></font><br> <br>
    <font size="
    1" face="verdana">
    <b>Message From Ryan {Admin}</b><br>Just a quick note to say if anyone named 'Admin' or 'Moderator' or something along the lines of trying to make out they are a staff member says anything, it is not really from a member of staff, staff will speak in announcements like this, not in the form of a normal shoutout, thanks..</b>
    </font><br><br>
    <font size="
    1" face="verdana">
    <b>Message From Ryan {Admin}</b><br>Hey, thanks for coming to PixelResources, please do not abuse the ShoutBox as it is put here for your use, so do not abuse it, or we may have to remove it, enjoy the site, Ryan..</b>
    </font><br><br>
    <font size="
    1" face="verdana">
    <i>We reserve the right to ban your IP if found abusing the Shoutbox</i>
    </font><br><br>
    <font size="
    1" face="verdana">
    <i>© PixelResources 2006 - 2007</i>
    </font><br><br>\n"
    ;
    fwrite($fh$stringData);
    fclose($fh); 
    Last edited by Colin-Roberts; 09-08-2006 at 12:13 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


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

    Default

    Theres something wrong with this; $stringData = "<font size="1" face="Verdana">

  6. #6
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    only works with plain text the font codes and bold italic dont work.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


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

    Default

    they must do somehow i seen it before.

  8. #8
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    for font you could use .css file but the bold and italic i dont know unless theres php equlents of bbcode

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  9. #9
    Join Date
    Aug 2006
    Location
    United Kingdom
    Posts
    207
    Tokens
    0

    Default

    You do \" instead of "

    PHP Code:
    $myFile "content.txt"
    $fh fopen($myFile'w') or die("can't open file"); 
    $stringData "<font size=\"1\" face=\"Verdana\"> 
    <b>Shoutbox cleared by Ryan..</b></font><br> <br> 
    <font size=\"1\" face=\"verdana\"> 
    <b>Message From Ryan {Admin}</b><br>Just a quick note to say if anyone named 'Admin' or 'Moderator' or something along the lines of trying to make out they are a staff member says anything, it is not really from a member of staff, staff will speak in announcements like this, not in the form of a normal shoutout, thanks..</b> 
    </font><br><br> 
    <font size=\"1\" face=\"verdana\"> 
    <b>Message From Ryan {Admin}</b><br>Hey, thanks for coming to PixelResources, please do not abuse the ShoutBox as it is put here for your use, so do not abuse it, or we may have to remove it, enjoy the site, Ryan..</b> 
    </font><br><br> 
    <font size=\"1\" face=\"verdana\"> 
    <i>We reserve the right to ban your IP if found abusing the Shoutbox</i> 
    </font><br><br> 
    <font size=\"1\" face=\"verdana\"> 
    <i>© PixelResources 2006 - 2007</i> 
    </font><br><br>\n"

    fwrite($fh$stringData); 
    fclose($fh); 
    Last edited by Fujitsu; 09-08-2006 at 12:50 PM.
    PHP Code:
    [LEFT]<?[/LEFT]
    [
    LEFT]$name $_GET['name'];[/LEFT]
    [
    LEFT]echo "Hi, your name is $name";[/LEFT]
    [
    LEFT]?>[/LEFT]
    [LEFT][/LEFT]

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

    Default

    Fujitsu i will try that now.

    Edit: Fujitsu your so awesome it works.
    Last edited by Drugs; 09-08-2006 at 01:06 PM.

Page 1 of 6 12345 ... LastLast

Posting Permissions

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