Hey everyone,

With the beta release of Drupal 7 right around the corner, I wanted to see if anyone had begun planning of a Drupal 7 port. Our shop has mostly shifted to Drupal 7 development and I 'm interested to learn if any work has begun on D7....

Thanks,
Ben

Comments

Anonymous’s picture

I'm interested too

aspope’s picture

Hi @Ben,
I do not know of any work that has been done on the SMS Framework for Drupal 7. The Framework is in dire need of a revamp, and I think that 7.x will become the best reason to get this moving. I will have to investigate 7.x a bit more closely, methinks...

mfb’s picture

Subscribing

Andy B’s picture

subscribing.

This is a dire need for D7 over here as well.

that0n3guy’s picture

subscribing

Andy B’s picture

Title: Drupal 7 port » Port sms framework project to D7

Changing title for better use in the dashboard.

abhisheknagar’s picture

Subscribing...

BenK’s picture

I see that univate has been doing a bunch of commits lately to the 6.x branch... has anyone checked with him to see his interest in a D7 port?

--Ben

univate’s picture

Category: support » task

D7 obviously very important now that its released, but I really would like to have a stable 6.x version that works well before attempting a port myself. If anyone would like to start this effort please do so.

I have not thought too much about the D7 port and whether there is anything new in D7 we can leverage like making sms numbers a field that you can add to any entity? I wonder if this would make sms functionality any more useful or flexible?

Andy B’s picture

Even if it doesn't add any "extra value" to D7 or can take any new stuff from it, still is a good idea to port to d7. When I found out that we could have a fan club with text messages, I thought it was a good idea to use the module. If it isn't ported, it throws the entire plan off course. Unfortunately, I am just getting into php 5 coding and wouldn't know how to port it.

webankit’s picture

I wish to help in making a D7 module.

JayKayAu’s picture

It would be nice to have a generic "Phone Number" field that has full validation (and possibly even *verification*), etc., that could be used by the SMS Framework, or by some VoIP module, or in Views, or whatever. The http://drupal.org/project/phone module might be a good candidate.

Then on top of this super-duper field (which is also smart enough to distinguish between mobile/cell phones and landlines), the SMS Framework can do its stuff.

If it turns out to be necessary to build a *new* "Phone Number" field, I'd suggest that it'd be better to build it separately than having it inside the SMS Framework.

That way, for example, it could be used alongside an "Address" field, at times when the SMS Framework isn't required, or by a VoIP module, or whatever..

univate’s picture

I do like this idea, and exactly the type of thing I have been thinking about for D7 to take some load of this module and have it focus on the important sms stuff and not get bogged down with phone number fields and number validation which are features useful in other places not just sms.

BenK’s picture

I also like JayKayAu's suggestion in #12, but I'd suggest the Phone Number module (http://drupal.org/project/cck_phone) instead. The big advantage of the Phone Number module is that it supports all/multiple countries in one field. On the contrary, the Phone module (mentioned in #12) requires a separate field widget for each country.

There's also a D7 port of the Phone Number module in the works here:

http://drupal.org/node/848740

Cheers,
Ben

Mapi99’s picture

Waiting for this

docwilmot’s picture

likewise. wish i could help, but this is beyond me.

freddan’s picture

Adding this to my must-have list

tebb’s picture

Subscribing: Can do some testing of D7 smsframework and cck_phone as part of an ongoing project.

seangeno’s picture

Subscribing

suneelkushwaha’s picture

Waiting for this

mrgoltra’s picture

++

Renegadez’s picture

Subz

oscardax’s picture

suscribing...

jayhariani’s picture

suscribing

bensnyder’s picture

subscribing

2xe’s picture

+1

monican’s picture

subscribing

socialtalker’s picture

subscribing

thomas bosviel’s picture

Subscribe

upupax’s picture

subscribe

tnanek’s picture

I too am subscribing, and in light of the above, I will be contributing to Phone Number project's Drupal 7.x port in order to progress this, as I have available time.

lesleyfernandes’s picture

subscribing

kumkum29’s picture

subscribe++++

Anonymous’s picture

does anyone know about a D7 release? I've a new project on hold (D6 or D7) and it's really depending from this module.

lesleyfernandes’s picture

Me too.

tnanek’s picture

According to #12 and #14, this is going to be more streamlined in the 7.x version, and thus this needs to wait for one of the projects mentioned in those posts to release a stable 7.x version at the very least, before cohesive work can begin on this...

upupax’s picture

Sorry guys, but what about this? This issue is one year old!
http://drupal.org/project/phone seems more active on older Drupal versions than D7.
http://drupal.org/project/cck_phone last commit for D7 is 2 months old, but it doesn't seems to have critical issues.
I don't want to put pressure, but I'd really like to see this module on D7.
I can provide some help, if needed.
TIA

achton’s picture

Subscribing.

2xe’s picture

#37: Ditto! cck_phone seems most favorable, and I can also put in some effort if needed.

BenK’s picture

I agree that cck_phone is the way to go in D7 (instead of phone). cck_phone uses a single widget instead of an ever growing list of widgets per country. That's a big advantage for any site that might have users in multiple countries.

--Ben

geerlingguy’s picture

Subscribe.

thomjjames’s picture

subscribing.

I might be able to contribute some sponsorship to speed up the development, maybe others would be interested in chipping in too?

Cheers
Tom

astanley86’s picture

subscribe! - yes I could potentially chip in..

nmcclain’s picture

Status: Active » Needs work
StatusFileSize
new11.94 KB
new250 bytes

Here is a working D7 port of the base sms module, but none of the other supporting modules it usually comes packaged with.

I have only tested this with the "log only" gateway and the Twilio gateway D7 dev port from here: http://drupal.org/node/1194626

I will update this issue once I have done more testing, but I figured I'd go ahead and get this posted since it is at least mostly working.

nmcclain’s picture

Hi folks - sorry for my confusion but this "port" is based on 6.x-1.x.

I will work on an updated port based on 6.x-2.x and post it here later this week.

nmcclain’s picture

StatusFileSize
new18.47 KB

Ok, attached here is a patch against 6.x-2.x-dev for a very early D7 port. I tested the admin GUI for the Gateway config, and tested the "log only" gateway and the Twilio gateway D7 dev port from here: http://drupal.org/node/1194626

Please ignore my comments #44 and #45 above.

That's it - I haven't tested the Rules integration at all yet. I haven't even tried to port ANY of the submodules. But, this IS working for me using sms_send().

Please don't be shy with feedback on what I can do to get this to a place it's ready for a 7.x-dev release.

univate’s picture

Had a quick look at the patch and it generally looks good to me and can't really see any real reason why shouldn't atleast create a 7.x branch and use this as a start. I will do that shortly.

Anonymous’s picture

patch #46 fails to apply automatically. I applied it manually, but when I try to activate the SMS Framework module I get WSoD.

nmcclain’s picture

Patch #46 works for me - I am testing it against smsframework-6.x-2.x-dev. Also, you need to run the patch from INSIDE sites/all/modules/smsframework - I apologize if I got this wrong. I just tested okay by following these steps:
1) cd sites/all/modules
2) drush dl smsframework-6.x-2.x-dev
3) cd smsframework
4) patch < /PATH/TO/PATCHFILE
5) enable and test module as usual

If you still get a WSoD again, please include relevant snippets of your web server error log.

Anonymous’s picture

thanks for your help, I have been able to succesfully apply the pacth trought TextMate just by removing from the patch file the a/, b/ prefix of the filename. I succesfully installed SMS Framework, but I can't set any views to select any user's mobile phone.

thomjjames’s picture

Be great to get the D7 branch up and running so it's a bit easier for people to test and patch against.
Any progress on that? :)

Cheers
Tom

nmcclain’s picture

Status: Needs work » Needs review
StatusFileSize
new21.28 KB

Attached is a new patch against 6.x-2.x-dev for a D7 port.

I have:
* tested the admin GUI for the Gateway config
* tested and fixed the admin GUI for the Carrier config - the GUI works, but haven't tried to send SMS's with it
* tested "log only" gateway
* tested sms_send() with the Twilio gateway D7 dev port from here: http://drupal.org/node/1194626
* run this through Coder review

I have NOT:
* tested the Rules integration (sms.rules.inc)
* ported ANY of the submodules

univate, please let me know if there is anything I can improve in order to get this committed as a 7.x-dev release.

Anonymous’s picture

the patch applies successfully, but I will not be able to test this port until anybody will port Simple Gateway (http://drupal.org/node/1200672) as well. Any help?

nmcclain’s picture

StatusFileSize
new48.87 KB

Attached is a new patch against 6.x-2.x-dev for a D7 port. I got the Rules and Token integration working.

I still have NOT migrated any of the submodules, but I think all the main SMS Framework stuff is ready for a 7.x-dev release.

Anonymous’s picture

the patch applies successfully

thomjjames’s picture

StatusFileSize
new48.36 KB

Hi,

Here's another patch which includes:
- Patch #54
- upgrade of the sms_sendtophone sub module (all should work minus cck field, but I'm not sure that worked in the D6 version?)

Let's keep the ball rolling with the patches & get the module upgraded! :)

Cheers
Tom

Andy B’s picture

Any status on the email gateway? Is the only way I use smsframework. Good work - still have to run the patch though. D7, I might be able to use you soon afterall

univate’s picture

Looks like a good start, committed it and created a 7.x branch

univate’s picture

Status: Needs review » Needs work
Iulian Arcus’s picture

Assigned: Unassigned » Iulian Arcus

The module plays well with the Clickatell gateway. I'm going to work on porting sms user tonight.

BenK’s picture

I'm also interested to know if the email gateway is working yet... does anyone know?

Iulian Arcus’s picture

StatusFileSize
new33.68 KB

Phew!! I reduced it to minimum functionality, awaiting response from group discussion for more info. I've tested registration,get uid by number, added hook_sms_user_sms_incoming for other modules to handle sms after user registration(might change later with more settings added). All features were tested by myself through the Clickatell gateway. The uninstall isn't working properly because of a bug in fields core.
First ever commit so don't be too harsh :)

Iulian Arcus’s picture

Status: Needs work » Needs review
Anonymous’s picture

the patch is rejected about sms_user.info file:

***************
*** 2,6 ****
description = "Provides integration between the SMS Framework and Drupal users."
dependencies[] = sms
dependencies[] = token
package = SMS Framework
- core = 6.x--- 2,7 ----
description = "Provides integration between the SMS Framework and Drupal users."
dependencies[] = sms
dependencies[] = token
+ dependencies[] = field
package = SMS Framework
+ core = 7.x

Anonymous’s picture

I also got this error during installation

FieldException: Attempt to create a field of unknown type sms_user_number. in field_create_field() (line 106 of /field/field.crud.inc).

Iulian Arcus’s picture

For the first one I think I need to do another pull before patching but I didn't see any other activity so I assumed I didn't have to. The second one I need to google. It's about installing the fields before activating the module. The field type declaration is in the module, the field instalation is in the install file. Do you think a require_once would be enough?

Iulian Arcus’s picture

giorez: are you applying the patch to the latest 7x-dev branch? That's where my patch starts from.

Anonymous’s picture

yes I'm patching against 7.x-1.x-dev 2011-Aug-09

UPDATE:
I found out why the patch is giving error. I was patching against http://ftp.drupal.org/files/projects/smsframework-7.x-1.x-dev.tar.gz and not against the git directory. The file in the packed .gz contains following lines that destroy the patching process:

; Information added by drupal.org packaging script on 2011-08-09
version = "7.x-1.x-dev"
core = "7.x"
project = "smsframework"
datestamp = "1312850284"

I tried to patch against a clean sms.info file and the pacth works. My next goal is to get some help to port sms_simplegateway (http://drupal.org/node/1200672#comment-4888020). Any help?

NROTC_Webmaster’s picture

StatusFileSize
new14.33 KB

Sorry I didn't see the upgrade patch in the thread when I posted this.

I've been trying to upgrade the SMS User sub module but I'm having some issues. I'm not very good with PHP so bear with me.

I've attached the zip from the SMS User which is against the 7.x-1.x-dev 2011-Aug-09.

It has a lot of extra code in it to try and go back for when something didn't work and I know that will have to be taken out.

I was able to get the SMS User tab to integrate into the framework admin page and the SMS Users to view the current users but I cannot for the life of me get it to add the forms to the users page for adding/editing their phone number.

Any help with this would be greatly appreciated.

Anonymous’s picture

Component: Core Framework » Send to Phone
Category: task » bug

I succesfully sent a sms throught Send To Phone function, but I got following error:
Notice: Undefined index: send form in sms_send_form() (line 377 of /smsframework/sms.module).
Notice: Undefined property: stdClass::$error in sms_simplegateway_send() (line 242 of /sms_simplegateway/sms_simplegateway.module).
Any help?

Anonymous’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev

It seems the sms sending is successfull just on the first time I try. When I send the node for the second time, it's not working anymore ever.

mefisto75’s picture

sub

Iulian Arcus’s picture

When I tested the patch I was using the Clickatell gateway(which worked) so I assume the problem is with the simple gateway.

Iulian Arcus’s picture

Assigned: Iulian Arcus » Unassigned

There is a huge confusion about this... I propose we split all module upgrades in their own bug threads so people can follow them by interest. Only add comments here when there's a patch accepted.

Task thread for SMS User http://drupal.org/node/1247538

Anonymous’s picture

@Iulian

I switched to clickatell gateway, the message is delivered but I still got following error:
Notice: Undefined property: stdClass::$error in sms_clickatell_command() (line 319 of /sms_clickatell/sms_clickatell.module).

nmcclain’s picture

I split out the Rules integration update to this issue: http://drupal.org/node/1304276

Combined with VBO, I believe that you can use Rules to completely replace sms_user. Even if sms_user gets ported, I think this Rules integration will be very useful. Is there anyone that's willing to review and test that patch?

nomadlancer’s picture

Hi, here is my configuration:

Drupal: 7.12
SMS Framework: 7.x-1.x-dev
Clickatell: 7.x-1.x-dev

Is Clickatell module working with SMS Framework on d7. I've installed both and I keep receiving the following messages:

........
Notice: Uninitialized string offset: 0 in sms_clickatell_command() (line 249 of /home/subnetcat/public_html/workspace/danfisk_ubercart/sites/all/modules/sms_clickatell/sms_clickatell.module).
Notice: Undefined property: stdClass::$error in sms_clickatell_command() (line 319 of /home/subnetcat/public_html/workspace/danfisk_ubercart/sites/all/modules/sms_clickatell/sms_clickatell.module).
.......

mcpuddin’s picture

Hey guys,

Sorry to intercede here, but I've made SMS, SMS User, Twilio API, and SMS Blast D7 compatible independently of all of this, however I notice you've all made changes as well and have some kinda workflow going on. Do any of you have recommendations on how I should proceed with helping getting this up to par? I'd be happy to chat on IRC or skype with any of you, please email me at james@thetechscouts.com if any of you just want to get this done.

James

mcpuddin’s picture

Status: Needs review » Fixed

Alright so I went through this issue queue and basically it sounds like smsframework is D7 compatible, but sms_user is not. I actually am going to close this issue, upon the direction of comment #74, and move it to #1247538: Port SMS User to 7 since thats why it was created in the first place and now theres a separate issue for that. Feel free to reopen it if you feel otherwise.

mcpuddin’s picture

Status: Fixed » Closed (fixed)

  • Commit 058f35b on 7.x-1.x, 8.x-1.x by univate:
    Issue #795202 by nmcclain, thomjjames | Port sms framework project to D7...