sezercik
Forum Replies Created
-
Forum: Plugins
In reply to: [Football Pool] No points in the finalsThis is in fact pretty cool indeed!!!
Thanks for mentioning, this saves us miles of scrolling every day ??
Warm regards from Amsterdam!
Forum: Plugins
In reply to: [Football Pool] No points in the finalsIt did the trick!!!
I really don’t understand why, but it works.
The setting was set on ‘different ranking’, don’t know why either.
Thanks a lot af3!!
Forum: Plugins
In reply to: [Football Pool] No points in the finalsaf3: checking
Forum: Plugins
In reply to: [Football Pool] No points in the finalsWe tested few things.
It clearly calculates only the Poule phase and not the finals in the Ranking.
It’s a mystery to me.
Forum: Plugins
In reply to: [Football Pool] No points in the finalsSwitched to simple calculation, no result ??
Forum: Plugins
In reply to: [Football Pool] No points in the finalsUsers see the points they scored in their prediction page, but it’s not added to the total on the ranking page. I cleared cache server side, no result.
Forum: Plugins
In reply to: [Football Pool] Predictions 0OK, we found it!
We changed the outcome of Turkey-Italy, recalculated. Then put in the right outcome again, recalculated. Solved. ??
Thanks for the super great plugin!!!! Double espresso coming your way.
Forum: Plugins
In reply to: [Football Pool] Redirect user predictions to specific part on pageSame here. I want to build the page ?user= where you arrive if you click a user in the ranking. The page now shows the predictions of that user.
I want to make a page that shows the prediction, but next to that the profile pic of the user.
On the page I can make two blocks, one for pic and one for the predictions. But I don’t think there is a short code for the predictions of the user that I can use for this.
Note: It’s the page: “Pagina voor het bekijken van de voorspellingen van een speler”
Forum: Plugins
In reply to: [Football Pool] Ranking tableAntoine,
No offense of course, but is this right?
footballpool_fp-user-list_template_row
I’ve tried a lot, but nothing changes in the [fp-user-list] output. Plugin is activated and everything. I tried finding if it works by putting more dots behind rank. The dots don’t show in the output.
This is the code:
<?php /** * Plugin Name: Football Pool User List * Description: Add link to user page to [fp-user-list]. * Author: sezercik */ //** Save this plugin in the wp-content/plugins folder and activate it **// class FootballPoolUserListLink { public static function init_extension() { add_filter( 'footballpool_fp-user-list_template_row', array( __CLASS__, 'new_template' ), null, 2 ); } public static function new_template( $all_user_view, $type ) { $list_template = '<tr class="%css_class%"> <td class="user-rank">%rank%....</td> <td class="user-name"><a href="user/%user_id%">%user_name%"</a></td> <td class="user-score ranking score">%points%</td> <td class="user-league">%league_image%</td> </tr>'; return $list_template; } } add_filter( 'plugins_loaded', array( 'FootballPoolExtensionListRowTemplate', 'init_extension' ) );
- This reply was modified 3 years, 9 months ago by sezercik.
Forum: Plugins
In reply to: [Football Pool] Ranking tableSo far it’s not showing in the plugin page :-S
- This reply was modified 3 years, 9 months ago by sezercik.
Forum: Plugins
In reply to: [Football Pool] Ranking tableOK, superthx, let’s try that. But is the set up for our first and only plugin ever ok?
Forum: Plugins
In reply to: [Football Pool] Ranking tableHi Anthoine, as we know little of PHP, we got one of your plugins to start with and thought we replaced it right, but it’s not working. Could you help? We want to make a community thing between the players so everyone can see profile of other players and make it more of a party (at 1,5 meters ?? )
class FootballPoolExtensionRankingRowTemplate { public static function init_extension() { add_filter( 'footballpool_fp-user-list_template_row', array( __CLASS__, 'new_template' ), null, 2 ); } public static function new_template( $all_user_view, $type ) { $ranking_template = '<tr class="%css_class%"> <td class="user-rank">%rank%.</td> <td class="user-name"><a href="%user_id%">%user_name%</a></td> <td class="user-score ranking score">%points%</td> <td class="user-league">%league_image%</td> </tr>'; return $ranking_template; } } add_filter( 'plugins_loaded', array( 'FootballPoolExtensionRankingRowTemplate', 'init_extension' ) );
Forum: Plugins
In reply to: [Football Pool] Ranking tableHaha, lot of searching. I put this in the wp-config, both didn’t do anything:
define( ‘FOOTBALLPOOL_MATCH_DATE_FORMAT’, ‘j F Y’ );
define( ‘FOOTBALLPOOL_NO_AVATAR’, ‘false’ );
Turned out I used a different ‘ at the date format and I put ” around false ?? Both date and avatar now work and true, it’s much slower.
Now I created a separate page with an overview of all the players with [fp-user-list]. Would it be possible to make the players name link to their profile?
Forum: Plugins
In reply to: [Football Pool] Ranking tableIs it possible to show the profile picture of the users when using this extension?
Forum: Plugins
In reply to: [Football Pool] Click on usersYes, now it works. Merci beaucoups.