View Full Version : Change location field to a list
musicdiscussion
02-05-2012, 11:11 AM
Hi,
I wonder if someone can help me.
Instead of having the default location field a single text box. I will like it to be a single radio option. I know I can create a custom profile field. But I need the default location field to be a radio so that it is displayed accordingly across the site as the normal location field would be.
I have searched the mods, but it seems this is a unique idea.
Tony,
You could edit the existing Location field to change the display order and maybe make it private and uneditable, then create a new field called Location and set the display order to "2". It seems to work but I don't know about showing up everywhere the default one does - probably some places depend on the fieldid being '2'. If that's the case it's probably possible to delete the original field then go to the database and change the fieldid of your new field to be '2' (or else just find the places using field2 and change them).
(BTW you could just delete the existing Location field instead of editing it, but this way you can put things back the way they were if you want).
musicdiscussion
02-05-2012, 06:35 PM
Thanks for the reply.
Yes setting the display order to 2 will show the location field correctly in the profile page. But for everywhere else it will use display id 2.... Unfortunately for me, I have not done a big amendment like that before.
To change every part of the site from field id 2, will require me to search all the templates manually. Unless there is a quicker find a replace option?
Again, to change the database is something I am not too comfortable with.
My 3rd option would be a custom mod. If anyone is interested to quote me, please PM!!!!
To change every part of the site from field id 2, will require me to search all the templates manually. Unless there is a quicker find a replace option?
There actually is - under "Search in Templates" there's a find and replace. But it might be safer to just use the "search templates" part at the top to find them and change them by hand. When I do a search I only find 4 templates.
I also find field2 mentioned in the code in a few places, but it seems like maybe the only place that might be of interest is in showgroups. So you might not be able to fix that without editing one of the vb files.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.