sameeralam
Forum Replies Created
-
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Dynamic or filters in tableThanks @savvasha.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Dynamic or filters in tableMaybe I don’t know enough to utilize the info, hoping you dont mind continuing to assist me.
Would I enter the whole thing here (shown above)?
Creating something like this would be great for me, just not sure how to do it.
Changed from 2000 to 3000. Appears to be working, thanks.
- This reply was modified 1 year, 2 months ago by sameeralam.
- This reply was modified 1 year, 2 months ago by sameeralam.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Dynamic or filters in tableGreat, thanks for the info.
Looking into that example, and this one here (https://datatables.net/examples/api/multi_filter_select.html)
The only info I know is my player list # (ie. [player_list 4558])
How do I call/edit my table (ie. where it says “#example”, what do I replace this with)
newDataTable('#example', {initComplete:function() {this.api().columns().every(function() {letcolumn =this;// Create select elementletselect = document.createElement('select');select.add(newOption(''));column.footer().replaceChildren(select);// Apply listener for user change in valueselect.addEventListener('change',function() {column.search(select.value, {exact:true}).draw();});// Add list of optionscolumn.data().unique().sort().each(function(d, j) {select.add(newOption(d));});});}});Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player lists team in new updateGreat, thank you! Worked!
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Player lists team in new updateOkay thank you! I am not too experienced so are you able to give me the exact steps I need to follow in order to apply that patch? Much appreciated.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Custom CodeThanks Savvas, so I get the class to call and I can create the code as needed to suit my requirement. But where exactly can I enter this code? Directly in a wordpress page doesnt work, neither is there an option in any of the sportspress configure pages.
The only place I see where there is code are in the plugin files (which is why I initially was wondering if I need to create a new plugin or modify existing code).
I hope the question is clear – please let me know where I would be able to enter my new code/ call the SP_Player class.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Custom CodeThanks Savvas! Can I call this class from the custom code portion in sportspress. Or Will I have to modify the plugin code directly? (Sorry, I’m a bit new to wordpress plugins) If you can guide me a bit further, that would be appreciated.
For ex: https://gnbl.ca/statistics-2022-2023/ , to get the top 5 player names who have the highest PPG. Is it easy to share how to get this data? If I can see this example, then I should be able to figure out the rest of the things I want to gather.
If it is complicated to explain, then no worries.
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Custom CodeIn addition to this, is there a way I can post player splits ( add a new tab like how we can move stats, profile, games in a new tab on player page ), create a splits category which might show the players last 5 game averages, or last 30 day averages, their home average vs away, how they play with a certain teammate etc.
I am happy to code all this myself of course, I just need some direction in terms of if it is possible and how I could access the data appropriately.
Excellent, thank you.
Any option to always display the gamelogs under the current season instead of having to click the year? I understand it was asked before as well. Is it in any potential future works if not already implemented? And if not, is there any way for me to make that change to have it displayed always? Thank you once again!
Thanks for the quick response!
So once I upgrade to Pro and add more teams for the players, your plugin will automatically detect those additional teams and show all gamelogs for a player, even if he has 2 or 3 teams?
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Remove sidebar from players pageThanks.
https://snipboard.io/vb79Rz.jpg
This header, which is on all player profiles.
And also maybe modify font size.Thank you!
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Adding Awards/Accolades?Got it, ok thank you!
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Remove sidebar from players pageI thought since the player page is created by Sportspress, there could be a custom CSS I can use to update the header on just those player pages. Everything else thats controlled by my theme is fine. Thanks in advance!
Forum: Plugins
In reply to: [SportsPress - Sports Club & League Manager] Adding Awards/Accolades?Thanks.. I believe http://gbbl.ca/?p=profile&pid=64 uses sportspress too? Or is it a different plugin which allows them to have this Player Awards tab?
See here: https://ctrl.vi/i/crKSU16AH