vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   Add-On Releases - SMS Notify (https://vborg.vbsupport.ru/showthread.php?t=207148)

Trek 03-02-2009 10:00 PM

SMS Notify
 
1 Attachment(s)
Mod Version: 0.1 BETA
vB Version: 3.8.0 or higher (probably works on lower versions, but untested)

Description:

When users subscribe to threads in a forum you specify, they can be automatically SMS'd when there is an update. Only sends the most recent post.

Let me try and explain how this works. It uses the forums for it's integration, there are no custom pages, etc. This allows you to use all of vBulletins usergroup/forum settings to manage the access and whatnot.

I have a category called "SMS Notifications" Under that I have two forums. In the mod options, you set the PARENT forum ID. Basically any forums with this parent ID will be processed. This is the structure that I use.

SMS Notifications (category)
  • Commanders (forum)
    • SMS - We're meeting reminder! (Thread)
  • Members (forum)
    • SMS - We're under attack! (Thread)
    • SMS - We're all safe now! (Thread)
    • SMS - Servers status update (Thread)
I then set permissions for who can post and who can reply, etc on the forums as you normally would. Just in this case when you're doing it, think about who can send and SMS message. So basically only a few people have POST/REPLY and various people have READ.

The mod will hook events for replies only.

So, I create a separate thread for each "event" that people might need to be alerted about. The members then subscribe to the threads they would like to get a text message about.

Anytime a thread is replied to, all subscribers will get only the latest reply's text sent to them. The way it's setup with the forums also allows you to keep track of who is doing the paging, for what, etc. This doesn't interrupt the standard subscription emails from going out either. That way those without SMS can still get whatever updates if say they have email alerts on their phones or simply just want email subscriptions like normal.

Installation:

Create a new user profile field, this field will be used to contain your members SMS email address.

Import the product as normal.

Edit the options for the mod (Under vBulletin Options -> SMS Notify) in the Admin CP.

Make sure it's on.

Set the parent forum ID

Set the full variable name that you created earlier that holds the SMS email addresses.

Please note, this *IS BETA*. I use it currently, but there may be issues, etc. Please kindly report them here and I'll do my best to correct them. This is only my second vB mod and the other one was just a tweak of someone else's. I'm still learning and if you have tips/pointers, please feel free to suggest things!

paintballer.ie 03-02-2009 10:40 PM

What sms service does it use and what countries will it work?

Can you send a message to members anyways? i.e. events news or something?

Trek 03-02-2009 10:43 PM

Quote:

Originally Posted by paintballer.ie (Post 1758865)
What sms service does it use and what countries will it work?

Can you send a message to members anyways? i.e. events news or something?

There is no service that it uses as it uses email to send the alerts. So it's only sending out from the forum email server. So.. as far as I know, it should work with anyone with an SMS email address. I know we've tested, AT&T, Sprint and a few others.

Currently, there is no way to manually select something and SMS everyone with an SMS address. I did this at first, but thought it was better to only send messages to those that have subscribed as not everyone has unlimited text messages, etc.

lostguy 03-02-2009 10:45 PM

this is Free ? Or we have to pay per SMS ?

Lg

Trek 03-02-2009 10:49 PM

Quote:

Originally Posted by lostguy (Post 1758868)
this is Free ? Or we have to pay per SMS ?

Lg

It sends a message via email. So it depends on each person that gets the message, not the sender. The sender (you, if you're running the forum) only sends out an email, there's no special SMS magic behind it. =)

gwerzal 03-02-2009 11:06 PM

looks good.

Gonna test it now

TNCclubman 03-02-2009 11:36 PM

Interesting... this may have alot of potential... let me have a beer and think about how I can use this... thanks!

cscimmia 03-03-2009 09:02 PM

Hello Trek and thanks for this mod! I'm having trouble installing it though.

I created the "new user profile field" then imported the xml per your instructions, but I'm not seeing any vBulletin Options for "SMS Notify". The product is set to "Active". Any ideas?

Trek 03-03-2009 11:41 PM

Quote:

Originally Posted by cscimmia (Post 1759578)
Hello Trek and thanks for this mod! I'm having trouble installing it though.

I created the "new user profile field" then imported the xml per your instructions, but I'm not seeing any vBulletin Options for "SMS Notify". The product is set to "Active". Any ideas?

Hmm, I'll see what I can find. Did you go into the actual vBulletin Options section in the Admin CP? It's not it's own item on the lefthand nav, but listed under the vBulletin Options.

cscimmia 03-04-2009 03:59 PM

Quote:

Originally Posted by Trek (Post 1759684)
Did you go into the actual vBulletin Options section in the Admin CP?

Thanks for the quick reply! I did go into the actual vB Options as you described. In fact I expanded the vB Options view and looked at every item line by line thinking it could have been placed within one of the top level options.

Let me know what you find. I too will be digging around this issue this afternoon so I'll let you know if I find anything. Cheers! --Josh

cscimmia 03-09-2009 08:03 PM

The xml file (product-sms_notify.xml) seems to be missing some info. There are no parameters listed for "Options". In fact, there's only a close tag for options... <options /> No open tag and nothing in between! ;)

Trek 03-09-2009 08:22 PM

Quote:

Originally Posted by cscimmia (Post 1764300)
The xml file (product-sms_notify.xml) seems to be missing some info. There are no parameters listed for "Options". In fact, there's only a close tag for options... <options /> No open tag and nothing in between! ;)

Sorry it's taken me so long, I'll check into it again today, just had a lot going on. =)

Trek 03-09-2009 08:26 PM

I just exported it again to see. I have open and close tags for options, it's just not grabbing the options for some reason. No idea... I'll see what I can do.

Trek 03-09-2009 08:38 PM

Ok, I've gone back and made sure the settings were under the correct product, I've changed the product, resaved it, changed it back, resaved, etc... nothing seems to work. No idea why the options aren't being included... I'll keep working on it.

cscimmia 03-09-2009 08:49 PM

Thanks again for all your help Trek. I'm really excited about seeing this mod work so keep up the good work! I know life sometimes gets in the way too so please don't apologise when you aren't able to reply for a few days! LOL

Trek 03-09-2009 08:54 PM

Thanks for understanding. =) I just deleted the settings group I was using, recreated it from scratch and it still won't export. I'll do some more looking around. =/ It obviously works, I use it on my own site. heh

MrAgent 04-09-2009 03:06 PM

Any updates? I would like to deploy this on my site.

Trek 05-04-2009 06:05 PM

Ok, I finally updated the mod, it should install correctly now. I apologize for the long delay in releases, etc.

In any case, please let me know if you have any issues with this release. I've exported it and reinstalled it on my own forums and it's working without issue.

dancue 05-12-2009 03:33 AM

Can it be made to allow user to input only the phone number? The majority of users will not know what their phone's e-mail address is.

Also, can you have the option for the user to be automatically added to the sms list? (automatically subscribed) They could be given the option in the profile field to select (yes or no) if they would like to receive free text alerts. I'd like to steer them away from having to go to two different places in order to achieve their goal.

bbcentral 05-12-2009 04:48 PM

Quote:

Originally Posted by dancue (Post 1809128)
Can it be made to allow user to input only the phone number? The majority of users will not know what their phone's e-mail address is.

That wouldn't work.
For example in Australia they could enter '0412345678' as their phone number
But the script would have no idea what their SMS email address is.
It could be:
0412345678@three.com.au
0412345678@optus.com.au
0412345678@virginmobile.com.au
0412345678@telstra.com.au
0412345678@vodafone.com.au
The numbers can't be matched to a particular carrier based on the prefix either, because it's possible to transfer the number between carriers (I've had the same number with 4 companies personally).

The only way around that would be to have a list of every single mobile carrier in the world, and have the user choose their mobile network when they enter their number, ie:
Number: (Enter Number)
Carrier: (Select)

But the advantage of doing it this way is that because they can specify an email address, they could also put in their Blackberry address and get short notifications sent there. Or if they have a mobile email account, they could enter that instead.

It's a great idea for a mod! I like it :)

dancue 05-13-2009 09:00 PM

Quote:

Originally Posted by bbcentral (Post 1809479)
That wouldn't work.
For example in Australia they could enter '0412345678' as their phone number
But the script would have no idea what their SMS email address is.
It could be:
0412345678@three.com.au
0412345678@optus.com.au
0412345678@virginmobile.com.au
0412345678@telstra.com.au
0412345678@vodafone.com.au
The numbers can't be matched to a particular carrier based on the prefix either, because it's possible to transfer the number between carriers (I've had the same number with 4 companies personally).

The only way around that would be to have a list of every single mobile carrier in the world, and have the user choose their mobile network when they enter their number, ie:
Number: (Enter Number)
Carrier: (Select)

But the advantage of doing it this way is that because they can specify an email address, they could also put in their Blackberry address and get short notifications sent there. Or if they have a mobile email account, they could enter that instead.

It's a great idea for a mod! I like it :)

That would be great. We could create another profile field to ask what mobile carrier they have.

Trek 05-18-2009 04:23 PM

I'll look into this. The only problem I really have with making it so that someone can select a carrier is that if that it puts the burden of getting things correct on the mod, not the end users. While normally that's what you'd want, in this case I think it has more room for error than end users not knowing their address.

However, what might be good is just some text in that field with the most common examples. Which should hopefully allow people to figure out what their email address might be.

mykkal 05-27-2009 01:57 PM

question... do you have a list of domain email addresses built in to this mod? How does a person specify the carrier they use? Do they have to put in the email address?

It would be easiest if the person could select their carrier from a drop down and if we could add carriers easily.

I haven't used it yet. is this there? I can't just install a mod into production without knowing everything or using a demo.

mykkal 05-27-2009 01:58 PM

Quote:

Originally Posted by dancue (Post 1810322)
That would be great. We could create another profile field to ask what mobile carrier they have.

There are carrier lookup services you can easily tap into. It just needs to be written. This mod has potential but sounds like it hasn't "come of age" yet.

It's not worth it yet if only my more technical users can figure it out.

vbreal 06-03-2009 02:18 AM

is there anything like this for private messages

Trek 06-03-2009 02:44 AM

Quote:

Originally Posted by mykkal (Post 1818115)
There are carrier lookup services you can easily tap into. It just needs to be written. This mod has potential but sounds like it hasn't "come of age" yet.

It's not worth it yet if only my more technical users can figure it out.

I haven't added anything specific carrier wise into the mod, not sure if I'll get around to it or not though. Shouldn't be too difficult, I just need to find the extra time to mess around with it.

Quote:

Originally Posted by vbreal (Post 1822486)
is there anything like this for private messages

Not that I am aware of, although I'm not entirely sure what you want it to do in a PM anyway? Just text someone the contents of a PM when they get a PM? It probably exists, but as a PM can be more than 160 characters, etc... it's probably not the greatest idea.

Yes, a forum post can be of whatever size as well, but if it's specifically for SMS messages, people know that and will write short messages, unlike open ended PMs.

instruite 06-11-2009 02:31 AM

hey trekk thanks alot... would be doing this work today and check with my site..

JTS2005 09-15-2009 10:56 PM

does this work for 3.8.4?

Trek 09-15-2009 11:53 PM

Quote:

Originally Posted by JTS2005 (Post 1885474)
does this work for 3.8.4?

No reason why not, but I haven't specifically tested it on 3.8.4

JTS2005 09-16-2009 11:52 AM

when subscribing to a forum is there an option that should say SMS subscription or do you just use the get daily updates email? Anyways, I subscribed to the forum where the threads are and did a test new thread and nothing happened. i know the sms address works as i sent a test messege from my email account. I checked all my settings and nothing happened. I did notice that when i went to subscribe to a FORUM it only had 3 options, one was no email notifications, daily email notifications, and weekly notifications. When i go to a specific thread under the category i have another option that says instant notification.

Trek 09-16-2009 11:41 PM

Quote:

Originally Posted by JTS2005 (Post 1885683)
when subscribing to a forum is there an option that should say SMS subscription or do you just use the get daily updates email? Anyways, I subscribed to the forum where the threads are and did a test new thread and nothing happened. i know the sms address works as i sent a test messege from my email account. I checked all my settings and nothing happened. I did notice that when i went to subscribe to a FORUM it only had 3 options, one was no email notifications, daily email notifications, and weekly notifications. When i go to a specific thread under the category i have another option that says instant notification.


You'll need to subscribe to the threads you want, with instant notification and it should work fine.

JTS2005 09-17-2009 12:52 AM

Ahh i was hoping for more of a notification for a thread posted in a forum.

JTS2005 09-17-2009 12:53 AM

for instance I post sporting wagers in my VIP forums and wanted the tthreads sent to sent to my members.

vbreal 11-19-2009 09:57 PM

Quote:

Originally Posted by Trek (Post 1822496)
I haven't added anything specific carrier wise into the mod, not sure if I'll get around to it or not though. Shouldn't be too difficult, I just need to find the extra time to mess around with it.



Not that I am aware of, although I'm not entirely sure what you want it to do in a PM anyway? Just text someone the contents of a PM when they get a PM? It probably exists, but as a PM can be more than 160 characters, etc... it's probably not the greatest idea.

Yes, a forum post can be of whatever size as well, but if it's specifically for SMS messages, people know that and will write short messages, unlike open ended PMs.

guess im a little late but i meant just a text message notifying the users they received a private message from such an such user.

testbot 01-30-2010 06:48 PM

vb4.0 development?

Trek 01-31-2010 01:50 AM

Quote:

Originally Posted by testbot (Post 1970695)
vb4.0 development?

Yeah, I'll get it done shortly for 4.0, should be a quick update. I just haven't gotten to it yet myself and since no one has mentioned it, it's been on the back burner. I'll get it updated now that I know someone is looking for it. =)

testbot 01-31-2010 03:49 AM

very cool! thank you!

hotrod122 11-22-2011 05:38 PM

wanting this for vb4 also...

Trek 11-22-2011 06:30 PM

Quote:

Originally Posted by hotrod122 (Post 2270809)
wanting this for vb4 also...

I apologize, but I'd completely forgotten about this mod. As I've moved to XenForo, I no longer use vB and this mod (and any others I've done), won't be updated. I've changed the settings of the mod to reflect that and also have flagged the code for reuse if someone else wants to pick it up.

ChiNa 10-08-2012 12:06 AM

Quote:

Originally Posted by Trek (Post 2270845)
I apologize, but I'd completely forgotten about this mod. As I've moved to XenForo, I no longer use vB and this mod (and any others I've done), won't be updated. I've changed the settings of the mod to reflect that and also have flagged the code for reuse if someone else wants to pick it up.


Waste of time on Xenforo booooo... Joking...

Well hope you will come back..


All times are GMT. The time now is 03:28 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01420 seconds
  • Memory Usage 1,838KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (16)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete