Topic: Integrating your application with the webgity forum! (Read 1027 times)
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 5799
46391 credits Members referred : 3
« on: Jul 29, 2006, 02:06:58 pm »
After a brief chat with Olaf, we decided to create an integration module for the webdigity forum.
First let me explain the purpose of this with a real life example Olaf has a very cool site that gives php classes downloads, but he wants to give them away only to webdigity members, so he will be able to have more affiliates in the forum.
So I created a simple integration module which allows you to send the email adress and the username of the user and retrieve the number of posts of the user, if the user exists or a non-existance notice.
With this module you can integrate your web applications with our forum, and make the user experience better.
Bellow I will give an example of how to use this, BUT before using it, have in mind that the module restricts access to everyone, except the ip adresses that I put into it. So if you want to use it, you must first send me a pm with the ip or domain of your site, because otherwise it wont work.
$u = file_get_contents('http://www.webdigity.com/hw_users.php?user='.urlencode($user).'&mail='.urlencode($mail)); if ( is_numeric($u) ) echo 'User <b>'.$user.'</b> has <b>'.$u.'</b> posts'; else echo 'User <b>'.$user.'</b> does not exists';
Easy huh?
Anyway if you have any questions or feedback regarding this module, please do not hesitate to post here.