last match in all project

Tony
.
Posts: 296
Joined: Sun Apr 29, 2007 2:31 pm

Re: last match in all project

Postby Tony » Thu Aug 21, 2008 10:46 pm

Not really. And what about when you leave Number of Games  just blank?  ;)

User avatar
Harrie
.
Posts: 333
Joined: Thu Aug 16, 2007 9:55 am
Joomleague version: 2.0.x
Location: The Netherlands
Contact:

Combine last match and next match

Postby Harrie » Fri Aug 22, 2008 12:55 pm

Harrie wrote:Maybe you can combine the "next match" and the "last match" module to 1 module.
Displaying the matches in a given date/rounds range. Where the already played matches are shown with the result.


A few weeks ago I asked for a combined "next match" and "last match" module.
I now realise that there are already two versions ...........  :whistling:

option 1:
use the last_match_module
Days span : 10
delay (minutes) : 20160

Now you get all the matches between the last 10 days and the coming 14 days (= 20160 minutes).

option 2:
use the next_match_module
Days span : 10
delay (minutes) : -20160

Now you get all the matches between the last 14 days (= 20160 minutes) and the coming 10 days.

Off course you can change the values for days span and delay (minutes).

The only difference between the two options is:
Using the last_match_module you can display the results.

I hope the developers can work this out into a single module for the future. Ik think there is no need for two modules.
Last edited by Harrie on Fri Aug 22, 2008 1:05 pm, edited 1 time in total.
Using Joomleague since version 0.90
Production: Latest Joomla version, Latest JoomLeague version

User avatar
Harrie
.
Posts: 333
Joined: Thu Aug 16, 2007 9:55 am
Joomleague version: 2.0.x
Location: The Netherlands
Contact:

Re: last match in all project

Postby Harrie » Thu Sep 11, 2008 4:53 pm

Many people asked me how I use the "next" and "last" match module on my site http://www.sport-pool.nl/cms

Here are the files I'm using. I only use the "last match module" from Tony (a little bit modified).

[gelöscht durch Administrator]
Last edited by Harrie on Thu Sep 11, 2008 5:12 pm, edited 1 time in total.
Using Joomleague since version 0.90
Production: Latest Joomla version, Latest JoomLeague version

User avatar
Saskia
.
Posts: 155
Joined: Tue May 13, 2008 9:03 am
Contact:

Re: last match in all project

Postby Saskia » Fri Sep 12, 2008 10:03 am

Hi Harrie

I'm also using the last match module from Tony

However, as you can see on the screenshot hereby enclosed, it doesn't give all the matches from one project.

Is this also the case with you?

It give matches from one project for example A and later when you scroll down it gave other matches also from project A.

Why doens't it give all the matches from Project A nicely together?

Or does this only happen to me?

Do you know?


PS What means rounds span? I thought round 1, but that doens't work!


[gelöscht durch Administrator]
http://www.vrouwenvoetbalnederland.nl
joomla 1.5.25 & joomleague 1.6.nathalie

User avatar
Harrie
.
Posts: 333
Joined: Thu Aug 16, 2007 9:55 am
Joomleague version: 2.0.x
Location: The Netherlands
Contact:

Re: last match in all project

Postby Harrie » Fri Sep 12, 2008 10:17 am

rounds span = "the number of rounds you want to display with the module"
I do not use that.

Why not nicely together? The matches you are displaying, are ordered by date and time. That could be your problem.
If you want an other order, you have to modify the php file. Change the line with "ORDER by matchdate, datum" with "ORDER by matchdate, project_id" or something like that. I don't now the exactly variables that are use in the php file.
Using Joomleague since version 0.90
Production: Latest Joomla version, Latest JoomLeague version

User avatar
Saskia
.
Posts: 155
Joined: Tue May 13, 2008 9:03 am
Contact:

Re: last match in all project

Postby Saskia » Fri Sep 12, 2008 12:00 pm

Thanks Harrie

I'm going to try that change by project ID.
I would like to have all matches which are played the same day under the same project (league) together, not separate.

Thanks for the tip! I'll let you know here.
http://www.vrouwenvoetbalnederland.nl
joomla 1.5.25 & joomleague 1.6.nathalie

User avatar
Saskia
.
Posts: 155
Joined: Tue May 13, 2008 9:03 am
Contact:

Re: last match in all project

Postby Saskia » Mon Sep 15, 2008 4:08 am

I looked into the file, but had no clue how to do this  :confused:

Tony, can you help me out?

I would like to have the results per date and than per project. Now it shows all results from all projects mixed together!

Well if you have the time!
http://www.vrouwenvoetbalnederland.nl
joomla 1.5.25 & joomleague 1.6.nathalie

Tony
.
Posts: 296
Joined: Sun Apr 29, 2007 2:31 pm

Re: last match in all project

Postby Tony » Mon Sep 15, 2008 10:21 pm

Replace in mod_joomleague_last_match.php (about line no. 274)

Code: Select all

query .= " ORDER by datum DESC";


with

Code: Select all

$query .= " ORDER by datum DESC, m.project_id ";

User avatar
Saskia
.
Posts: 155
Joined: Tue May 13, 2008 9:03 am
Contact:

Re: last match in all project

Postby Saskia » Tue Sep 16, 2008 3:27 am

Thanks Tony

However, that didn't work.

So I changed it myself into on line 274

Code: Select all

$query .= " ORDER by m.project_id ";


and that worked  :)

Do you think this would work in the long run? Or should I have to put ORDER by datum as well?
http://www.vrouwenvoetbalnederland.nl
joomla 1.5.25 & joomleague 1.6.nathalie

Ure
.
Posts: 139
Joined: Wed May 02, 2007 11:18 am
Contact:

Re: last match in all project

Postby Ure » Fri Sep 19, 2008 7:49 am

Hi Tony,

Great module!

I have only a slight problem.
I'm using projectnumbers 24, 28, 30 and 43.
When I click on a match report in this module they all have projectnumber 24 in their address (e.g. http://www.vvhoogkerk.nl/index.php?opti ... howReport&p=24&mid=1730&pics=1&Itemid=1)

This causes some template problems for the match reports which are not in project 24.

Can you help me?

Thanks!
Ure
http://www.vvhoogkerk.nl
Using Joomla 1.0.15 and
JoomLeague v0.93 and its modules

Tony
.
Posts: 296
Joined: Sun Apr 29, 2007 2:31 pm

Re: last match in all project

Postby Tony » Sat Sep 20, 2008 10:25 am

Hi Ure,

thanks for your tip. I didn't notice it before because the right match report is shown up although.

To modify replace

p=$project->id  with  p=$match->project_id

For example (template1)

from

Code: Select all

<center>  <a href=" <?php echo sefRelToAbs("index.php?option=com_joomleague&func=showReport&p=$project->id&mid=" .$match->match_id."&pics=$show_pics&Itemid=$Itemid");?>"><?php echo _JL_PAGE_TITLE_SHOW_REPORT;
?> </a> </center>


to



Code: Select all

<center>  <a href=" <?php echo sefRelToAbs("index.php?option=com_joomleague&func=showReport&p=$match->project_id&mid=" .$match->match_id."&pics=$show_pics&Itemid=$Itemid");?>"><?php echo _JL_PAGE_TITLE_SHOW_REPORT;
?> </a> </center>


There's a similar line for template2.

Ure
.
Posts: 139
Joined: Wed May 02, 2007 11:18 am
Contact:

Re: last match in all project

Postby Ure » Sun Sep 21, 2008 8:09 pm

Thnx Toni,

However, you forgot a few " and . in your code.
It should be:

Code: Select all

<center>
  <a href="<?php echo sefRelToAbs("index.php?option=com_joomleague&func=showReport&p=".$match->project_id."&mid=".$match->match_id."&pics=$show_pics&Itemid=$Itemid");?>"><?php echo _JL_PAGE_TITLE_SHOW_REPORT;?></a>
</center>


The right project code gets assigned but my template is still working weel when I select a game other the project 24.
Could the cause be in something different?
Or could this be a difficult problem?

Thnx,
Ure
http://www.vvhoogkerk.nl
Using Joomla 1.0.15 and
JoomLeague v0.93 and its modules

loewe
.
Posts: 67
Joined: Sat Feb 03, 2007 5:14 pm
Contact:

Re: last match in all project

Postby loewe » Tue Sep 30, 2008 10:54 am

Ich habe auch mehrere Projekte im Next Match Modul (mod_joomleague_last_match_beta093_1.zip). Wenn ich den Report eines anderes Projektes als 11 anzeigen lasse, werden keine Tabs erzeugt.  :confused:

OK: http://www.fc-inselusedom.de/component/ ... temid,341/

No Tabs: http://www.fc-inselusedom.de/component/ ... temid,341/
Last edited by loewe on Tue Sep 30, 2008 10:57 am, edited 1 time in total.
Joomleague installiert unter der Seite: http://www.fc-inselusedom.de/
- Joomleague-Version: 0.93
- Joomla: 1.0.15 Stable
- eingesetzte Browser:  IE7 / Firefox 2.0
- bevorzugter Browser:  FF


Return to “mod_joomleague_results”

Who is online

Users browsing this forum: No registered users and 2 guests