Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.9k views
in Plugins by

I am using current version of q2a application but after instalating of 

q2apro-on-site-notifications plugin

When i click on the notification icon the pop up box not working.

 

Q2A version: 1.6.3
by
edited by
Well, with this "zero" information nobody can help you. Please follow this guide: https://github.com/q2apro/q2apro-on-site-notifications/blob/master/CONTRIBUTING.md

2 Answers

+1 vote
by
selected by
 
Best answer

Check it again if it works this way :Open  www.yourwebsite.com and yourwebsite.com because it was the problem with me

 

For q2apro.com   :

The problem might be this : http://stackoverflow.com/questions/20433655/no-access-control-allow-origin-header-is-present-on-the-requested-resource-or

I would recommend the developer @q2apro.com to correct it.

I have corrected it on my server by using  var eventnotifyAjaxURL = "http://'. $_SERVER['SERVER_NAME'].'/' .'eventnotify";  instead of the default . Although this may not work on local server but would work fine on the server and

(Just a feature request)I would also recommend you to add the ajax based automatic updation of notifications.I have created it for my use and made several changes in the notification panel which i need and I can make a pull request in your github or send u email if you want because i believe in opensource things :)

btw thanks for the plugin

by
edited by
@Ashish: Thanks for the information. I will check the code. Furthermore I plan to set the license to GPL Open-Source. It will be on github soon: https://github.com/q2apro/

I'm not sure if we should implement ajax. Problem is if a user has 10 tabs open there would be sent 10 requests to the server. I once found a solution with "is tab in focus, only then do ajax" but faced another problem then (forgot what it was).
Kai
by
Thanks for this one :)
by
I have finally solved this problem by using "qa_path_html('eventnotify')" instead of "qa_opt('site_url')". This should work in all environments.

https://github.com/q2apro/q2apro-on-site-notifications/blob/master/q2apro-onsitenotifications-layer.php#L44
+1 vote
by

@iaswariya: What I see from Ashish's answer, your problem is the value that has been set in database table qa_options, see for 'site_url'. There should be the correct URL. In other words, if your website runs with "www.yourwebsite.com" the site_url should have exactly this value. Then it should work.

You should correct this to prevent problems with other plugins as well.

Also do a rewrite of your URLs using .htaccess. All URLs should be rewritten to "www."-URLs.

...