vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Integration with vBulletin - Openfire Integration - Instant Messaging Server for your vBulletin Users (https://vborg.vbsupport.ru/showthread.php?t=191448)

Sebijk 09-20-2008 10:00 PM

Openfire Integration - Instant Messaging Server for your vBulletin Users
 
A very easy and simple add-on.

This add-on registrate vBulletin registrations automatically to the Openfire Server. So you can own a Instant Messaging Server (based on Jabber) for your vBulletin Users. The solution here is realized with the User Service Plugin for Openfire . But there are many other Integrate solutions with Openfire. Openfire supports the LDAP authentication, too.

The only problem of this integration solution: Existing vBulletin users must manually registering to the Openfire server, but a import script is included

Requirements:
vBulletin 3.7 (3.6 and 3.5 are not tested)
Openfire
User Service plugin for Openfire

Recommend Products: Enhanced Jabber-Integration

Examples and Screenshots: https://vborg.vbsupport.ru/showpost....36&postcount=4

Version History:

Quote:

1.0.0 Beta 3
* fopen is no longer required
* Import script included
* A install instruction included

1.0.0 Beta 2
* Fix a important Bug with Password registration

1.0.0 Beta 1
* First Version
IMPORTANT FOR IMPORT EXISTING USERS TO OPENFIRE, IF YOUR USING THE IMPORT SCRIPT: It is recommended to make a backup of Openfire database and vBulletin database. This Import script has tested only with a low number of users. If anybody will improve the import script, you can make this :). If you want to test in "local" area, please comment out the line with "vbmail".

Use the import script with your own risk

If you get timouts of the import process, make sure safe_mode is temporary disabled and set max_execution_time temporary to 50000.

After import, reset the php settings.

If you need my help for the import process, donate 30 EUR / $45 and send me a email with
your FTP and MySQL Account-Details. Create a vBulletin Adminaccount for me.
I will make then the import process.

GoTTi 09-20-2008 11:51 PM

so what does this do??? it doesnt use the vb user tables so the users need to register on a seperate site in order to be linked up using a messenger client?

im not understanding this. do u have a demo site or some screen shots for us?

Sebijk 09-20-2008 11:55 PM

Hello,

Openfire use the own table, not the vBulletin User Table. You can use a Jabber Client or the offical Openfire Clients Spark (Program) and SparkWeb (Webclient). I can make some screenshots for this.

Sebijk 09-21-2008 12:36 AM

So, some examples:

1. I register at a normal vBulletin Forum with this Add-on:

Attachment 87118

Now I get a verify email for my vBulletin Account. After I'm verify my vBulletin Account, the Forum send my Registration Data to the Openfire Server (without the vBulletin Password).

I get a seperat email with my Openfire Account details with a seperat Password:

Attachment 87119

Now I'm registered at my Forum and my Openfire Server.


Example with meebo:

I going to meebo.com and click more networks. Under Jabber I give my Openfire Account details:

Attachment 87120

So Im Log In to Meebo and add a Google Talk User:

Attachment 87121

I have make a dirty @ on the Screenshots because I dont like spambots.

More examples cooming soon.

Alfa1 09-21-2008 01:24 AM

Quote:

Originally Posted by Sebijk (Post 1626636)
More examples cooming soon.

That would be great. Please explain more.

ShawneyJ 09-21-2008 07:40 AM

ok so we download
"openfire_3_6_0a.tar.gz Works on most Unix variants, no Java JRE"
and install to our forum server?? atm i can find a install folder...
we register where to get a Secret Key?
where does "User Service plugin for Openfire" go?
no offense but there is some instructions needed here or have i missed something?
sorry i have never heard about Openfire till this thread so im new to this one.
mmmm maybe i wait as its in beta stage or maybe i just move on and forget it as it
Not Supported.

Sebijk 09-21-2008 09:22 AM

Hello,

Go to Server Settings -> User Service. Here you can create a secret key. The Openfire Settings are located in https://example.com:9091.

The Install Instructions for Openfire: http://www.igniterealtime.org/builds...all-guide.html

Alfa1 09-21-2008 11:01 AM

Quote:

The only problem of this integration solution: Existing vBulletin users must manually registering to the Openfire server.
Do you have a solution for this?

Sebijk 09-21-2008 11:20 AM

I can only make a import script to import the existing vBulletin Users to the Openfire user table (with User Service Plugin, because Openfire use a another Password encryption) and the vBulletin Passwords cannot imported.

Alfa1 09-21-2008 11:24 AM

Would LDAP authentication make it possible to have integration, without the need for members to register with the Openfire server.

Sebijk 09-21-2008 09:27 PM

Yes, the LDAP Authentication is better. Here a LDAP Modification for vBulletin: https://vborg.vbsupport.ru/showthread.php?t=145188

But I don't know much about LDAP, so I can't help you with this.

Alfa1 09-21-2008 10:44 PM

Yes, I know the LDAP mod, but I would only be able to implement it for Jabber integration, if I would have a step by step manual that I could follow. I am not knowledgeable about LDAP at all.

Sebijk 09-21-2008 11:23 PM

IMPORTANT: It is recommended to make a backup of Openfire database and vBulletin database. This Import script has tested only with a low number of users. If anybody will improve the import script, you can make this :). If you want to test in "local" area, please comment out the line with "vbmail".

Use the script with your own risk

After import, the users get a email with the Jabber Account Details.

Place the file in your vBulletin Root Directory.

abrecher 09-22-2008 03:41 AM

Interesting mod, I wish someone would come up with a "total solution" for VB Instant messaging between members already.

Sebijk 09-22-2008 12:29 PM

New Version 1.0.3 is out. fopen is no longer required :).

kleinschwanz 09-23-2008 01:20 PM

has anyone tested the converter script on a larger group of members already and how did it work out?

Sebijk 09-24-2008 03:07 PM

The import scripts read all vb users, send the username and email to the Openfire Server, generate a new password for Openfire users and the user get a email with the Openfire Account Details.

Before you run the import script, make sure you have first the openfire integration product installed and configured the openfire integration settings.

Neo_obs 10-18-2008 01:04 PM

Question... How can I fix it so that
[s]A) it only sends emails out to those who said yes to admin emails.[/s] I believe I fixed this by adding where query to the options field
[s]B) Stores their temp password in plaintext in the database and [/s] I have successfully figured this out.
C) fixes the spaces, characters issue by adding periods instead? It turns out it needs to replace all the "%" in the htmlspecialcharacters into "/" Or can you figure out a way that spaces are changed into periods?

ZeroHour 10-20-2008 11:57 PM

BTW one thing to note, this will expose your members email addresses to all who connect to your jabber server by default in its current form. Certain clients can pull this information.

Sebijk 10-21-2008 04:51 PM

Quote:

Originally Posted by Neo_obs (Post 1647643)
C) fixes the spaces, characters issue by adding periods instead? It turns out it needs to replace all the "%" in the htmlspecialcharacters into "/" Or can you figure out a way that spaces are changed into periods?

Do you mean this?

Code:

$variable = ereg_replace("%", "/", $variable);

Alfa1 10-21-2008 09:14 PM

Quote:

Originally Posted by ZeroHour (Post 1649358)
BTW one thing to note, this will expose your members email addresses to all who connect to your jabber server by default in its current form. Certain clients can pull this information.

That is a very unwanted problem. Sebijk; do you have any idea how to fix this?

edermix 10-21-2008 11:34 PM

Forum example??

Neo_obs 10-22-2008 03:04 AM

Quote:

Originally Posted by ZeroHour (Post 1649358)
BTW one thing to note, this will expose your members email addresses to all who connect to your jabber server by default in its current form. Certain clients can pull this information.

It doesn't for me. I have made it so you can't search people by email. I did this by going under server settings -> Search Service Properties -> and unchecked email as a searchable field

ZeroHour 10-22-2008 07:19 AM

Quote:

Originally Posted by Neo_obs (Post 1650129)
It doesn't for me. I have made it so you can't search people by email. I did this by going under server settings -> Search Service Properties -> and unchecked email as a searchable field

Our tester was using Kopete and they could search for a username and the email address would be returned along with the results. Changing the server setting did not prevent the email being returned for a username search.

Sebijk 10-22-2008 04:49 PM

Quote:

Originally Posted by ZeroHour (Post 1650245)
Our tester was using Kopete and they could search for a username and the email address would be returned along with the results. Changing the server setting did not prevent the email being returned for a username search.

This is a problem with the Search Service Plugin from Openfire. It searchs only Name, JID and E-Mail Address, that cannot changed by User. And it can show all members by searching with *. I recommend to disable or delete this. Im looking for a Alternative.

If you want use the search service Plugin and you will not visible Member E-Mail Address, change in Plugin the line:

Code:

$sendjabber_register = file_get_contents("https://".$vbulletin->options['openfire_host'].":9091/plugins/userService/userservice?type=add&secret=".$vbulletin->options['openfire_secretkey']."&username=".utf8_encode(rawurlencode($userinfo['username']))."&password=".utf8_encode(rawurlencode($openfire_password))."&email=".utf8_encode(rawurlencode($userinfo['email'])));
to:
Code:

$sendjabber_register = file_get_contents("https://".$vbulletin->options['openfire_host'].":9091/plugins/userService/userservice?type=add&secret=".$vbulletin->options['openfire_secretkey']."&username=".utf8_encode(rawurlencode($userinfo['username']))."&password=".utf8_encode(rawurlencode($openfire_password)));
But you cannot after use some Plugins, that a E-Mail Address is required, example the Pass Service Plugin, that recover the password, if a Jabber User forget the password.

Quote:

Originally Posted by edermix (Post 1650060)
Forum example??

http://www.simsforum.de/vbulletin/

ZeroHour 10-22-2008 09:56 PM

Interesting, that may cure the part that imports the email address but users should note that notifications stating account details for the chat server wont work (just a fyi for them)
The search plugin I think is not the only possible way. I believe that if you view the profile of a user you may be able to see it too.

Sebijk 10-23-2008 08:31 AM

Or use this Plugin: http://www.igniterealtime.org/community/docs/DOC-1170. That update the Openfire User List for the Search Plugin, if the User has changed the Jabber Profile (vCard).

luxmail 11-04-2008 01:44 AM

Great hack, installed, any ideea how to check if the user is allready in Openfire DB, because i have a openfire db who works also with an email service

Sebijk 11-04-2008 05:21 PM

Quote:

Originally Posted by luxmail (Post 1659048)
Great hack, installed, any ideea how to check if the user is allready in Openfire DB, because i have a openfire db who works also with an email service

If a User is already in Openfire DB, the imported user (or the new forum member) will be skipped. But the problem is, the not imported User receive a email with invalid Openfire Account Details. The user can ignore this mail.

mmoore5553 01-30-2009 06:43 AM

so anyone actually using this mod ? can they tlel us now it is working and the email actually displayed ?

Alfa1 01-30-2009 10:53 AM

Sebijk, do you have any idea about my question above?
And is it possible to use openfire, while hiding the email addresses of the member base?

Sebijk 02-20-2009 08:25 PM

<a href="https://vborg.vbsupport.ru/showpost.php?p=1650560&postcount=25" target="_blank">https://vborg.vbsupport.ru/showp...0&postcount=25</a>

And I didn't found a Alternative Search Plugin for Openfire yet.

ZeroHour 02-27-2009 02:47 PM

Right I am thinking I will post my recompiled version of openfire that fixes this issue with emails and sign ups. I will see what I can do and I will make a new addon (as my way is a lot different and does more tbh)

Sebijk 08-23-2009 04:33 PM

Quote:

Originally Posted by ZeroHour (Post 1756160)
Right I am thinking I will post my recompiled version of openfire that fixes this issue with emails and sign ups. I will see what I can do and I will make a new addon (as my way is a lot different and does more tbh)

Any new news of your Openfire Version?

kenzacm 08-29-2009 09:27 PM

im using vBulletin with joomla integrated using JFusion.

joomla creates the VB account when someone signs up to mecial.

would this mod still work?

Sebijk 10-20-2009 07:22 PM

Possibility it wouldn't work. It needs a custom mod for this.

jklimczak 02-18-2010 02:17 PM

will this work on vb4

Sebijk 06-22-2010 04:35 PM

not tested, but i think yes, because the mod requires no template edits (or adds new templates).

irtehun 08-06-2010 01:10 AM

Is it possible to have a version of this plugin for Vbulletin 4.0?

sasank 10-13-2010 07:29 PM

Quote:

Originally Posted by irtehun (Post 2079877)
Is it possible to have a version of this plugin for Vbulletin 4.0?

i would like to know the same


All times are GMT. The time now is 05:52 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02035 seconds
  • Memory Usage 1,830KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete