Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Sports predictions Details »
Sports predictions
Mod Version: 1.00, by Lionel (R.I.P.) Lionel is offline
Developer Last Online: Jan 2015 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.6.0 Rating: (1 vote - 5.00 average) Installs: 29
Released: 19 Oct 2006 Last Update: Never Downloads: 312
Not Supported DB Changes Template Edits Code Changes Additional Files  

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.

to make it cross browser compliant, change

document.getElementById('button'+ form.eventid.value +'').innerHTML = '<a href="predictions.php?do=remove&eventid='+ form.eventid.value +'">Remove</a>'
into

fetch_object('button'+ form.eventid.value +'').innerHTML = '<a
href="predictions.php?do=remove&eventid='+ form.eventid.value +'">Remove</a>';

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	1.jpg
Views:	2310
Size:	20.6 KB
ID:	54841   Click image for larger version

Name:	2.jpg
Views:	1345
Size:	20.4 KB
ID:	54842   Click image for larger version

Name:	3.jpg
Views:	1230
Size:	21.4 KB
ID:	54843   Click image for larger version

Name:	4.jpg
Views:	1742
Size:	59.6 KB
ID:	54844  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 19 Oct 2006, 03:33
kemo1991 kemo1991 is offline
 
Join Date: Sep 2006
nice for my nfl predictions.
Reply With Quote
  #3  
Old 19 Oct 2006, 04:20
phpdevrus's Avatar
phpdevrus phpdevrus is offline
 
Join Date: Mar 2006
hmmm nice you should instead tweak vbookie to make this an installable product :-) but nice.
Reply With Quote
  #4  
Old 19 Oct 2006, 06:26
Hornstar's Avatar
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Real name: Matt
This has great potential, I may be able to do something quite good with this. Thanks.
Reply With Quote
  #5  
Old 19 Oct 2006, 11:46
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Originally Posted by phpdevrus
hmmm nice you should instead tweak vbookie to make this an installable product :-) but nice.
I use vbookie together with that also. and this cannot be a product no matter what. It is located at the foreach loop of the custom fields.

Last edited by Lionel; 19 Oct 2006 at 12:20.
Reply With Quote
  #6  
Old 19 Oct 2006, 11:54
jackceltic1888 jackceltic1888 is offline
 
Join Date: Apr 2006
Yes has great potential, but dont think I will be installing it just yet.

Hopefully somebody can improve the idea, with a conrol panel ect...


Well done!
Reply With Quote
  #7  
Old 19 Oct 2006, 12:05
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
integrated with vbookie

with vbookie.

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...
Attached Images
File Type: jpg vbookie.jpg (122.7 KB, 449 views)

Last edited by Lionel; 19 Oct 2006 at 12:21.
Reply With Quote
  #8  
Old 19 Oct 2006, 14:19
Greek Wizard Greek Wizard is offline
 
Join Date: Jun 2006
Originally Posted by jackceltic1888
Yes has great potential, but dont think I will be installing it just yet.

Hopefully somebody can improve the idea, with a conrol panel ect...


Well done!
I concur.

I will watch for this in the future.
Reply With Quote
  #9  
Old 19 Oct 2006, 18:46
ChavMagnet's Avatar
ChavMagnet ChavMagnet is offline
 
Join Date: Sep 2006
v.nice thank you
Reply With Quote
  #10  
Old 26 Oct 2006, 21:54
Rat1972 Rat1972 is offline
 
Join Date: Jun 2005
For me it will be wonderfull if this hack (with controlpanel and everything) will be made. Maybe one of the coders, will do this, if not too bad
Reply With Quote
  #11  
Old 26 Oct 2006, 21:56
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
Everything is more involved if you mean like on my site. But with control panel should not be too difficult at all. I just finished adding the winners list and the vbbux payout
Reply With Quote
  #12  
Old 27 Oct 2006, 01:34
S S0DEN's Avatar
S S0DEN S S0DEN is offline
 
Join Date: Aug 2006
Real name: Shawn
Can someone please make this hack a little easier to install?
Reply With Quote
  #13  
Old 28 Oct 2006, 03:27
adiboy.net adiboy.net is offline
 
Join Date: Nov 2005
Can someone please make this into a prediction league?
Reply With Quote
  #14  
Old 28 Oct 2006, 03:32
Lionel Lionel is offline
 
Join Date: Dec 2001
Real name: Lionel
you mean something like this and like that or that ?

if there is enough interest, I could do something close to it.
Reply With Quote
  #15  
Old 28 Oct 2006, 14:21
Rat1972 Rat1972 is offline
 
Join Date: Jun 2005
I am very intrested. :-)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 14:25.

Layout Options | Width: Wide Color: