Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

SMS Gateway function

edited February 2007 in Vanilla 1.0 Help
hello! i started to make a sms gateway function. i took the extension newsmailer and wanted to re-programm it. but there are some problems. how to make a new tab in the navigation? how to call the gateway and send the variables to it? thank you very much!

Comments

  • New tabs are easy as pie:
    $Menu->AddTab($Text, $Value, $Url, $Attributes = '', $Position = '0', $ForcePosition = '0');
    is the function used to make them. I find an easy way to work out how stuff works is to find an extension which does it already and check out the method it uses.

    How you call the gateway would depend how the gateway works...what does it do?
  • edited February 2007
    http://gateway.brutus.de/smsc.php?user=username&pass=password&from=sender&to=receiver&text=hello+world
    this is the gatewaylink.
    the variable text should be urlencoded. this link should be opened with the fopen function.

    this gateway will send a sms to a mobile phone.
  • Well if you know to call it with the fopen function then that's all you need to do...
  • but there's a problem.

    where to put the fopen function?
    when i duplicate the newsmailer extension folder and activate it there appears a error which contains the newsmailer class.
    and the action in the form tag calls the settings.php

    why?
  • Do you have the newsmailer extension enabled at the same time? That's bound to cause a conflict...
  • yes, but i have renamed it and changed te code...
This discussion has been closed.