How do you only show certain division/s

trashdan
Newbie
Posts: 19
Joined: Sat Jan 12, 2008 4:07 am

How do you only show certain division/s

Postby trashdan » Mon Apr 14, 2008 2:30 pm

hi there

is it possible to only have this showing a specific division rather than all teams playing on that matchday?
it would be good being able to select the division id like in the joomleague ranking mod.

cheers

dan

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: How do you only show certain division/s

Postby julienV » Mon Apr 14, 2008 3:24 pm

i think you can. Try with &div=XX (or &division), XX being the division id.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

trashdan
Newbie
Posts: 19
Joined: Sat Jan 12, 2008 4:07 am

Re: How do you only show certain division/s

Postby trashdan » Tue Apr 15, 2008 7:13 am

hi julienV

thanks for your quick responses.
i dont understand where "&div=XX" would be placed in the module  :(

in the mod_joomleague_results.php i tried this (changes in bold):
line 139
printf(''._JL_MODULE_RESULTS_DETAILS.'', $project->id,$round, $Itemid, $div);?>

no success with this...

cheers

dan

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: How do you only show certain division/s

Postby julienV » Tue Apr 15, 2008 7:49 am

Sorry, I didn't see we were talking about the module...
It's more complicated than that then. Please try the included module here. I added a "division" field in the setup, let me know if this work (cannot test it right now).



[gelöscht durch Administrator]
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

trashdan
Newbie
Posts: 19
Joined: Sat Jan 12, 2008 4:07 am

Re: How do you only show certain division/s

Postby trashdan » Wed Apr 16, 2008 12:20 am

hi julienV

thanks for the special mod. it didnt work at all. it only shows the 3 tabs for past current and future matches but then under that says this:

Fatal error: Call to a member function setquery() on a non-object in /home/zidanc/public_html/modules/mod_joomleague_tab_results.php on line 48
[this is said when i place a division number in the id]
Fatal error: Call to a member function setQuery() on a non-object in /home/zidanc/public_html/modules/mod_joomleague_tab_results.php on line 58
[this is said when i dont have anything in the div id]

any other changes of options do not produce any other errers.

dan

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: How do you only show certain division/s

Postby julienV » Wed Apr 16, 2008 10:46 am

Well, that's what you get when you don't test..

Anyway, here is a heavily revamp and optimized version, it should work much better and takes only 2 sql request intead of (nb of games * 3) + 2 for the normal version...



[gelöscht durch Administrator]
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !

trashdan
Newbie
Posts: 19
Joined: Sat Jan 12, 2008 4:07 am

Re: How do you only show certain division/s

Postby trashdan » Thu Apr 17, 2008 4:26 am

hi julienV

thanks for the changes. it works well with no problems.
the only issue would be that the actual button outlines for the different match days have gone just leaving the words of the matchday names.
but no problems for me as it works well.

cheers

dan

User avatar
julienV
Joomleague Core Developer
Joomleague Core Developer
Posts: 2016
Joined: Tue Jun 19, 2007 9:27 am
Location: France
Contact:

Re: How do you only show certain division/s

Postby julienV » Thu Apr 17, 2008 7:36 am

trashdan wrote:the only issue would be that the actual button outlines for the different match days have gone just leaving the words of the matchday names.
but no problems for me as it works well.


hmm, not sure what you are talking about, but I have changed the code a lot (divided by 2 at least), so i might have chopped something that had some purpose ;)
I'll look at it.
You can hire me, I'm a Joomla professional freelance developer.
Please contact me at jlv@jlv-solutions.com
NO PM, please use email !


Return to “mod_joomleague_tab_results”

Who is online

Users browsing this forum: No registered users and 1 guest

cron