What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[BuddyCon] Self Hosting

sofern du möchtest / zeit hast kannst du dich per icq/skype einmal melden bei mir, dann können wir uns das auf meinen funpic.de server einmal gemeinsam anschauen, aber im enteffekt ist es ja nur ein schönheitsfehler :)
 
sofern du m?chtest / zeit hast kannst du dich per icq/skype einmal melden bei mir, dann k?nnen wir uns das auf meinen funpic.de server einmal gemeinsam anschauen, aber im enteffekt ist es ja nur ein sch?nheitsfehler :)
K?nnen wir ja ma schauen
How do i make the upload Scrip. please help a noobie like me.
You mean the screenshot upload? In the BuddyCon Thread is a how to?
 
[bC]: Screenshot requested
[bC]: url: http://mydon.hey/BuddyCon/upload.php
[bC]: Fehler: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /BuddyCon/upload.php was not found on this server.</p>
</body></html>

how to fix it ?



And does we Get Battelnet and Hbrelog kill in selfhost too?
 
Last edited:
[bC]: Screenshot requested
[bC]: url: http://mydon.hey/BuddyCon/upload.php
[bC]: Fehler: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /BuddyCon/upload.php was not found on this server.</p>
</body></html>

how to fix it ?



And does we Get Battelnet and Hbrelog kill in selfhost too?
@Error:
The url is wrong... put it in your Browser to test it (should show a little error)

@Battlenet and kill hbrelog
Battlenet yes 8because it doesnt need a change to show it). KillHbrelog maybe later
 
Hi,

thx for sharing :)

I tested this configuration but got any problems.

After i configured my webserver and created my MySQL DB i tested to create an buddycon user

.../buddycon/index.php?r=user/create

I got this error:

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

...
.../buddycon/yii/framework/yiilite.php(7924)

7912 if(empty($this->connectionString))
7913 throw new CDbException('CDbConnection.connectionString cannot be empty.');
7914 try
7915 {
7916 $this->_pdo=$this->createPdoInstance();
7917 $this->initConnection($this->_pdo);
7918 $this->_active=true;
7919 }
7920 catch(PDOException $e)
7921 {
7922 if(YII_DEBUG)
7923 {
7924 throw new CDbException('CDbConnection failed to open the DB connection: '.
7925 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
7926 }
7927 else
7928 {
7929 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
7930 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
7931 }
7932 }
7933 }
7934 }
7935 protected function close()
7936 {


Could you help me pls. thx
 
Hi,

thx for sharing :)

I tested this configuration but got any problems.

After i configured my webserver and created my MySQL DB i tested to create an buddycon user

.../buddycon/index.php?r=user/create

I got this error:

CDbConnection failed to open the DB connection: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

...
.../buddycon/yii/framework/yiilite.php(7924)

7912 if(empty($this->connectionString))
7913 throw new CDbException('CDbConnection.connectionString cannot be empty.');
7914 try
7915 {
7916 $this->_pdo=$this->createPdoInstance();
7917 $this->initConnection($this->_pdo);
7918 $this->_active=true;
7919 }
7920 catch(PDOException $e)
7921 {
7922 if(YII_DEBUG)
7923 {
7924 throw new CDbException('CDbConnection failed to open the DB connection: '.
7925 $e->getMessage(),(int)$e->getCode(),$e->errorInfo);
7926 }
7927 else
7928 {
7929 Yii::log($e->getMessage(),CLogger::LEVEL_ERROR,'exception.CDbException');
7930 throw new CDbException('CDbConnection failed to open the DB connection.',(int)$e->getCode(),$e->errorInfo);
7931 }
7932 }
7933 }
7934 }
7935 protected function close()
7936 {


Could you help me pls. thx

First guess: MySQL Server not running
2. Wrong mysql connection data in the config/main.php file
 
It would be awesome If you could update it, there are many improvements done on buddycon.eu that I would love to see on selfhosted server :)
 
It would be awesome If you could update it, there are many improvements done on buddycon.eu that I would love to see on selfhosted server :)
what do you mean particular?
Some of feature will not be in the self hosted buddycon. Simply because you need a dedicated server an some linux admin skills
 
what do you mean particular?
Some of feature will not be in the self hosted buddycon. Simply because you need a dedicated server an some linux admin skills

On self hosted version bots are splited by 10, and they are sorted by pages. Also Delete all button is missing I'm tweaking buddycon1 plugin to work as I set Buddycon2 (servers and factions instead of nicks, gb gold instead of bag gold) so I might overlooked something. I have few XEN linux VPS'es I would give it a try if you could share buddycon2 server version.

Edit:
on buddycon.eu character name is show as
Nickname - Server
on selfhosted only
Nickname

I think I would need only this 3 things to be changed...

Edit2: I added server column, so 2 things left: delete all, and most important disabling spliting by 10 bots per page
 
Last edited:
I played a littlebit with server side config, I got rid of some stats I dont need, but I cant disable pagination (sorting by pages), can you point me where did you implement it?
 
Last edited:
33l0zyd.png
 
I played a littlebit with server side config, I got rid of some stats I dont need, but I cant disable pagination (sorting by pages), can you point me where did you implement it?
Which one exactly? I guess the Bots overview page?
In the BotController.php:
Line ~ 403-414:
PHP:
public function actionIndex()
	{
        //Yii::app()->user->setFlash('success', '<strong>Well done!</strong> You successfully read this important alert message.');
		$dataProvider=new CActiveDataProvider('Bot',array(
            'criteria'=>array(
                'condition'=>'user_id='.Yii::app()->user->id,
                'order'=>'latestupdate DESC',
            )));
		$this->render('index',array(
			'dataProvider'=>$dataProvider,
		));
	}

to:
PHP:
public function actionIndex()
	{
        //Yii::app()->user->setFlash('success', '<strong>Well done!</strong> You successfully read this important alert message.');
		$dataProvider=new CActiveDataProvider('Bot',array(
            'criteria'=>array(
                'condition'=>'user_id='.Yii::app()->user->id,
                'order'=>'latestupdate DESC',
            ),
'pagination'=>array(
        'pageSize'=>20,
    )
));
		$this->render('index',array(
			'dataProvider'=>$dataProvider,
		));
	}
And change pagesize to.. idk 100?!
PHP Version?
Edit: Test that http://www.thebuddyforum.com/honorb...78952-buddycon-self-hosting-3.html#post809509
 
Last edited:
Thanks a lot, its perfect now :) Well, almost, last thing I would change is not showing outdated servers (red last update status), but its polishing. Thanks!
 
I keep getting this on honorbuddy bot log:
[bC]: {"response":"No User"}
I don't know if thats an error or not.

Anyhow, It works perfectly on my website, but for some reason I can't seem to be able to add more than one bot to the list. Like, I've configured the plugin on each one of the running bots but only the LAST I've configured actually works.
 
get buddycon connect to db via socket

Hi,
i'm trying to get buddycon working but i don't know how to change the way it connects to db. My host only let me connect to db's via the socket path.

Does anybody knows how to change this

Code:
'db'=>array(
   'connectionString' => 'mysql:host=localhost;dbname=db',

to something like that:

Code:
'db'=>array(
   'connectionString' => 'mysql:host='/var/mysql/socket/;dbname=db',

thanks.

Edit1: Got it working now !
replace host by unix_socket like this

Code:
'db'=>array(
   'connectionString' => 'mysql:unix_socket=/var/mysql/socket/;dbname=db',
 
Last edited:
Back
Top