<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged jabber</title>
<link>https://www.question2answer.org/qa/tag/jabber</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to load a javascript component only for logged in users? (converse.js xmpp chat)</title>
<link>https://www.question2answer.org/qa/61548/load-javascript-component-only-logged-users-converse-xmpp</link>
<description>I would like to enable XMPP chat on my Q2A page. I already have a ejabberd server running, so it is only a question of getting a smooth integration with Q2A.&lt;br /&gt;
&lt;br /&gt;
The best option seems to be this:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;https://github.com/jcbrand/converse.js/&quot; rel=&quot;nofollow&quot;&gt;https://github.com/jcbrand/converse.js/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
My idea is that the on-site pop-up chat should only be loaded for logged-in users (ideally getting the user data out of the Q2A database, as this is also where my ejabbered server indirectly gets its login data), and a full page chat with anonymous log-in as a &amp;nbsp;Q2A page (or maybe one per categrory?).&lt;br /&gt;
&lt;br /&gt;
I guess to really get that working one would need to write a plugin, but is there a easy way I can make sure the javascript for the pop-up chat is only loaded for logged-in users as a start?</description>
<category>Plugins</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/61548/load-javascript-component-only-logged-users-converse-xmpp</guid>
<pubDate>Tue, 26 Dec 2017 03:01:51 +0000</pubDate>
</item>
</channel>
</rss>