Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-03-2004, 01:18 AM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Making a page similar to threadisplay/forumdisplay

How would I go about this?

To explain, I run a site related to the NFL Draft. I want to make it so a user can decide what round of a draft they want to view, but use a basic format for all of the round sheets, with the only thing changing being the round of the draft selected.

Any thoughts/suggestions?
Reply With Quote
  #2  
Old 08-03-2004, 01:24 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't understand anything
What is a "NFL Draft"?

I can only assume, that what you want to do is generate pages that use the vBulletin layout (eg. header, footer, CSS)?
There are several tuturials and hacks avaibalbe to do this, just use the search function.

If I am totally wrong - just ignore this post.
Reply With Quote
  #3  
Old 08-03-2004, 01:32 AM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I don't blame ya for not understanding, Kirby... They don't really have the NFL in Germany (Except for NFL Europe, of course ).

Here's the page where I have the information:

http://www.livemockdraft.com/forums/2004.php

I'd like to make it so that the header, footer, everything are already included, and the thing that changes is the data for the round of the draft, so users can view an individual round at a time.

The resulting link would look a little something like this:

http://www.livemockdraft.com/forums/showround.php?r=1

And that would allow the user to view round 1 of the draft.

What I'd like it to be is so that the user could view the rounds one at a time as I stated before, but also make it possible for the user to view all rounds at once, if that makes any sense.

If it's possible, I'm wondering how I'd go about it. If what I'm doing is probably the best solution, then I'll stick with that.
Reply With Quote
  #4  
Old 08-03-2004, 01:32 AM
nexialys
Guest
 
Posts: n/a
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=65844" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=65844</a>

vBookie can be a good alternative for inspiration on your requests.. .betting is like drafts, so maybe working this code around would satify your requests...
Reply With Quote
  #5  
Old 08-03-2004, 01:34 AM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No... It's not betting related, I was just looking for a more efficient way to display the results. I want to display them both by round and as a whole.

Currently, I have one template that houses all 7 rounds of the draft, which I'll likely end up splitting to make each individual round visible.

I hope what I'm asking for isn't overly confusing.
Reply With Quote
  #6  
Old 08-03-2004, 01:49 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am still not sure about what you want, but I might have smth. similar already coded for my board
On my board, I've got a Soccer forum where users can bet on the results of the matches (either home team wins, guest team wins or draw).
Then there is a page which lists the bets along with the real results.

This page can either display the results of all matches of a given season, or just the matches for 1 day

This script in action:
Whole Season - http://www.liebes-forum.net/pltoto.php?seasonid=1
1 day - http://www.liebes-forum.net/pltoto.p...=1&matchday=32
Reply With Quote
  #7  
Old 08-03-2004, 01:52 AM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah... That's kinda what I'm looking for right there! I wouldn't be needing the bet portion, though.

In the future, I'll want to be able to display all drafts by year, as well as by round in a given year.
Reply With Quote
  #8  
Old 08-03-2004, 02:01 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, the display part is pretty simple.
It's moreless just reading a mySQL table and doing some string handling stuff .

Your table could have the colums
  • year
  • id - an auto-incrementing id
  • round
  • pick
  • iteam
  • aquired
  • position
  • name
  • school

The script should then check its parameters. If no year is given -> error.
If only a year is given select all rows that match this year, sorted by id ascending.
If a year and a round is given select only those rows that match year and round, also sorted by id.

Then loop through the results to build up the list.
Reply With Quote
  #9  
Old 08-03-2004, 02:04 AM
sully02 sully02 is offline
 
Join Date: Jul 2004
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent! Thanks, Kirby! Looks like I've got some work cut out for me here :classic:
Reply With Quote
Reply


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 10:57 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.03917 seconds
  • Memory Usage 2,234KB
  • Queries Executed 11 (?)
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
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (8)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete