MySQL and Forums - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: MySQL and Forums (
/showthread.php?tid=367783)
MySQL and Forums -
[MM]18240[FMB] - 11.08.2012
I have forums, and IMO they are pretty cool, but how can I make it so when someone types /forums [PASSWORD] it adds a user to the MySQL database with Player's name, and given password. I use XenForo software, and I have a MySQL Database, how do I make this, though. It is hard to explain..
Re: MySQL and Forums -
Gamer_007 - 11.08.2012
Me too want it dude.Someone help us plz
Re: MySQL and Forums -
[MM]18240[FMB] - 11.08.2012
... Why not post your own topic?
Re: MySQL and Forums -
Vince - 12.08.2012
Why you would want to install a paid forum software on a free host is beyond me. Probably nulled. Check the documentation to see if there's an API available. I don't know how XF works internally, but it might be possible that you have to insert data into different tables.
Re: MySQL and Forums -
[MM]18240[FMB] - 12.08.2012
So just check the XenForo documentation, and it will tell me if it has SA-MP support?
Re: MySQL and Forums -
kickerbat - 12.08.2012
Quote:
Originally Posted by [MM]18240[FMB]
So just check the XenForo documentation, and it will tell me if it has SA-MP support?
|
No.
You will have to create a custom API to migrate/intergrate with the database.
Re: MySQL and Forums -
[MM]18240[FMB] - 28.10.2012
Does anyone know of an API to do this?
Re: MySQL and Forums -
Eric - 28.10.2012
As far as I know, there isn't one. You'll have to make it.
It's not very difficult, link your server to the XenForo database and put in a query to create an account (make sure you check if their username is already registered) when they use that command.
I run an XenForo as well, I'll take a look and see if I can get it working.