sagund07
Forum Replies Created
-
Hey @rochesterj and @brianmiyaji,
thanks for helping out. Currently I am running sportspress in version 2.1.4 + the REST API c
hanges of version 2.1.5 because I used them from github as a hotfix. I did not update sportspress for a while because of the running season and the customizations I made. So updating sportspress maybe interfere the season. I looked through the github commits to find any changes refering to REST API but I did not found any. If you cannot reproduce the error I will upgrade to 2.1.7 and try to get things running. If this does not work I will try to deactivate all the other plugins.My PHP Version is 5.6 (alternative is 7.0)
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player submitted resultsHey @rochesterj,
thanks for the warning.
Maybe you can edit my post and remove the email? I’ll provide my code on github and post the link in here and maybe we can talk about it in this thread, if it’s okay for you?
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player submitted results@timmydodd I’ve developed such a plugin for my private need. You can send me a mail to [email protected] with your needs and maybe I can modify the plugin so it fits in your site.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] REST API: Filter events by teamHey,
you have to add this to your REST API URL
https://yourdomain.com/wp-json/sportspress/v2/events?filter[meta_key]=sp_team&filter[meta_value]=teamid
Hey,
thanks for your help.
I fixed it by just changing one word in the class-sp-player-list.php file ??
Line 587
$output = strcasecmp( sp_array_value( $a, 'name', null ), sp_array_value( $b, 'name', null ) );
I changed strcmp to strcasecmp and now it works fine.
- This reply was modified 8 years, 4 months ago by sagund07.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] REST API: Filter events by team@brianmiyaji Thanks! The loading times are a lot better now ??
- This reply was modified 8 years, 4 months ago by sagund07.
Any news on this one?
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] REST API: Future eventsHi,
I guess that this is already fixed on github. I was not able to try the fix yet but I will do this in a few minutes.
I am not sure if the events were missing before one of the latest patches, could be, but I cannot remember if I tried to query them before.
Hi,
thanks for your reply. Yes, I could make it this way. The only problem is, that some players names start lowercase or have multiple upper case letters at the beginning of their usernames.
I’ll take a look at the table sorting component if there is another solution.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] REST API: Future eventsI also noted that the future events are not listed on the rest api events page
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] REST API: Future eventsAfter some testing with the rest api plugin i can conclude that there must be an error with the sp_event capabilities for future events because in the rest api plugin the following if clause does not return true.
current_user_can( $post_type->cap->read_post, $post->ID )
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Matchups dont publishThe strange thing is, that if I search for example “Flying Rice vs. Abgehoben” on your site I get a result but when I click on it the “Oops page” open up too. There must be an error with your user capabilities that prevents users to open up the event pages or some rewrite rules are not working properly.
- This reply was modified 8 years, 4 months ago by sagund07.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Matchups dont publishThe links look ok for me. Can you edit an event and post the permalink here(you can find it in edit event under the title)?
- This reply was modified 8 years, 4 months ago by sagund07.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Matchups dont publishOkay I found a way to test it now. Commenting out fixes the problem. Even if I am logged out the link is working properly.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Matchups dont publishUnfortunately i cannot try it at the moment but what if we change home_url to site_url in line 409?