Register Chat Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
vBulletin SOAP API Details »»
vBulletin SOAP API
Mod Version: 1.0.7, by leonsio (Coder) leonsio is offline
Developer Last Online: May 2008 Show Printable Version Email this Page

vB Version: 3.5.2 Rating: (8 votes - 4.88 average) Installs: 67
Released: 10 Nov 2005 Last Update: 16 Dec 2005 Downloads: 303
Not Supported Uses Plugins Additional Files  

sorry for my bad english


Changes:

v. 1.0.7
Bugfix in the updateUser function
added getOnlineUsers() function, to get the list of the logged in users

v. 1.0.6
updateUser uand deleteUser updated, now is posible to call it with userid or other field from user table
getStats() funktion added, to get forum stats


v. 1.0.5
Added updateUser, deleteUser to update user data ( email/password, username )
or delete user

v. 1.0.4
Added doActivateSession function to let vbulletin accept sessionid

v. 1.0.3
functions to get userdata and postdata are now done
postmessage returns as formated html

v. 1.0.2
added support for vbulletin "session"
the server can now send all needed cookies, to the client, last 2 optional:
(PREFIXsessionhash/lastvisit/lastactivity/(userid/password))

v. 1.0.1
rename login funtion to doLogin
add placeholder for getUser/setUser, getPost/setPost, getThread/setThread functions
change URL in the WSDL file to relative URL




this is a beta version !!

what this hack do:

this hack provide a soap api to access vbulletin functions over internet
( for example: ebay, amazon or google have they webservices api to access is over soap )

this hack has at the moment this functions

1. login to vbulletin
you must give username and password, as response you get userid and password as md5 ( with salt ) hash

so that you can set vbulletin cookie on your application

2.
a. last X post from the forum
b. last X post from the forum, which the user ( which is loged in, see 1. ) can see

3. manipulate a user, get user information , create users or delete then

4.
get forum statistics from vbulletin ( Sponsored by 1Agency (www.1agency.de) )
you will get new user, max threads/posts and some other stuff as result

5.
get all logged in users in vbulletin


what can you do with this hack ?

you can make common login with your application ( written in PHP/ASP(.NET)/JAVA/C or any language which supports SOAP calls ( for example mozilla firefox ^^)).
to make common login, you must set vbulletin cookie, see 1.

or you can write firefox extension to get last 10 thread from your forum, with threads that you can see

or synchronise users from your application and vbulletin ( this feauture is on development )

other planced feautures are:
write comment
write thread
get thread ( with all comments )


whis SOAP-SERVER is written in PHP5 with SOAP - extension
so that you need to be php5 and soap extension installed on your server
( all new destributions provides php5 and soap extensions as rpm packages )

it is posible to write this server in php4 oder php5 without soap extension ( with nuSOAP or PEAR::SOAP ) but this is not planed at the time, sorry
php
Clients can be written in Java, ASP or PHP, with all language which supports soap
so that you can make common login between an ASP or JSP CMS and Vbulletin


how to install

unpack the package, move the "soap" folder in your forum root
and install the product with product installer

to test the functionality i have included some test files in /soap/examples

you must change the url and username/password and the key in this files


later i will make some examples for typo3/joomla/xoops to access and login into vbulletin

i will accept every help and feedback to make this extension better

updated example is in the "soap" folder

Download Now

Only licensed members can download files, Click Here for more information.

Addons

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 10 Nov 2005, 22:52
SHANE-D-PAIN's Avatar
SHANE-D-PAIN SHANE-D-PAIN is offline
 
Join Date: Sep 2003
Real name: Shane Rounce
First post for no apparent reason but this sounds good.
__________________
Shane Rounce - Teen Forums Community Administrator

Email: srounce@gmail.com
MSN: shane_theden@msn.com

http://www.teenageforums.com - Teen Forums
Reply With Quote
  #3  
Old 11 Nov 2005, 00:47
rb290's Avatar
rb290 rb290 is offline
 
Join Date: Oct 2005
confused lol

can someone sum it up in a little paragraph and tell me what this is
Reply With Quote
  #4  
Old 11 Nov 2005, 02:23
Daniel's Avatar
Daniel Daniel is offline
 
Join Date: Jul 2005
Real name: Daniel
Soap on the computer? sweet
__________________
Daniel
www.MMOCCForum.com
Reply With Quote
  #5  
Old 11 Nov 2005, 02:35
tnguy3n's Avatar
tnguy3n tnguy3n is offline
 
Join Date: May 2003
Real name: Nguyễn
I think SOAP must be abreviation of something, but I got no idea what it is.
__________________
++++++.org - vBulletin resources (free styles + hacks)
++++++.com - Premium vBulletin skins + addons
Custom vBulletin hacks + styles
What's the deal with vBulletin Team for removing all my mods?
Reply With Quote
  #6  
Old 11 Nov 2005, 03:01
mcncyo's Avatar
mcncyo mcncyo is offline
 
Join Date: Oct 2001
Real name: Chris
SOAP= Simple Object Access Protocol. It was design to easy interface with the data.

You don't have to call mysql database, call the correct table all you have to do is call the program and it will do the rest. You can make an application to connect to it easy.
Reply With Quote
  #7  
Old 11 Nov 2005, 03:13
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
This has a lot of potential. Off the top of my head, I can see htis being used for folks that want to have 1 user table across different sites.
__________________
Make someone smile today!
Reply With Quote
  #8  
Old 11 Nov 2005, 06:07
Cap'n Steve's Avatar
Cap'n Steve Cap'n Steve is offline
 
Join Date: Feb 2004
Nice idea.

* Cap'n Steve gets the first install.
Reply With Quote
  #9  
Old 11 Nov 2005, 09:44
leonsio leonsio is offline
 
Join Date: Jun 2002
little example to access VB_SOAP(login into vbulletin) with PEAR-SOAP class

( works in php4 and php5 )


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

update to version 1.0.1

Last edited by leonsio : 11 Nov 2005 at 09:58.
Reply With Quote
  #10  
Old 11 Nov 2005, 14:33
leonsio leonsio is offline
 
Join Date: Jun 2002
next version will come with vbulletin cookie support an without phpsession support

so what you can get all needed cookies directly from the vbulletin server ( userid and password as cookie data too )

this feauture can be activated in the admincp

attention, if you will to transfer cookie of userid and password, you should use an ssl connection !!!

this version will come out on monday

and it will include an example to connect the server with cookie support

after first connect ( or login ) you will get an vbulletin-session cookie from the server ( as array )
you can put this cookie in the user session at your application, by next request you can send this cookie with the request

this cookie let you be logged in, at vbulletin
( it create an vbulletin session, if the user login over doLogin function, the user will be displayer on the online.php as logged in on forum )
Reply With Quote
  #11  
Old 11 Nov 2005, 16:35
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Real name: Josh
This is nice! Thanks!
Reply With Quote
  #12  
Old 12 Nov 2005, 08:04
KevinM KevinM is offline
 
Join Date: Dec 2002
I'm starting to get excited.. could this be adapted to allow one login across multiple vbulletin forums.

E.g. I have 40 different forums across numerous servers. The Holy Grail of hacks for me would be to when someone registered at one forum, it could work across my network of different forums.

What do you think?
Reply With Quote
  #13  
Old 12 Nov 2005, 08:21
Marco van Herwaarden's Avatar
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Location: the Netherlands
Real name: Marco
This sounds very promissing, thank you for sharing.
__________________
Marco van Herwaarden
vBulletin.org Coordinator

PS Please do not use PM to ask for vBulletin or modification support. If you have a support question post on the forums please.
Reply With Quote
  #14  
Old 12 Nov 2005, 09:08
leonsio leonsio is offline
 
Join Date: Jun 2002
Originally Posted by KevinM
I'm starting to get excited.. could this be adapted to allow one login across multiple vbulletin forums.

E.g. I have 40 different forums across numerous servers. The Holy Grail of hacks for me would be to when someone registered at one forum, it could work across my network of different forums.

What do you think?

yes it is posible, you must install VB_SOAP on all your forums
and the login script must walk all soap servers to get userdata and set cookie


----------------------------------------------------------------

user synchronisation solution ( next version )

i will dont make an feauture which allow you to get or save multiple users at one time
because soap is not designet to send big data cross the internet
on big forums with more as 1000 users it will makes only problems with the transport of data ( http timeouts/ php memory size ... )

but i will make an function, to save user or to get user

how can you synchronize your users on multiple application

the solution is:

example A

you have user A ( with the name test ) on your CMS and user B ( with the same name "test" ) on vbulletin the passwords must be same

the CMS use SHA1 as password hash and vbulletin use MD5

if the user login on the CMS you must make an call to vbulletin with the username and password ( plain ) to vbulletin
and you will get the userid and hashn of password with salt
so you can set cookie and the user is logged in on vbulletin

with the function getUser you can get all data from vbulletin for example to synchronise the data of CMS with vbulletin


example B

you have user A ( with the name test ) on vbulletin but not on CMS

if the user A try to login on CMS, normaly the login will be deny, but you can make an call to vbulletin with the username and password of user A

an if the user will be acceppt, you can get all data from the user with the function "getUser" and create a user A on your CMS


where many application with different authentification methods, so it is not allways posible to synchronise users ( password hash is not match is the biggest problem)
so you should only create your user on CMS if it user login and exist on vbulletin

on registration of the user ( on CMS ) you can make a call to vbulletin with the user data ( function setUser) ans so create a user on vbulletin
Reply With Quote
  #15  
Old 12 Nov 2005, 23:55
Princeton's Avatar
Princeton Princeton is offline
 
Join Date: Nov 2001
Real name: Joe Velez
I've been gone for a while ...
this looks great!

Thanks for sharing.
__________________
vBulletin Custom Modifications

Latest Articles:

NEW: Improve Web Page Performance
How To Write For The Web
How Design Affects Performance : Progressive Rendering
How Design Affects Performance
Skinning: Understanding A Template-Based System

If it needs instructions, there's room for improvement.
Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 18:00.

Layout Options | Width: Wide Color: