We recently implemented notifications but found that people got a bit confused about where to go to subscribe. They wanted to be able to subscribe on the homepage of our forum and not within specific nodes. Plus, they seemed a bit confused when we asked them to subscribe to all content on a thread page.
To try and fix this, I created a second block that just provides links to notification options and can appear on every page. I'll attach a patch shortly.
Julia
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | notifications-619180.patch | 1.88 KB | JuliaKM |
Comments
Comment #1
JuliaKM commentedHere's the patch. Looking forward to hearing how it can be improved. Notifications has so many useful functions, it was hard to know the best ones to use to implement for the new block.
Comment #2
jose reyero commentedThe patch doesn't look bad, though it would need some more things like like checking access permissions, etc...
Take a look at notifications_user_overview(), you could pick stuff from that page.
Anyway I think the best and simplest way to accomplish this would be creating a custom block with static html. However if you really want a generated block and want to put some more work on it, we may consider it for inclusion in the module.
Comment #3
JuliaKM commentedIt actually checks access permissions right now with:
if (!empty($info['access']) && user_access($info['access'])) {I'll look at notifications_user_overview() and try to find a more appropriate way to check for user access.
Comment #4
circuscowboy commentedI need a button on my home page that allows people to subscribe to the available notifications for numerous nodes.
The patch seems to do what I want but because I need anonymous notifications I have to use the new beta7 which is substantially different.
It seems like this would be a common request. The equivalent to a page with all the RSS feeds available for the site.
Is there any plan for a global block that someone can choose the topics (nodes) they wish to have notifications for. This could be on the sidebar and would really help for usability.
If there is someone else who as explored this please point me in this direction as I can't find anything.
Perhaps I can just create a custom php block to call these items. Any help would be appreciated.
Thanks
Scott
Comment #5
jodyfr commentedSubscribing
Comment #6
SchwebDesign commenteda global block as mentioned in comment 4 is exactly what i need as well. subscribing!