Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Sports predictions Details »»
Sports predictions
Version: 1.00, by Lionel Lionel is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

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.

to make it cross browser compliant, change

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

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #92  
Old 05-27-2008, 12:46 PM
gamerscms gamerscms is offline
 
Join Date: Aug 2007
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
Not at all. I had to stop for a while so I build a cart system and a support system for my site. Now that both are done ... I should be able to knock this down. It's 90% done.
would be really cool to see this as we use vbookie at the moment for betting on our xbox forza GP :P
Reply With Quote
  #93  
Old 05-27-2008, 12:52 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've just started to transfer it to my live development. In one day or two, it will be on the demo section of my site.
Reply With Quote
  #94  
Old 05-27-2008, 11:37 PM
stickskills stickskills is offline
 
Join Date: May 2008
Posts: 132
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looking forward to the demo being put up, kinda interested in this.
Reply With Quote
  #95  
Old 05-27-2008, 11:41 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looks like it will be up in the next 30 minutes :-)
Reply With Quote
  #96  
Old 06-02-2008, 05:34 PM
CLF's Avatar
CLF CLF is offline
 
Join Date: Jun 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
looks like it will be up in the next 30 minutes :-)
I don't see it. Is it up?
Reply With Quote
  #97  
Old 06-02-2008, 05:41 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes, but I don't want to give a link to it here. Ask all your questions over there
Reply With Quote
  #98  
Old 06-02-2008, 07:09 PM
CLF's Avatar
CLF CLF is offline
 
Join Date: Jun 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lionel View Post
yes, but I don't want to give a link to it here. Ask all your questions over there
Where, man? I don't see it. Ask where?
Reply With Quote
  #99  
Old 06-02-2008, 07:14 PM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't want to post a link to my mods here.
I don't want to discuss my mods here
Feel free to register at my site (in my signature) and ask all questions you want.
Reply With Quote
  #100  
Old 06-04-2008, 01:42 AM
CLF's Avatar
CLF CLF is offline
 
Join Date: Jun 2007
Posts: 112
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I registered and posted there. Let me know. Thank you.
Reply With Quote
  #101  
Old 08-13-2008, 05:31 AM
A M I R's Avatar
A M I R A M I R is offline
 
Join Date: May 2008
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't find this string in calendar.php :

asort($custom[options]);
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 05:09 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04465 seconds
  • Memory Usage 2,302KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete