Version: 1.00, by Lionel
Developer Last Online: Nov 2023
Category: Calendar Enhancements -
Version: 3.6.0
Rating:
Released: 10-18-2006
Last Update: Never
Installs: 31
DB Changes Template Edits
Code Changes Additional Files
No support by the author.
First of all, a big thank you to nico_swd He gave me the entire ajax code
Thank you also to Abe1 for trying to help me.
Second, this hack while complete for me will be incomplete for you. I am releasing it as a base so you can tailor it to your needs. If you don't know php stay away from it as I don't guarantee support. This is released mainly as a guide if someone else wants to elaborate on it. As I stated, it was done for my needs and serves my purpose fully. I use it for soccer, but that could be used for any sport.
What's missing for you?
1- You would need to find a way to add actual scores results.
Unfortunately, I use a totally dynamic system that feeds that info for me in another table and I had no need to create a control panel.
I suggest you alter the event table and add 2 fields in there: homescore and awayscore and add the mini control panel at calendar edit.
2-You need to add your own jerseys. Each jersey needs to have the same name than the team.
3-You will not have the dynamic info as far as game report etc...
4-You will not get the list of winners (linked automatically)
What does this hack do? It adds a prediction system for any kind of sports and allows your members to predict the outcome.
Unfortunately, this could not be a product, because there are no hooks where I needed it.
You would need to:
run a query
edit 1 file
edit 4 templates
upload 2 files
add a frontend redirect phrase
create a dedicated calendar for sports and remember its id. You will need to replace mine (which is 4) with yours.
add some custom fields to that calendar
The first two fields are mandatory and must be named Home and Away if you change that, then you would need to change all templates.
This takes into consideration the dateline_from and prediction will automatically be closed at that time.
To see the full scope of the system click here and click on a calendar date to see predictions.
TIP: If you need jerseys images for NFL football teams or other American sports, look for the vbux addon for sports which has a bunch of them
P.S. I also use it with the Events Forums hack. If anyone wants that, I'll post the changes I made in there.
It's really too bad I did not make a control panel to input scores results. But you have to realize that with my system, with just one click, I get score results, game report with scorers, minutes scored, who get yellow/red cards, members winners, overall competition stats etc... etc...