Module modified for showing divisions and more than one enventype

jepeto
.
Posts: 21
Joined: Sat May 24, 2008 7:17 pm
Contact:

Module modified for showing divisions and more than one enventype

Postby jepeto » Sun May 25, 2008 10:50 pm

Hello everybody.

I´m working recently time with joomleangue and need to show more than one eventype at this module and to separate the divisions if the selected project has more than one.

Show I´ve modified the original file to solve this problem. All the modifications are indicated by the "jepeto" tag.

The modifications was made in this way:

If the user has the navigation menu module, the project is selected from it, so the events change every time the project is modified. (I've made this change for all the modules)

If the division parameter is 0, all the divisions of the selected project are shown.

If the eventtype parameter is 0, all the events of the selected project are shown, additionally the event shows the icon and there is a link to the player and also to the team.

If there is another value, the module works normally, or this was my intention  :-\
The file was renamed to txt in order to add it to the post.

I hope that somebody enjoy it.
I somebody wants to see an example, here it is:
http://tocawebs.webcindario.com/Torneo

Sorry if my english is not in a good level. :-[
Regards

[gelöscht durch Administrator]
Last edited by jepeto on Sun May 25, 2008 10:59 pm, edited 1 time in total.

zorro1900
Newbie
Posts: 4
Joined: Fri May 30, 2008 4:01 am

Re: Module modified for showing divisions and more than one enventype

Postby zorro1900 » Sat May 31, 2008 12:37 am

Hello Jepeto... se ve bastante promoetedor..  Lo instalare en mi website..

jepeto
.
Posts: 21
Joined: Sat May 24, 2008 7:17 pm
Contact:

Re: Module modified for showing divisions and more than one enventype

Postby jepeto » Tue Jun 10, 2008 3:44 pm

Hello.

I've found a bug in the changes that I made to the module.

When the script insert the image for the event, always show the goal.png and the img does not contain the alt attribute.

The correction is the following:

Event Icontemplate, $EventsTypesList[$index_event]->icon);?>" border="0" />


And I want to change the example web but I don't know how  :'(. So here It is the good one:
torneoindra.webcindario.com

Sorry for the bug.
Enjoy.
Best Regards.

User avatar
Jippe
.
Posts: 42
Joined: Thu Sep 04, 2008 10:54 am

Re: Module modified for showing divisions and more than one enventype

Postby Jippe » Tue Sep 09, 2008 12:12 pm

Hello all,

I am running JL0.93, and joomla 1.5.6. (www.covpolo.web.surftown.eu)

Just setup the site and bumped into the division separation for events on division level for players who are playing in more than one division, their total events statistics showed up in both divisions.

Just added on line 64 of mod_joomleague_events_statistics.php: AND pt.team_id = me.team_id

complete line is than:
LEFT JOIN #__joomleague_playertool AS pt ON me.player_id = pt.player_id AND pt.project_id = me.project_id AND pt.team_id = me.team_id

Regarding the multiple events on a page, I solved it by activating multiple modules and assign new positions to them, than just load them with loadposition in an article:
{loadposition midland_div2_goals}

regards


Return to “mod_joomleague_events_statistic”

Who is online

Users browsing this forum: No registered users and 1 guest