The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Sports predictions Details »» | |||||||||||||||||||||||||||
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 Quote:
Quote:
Show Your Support
|
Comments |
#42
|
||||
|
||||
This is a cool idea for a mod. American Football would be awesome.
|
#43
|
|||
|
|||
30 years in America and I still don't understand that game where everybody spends half their time bending, and why they call it football
|
#44
|
|||
|
|||
Quote:
|
#45
|
|||
|
|||
you've got to understand php and mysql, i can't support that... if you do, i can hint you this: alter table user and add the missing fields from predictions... that will instantly make all your vb users predictions users and then you will have to do all appropriate edits in predictions.... if you don't understand them, don't attempt, i will not be able to support that, at least for now.
|
#46
|
|||
|
|||
yuuuuuuu
|
#47
|
|||
|
|||
Quote:
|
#48
|
||||
|
||||
Great.. can you please make it for Cricket?
|
#49
|
||||
|
||||
I am interested in this application for my forum and my users. I don't have very clear as it works I am Spanish and my English is not very good
I will continue investigating as making work him, at the moment it discharges it |
#50
|
|||
|
|||
Does this work with any cash or points mod?
|
#51
|
|||
|
|||
I do below steps:
1) run a query (predictions.sql) 2) edit 1 file (calendar.php) 3) edit 4 templates - calendar_edit - calendar_edit_customfield - calendar_showeventsbit - calendar_showeventsbit_customfield 4) upload 2 files - ...forum\clientscript\ajaxpredict.js - ...forum\predictions.php But, I dont know how do other steps: 5) add a frontend redirect phrase (how) 6) create a dedicated calendar for sports and remember its id. You will need to replace mine (which is 4) with yours. 7) 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. Plz help and guide me for steps 5,6,7. If I have mistake in steps 1..4, inform me plz. tanx |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|