You are not logged in.
Hi there Chriloi,
thank you for the reply and I have not ran any mysql queries.
I installed the plugin from this thread version 1.0.2, I have looked at the help in my admin area after installing and that help only says how to use and configure like:
Manage your football league, clubs and games.
Hi Matey, thanks for such a fast response.
I missed that install link!!! doh!, I just assumed plugin enabled was it.
I did get an error on the install though, so I am unsure if this is going to cause me problems?
Notice: Undefined variable: dbcharset in /home/roughide/public_html/textpattern/lib/txplib_misc.php(534) : eval()‘d code on line 2052
Installation was successful
Hi chriloi, there’s a way to show in next_game tag always match with one specific team? Something like follow_club parameter in the cnk_table?
And also there’s a way to show all matchs in calendar?
Many thanks. Ferra 1980
ferra1980: just write in time and date for the team(s) you want to show in next_game. That’s what I do.
No, but I’ve managed to add “Games/games played/etc” to the plugin. I have also changed the order on the table to what I find most suiting.
You may take a look at it here
1.1: At line 80, find the following code (It will be longer, but I’ve translated it)
if (count($col_headers) != 9) $col_headers = explode
1.2: Change the WHOLE line to this: (You may translate the word as you like)
if (count($col_headers) != 10) $col_headers = explode(',','#,club,games,won,drawn,lost,for,against,+/-,points');
2.1: At line 82m find the following code
if (count($col_display) != 9) $col_display = explode
2.2: Change The WHOLE Line with this:
if (count($col_display) != 10) $col_display = explode(',', '1,1,0,0,0,0,0,0,0,1');
3.1: Start at line 146 and change ALL the lines with @if ($col_display[X]) to this
if ($col_display) $out .= '<td>'.($i+1).'</td>';
if ($col_display) $out .= '<td>'.$r['club'].'</td>';
$games_played = $r['game_won'] + $r['game_lost'] + $r['game_drawn'];
if ($col_display) $out .= '<td>' . $games_played . '</td>';
if ($col_display) $out .= '<td>'.$r['game_won'].'</td>';
if ($col_display) $out .= '<td>'.$r['game_draw'].'</td>';
if ($col_display) $out .= '<td>'.$r['game_lost'].'</td>';
if ($col_display) $out .= '<td>'.$r['goals_for'].'</td>';
if ($col_display) $out .= '<td>'.$r['goals_against'].'</td>';
if ($col_display) $out .= '<td>'.$r['goals_sum'].'</td>';
if ($col_display) $out .= '<td>'.$r['points'].'</td>';
(X = Random number)
Fell free to ask if you don’t understand. :D
Last edited by Sono Juventino (2010-02-25 23:34:22)
Ok, I’ve written two functions for this plugin. They are for displaying 5 next games for your club, and for displaying the 5 latest results. I’m not an advanced coder, so they are not optimized. The don’t require any changes to the table structure or such, so they should be easy to add to any exsisting site with this plugin. :)
To display 5 next games:
To display 5 latest results:
Please ask here, og send me an email on firstname.lastname@example.org if you are struggeling
Last edited by Sono Juventino (2010-09-06 02:00:36)
Please, tell me how to print in table the country name in brackets
Last edited by magenta (2011-05-15 14:44:22)