Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

New rule for after hours?

Options
  • 11-10-2005 9:40am
    #1
    Banned (with Prison Access) Posts: 5,154 ✭✭✭


    Folks,
    Can't we just have a rule

    if (member.dateofjoin < 12months)
    then{
    "print ("OMG Sorry, you cannot enter. Come back later.)
    "print ("Kewl! Lol!!");
    }

    for the After Hours fourm Please?

    S.
    Post edited by Shield on


Comments

  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Eh, no.


  • Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,056 Mod ✭✭✭✭Sully


    sinecurea wrote:
    Folks,
    Can't we just have a rule

    if (member.dateofjoin < 12months)
    then{
    "print ("OMG Sorry, you cannot enter. Come back later.)
    "print ("Kewl! Lol!!");
    }

    for the After Hours fourm Please?

    S.

    That code doesnt look correct to me, but im no genius.

    No else statment after the "OMG" bit no?


  • Banned (with Prison Access) Posts: 5,154 ✭✭✭Oriel


    Now, it's not exactly complier ready code*. :rolleyes:
    ANYWAY. Ignore the syntax of the code, just the semantics.

    Cheers.
    S.



    However, there should be a " after "later."
    Just because there is an "if" there doesn't have to be an "else".


  • Registered Users Posts: 68,317 ✭✭✭✭seamus


    sinecurea wrote:
    Folks,
    Can't we just have a rule

    if (member.dateofjoin < 12months)
    then{
    "print ("OMG Sorry, you cannot enter. Come back later.)
    "print ("Kewl! Lol!!");
    }

    for the After Hours fourm Please?

    S.
    Parse Error: Unexpected """ at yourscript.php line 3

    Trust me, you don't want the honeypot closed. It'll all just spill into the other sane forums.


  • Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,056 Mod ✭✭✭✭Sully


    sinecurea wrote:

    However, there should be a " after "later."
    Just because there is an "if" there doesn't have to be an "else".

    Well, correct me if im wrong, but shouldnt there be an else thingy? In English it would be read as:

    if the memeber joined less then 12 months ago then print; "OMG Sorry, you cannot enter. Come back later." otherwise (ie. else) "Kewl! lol"

    Perhaps im just not familar with the coding but that code you pasted seems incorrect.

    Anywho... Seamus has a good point. No need for such a rule, it would spill out everywere else!


  • Advertisement
  • Banned (with Prison Access) Posts: 5,154 ✭✭✭Oriel


    I will correct you.
    The "{" "}" means "perform anything between these brackets"
    If the variable does not fall into the "if ()" category when it will ignore anything in the { } and go to the next line of code. So there is no need for an else. Else is only needed if you want to do one thing or the other. I only want to do one thing or nothing.

    In English:
    if the memeber joined less then 12 months ago then print; "OMG Sorry, you cannot enter. Come back later." AND "Kewl! lol"

    The only thing an else would be useful for in this case would be for error-catching.

    S.


  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    surely you'd want an
    else
        enterForum("After Hours");
    

    in there, no ?


  • Registered Users Posts: 21,264 ✭✭✭✭Hobbes


    As someone mentioned you would end up with them flooding other forums.

    After Hours, Cuckoos Nest are the shoofly pies of boards.ie.


  • Moderators, Education Moderators, Technology & Internet Moderators, Regional South East Moderators Posts: 24,056 Mod ✭✭✭✭Sully


    stevenmu wrote:
    surely you'd want an
    else
        enterForum("After Hours");
    

    in there, no ?

    Thats what I thought, but the post above yours explains why its not required


  • Registered Users Posts: 20,099 ✭✭✭✭WhiteWashMan


    sinecurea wrote:
    Folks,
    Can't we just have a rule

    if (member.dateofjoin < 12months)
    then{
    "print ("OMG Sorry, you cannot enter. Come back later.)
    "print ("Kewl! Lol!!");
    }

    for the After Hours fourm Please?

    S.


    to what end?

    what is it you aim to achieve?


  • Advertisement
  • Registered Users Posts: 37,301 ✭✭✭✭the_syco


    sinecurea wrote:
    Folks,
    Can't we just have a rule

    if (member.dateofjoin < 12months)
    then{
    "print ("OMG Sorry, you cannot enter. Come back later.)
    "print ("Kewl! Lol!!");
    }

    for the After Hours fourm Please?

    S.
    Maybe after "Come back later.)", the user should be kicked to Cuckoos Nest? Also, change it from 12 months to 6 months. Also, as a person not logged in would be under 6 months (dateofjoin proberly show up as zero), wouldn't this ban those not logged in, as well as those here under 6 months?

    Thus the club would only exist to those here over 6 months. IMO, due to this, the uckoos Nest will become the new AH, as everyone will post in the Cuckoos Nest, rather than AH.


Advertisement