Hi,
I have two questions,
1. What is score method for in soccer?
2. How can i highlight specific team in a league? For example, Manchester United on their website you can see Manchester is highlighted which makes it easy for someone to see position of a specific team you view on their website. It is better for it to be an option such that if you don't want a team to be highlighted then you can disable.
To understand my point just visit the following link. You will see Man Utd is highlighted with different color as compared to others.
http://www.manutd.com/default.sps?pagegid={549DC499-79C9-4F21-9ED7-B83018A601D2}
Regards.
Comments
Comment #1
Alun commentedHi bwax,
1. Score method is used for games where there are more than one way of scoring. For example, in basketball, you can score 5 or 3 points, depending on where the ball was thrown from (I think!)
An example I am more familiar with is that in rugby, you can score 5 points from a try, 7 from a converted try and 3 from a penalty or drop goal. Score method allows you to separate out these scores, so that you can show a more detailed report of a match. It also means the module will calculate the final score for you.
In soccer, it would be useful to separate penalties from normal goals.
When I have finished the leaguesite module, it will be possible to add players to the scoring methods, making it a much more useful module.
2. Team highlighting is something I will add. Question is, would people want to add more than one team, or just choose one team which is always highlighted?
Hope that helps!
Comment #2
emnzava commentedDear Alun,
Thank you for clarification.
on the second question, i think the main purpose for highlighting specific team applies only for the website of a specific team and nothing else. Because it makes it easier for viewers/fans to see clearly their team position in the league standing.
Regards.
Comment #3
Alun commentedJust for my housekeeping, I'll change this to team highlighting as a feature, since the other issue is dealt with!
Comment #4
timbraeckman commentedI would love this feature too the team highlighting. As bwax said it is just one team indeed because most of the time you create a site for one team.
Comment #5
Alun commentedThis feature of team highlighting has been on my mind for a while, but as Views deals with most of the displaying, I don't think I can do much about it.
I do have a suggested fix however.
If you rewrite the output of the field using Views, you can encompass any field in a HTML DIV tag. Using replacement patterns, you can ensure that the node ID for the team is in the div tag, and then can use CSS to ensure that your team is highlighted in whatever fashion you wish.
If anyone has any other alternative ways I could implement this, please let me know, but programatically, I can't think of an easier way than just doing the steps I have described.
Comment #6
simonswiss commentedFor some reason i am not able to achieve this. I followed your advice and it seems the div class does not get picked up. I think it's maybe because the div itself is wrapped up in other div id's and classes.
anyway you can take a look at my page if you want. http://cs.dev2.webenabled.net/classements/1ere
I have the output rewritten. If you use firebug and hover on the teams, you see they're wrapped in something like
.team35id {
font-weight: bold;
}
however nothing happens, like if the div class gets overridden by another class..
Any idea?
Simon
Comment #7
simonswiss commentedraaaaa forget it silly me..
i had
font-weight: bold: with a ":" instead of ";"...
Sorry, this can be closed again!