thalord
Community Developer
- Joined
- Apr 24, 2011
- Messages
- 651
Same as BuddyCon but with own Hosting support
TODO: write more infos here ^^
Git: https://github.com/buddycon/BuddyCon-Server
A very nice PDF with installation instructions was written by crypt3x. Thanks for that
:
To add Server:
The Plugin already sent that (you use BuddyCon1?). you need to add a server column to the bot table. And then in the ApiController.php add
ApiController::$dataArr['server'] =$_POST['server'];
after line 82
And change that:
to that:
warning: After that the old bots will not be updated (if you doenst add the server to every bot in the bot table manually)
Then at /views/bot/index.php
Add:
array('name'=>'server', 'header'=>'Server'),
after line 34.
That should do it!
TODO: write more infos here ^^
Git: https://github.com/buddycon/BuddyCon-Server
A very nice PDF with installation instructions was written by crypt3x. Thanks for that
![Wink ;) ;)](https://cdn.jsdelivr.net/joypixels/assets/8.0/png/unicode/64/1f609.png)
To add Server:
The Plugin already sent that (you use BuddyCon1?). you need to add a server column to the bot table. And then in the ApiController.php add
ApiController::$dataArr['server'] =$_POST['server'];
after line 82
And change that:
PHP:
$sql = 'SELECT id,do,wantscreen FROM bot WHERE user_id = :user AND name = :name';
$command=$connection->createCommand($sql);
$command->bindValue(":user",$user_id);
$command->bindValue(":name",$_POST['name']);
PHP:
$sql = 'SELECT id,do,wantscreen FROM bot WHERE user_id = :user AND name = :name AND server = :server';
$command=$connection->createCommand($sql);
$command->bindValue(":user",$user_id);
$command->bindValue(":name",$_POST['name']);
$command->bindValue(":server",$_POST['server']);
Then at /views/bot/index.php
Add:
array('name'=>'server', 'header'=>'Server'),
after line 34.
That should do it!
Attachments
Last edited: