Results 1 to 3 of 3
-
3rd Nov 2011, 05:12 PM #1OPMember
Text Box to Radio Box's
Hello, recently I have decided to let members change there username colour around the forums with the vB-Shop feature that allows this. Well while I have been doing so, I do not want to allow the usual text box because people can use any hashed username colours or use the colour "transparent" so they have no username! So I decided I wanted it to look like this:
But now when I click the box and click save it does not save.
Here is the original text box code were you can type your own colour into it:
Code:<td class="alt2"><input type="text" name="code[color]" class="bginput" size="35" /></td>
Code:<td class="alt2"><form> <input type="radio" name="code[color]" /> Red<br /> <input type="radio" name="code[color]" /> Blue<br /> <input type="radio" name="code[color]" value="green" /> Green<br /> </form></td>
Thanks.
Also if someone is willing to come and do this for a small amount of money then I'm happy to pay.MrOSX Reviewed by MrOSX on . Text Box to Radio Box's Hello, recently I have decided to let members change there username colour around the forums with the vB-Shop feature that allows this. Well while I have been doing so, I do not want to allow the usual text box because people can use any hashed username colours or use the colour "transparent" so they have no username! So I decided I wanted it to look like this: http://puu.sh/833z.png But now when I click the box and click save it does not save. Here is the original text box code were Rating: 5
-
3rd Nov 2011, 05:19 PM #2Respected MemberWebsite's:
DL4Everything.com Soft2050.inHow did the colours where inputted by the user before in the textbox? By Colour Codes?
You can then specify colour code as value! Though the value could be easily changed if the request data is posted differently! You also needed to check if the color matchs in allowed color list to prevent this
-
20th Nov 2011, 12:07 PM #3Member
You have not defined each colour code. You need a unique id for each colour that you allow to be selected.
Try this, no guarantees it will work.
Code:<td class="alt2"><form> <input type="radio" name="code[red]" /> Red<br /> <input type="radio" name="code[blue]" /> Blue<br /> <input type="radio" name="code[green]" value="green" /> Green<br /> </form></td>
vBulletin-Mods.co.uk - vBulletin-Mods.co.uk is a global community dedicated to extending vBulletin and educating vBulletin users everywhere.
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
Radio mod
By bumilad20 in forum IP.BoardReplies: 3Last Post: 18th Jan 2011, 08:38 PM -
Hydrode Radio
By Hydrode in forum General DiscussionReplies: 4Last Post: 9th Jan 2011, 08:23 PM -
RADIO through VPS
By gmaister22 in forum General DiscussionReplies: 12Last Post: 14th Dec 2010, 04:11 PM -
Radio
By ihawk in forum Webmaster DiscussionReplies: 0Last Post: 13th Oct 2010, 09:32 PM -
ipb 3 radio mod
By lenney in forum IP.BoardReplies: 3Last Post: 4th Mar 2010, 11:10 PM
themaCreator - create posts from...
Version 3.17 released. Open older version (or...