lepileppanen
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Recaptcha Version 3Same feelings. Spam coming in after changing to v3.
Forum: Plugins
In reply to: [The Soccer Stats] Critical errorRepo fixed.
Forum: Plugins
In reply to: [The Soccer Stats] Critical errorThanks for bringing this up.
For some reason classes-folder is missing in www.remarpro.com repository. That’s why you get the error.
Thought version in bitbucket seem to be just fine…
Forum: Plugins
In reply to: [The Soccer Stats] Is it possible to show list of matches for a season?–> resolved
Forum: Plugins
In reply to: [The Soccer Stats] Is it possible to show list of matches for a season?This is quite easy to do by yourself.
Copy all the code in single-tss-seasons.php.
Create a new file in your themes-folder and paste the code in there and name the template like you want it. Then replace $post->ID with season id that you want to request.
Example code for to show season matches from season id 3. Save that and set it to page template in some of your pages.
<?php /** * Template name: Only matches * */ get_header(); ?> <div class="bootstrap-wrapper"> <div class="<?php echo tss_get_container() ?>"> <div class="row"> <div class="col-sm-12"> <h1>Just some title here...</h1> </div> </div> <?php $json = tss_get_matches_in_season(3); $data = json_decode( $json ); ?> <div class="row"> <div class="col-sm-12"> <h2><?php echo esc_html__( 'Matches', 'tss' ) ?></h2> <table class="table"> <thead> <tr> <th><?php echo esc_html__( 'Date', 'tss' ) ?></th> <th class="text-center"><?php echo esc_html__( 'Hometeam', 'tss' ) ?></th> <th class="text-center"><?php echo esc_html__( 'Awayteam', 'tss' ) ?></th> <th class="text-center"><?php echo esc_html__( 'Matchtype', 'tss' ) ?></th> <th class="text-center"><?php echo esc_html__( 'Result', 'tss' ) ?></th> </tr> </thead> <tbody> <?php foreach ($data as $match) { ?> <tr> <td><?php echo esc_html( $match->date ) ?></td> <td class="text-center"><?php echo e_team_with_link( $match->hometeam, $match->{'opponent-id'} ) ?></td> <td class="text-center"><?php echo e_team_with_link( $match->awayteam, $match->{'opponent-id'} ) ?></td> <td class="text-center"><?php echo esc_html( tss_e_matchtype( $match->matchtype, $match->{'additional-matchtype'} ) ) ?></td> <td class="text-center"><a href="<?php echo esc_url( get_permalink( $match->id ) ) ?>"><?php echo esc_html( tss_get_result_string( $match->penalties, $match->overtime, $match->homegoals, $match->awaygoals, $match->homegoalspen, $match->awaygoalspen ) ) ?></a></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> <?php get_footer(); ?>
Forum: Plugins
In reply to: [The Soccer Stats] How do I show seasons/players/matches in the front end?Plugin activation hook was missing flush rewrites, this is fixed in 1.03.
Forum: Plugins
In reply to: [The Soccer Stats] How do I show seasons/players/matches in the front end?All of those have page template done.
Try saving permalinks again in Settings -> Permalink
Forum: Plugins
In reply to: [The Soccer Stats] Error when activatingThis is now fixed in 1.01 version.
Forum: Plugins
In reply to: [The Soccer Stats] Error when activatingok…it seems that this plugin requires at least php version 5.4…
https://stackoverflow.com/questions/17772534/php-difference-between-array-and
“[] is supported in PHP >= 5.4”Forum: Plugins
In reply to: [The Soccer Stats] Error when activatingHi,
Good to hear it got solved. I’ll have to check this with 5.5 as it’s quite common php version at the moment.
Unfortenately there’s no proper way to move your data. If you’re able to get data from tplsoccerstats to csv format, there is csv importer plugin that you can use to bring some of the data.
Forum: Plugins
In reply to: [The Soccer Stats] Error when activatingHi,
I’m not able to reproduce this. Also line 143 in the code seem to be ok.
Everything else is working in your environment?