View Single Post
  #62  
Old 06-01-2005, 12:03 PM
sv1cec sv1cec is offline
 
Join Date: May 2004
Location: Athens, Greece
Posts: 2,091
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hey guys, sweet little hack. Installed it a little while ago, and even though my cell provider was not listed, I received my first SMS within less than one hour, from the start of the installation.

OK you Europeans, especially Vodafone subscribers, the trick here is simple. Here are the requirements for this hack to work in your area:

1. Your provider offers you an email account, in the form of 5559999999@vodafone.gr. In this example 555 is the area code for Vodafone, 9999999 is your particular number and of course the .gr can be .co.uk or .de or whatever suffix is used by your provider in your country.
2. The above email account offers the option to send you an SMS (as text messages are called in the GSM world), when a new email arrives at your mailbox. Mine sends me both an SMS and leaves a message in my answering service, which I hate. The SMS causes my telephone to emit a small beep-beep, while the answering service rings my phone, until I answer it. But maybe there is a way around that, I am talking with Vodafone to see if this can be fixed.

To have this hack adapted to your area of the world, here is what you need to do:

- Install the hack as described. Then edit your private.php file and find:

PHP Code:
        vbmail($cellemail$emailsubject$emailmessage); 
Right above that line, add something like:

PHP Code:
else if($touserinfo['cellprovider']=="vodaf-gr")
{
    
$cellemail="".$touserinfo['cellnum']."@vodafone.gr";

Note that I am using a shortcut in the first line, "vodaf-gr". This is the name with which your provider is internally known to the system. Unfortunatelly, the hack instructs you to create a varcha(8) column only for this, so you cannot use something like "vodafone-uk", it has to be 8 characters maximum. If you haven't install the hack yet and you want to use something more meaningful, alter the query :

ALTER user ADD `cellprovider` VARCHAR( 8 ) NOT NULL

and make than number inside the parenthesis, something larger. Not necessary though.

This part, @vodafone.gr has also to be changed to whatever the domain name is, for your Vodafone email account.

Save the file and upload it.

Edit file profile.php and find:

PHP Code:
if(!in_array($_POST['cellprovider'], array('verizon''virgin''att''alltel''cingular''nextel''tmobile''sprint'))) 
Replace that, with something like:

if(!in_array($_POST['cellprovider'], array('verizon', 'virgin', 'att', 'alltel', 'cingular', 'nextel', 'tmobile', 'sprint', 'vodaf-gr')))
[/php]

Note the differences between these two lines, all I did at the end of the original line, was to add a comma, and the shortcut of the provider name, in single quotes.

Finally, open your modify password template, and find:

HTML Code:
<option value="virgin">Virgin Mobile(USA)</option>
Right below that, add something like:

HTML Code:
<option value="vodaf-gr">Vodafone (Greece)</option>
Note, that in the value field, you are again using the shortcut, the internal representation of your provider, while the part between > and < is just a text description to remind you of this provider, it can be any meaningful text you want.

Well, that's it. Given that Vodafone Greece is a whole-owned subsidiary of Vodafone UK (or at least something like that), I believe that the systems they use here, must be the same with the systems used by Vodafone, in other parts of the world.

Good luck! I am clicking "Install".

Note to the Author: Yes, you may confirm that the hack works with Vodafone Greece, with the above changes.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01687 seconds
  • Memory Usage 1,783KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html
  • (3)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete