Forum Replies Created

Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter sezercik

    (@sezercik)

    This is in fact pretty cool indeed!!!

    Thanks for mentioning, this saves us miles of scrolling every day ??

    Warm regards from Amsterdam!

    Thread Starter sezercik

    (@sezercik)

    It 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!!

    Thread Starter sezercik

    (@sezercik)

    af3: checking

    Thread Starter sezercik

    (@sezercik)

    We tested few things.

    It clearly calculates only the Poule phase and not the finals in the Ranking.

    It’s a mystery to me.

    Thread Starter sezercik

    (@sezercik)

    Switched to simple calculation, no result ??

    Thread Starter sezercik

    (@sezercik)

    Users 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.

    Thread Starter sezercik

    (@sezercik)

    OK, 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.

    Same 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”

    Antoine,

    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.

    So far it’s not showing in the plugin page :-S

    • This reply was modified 3 years, 9 months ago by sezercik.

    OK, superthx, let’s try that. But is the set up for our first and only plugin ever ok?

    Hi 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' ) );

    Haha, 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?

    Is it possible to show the profile picture of the users when using this extension?

    Thread Starter sezercik

    (@sezercik)

    Yes, now it works. Merci beaucoups.

Viewing 15 replies - 1 through 15 (of 23 total)