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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Ajax o2 Texter

  • 16-07-2006 3:43pm
    #1
    Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭


    Hi Lads,

    Long time since i've given a shot, but i done it there in a few hours. Never thought id get it working but got a o2 texter php script made. It is actually a class which is useful for people that want to embed it in their contact page of a site or something.

    Anyways here is it in action:
    http://www.killarneyonline.eu/o2text/

    And you can download it here:
    http://www.killarneyonline.eu/o2text/o2text.zip

    - Don't worry i'm not saving passwords or anything like that.

    Mainly whats interesting is the o2.class.php script. You can use this in your site. Basically all you have to do is something like this in a page:

    [php]
    require_once('o2.class.php');

    $webmonkey = new o2text;
    $webmonkey->login("number","pass");

    if ($webmonkey->send_message("number", "message"))
    {
    print "Message Successfully Sent! You have <strong>$webmonkey->messagesleft</strong> messages left.";
    }
    else
    {
    print "Unfortuntally It Failed. More than likely o2 down as usual!";
    }

    [/php]

    I done a vodafone one before but they started making it very difficult my choosing random field names but i might do that next few days. Let me know if ye would be interested.

    By the way this class requires the cURL libary in php to be installed.

    Let me know what ye think :)

    Webmonkey


Comments

  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Slight little problem. Doesn't work with my sisters num. Prob have random field name for each number. I will look into it. let me know if ye have problems, but more than liekly ye will


  • Closed Accounts Posts: 4,655 ✭✭✭Ph3n0m


    What are the legalities on using something like this? I cannot see O2 being entirely happy about it?


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    I don't know. I don't care to be honest. I just made it to help people text quicker or use it on their site, not to piss off o2


  • Registered Users, Registered Users 2 Posts: 3,182 ✭✭✭dionsiseire


    my mate had a vodafone one done in perl, uses it a good load, no responce out of vodafone about it.

    if a php version of it was going for vodafone i'd definitely take a closer look and maybe integrate into my site depending


  • Registered Users, Registered Users 2 Posts: 885 ✭✭✭clearz


    Seems like a lot of overkill to me. I mean things like make_login_string() and goto_text_page() (if I understand them correctly) should be internal to your class and hidden from the programmer. Its simple design issues. Something along the lines of this would be better.

    [php]
    require_once('o2.class.php');

    $webmonkey = new o2text;
    $webmonkey->login("number","pass");

    if ($webmonkey->sendSMS("number", "message"))
    {
    print "Message Successfully Sent! You have <strong>$webmonkey->getmessagesleft()</strong> messages left.";
    }
    else
    {
    print "Unfortuntally It Failed. More than likely o2 down as usual!";
    }
    [/php]

    I have created classes in java for o2 and meteor and a c++ class for meteor and thats the way I done it.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    Yeah i was thinking that alright, anyways it was just a 2 -3 hour job, quickie. If anyone wants to do anything with it they can.

    edit-> I've updated it now.
    A lot more straight forward, thanks clearz

    You can now download it at: http://www.killarneyonline.eu/o2text/o2text.zip


  • Registered Users, Registered Users 2 Posts: 885 ✭✭✭clearz


    No problem Webmonkey :) Ive added it to my collection of scripts. It might come in handy sometime.


  • Closed Accounts Posts: 19,080 ✭✭✭✭Random


    That looks rather useful, provided it works 100% of the time. I don't know which thread you post in a while back, but I'll be in contact with you soon enough if what I'm working on doesn't happen :)


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    hey ciaran, unfort it prob will fail down the road when o2 do changes but should be quick enough to do the changes in the script. anyways talk to you later :)


  • Closed Accounts Posts: 26 memyselfandi


    Just tried it out there and seem so work fine. Am I right in assuming that this is a free text thingy? How does the 'You have xxx left' come about, just wondering where the 136 limit came from ..


  • Advertisement
  • Closed Accounts Posts: 19,080 ✭✭✭✭Random


    @memyselfandi
    It's based on your free o2online.ie webtexts :)


  • Closed Accounts Posts: 19,080 ✭✭✭✭Random


    Using Webmonkeys code O2 Texter v1.0 is now live.
    http://www.yellowpaint.net/o2texter/

    Cheers mate :)


  • Registered Users, Registered Users 2 Posts: 9,579 ✭✭✭Webmonkey


    No probs, looking good!


  • Registered Users, Registered Users 2 Posts: 990 ✭✭✭rat_race


    Hey,

    These all seem to be dead???

    I just made http://www.o2text.com; it's a very quick and easy way to use your O2 webtexts, avoiding o2online.ie totally (what an awful site)! Would love to know if anyone is making use of it...

    Yes, there is always the risk of sites like this using passwords, but all I can say is that I'm not...it's a one man operation and I have better things to do than to read your webtexts (if anyone wants the source code, just ask)...

    The main reason I made it was to see if I could, but I also find it very useful.

    I'm planning on rolling out more changes this weekend to make it much faster too (couple of improvements).

    Suggestions, anyone?


    Cheers,
    Cormac (http://www.credmond.net)


Advertisement