The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Validating multiple selects?
I'm writing a little script that will allow my members to rank the Top 25 college football teams each week during the season.
I'm not sure how to create the ranking page, so I came up with an idea to have 25 drop down selection menus but I'm wondering what the best way would be to make sure the end user does not select the same team twice? Has anyone done anything similar and what did they use to do this? If there is a better way to have the end user make the selections, I'm all for it. However, keep in mind there are 120 teams to choose from. |
#2
|
||||
|
||||
Compare array with unique array...
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
I'm going to be honest and say I have no idea on how to implement something like this. There has got to be a simple solution out there, or maybe a different method of input that wouldn't allow for duplicate choices in the first place?
On another forum, someone pointed me to the site below. Have you ever messed around with anything like that before? http://tool-man.org/examples/sorting.html |
#4
|
||||
|
||||
The second part was to help give you some ideas... not really to use it.
Let's say the input name is user[], and then value is the user id. That'll pass it as an array, and then you could pretty simply use my first piece of code. PHP Code:
|
#5
|
|||
|
|||
I know that wasn't the code, I was just stating that it was probably too involved. I just googled drag & drop team rankings and came across this. Do you know what it would entain to make something similar?
http://www.faniq.com/poll/2008-MLB-P...ANKINGS-188143 |
#6
|
||||
|
||||
The simplest way, IMO, is put a checkbox by each players name.
HTML Code:
<div><input type="checkbox" name="player[]" value="$playerid" /> $playername</div> |
#7
|
|||
|
|||
Here is another interesting one.
http://sports.espn.go.com/chat/sport...Id=2&listId=22 --------------- Added [DATE]1206927768[/DATE] at [TIME]1206927768[/TIME] --------------- How will that work? For each "pick" it needs to return teamid, rank and points. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|