Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+51 votes
19.6k views
in Plugins by
edited by

I have decided to do something good for the community - I especially want to thank Gideon and Scott and early developer NoahY. From those guys I learnt a lot regarding q2a and PHP over the past years - so please see my free release as a contribution to you :)

Instead of charging for the On-Site-Notifications Plugin I release it for free.

Screenshot:

Description: Facebook-like / Stackoverflow-like notifications on your forum's website that can replace all email-notifications.

Video-URL: https://www.youtube.com/watch?v=C86rdJkGP3k&wide

"Your users complain because they get too many notification emails from your forum? You lose overview and you do not know anymore what new events are important for you? Then the On-Site-Notification-Plugin is the perfect solution for you."

more info at: https://github.com/q2apro/q2apro-on-site-notifications

Installation Note: If you are using the q2a history plugin, you should disable/remove it from your installation before installing this plugin. Otherwise events would be written twice to the database.

Q2A version: 1.6.3
by
For everyone who is interested in the continuing development of this plugin, you have the chance to help proceeding the development by a little donation, see details here: http://www.question2answer.org/qa/41161/donate-to-proceed-the-development-of-q2a-site-notifications
by
Wondering if it is compatible with QA 1.7.1????
by
Hello @truthonlytruth, the plugin is compatible with Q2A 1.7.1... I am currently running it on my website...
by
If a member sends me a message, I cannot see it in the notification.

24 Answers

+9 votes
by
It's cool that you are giving this plugin as free to q2a users. Really very thanks @kai.
One more think that I would like to say, if you are giving this plugin for free then you can give this plugin to @scott so that he can integrate it into the core and this plugin becomes a well integrated part of q2a. Its just an advice, rest you know better.
by
Now its pretty awkward for me. I really can't understand why I can't see the notification popup on my website while everyone else can do that.
But still I appreciate you for your help @rgd.
by
@ Gurjyot Singh I checked the plugin on your site (http://www.yohelpdesk.com ) with different IS Provider and different computer with IE and Firefox. Notification buble is working fine. I belive that majority can see this notification window and only few can't. Hope Kai will fix this soon.
by
Upload the new version, it should work now!

I cannot believe it, it was a q2a sanitize function that added <p> tags to the sent request! That's why it could not get identified.

→ Get the new version: http://www.q2apro.com/plugins/on-site-notifications
+4 votes
by
edited by
It would be helpful if you leave a link to your forum where the plugin is used now. Just comment this answer below.

Let's make it many links so that the core developers implement the plugin in the default distribution of question2answer.

Thank you!
Kai
by
edited by
*Thank You for the plugin!*
by
http://mi-respuesta.com/  in spanish :P
+1 vote
by
Thank you very much for you giving us great plugin for free. And I really appreciate your quick support to solve all the problems while installing this wonderful plugin. Now it is working fine. Wish you all the success.
+1 vote
by
edited by

@ Gurjyot Singh Notification Window

 

by
@jaxila: I registered at your site with account "john2". It seems that you have not installed the plugin.
by
Thanks to brinch, he tried the debug version on his server and I could find the culprit! Upload the new version, it should work now!

I cannot believe it, it was a q2a sanitize function that added <p> tags to the sent request! That's why it could not get identified. Weird, that in other 1.6.3 versions it worked and others it didn't.

→ Get the new version: http://www.q2apro.com/plugins/on-site-notifications
by
This plugin works me since the first installation. Should I replace the newest version?
by
Yes, replace it. It will not do any harm. The only thing I had to change additionally was the append of the notification box by jquery, because some themes override the .qa-nav-user bar on top. The result is that the notification box is positioned relative to the (N) now, and it should work on every theme!
+1 vote
by

I have tried everything to operate notification popup but it is not working for me. But if someone else uses my website then he can see that. I just can't understant what is going on. I have removed cache, changes browers and even changed computer to test this but the problem persists. 

I have also found these errors while clicking on the notification bubble. Maybe by looking at these you can help me. 

by
So tell me what more information you need. I also want this plugins to work on my website. So I'll give you all the information you need to fix this bug.
by
edited by
Thanks to user brinch, he tried my debug version on his server and I could find the culprit! Upload the new version, it should work now!

I cannot believe it, it was a q2a sanitize function that added <p> tags to the sent request! That's why it could not get identified. Weird, that in other 1.6.3 versions it worked and others it didn't.

→ Get the new version: http://www.q2apro.com/plugins/on-site-notifications
by
Sorry to inform you that the plugin is still not working for me.
by
If I test the plugin in your forum as logged in user the plugin returns all the data. It works for me. Please send me a private message with your email so that I can send you the debug version.
+1 vote
by

Hi I installed it locally and the notification icon appears in read with a number in it ( just like Noah's) but clicking in the icon does not do anything!


by
Do you have the same error message like Gurjyot Singh above?
by
edited by
I have added "header('Access-Control-Allow-Origin: *');" to the ajax echo, file q2apro-onsitenotifications-page.php.  But I actually doubt that this is the problem.

Please download the new version and try it again: http://www.q2apro.com/plugins/on-site-notifications

Check your HTML, do you see the var eventnotifyAjaxURL set in the HTML?
by
This might be a problem with localhost: "XMLHttpRequest will not let you reach localhost:8080 because of the "same origin policy. You can allow requests from modern browsers by adding a header to your response on localhost:8080:
Access-Control-Allow-Origin: *"

from http://stackoverflow.com/a/9327508/1066234
by
To not allow cross-site-scripting I have changed the header from * to site_url: header('Access-Control-Allow-Origin: '.qa_opt('site_url'));
by
Hi Thank you for the updates but the problem still persists. I am wondering if you could ruin it locally?
Also I installed wamp server on port 80, so the port 8080 should not be an issue here. The rest of plugins work except yours
by
As I wrote below, the problem does not exist on my WAMP localhost. Everything works as expected. Can you check the headers sent, can you check the error log of your server. I need as much data as possible to be able to fix it. On all my systems (localhost and online) it works. With fresh installations and with 1.5.x and 1.6.x installations.

Do all steps here: http://www.question2answer.org/qa/33712/free-plugin-notifications-facebook-stackoverflow-q2apro?show=33728#c33728
by
Thanks but I am no longer interested in this plugin for now as I stated somewhere else in this thread that your plugin is not compatible with other themes.

Thanks a lot for sharing your work with us, we all appreciate it
by
Thank you Kai,
by
Hi Kai,
I installed your plugin on a q2a 1.6.3 but clicking on bubble does nothing. I already  sent you an email
+2 votes
by
edited by

I Installed it on a remote server and now noticed two bugs:

1- A user has already login into the website

2- at the same time the admin installs the plugin

3- the user ( of course on another browser / session) refreshes his/her screen and now notices a notification with number 1(in yellow)

4- the user clicks on the number (1) and the list box opens but empty!

 

Bug 2:

1- A question posted by admin get answered

2- now thw admion refreshes the screen to see the notification

3- clicking on the notification lists the answer but the image icon is missing :

 

 

Bug 3

After the sequence above,

1 - the admin comments on an answer given by user ar,

2- then the user ar comments back.

3- now admin refreshes the page to see the notification

4- a number (1) appears as notification but clicking on it does not open the list box ( you see testing the local copy also had the same result, I think testing your work locally would help a lot)

 

by
oh! Thank you I will try it later. Then If I were you I would have made another thread with title "release of on site notification plugin ver1.1 (FREE)" to attract more traffic to my online store. Most of discussions on this thread are around bugs and I dont thing upcoming visitors would be encouraged to buy your plugins when see these many bug reports here. Thanks again for sharing your work with us
by
update:
Unfortunately problems still exist
1- not compatible with other themes
2- Some of icons are missing
!!
by
1. what is the problem?
2. It's fixed, please update: http://www.q2apro.com/plugins/on-site-notifications
by
please download one of the themes from http://qa-themes.com/ and you will see clicking on the notification button ( the yellow number) would not open the list box, it just does nothing!
0 votes
by
edited by
Thanks for making the plugin free. However it does not work. When clicking on the notifications number, no popup shows, even though it says there is 1 notification. Same as reported by many others in this thread. Just downloaded fresh copy of your plugin. Problem still exists.
by
edited by
@brinch: When I click on the (N) I see a request to the server. However, the returning data is 0 KB. Can you change q2apro-onsitenotifications-page.php and replace line 62 with:
    if(empty($userid)) { echo "empty"; return; }

Tell me when you did the change.

PS: You can send me a private message with your email. I'd send you a complete debugging file so we find the error faster.
by
Ok. Sent you a private message.
by
@brinch: Thanks a lot!
by
Thanks for your help. It seems to work now. Great plugin you made.
0 votes
by

I tried to replace the plugin. Then received this error. Then I installed previous one again. Save.. Everything working fine. 

Please check this error.

by
This is because of the q2apro-best-user-plugin we were testing together yesterday ;-) Not because of the q2apro-on-site-notifications plugin.

Please upload the q2apro-bestusers-plugin with all the files I have sent you yesterday, file q2apro-best-users-pro-dev-0.3.zip
+1 vote
by

Notification plugin just worked for me, as I changed preferred site url from http://www.yohelpdesk.com to http://yohelpdesk.com

This is something that is causing problem on my website. Secondly, the notification windoe is looking something like this. Please tell me, is this the right way for the notifications to look, because the notifications are not even readable like this.

by
I accidentially copied the old zip file this morning to the server. 1 min ago I uploaded the latest version. Which theme do you want me to test?
by
Say this guy for example: http://qa-themes.com/shop/esteem-theme
by
edited by
I tried the foreign theme. The plugin works. I see the bubble and I can click it, the notify box pops up. Only problem is that the user nav bar and thus the (N) appears two times. This is due to the theme, in function body_content() it is calling: $this->header(); (which also outputs the nav_user_search()), and then it is calling the $this->nav_user_search(); again. Result: Output two times. The theme should be modified.
by
Mine does not pop up the list box but ok,it might be the theme's issue. Thank you Kai
0 votes
by
edited by

Hi Kai,

Would it be an easy task to move the popup to somewhere else, say the sidebar?

I had a go at moving <div id="nfyWrap" class="nfyWrap"> without a css position set myself but, can't get it right.

EDIT: figured this out by editing the ajax in script.js and adding an append in the success function

$("#newlocation").append(data);
 
However, I also would like to change the location of the bubble but, this is a little more confusing.
 
$this->content['loggedin']['suffix'] = @$this->content['loggedin']['suffix'].' <a class="qa-history-new-event-link" title="'.$tooltip.'"><span class="notifybub ntfy-event-new">'.$eventcount.'</span></a>';
$this->content['loggedin']['suffix'] = @$this->content['loggedin']['suffix'].' <a class="qa-history-new-event-link" title="'.$tooltip.'"><span class="notifybub ntfy-event-nill">'.qa_opt('q2apro_onsitenotifications_nill').'</span></a>';
 
How could I change the above code to get the bubble to appear in a div of my choice instead of content['loggedin']['suffix']?
 
Thanks
asked May 18, 2014 in Plugins by
closed Jun 3, 2014 by
Add bubble in a div of my choice not navigation
0 votes
by

I have one problem url.

Example. I open user page and bottom notification. But url add  http://site.com/user/qestion-id  and error.  

Message page error. 

by
If I understand your question correctly, the link is not correct. This has been fixed two weeks ago, with an absolute path: https://github.com/q2apro/q2apro-on-site-notifications/commit/12ea2ceeed46bc06e3b1356aa356f3bf45ec60b3
...