update.php modification | Peter's Sports League Standings | Forum
Back to the sports standings script page
3:29 pm
I import my schedule through mysql, so I was wondering how to mod the update.php so that others that are editting the scores do not accidentally change participating teams of games???
I want to eliminate the drop down menu and just echo the select teams that are assigned to the game. I tried to modify it and screwed up both displayed fields, so I have undone all that I modified.
Assistance is greatly appreciated.
If you don't have too many teams, you can just use the "edit score" permission for those users and use multiple limitations at the team level.
Otherwise, you can hack the admin_files/editscore.php file (you should upgrade to Version 1.2 if you haven't already). At line 203:
// Show all teams if user has full or conference access
if ($is_admin || $is_manage_score || $is_manage_score_conf) {
You can remove the last two conditions to make it so that only administrator users can change teams:
if ($is_admin) {
Make the same change at line 277.
If you really must stick with a Version 1.0 or 1.1 installation, you can look for those similar code snippets in update.php.
http://www.theblog.ca/wp-conte.....ndings.zip
http://www.theblog.ca/wp-conte.....ngs0.2.zip
http://www.theblog.ca/wp-conte.....ngs0.3.zip
http://www.theblog.ca/wp-conte.....ngs0.4.zip
http://www.theblog.ca/wp-conte.....ngs0.5.zip
http://www.theblog.ca/wp-conte.....ngs1.0.zip
http://www.theblog.ca/wp-conte.....ngs1.1.zip
http://www.theblog.ca/wp-conte.....ngs1.2.zip