delight-im / OpenSoccer

[UNMAINTAINED] Online Soccer Manager
GNU General Public License v3.0
52 stars 25 forks source link

*add emblem feature #321

Closed MarkusHiller closed 8 years ago

bornhaeusser commented 8 years ago

got a failure

Warning: require_once(/../utils/database.php): failed to open stream: No such file or directory in /volume1/web/game/opensoccer/controller/emblemController.php on line 3 Fatal error: require_once(): Failed opening required '/../utils/database.php' (include_path='.') in /volume1/web/game/opensoccer/controller/emblemController.php on line 3

MarkusHiller commented 8 years ago

Have you checked that the file opensoccer/utils/database.php exists?

bornhaeusser commented 8 years ago

yes it works if i changed it to : require_once './config.php'; instead of /../ ans also ./utils/database.php but also i have no menu entries and in the support site i could also not find the emblems...

MarkusHiller commented 8 years ago

every thing works but you dont have the option verein/einstellungen?

did you see the default emblem when you go to team details?

bornhaeusser commented 8 years ago

Ok now its there.

but:

Notice: Use of undefined constant CONFIG_TABLE_PREFIX - assumed 'CONFIG_TABLE_PREFIX' in /volume1/web/game/opensoccer/controller/emblemController.php on line 34 Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /volume1/web/game/opensoccer/utils/database.php on line 23 Warning: mysql_result() expects parameter 1 to be resource, boolean given in /volume1/web/game/opensoccer/controller/emblemController.php on line 36

bornhaeusser commented 8 years ago

could you give the db.file to update the data base

there is missing some entries....

MarkusHiller commented 8 years ago

I have added this line: define('CONFIG_TABLEPREFIX', 'man'); to config.php but i forgot to commit it.

you also need to add this tabel to your database:

CREATE TABLE man_emblems ( team varchar(32) NOT NULL, confirmed tinyint(1) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (team), UNIQUE KEY team_UNIQUE (team) ) ENGINE=MyISAM DEFAULT CHARSET=utf8;

bornhaeusser commented 8 years ago

ok thanks. last fail:

Warning: move_uploaded_file(/volume1/web/game/opensoccer/controller./images/emblems/c81e728d9d4c2f636f067f89cc14862c.png): failed to open stream: No such file or directory in /volume1/web/game/opensoccer/controller/emblemController.php on line 74 Warning: move_uploaded_file(): Unable to move '/volume1/@tmp/php9o1VSC' to '/volume1/web/game/opensoccer/controller./images/emblems/c81e728d9d4c2f636f067f89cc14862c.png' in /volume1/web/game/opensoccer/controller/emblemController.php on line 74 Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /volume1/web/game/opensoccer/utils/database.php on line 23

MarkusHiller commented 8 years ago

You have to give the folder images/emblems write rights (777)

bornhaeusser commented 8 years ago

the picture is in the folder.....

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /volume1/web/game/opensoccer/utils/database.php on line 23

to remove this: put @ before: @mysql_connect(CONFIG_DATABASE_HOST, CONFI

bornhaeusser commented 8 years ago

Tool is very very cool!!! Thanks for that so far!!!!!

One more wish is in the Live Zentrale the Picture from Both playing Teams :-)

You Think that is possible to add this??

MarkusHiller commented 8 years ago

Thanks, yes this is possible and will be added soon. Ther are some positions were we cann add the emblems. Please note that this pull request is closed and no changes will be added here. For futher changes please look at: https://github.com/MarkusHiller/OpenSoccer there is the new repo for www.opensoccer2.org

bornhaeusser commented 8 years ago

did alredy took this :-)

but could not open there some cases!