View Full Version : Making a page similar to threadisplay/forumdisplay
sully02
08-03-2004, 01:18 AM
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?
Andreas
08-03-2004, 01:24 AM
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.
sully02
08-03-2004, 01:32 AM
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.
nexialys
08-03-2004, 01:32 AM
<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...
sully02
08-03-2004, 01:34 AM
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.
Andreas
08-03-2004, 01:49 AM
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.php?do=showmatchday&seasonid=1&matchday=32
sully02
08-03-2004, 01:52 AM
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.
Andreas
08-03-2004, 02:01 AM
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.
sully02
08-03-2004, 02:04 AM
Excellent! Thanks, Kirby! Looks like I've got some work cut out for me here :classic:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.