PDA

View Full Version : Integration with vBulletin - Enhanced Jabber (XMPP) Integration


Sebijk
05-12-2008, 10:00 PM
Modification is compatible with vBulletin 3.6, 3.7 and 3.8.

As Jelsoft still hasn't been able to integrate Jabber as normal IM Field, I had to make my own hack. This Add-On is based on the Jabber Integration by Patria (https://vborg.vbsupport.ru/showthread.php?t=135158), but completly rewrite this Mod.

What is different in this Add-On?

This Add-On gives you a lot more than just an IM Field for Jabber. It
allows users to send Jabber Messages (see screenshot 2) and can send
Birthday wishes via Jabber, if the JID has been entered by the user. New
post, thread and PM notifications, are integrated too, duuh!

In future we plan seperate Setting for Jabber and E-Mail.

The PHP code changes in EN-codechangs.txt are optional and is not required for running this hack.

Included Languages:

German
English
Russian


Version History:

Version 1.23 RC 4:

* PHP 5.3 Compatibility Fixes for xmpphp
* Bugfixes from Charles_1 included (Thanks to Charles_1)


Thank you to flosoft (http://www.jabberforum.org) for the English Translation and zCarot for the Russian Translation. :)

For Auto-Template Changes you need the Template Modification System (https://vborg.vbsupport.ru/showthread.php?t=152931) from Andreas. If is this not installed, read the EN-templateedits-enhanced_jabber.txt for Template Changes.

If you like Jabber, join to the Jabber social group at vBulletin.com (http://www.vbulletin.com/forum/group.php?groupid=382) (Link not working was removed from vBulletin.com?)

PHP Version:

Minimal is PHP 4.3.3 required, but PHP 5.2.6 is recommended.

License:

This Product is licensed under the LGPL License.

The xmpp Class is licensed under the GPL v2 License, but I have a permission from the Author to use this. See upload/includes/XMPPHP/LICENSE under Exceptions for more details.

Is a vBulletin 4 version planned?

Yes, see here: https://vborg.vbsupport.ru/showthread.php?t=262896

Sebijk
05-13-2008, 06:55 PM
*reserved*

flosoft
05-13-2008, 06:58 PM
Cool, it's finally here. Installing it immediately :)

AlexanderT
05-13-2008, 08:42 PM
This one is *pretty* *cool*, Sebijk!

myown
05-13-2008, 08:57 PM
tagged for getting updates...

Mum
05-13-2008, 09:35 PM
Does everyone do this ' You would also need to fix includes/class.jabber2.php to make it work
with ISO-8859-1:' or only german users? I'm a bit confused at the install instructions.

touba
05-13-2008, 10:12 PM
i think it depends which encoding runs on your board... for a german, ISO-8859-1 seems logic... you're from NZ, do you UTF-8 ? :p

Mum
05-14-2008, 03:05 AM
I have absolutely no idea, how do i find out what encoding it uses?

Netaudio
05-14-2008, 06:53 AM
*Merci*

Sebijk
05-14-2008, 01:04 PM
I have absolutely no idea, how do i find out what encoding it uses?

Hello,

Standard Encoding is ISO-8859-1. The English language have not special characters like ????, so you have not problem with this. The fix to work with ISO-8859-1 includes/class.jabber2.php is needed, when a User sends a Jabber Message with special characters.

Alfa1
05-14-2008, 01:53 PM
Thank You!!!!!

Sebijk
07-20-2008, 07:25 PM
So, the English Translation for Instructions is completed :).

Alfa1
07-21-2008, 01:14 PM
Will you be adding other notifications as well?

Sebijk
07-27-2008, 07:16 AM
Perhaps in the next release.

Mum
08-08-2008, 06:49 PM
Couldn't you enhance this to include a jabber chat room? So all members could join using jabber to one chatroom?

Sebijk
08-08-2008, 07:34 PM
Hello,

The current Jabber Class is from Florian Schmitz and have not any functions for Jabber MUC. If your search for a Jabber Web MUC, see at http://zeank.in-berlin.de/muckl/. MUckl is web-based application for Jabber groupchats which aims to be very easy to use (supply a nick and hit the button…).

Alfa1
08-08-2008, 10:32 PM
Very interesting.
Would be cool to have Jabber group chat integration (Either member login integration or forum account <-> jabber account integration)

Mum
08-09-2008, 07:21 PM
I've been working on jabber integration and will let you know how i did it if you pm me :) This includes group chat :)

Sebijk
08-10-2008, 12:24 PM
Cool! Please send me more Information via pm.

Sebijk
08-13-2008, 06:33 AM
The Version 1.23 Beta 1 includes a new Jabber Class "xmpphp". This requires PHP 5 (and 64 bit Users requires PHP 5.2.6). You can select, the classes. floele is the legacy Class and works in PHP 4 or PHP 5. xmpphp requires PHP 5.

Mum
08-13-2008, 07:06 PM
I'm working on this using MUCkl - are you familiar with this?

Sebijk
08-13-2008, 08:50 PM
Not really. MUCkl is completly AJAX und JavaScript based and use http-binding (or http-polling). The problem is the config.js is public for all, so everyone can see the password for the Jabber Account, that use for MUCkl, if you don't using SASL Anonymous.

Mum
08-18-2008, 09:13 PM
Ended up just installed sparkweb - works really well, quite happy with it :)

flosoft
08-19-2008, 05:27 PM
Hey guys,

what do you think of the new class?

Sebijk
09-20-2008, 07:33 PM
New Version 1.22 Beta 2 is out.

Alfa1
09-20-2008, 07:45 PM
Thank you for your work. This is developing more and more in the direction of full Jabber integration.

Alfa1
09-26-2008, 11:56 PM
Please add 1.23 beta 3. I see it's out in German.

Sebijk
09-27-2008, 01:21 AM
Have you imported the EN-product-enhanced_jabber.xml ? Beta 3 is here out.

Alfa1
09-27-2008, 02:17 AM
Ah. got it. Thanks.

Sebijk
10-15-2008, 07:44 PM
New Version is out:

Version 1.23 Beta 4:

* Replaced $_REQUEST-Variables in $_GET and $_POST
* Some codes located in external PHP Files (PHP 4 Compatibility)
* Phrase these_functions_require_jabber updated (Jabber Clients Link)
* Two Plugins in Hook sendmessage_start merged to one
* Updated Jabber Class from floele (Is a file from Flyspray Project)
* Updated xmpphp Class (SVN Rev 60)

Sebijk
10-18-2008, 06:27 PM
New Version is out:

Version 1.23 Beta 5:

* Fix a Error in Jabber Popup Form
* Add a Versions Check URL

Sebijk
10-24-2008, 11:33 AM
Version 1.23 Beta 6:

* Complete Notifications via Jabber
(Weekly and Daily Notifications about new Threads and Posts)
* Jabber Field now in Admin CP editable.
* Notifications about new PMs integrated (Beta!)
* UTF-8 no longer required (Thanks to Stoebi)
* Fix Missing Template: im_send_jabber_complete_2 caching (Thanks to Stoebi)
* Removed Auto Authorization Menu (because it is not implemented in Class yet)
* Improved Instant Notifications about new Posts via Jabber
* Add a Option to disable the Jabber ID for Guests


I think, this is the last beta release before I going to the Release Candidates.

Alfa1
10-24-2008, 12:09 PM
Many thanks! This is really getting somewhere. Please add a complete functionality overview to the 1st post.

pipin
10-24-2008, 12:16 PM
Great progress!

We will use it after we will have installed our own jabber server.

Sebijk
10-26-2008, 04:02 PM
Many thanks! This is really getting somewhere. Please add a complete functionality overview to the 1st post.

Yes, I will make this later.

Sebijk
12-08-2008, 08:42 AM
Version 1.23 Beta 7 is out:

* Updated xmpphp Class (SVN Rev 73)
* Fix a Bug in functions_jabber_digest.php (Thanks to Hapi)
* Fix a Bug with the UFP (Thanks to Stoebi)

matkus
02-27-2009, 09:21 PM
I'm using vB 3.8.1 and latest version found here.
I can't send visitor messages to myself, user ID 1. Other users can do this, i can send it to others and so on.
I'm not sure if it's admin reason or user ID 1 reason, But when sending visitor message to myself i get whitepage. After disabling this mod problem does not exist any more.
Any suggestions?

Sebijk
03-05-2009, 11:36 AM
Hello,

I have no problems with this. Is AJAX enabled? What PHP Version are you use?

Sebijk
03-05-2009, 02:37 PM
Now the Enhanced Jabber Integration is going to Release Candidate. But I haven't enough free time to support the product, but support is still valid, as far as my time permits.

Changes since Version 1.23 Beta 7:

Version 1.23 RC 1:

* Some Template Modifications (TMS) changed to Template Hooks.
(Thanks to DragonMasterNYC for using some Code parts)
* Updated xmpphp Class (SVN Rev 75)
* PM Notifications via Jabber is not any more depended with the Setting:
Send E-Mail Notifications about new Private Messages
(useful, if you don't like double Messages)
* Automatically Redirects, if a User sends a Jabber Message from a User Profile.

The Planned Function moved to the future Version 1.24 for time reasons.

TandyServices
03-07-2009, 08:58 PM
Having an error when trying to send messages.



Fatal error: Uncaught exception 'XMPPHP_Exception' with message 'Could not connect before timeout.'
in /home1/mysite/public_html/includes/XMPPHP/XMLStream.php:327 Stack trace:
#0 /home1/mysite/public_html/includes/start.xmpphp.php(20): XMPPHP_XMLStream->connect()
#1 /home1/mysite/public_html/includes/start.jabber.php(31): require_once('/home1/mysite...')
#2 /home1/mysite/public_html/includes/functions_newpost.php(1384) : eval()'d code(3): require_once('/home1/mysite...')
#3 /home1/mysite/public_html/includes/functions_newpost.php(1384): eval()
#4 /home1/mysite/public_html/includes/functions_newpost.php(576): exec_send_notification(250, '2', 513)
#5 /home1/mysite/public_html/newreply.php(376): build_new_post('reply', Array, Array, Array, Array, Array) #6 {main}
thrown in /home1/mysite/public_html/includes/XMPPHP/XMLStream.php on line 327


Had to disable. Any suggestions?

Sebijk
03-07-2009, 09:52 PM
PHP Version? 32 or 64-Bit?
Is PHP running as Apache Module or as CGI?

TandyServices
03-07-2009, 10:16 PM
PHP 5,
32, apache, Cpanel.
The hosting company is Bluehost. I think it is CGI.
Thanks for the fast response :)

Sebijk
04-06-2009, 07:13 AM
Sry for my late answer, but i think CGI is the problem. I have only tested as apache Module. I ask the xmpphp Developer for CGI compatibility.

Sebijk
05-02-2009, 08:21 PM
my TODO list:



Seperate Settings for E-Mail and Jabber
A Option to send Notifications via Scheduled Tasks, so some Code Modifications are not anymore needed and makes no problems for PM System.
Show Jabber Icon at Tab Friends
Option for Users to seit Public the Jabber ID or private.
Option for Forum Register: Validation via Jabber instead of E-Mail




But i have not enough time for this, but if I have some time, I will working on. If you want develop this Plugin, you are welcome.

Known Issues (02.05.2009) : PM-Autoresponder from Vossi. It make errors by sending PMs.

Solution: Disable Notifications about new PM via Jabber or disable Plugin "New PM Notifications via Jabber".


I have updated the screenshots :), see below.

Sebijk
05-11-2009, 09:38 PM
Version 1.23 RC 2 is out:

* Jabber PM Notification is automatically disabled if Vossis PM-Autoresponder is installed (I'm currently work for a complete fix)
* Reduced Template Modifications, only 2 Template Edits is required, if TMS is not installed
* Updated xmpphp Class (SVN Rev 76)

tereg
05-18-2009, 03:20 AM
I have just updated to 1.23 RC2, and I am experiencing the following behavior in the postbit section under the user's avatar.

https://vborg.vbsupport.ru/

I have checked the postbit, postbit_legacy and im_jabber templates, but they appear normal and I see no indication as to why the IM icon is duplicating. I have not experienced any problems until just now. Is anyone else experiencing this?

Sebijk
05-18-2009, 06:37 AM
Revert the postbit and postbit_legacy. Since 1.23 RC 2 is no Template Edits at postbit and postbit_legacy required.

tereg
05-25-2009, 01:24 PM
When I revert the postbit and postbit_legacy templates, both icons disappear

Reverted postbit template (the relevant section):


...
<td valign="top" nowrap="nowrap">

<div class="smallfont">
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>
...


Reverted postbit_legacy template (the relevant section):


...
<td class="alt2" width="175" style="border: $stylevar[cellspacing]px solid $stylevar[tborder_bgcolor]; border-top: 0px; border-bottom: 0px">

<div id="postmenu_$post[postid]">
<if condition="$show['profile']">
<a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a>
<script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script>
<else />
$post[musername]
</if>
</div>

<if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if>
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
$template_hook[postbit_userinfo_left]

<if condition="$show['avatar']">
<div class="smallfont">
&nbsp;<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>

<div class="smallfont">
&nbsp;<br />
<if condition="$post['joindate']"><div>$vbphrase[join_date]: $post[joindate]</div></if>
<if condition="$post['field2']"><div>$vbphrase[location_perm]: $post[field2]</div></if>
<if condition="$post['age']"><div>$vbphrase[age]: $post[age]</div></if>
<div>
$vbphrase[posts]: $post[posts]
</div>
$template_hook[postbit_userinfo_right_after_posts]
<if condition="$show['infraction']"><div>$vbphrase[infractions]: $post[warnings]/$post[infractions] ($post[ipoints])</div></if>
<if condition="$show['reputation']"><if condition="$show['reppower']">$vbphrase[reppower]: <span id="reppower_$post[postid]_$post[userid]">$post[reppower]</span> </if><div><span id="repdisplay_$post[postid]_$post[userid]">$post[reputationdisplay]</span></div></if>
$template_hook[postbit_userinfo_right]
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
</div>

</td>
...

Sebijk
05-25-2009, 02:58 PM
TMS installed? If yes, delete the Template Modification from postbit and postbit_legacy (at Template-Modifications, NOT Template Edits).

Sebijk
08-11-2009, 10:26 PM
Version 1.23 RC 3 is out:

* PHP 5.3 Compatibility Fixes
* Updated xmpphp Class (SVN Rev 77)

testebr
08-22-2009, 04:58 PM
Great product, but after message received on my gtalk the page still loading by more 10 seconds... this is killing my patience.

Maybe bad host? Or how to I can improve it?

Thanks

Sebijk
08-23-2009, 10:27 AM
see EN-codechanges.txt for improving this or deactivate "Notify of new posts via Jabber", if you don't want use this feature.

testebr
08-23-2009, 04:22 PM
see EN-codechanges.txt for improving this or deactivate "Notify of new posts via Jabber", if you don't want use this feature.

WOW! Much better!

I would like to see option to customize the notification message.

I will try integrate to my personal addons, if you have some hints share here.

Thanks

T34
11-02-2009, 05:03 PM
I've install it in vB 3.8.4, but there is no jabber icons in the message body, near the Skype icon. I've try to change the templates MEMBERINFO and "whosonlinebite" following the file "EN-templateedits-enhanced_jabber.txt" in archive included, but it doesn't help.

I can see the jabber's menu when enter the user's profile now, but if I press any functional link, I see the answer about non supported address class. :(

Sebijk
11-02-2009, 05:19 PM
Have you upload the files? Is the Jabber Profile Feld in User CP visible?

I can see the jabber's menu when enter the user's profile now, but if I press any functional link, I see the answer about non supported protocol.

The Links can only used by a Jabber Client, that support this function, example Psi or Miranda IM with this Plugin (http://dev.miranda.im/~hrathh/assocmgr/AssocMgrv0113bw.zip).

T34
11-02-2009, 05:33 PM
Yes, I've uploade them. And I use Psi client on my Linux OS.

But are the client's windows I see at the screenshorts of the first message here, or there are browser windows?

Sebijk
11-05-2009, 09:42 AM
But are the client's windows I see at the screenshorts of the first message here, or there are browser windows?

Yes, the Screenshots are from Windows. But It should works with Linux. Psi has since 0.13 xmpp-URI support.

T34
11-05-2009, 10:16 AM
Yes, the Screenshots are from WindowsSorry, I mean are this screenshorts of window of browser - or of window of any client program?

Sebijk
11-05-2009, 10:26 AM
Yes, there all Screenshots of a Browser.

T34
11-05-2009, 10:46 AM
Is it means the client (PSI, for example) doesn't pop up when I click the jabber button, and this client functions in hide mode during I write the message in browser window and when send it?

Sebijk
11-05-2009, 11:14 AM
When you click a xmpp-Uri-Link, it opens your Jabber client. Example "Sending Message to xdy@xyz.tld" at "More Jabber Functions via Jabber Client" opens Your Send Message Window of your Client.

The other thing at top sends a Jabber Message without a Client. You need to configure a Jabber Account at vBulletin Settings.

T34
11-05-2009, 02:21 PM
The other thing at top sends a Jabber Message without a Client. You need to configure a Jabber Account at vBulletin Settings.Thank you.

I configured JA at vB 3.8.4 settings, but there is no jabber button near skype button at the forum messages of users, who included the jabber address data in there profiles. Also when I click the "Sent Jabber message" at the popup menu in profile, there is no the message body field in popup message window.

How can I solve this trouble?

tlwwolfseye
11-19-2009, 01:45 PM
Ok, the Mod works, but there is a problem.

It seems only I (Administrator) get notified of PM's or get messages send to me via Jabber in my Profile. When I or someone else tries to send a Message using Jabber in someone's Forum Account, nothing ever gets there.

And since there is no further permission setting for Registered Users, I wonder why that only works for / with me.

PLEASE HELP !! I WOULD LIKE TO KNOW WHAT IS GOING WRONG HERE !

Even adding someone else as Admin doesn't change the fact that he can't receive Messages with the Jabber (Web) Message within his Profile. So why is that ? I thought maybe there would be a thing that it is only working for Admins, but that wouldn't make sense. So why am I the only one that can receive Messages with that thing ?

BlueEyesOnly
02-06-2010, 03:07 PM
will this mod be ported to vbulletin4?

Sebijk
02-06-2010, 09:47 PM
Sorry for the longtime away from me.

Ok, the Mod works, but there is a problem.

It seems only I (Administrator) get notified of PM's or get messages send to me via Jabber in my Profile. When I or someone else tries to send a Message using Jabber in someone's Forum Account, nothing ever gets there.

And since there is no further permission setting for Registered Users, I wonder why that only works for / with me.

PLEASE HELP !! I WOULD LIKE TO KNOW WHAT IS GOING WRONG HERE !

Even adding someone else as Admin doesn't change the fact that he can't receive Messages with the Jabber (Web) Message within his Profile. So why is that ? I thought maybe there would be a thing that it is only working for Admins, but that wouldn't make sense. So why am I the only one that can receive Messages with that thing ?

I would look to this issue.


will this mod be ported to vbulletin4?

I haven't vbulletin 4 (and I wouldn't pay for this), but a other vB User have a access to Version 4 (and i'm mainintenance the forum from him). I would port it to vBulletin 4, if I have time for this.

BlueEyesOnly
02-07-2010, 07:07 PM
Sorry for the longtime away from me.



I haven't vbulletin 4 (and I wouldn't pay for this), but a other vB User have a access to Version 4 (and i'm mainintenance the forum from him). I would port it to vBulletin 4, if I have time for this.

Im looking forward to it :)

Charles_1
03-16-2010, 12:25 AM
I have just updated to 1.23 RC2, and I am experiencing the following behavior in the postbit section under the user's avatar.

http://img152.imageshack.us/img152/6792/sdfgsdfgsdfgsdfg.png

I have checked the postbit, postbit_legacy and im_jabber templates, but they appear normal and I see no indication as to why the IM icon is duplicating. I have not experienced any problems until just now. Is anyone else experiencing this?

When I revert the postbit and postbit_legacy templates, both icons disappear

I've install it in vB 3.8.4, but there is no jabber icons in the message body, near the Skype icon. I've try to change the templates MEMBERINFO and "whosonlinebite" following the file "EN-templateedits-enhanced_jabber.txt" in archive included, but it doesn't help.
I had this too after upgrade from 1.23 RC2. After import new version of product there were 2 icons, so I deleted template edits from older version which are not needed anymore and both icons dissapeared. I looked in plugin which is taking care about inserting (well, by replacing in this case) code to postbit and postbit_legacy and found typo. Fix is easy:

Open plugin "Parse Templates for Jabber" and change 2x this (first is for postbit and second is for postbit_legacy):
(' $post[icqicon]', '$post[jabbericon] $post[icqicon]', $vbulletin->templatecache['postbit_legacy']);

...to this (remove first space before $post[icqicon]):
('$post[icqicon]', '$post[jabbericon] $post[icqicon]', $vbulletin->templatecache['postbit_legacy']);

Icon will appear :)


And one more thing. When I was in usercp (page "Edit Your Details"), there was unchached template "im_jabber_field_modifyprofile". Fix is easy too:

Open plugin "Jabber Integration Template Cache" and change this:
$globaltemplates = array_merge($globaltemplates, array('im_jabber','im_send_jabber', 'im_send_jabber_complete','im_send_jabber_complete _2','memberinfo_block_jabber'));
...to this:
$globaltemplates = array_merge($globaltemplates, array('im_jabber','im_send_jabber', 'im_send_jabber_complete','im_send_jabber_complete _2','memberinfo_block_jabber','im_jabber_field_mod ifyprofile'));
Good luck :up:

radex
03-18-2010, 08:35 AM
it's posible to run that module in vBulletin™ Version 4.0.2 ?

radex
03-30-2010, 03:37 PM
any news?

Sebijk
06-22-2010, 04:32 PM
Yes, sorry for the wait time, but currently i have no time on this month (but in the next month).

it's posible to run that module in vBulletin™ Version 4.0.2 ?

I think not, but a version for vbulletin 4 is planned.

Sebijk
04-29-2011, 04:09 PM
Version 1.23 RC 4 released:

* PHP 5.3 Compatibility Fixes for xmpphp
* Bugfixes from Charles_1 included (Thanks to Charles_1)

Alfa1
04-30-2011, 02:52 AM
I would love to see a XMPP footerbar chat for vb.

Sebijk
04-30-2011, 12:15 PM
I would love to see a XMPP footerbar chat for vb.

yes, a good idea. Hope anyone would do this.

A beta version for vBulletin 4 is available: https://vborg.vbsupport.ru/showthread.php?t=262896