The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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? |
#2
|
||||
|
||||
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. |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
<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... |
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
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
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. |
#9
|
|||
|
|||
Excellent! Thanks, Kirby! Looks like I've got some work cut out for me here :classic:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|