Results 1 to 9 of 9

Thread: shoutbox help

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

    Latest Awards:

    Default shoutbox help

    how can i make it so only i can use my name in my shoutbox noone else the shoutbox is flatfile and can be found on my site. mysql shoutbox is being looked into.. i dont want it so that ever user has to login.. any help doing that with a flatfile or mysql one will be repped.

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


  2. #2
    Join Date
    May 2006
    Location
    Fatherland
    Posts
    2,414
    Tokens
    0

    Latest Awards:

    Default

    You still owe me 15GBP you know Colin.

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

    Latest Awards:

    Default

    yep i know.. you still want a reseller too tho? (i got one extra)
    Last edited by Colin-Roberts; 26-11-2006 at 08:44 PM.

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


  4. #4
    Join Date
    May 2006
    Location
    Wakefield, West Yorkshire
    Posts
    1,118
    Tokens
    0

    Latest Awards:

    Default

    Can't you use an echo, so that if the username is Colin you have to enter a password?

    Just a thought.

  5. #5
    Join Date
    Nov 2006
    Posts
    163
    Tokens
    0

    Default

    Just have a user system, then have $user = $name;

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

    Latest Awards:

    Default

    if $user=colin
    echo""
    else
    echo.. i thought of that but frankly i suck at doing something like that in php.

    EDIT: blobbed i dont want to do that because i doubt any friends would bother to register/login.
    Last edited by Colin-Roberts; 26-11-2006 at 08:53 PM.

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


  7. #7
    Join Date
    Nov 2006
    Posts
    163
    Tokens
    0

    Default

    Quote Originally Posted by Colin-Roberts View Post
    if $user=colin
    echo""
    else
    echo.. i thought of that but frankly i suck at doing something like that in php.
    no.. That wouldnt work

    you would do if you where doing that

    PHP Code:
    <? if($user == "Colin"){
    echo 
    "Whatever";
    } else {
    echo 
    "Hello";
    }
    ?>
    Place that into a website then go to index.php?user=Colin (or what ever file you put it in and see what happens

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

    Latest Awards:

    Default

    hmm i think i figured out how to do that now thanx blob.
    if user is colin it'll go to password protected shout form..
    if not it'll just proccess as normal/
    Last edited by Colin-Roberts; 26-11-2006 at 09:01 PM.

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


  9. #9
    Join Date
    Nov 2006
    Location
    Manchester, UK
    Posts
    42
    Tokens
    0

    Default

    You could try it via IP check

    PHP Code:
    <?
    $ip 
    $_SERVER[REMOTE_ADDR];
    if (
    $name == "Colin" $ip "1.1.1.1") { echo "Insert tag code"; } else { echo "You cannot use Colin"; } ?>
    or something

Posting Permissions

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