[Beta] Push Notifications 0.1.0

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Get Involved
Locked
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am
Contact:

[Beta] Push Notifications 0.1.0

Post by MasterZ »

Modification Name: Push Notifications for phpBB
Author: MasterZ

Modification Description:: This MOD enables Push Notifications for your forum for Android and iPhone. This is done by using the app Pushover (http://pushover.net)
Modification Version:: 0.1.0

Requirements:
  • A User ID from Pushover (requires registering) to receive notifications
  • An *Optional* Application ID from Pushover.net
Features: Receive a push notification instead of an email in the case of:
  • Private Message
  • Subscribe to forum
  • Subscribe to topic
Instructions:
  • Install the MOD
  • Manually copy over everything from root/styles/prosilver/ to your styles directory
  • Go to the UCP -> Profile -> Push notifications and enter your User Key from Pushover.net
  • ** Optionally ** add a Pushover APP Token/Key in ACP -> .MODS -> Pushover Settings
Screenshots:
Image
ACP
Image
UCP
Image

Demo URL: N/A

Modification Download: Direct Download
Topic on my website
Last edited by MasterZ on Tue Sep 04, 2012 2:04 pm, edited 11 times in total.
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am
Contact:

Re: [DEV] Push Notifications

Post by MasterZ »

Preliminary test with everything hard coded in worked. I got a push notification for a PM on my forum! :)

Now I just have to set the user key in the UCP, and make sure it sends the notification to the right person.
User avatar
Blue Blood
Registered User
Posts: 763
Joined: Sat Apr 11, 2009 7:09 am
Location: U§A
Name: Blue Blood
Contact:

Re: [DEV] Push Notifications

Post by Blue Blood »

Very nice!!!
Looking forward to testing this out!!
User avatar
Mess
Registered User
Posts: 985
Joined: Wed Jul 01, 2009 6:37 am
Name: Kim

Re: [DEV] Push Notifications

Post by Mess »

Interesting. :)
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am
Contact:

Re: [DEV] Push Notifications

Post by MasterZ »

UPDATE:
- UCP page created
- Users can enter their Pushover User Key in the UCP

- When a PM is sent, the MOD goes through all recipients, if they have a Pushover User Key set then it sends them a push message, if they do not have one set then it adds the user back to the recipients array so phpBB can parse it as normal (i.e. if you have a key set you get a Push message, if not you receive an email)

STILL TO DO:
- Find the code that sends an email for subscribed topics/forums and modify it
- Add an ACP page
- - ACP page can set the *optional* Pushover Application Key
- - ACP page can set an *optional* title to overwrite the default Pushover title
- Create a UMIL installer

I did some searching for the subscription email code but could not find it yet. I will look more tomorrow. If anybody can help me out by pointing out which file it is in and where in the file then that would greatly help.

If anybody would like to help me out by creating a UMIL installer I would be GREATLY appreciative. :D It should be an easy one to make. (We are just adding 1 UCP page, 1 ACP page, and creating 1 table with 2 fields.)

My goal with this MOD is to make it absolutely minimal as possible, in regards to code edits especially. As of now no php code is modified, we just add new code to what is there.

That's all I have for now.
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am
Contact:

Re: [DEV] Push Notifications

Post by MasterZ »

I couldn't sleep, so I got back to work on this. :D

Completed
  • ACP page added
  • - Use your own custom Pushover App Key or leave blank to use the default phpBB key
  • - Add your own title to the messages, so you can use your forum name instead of just "phpBB"
  • Push Notifications for subscribed threads and forums
Still To Do
  • Add language file
  • Add UMIL install file
  • Package it up and test in AutoMOD
It's almost done! :D

I could use some help with the UMIL file if someone has the time. If so this could be up in Beta status before the end of the weekend. If not, it may take longer for me to figure out how to create UMIL files and fully test it.
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am
Contact:

Re: [DEV] Push Notifications

Post by MasterZ »

Language file created.

now all I need to do is create the install file.
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am
Contact:

Re: [DEV] Push Notifications 0.1.0

Post by MasterZ »

IT IS FINISHED! :D

Download from my website: http://jonzenor.com/download/6/

There is one issue so far, for some reason AutoMOD will not copy the files to additional styles you have installed, so you have to do that part yourself, but everything else seems to be working great.

Feedback is welcome! :D
User avatar
MasterZ
Registered User
Posts: 712
Joined: Wed Sep 24, 2003 5:33 am
Contact:

Re: [Beta] Push Notifications 0.1.0

Post by MasterZ »

I am trying to gather a list of things to fix/change before I submit this to become an official MOD. Any suggestions?

The one issue I have found so far is that private message's do not include a URL to the board in the push notification, so it creates a link that is blank. So I need to fix that.

After that, I hope to get this MOD reviewed. So if you have any suggestions now is the time.
Locked

Return to “[3.0.x] MODs in Development”