The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to add my custom php dynamic Pages connected to database
Hi
I want to add some php codes, forms and calculating routines giving my customers the ability to get their Machine ID and making for them the Registration Key to activate software whats the easiest way to do it. I have all the codes in asp and asp.net and also have web services connected to sql server that do all the job as well. If there is a way in vbulletin to consuming web services it would be more interested. |
#2
|
|||
|
|||
It sounds to me that you want to make a widget that talks to a database.
Look at this post and it might help you. As far as web services go, PHP makes using Web Services quite simple to use. If you have access to a WSDL file then writing a SOAP client is very simple. Here is the code for a simple, working SOAP client from my own website. In this particular example, you can specify a season (2000-2010), a week (1-17), and a code for a team ('GB' for Green Bay, 'ATL' for Atlanta, etc) and it will tell you the score of the game: Code:
<?php $oSoapClient = new SoapClient("http://www.footballbook.pro/fbk.wsdl"); $szGid = $oSoapClient->getGameId(2010,7,"ATL"); $aoGameProperties = $oSoapClient->getGame($szGid); $szVis = $aoGameProperties['vis']; $szHome = $aoGameProperties['home']; $iVScore = $aoGameProperties['vscore']; $iHScore = $aoGameProperties['hscore']; echo "The score was $szVis $iVScore - $szHome $iHScore.\n\n"; ?> Code:
# php SoapClient.php The score was CIN 32 - ATL 39. I have made a lot of widgets that contain forms so I know it can be done. Good luck, -fab |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|