Quote:
Originally Posted by HappyFeet
I have a question about this Mod. If a member chooses a branch, they cannot uncheck it, only choose another branch. I had to add a text field they could change to, to remove the flag, then erase their text entry and re-save to go back to normal.
Is there a way to add a "None" choice without it displaying "None" in the post bit? Or a way to uncheck your choice?
Many thanks in advance... Great Mod, I like a lot lot lot.:up:
|
Quote:
Originally Posted by Redlinemotorsports
Try making your field editable by user 
|
Quote:
Originally Posted by HappyFeet
I double checked that, not sure what to do here. I did it exactly as instructed, & double checked that too. Maybe a counter needs to be updated? Not sure... I'm no pro but I've attached a screen shot of the profile field set up and as seen in user cp. As you can see it is editable by user, but you can't un-check the radio button.  Heck, I couldn't even change it in Admin CP.
I don't want to trouble you, just checking to see if its this way for others... Maybe its just me, I'll see if I can work this out.
Thanks so much.
You can also see the text field I added to get out of it as mentioned earlier.
|
What is happening here is, that after this is tested by the installer, you cannot uncheck your selection to leave it blank. A flag will always show in postbit/postbit_legacy.
I added the option "None", added a blank transparent image named, none.gif.
That still shows a white box in members postbit/postbit_legacy.
I also did as HappyFeet did, by adding a text field for member imput, but, that is kinda silly adding it when all options for military are there for members to pick from.
So, I changed the profile field type to Single-Line Text Box.
Title: Military Branch
Desciption:
Code:
<fieldset id="question" title="Question">
<table cellpadding="4" cellspacing="0" border="0" align="left">
<tr>
<td>What branch of the Military are you in now or previously in?</td>
</tr>
</table>
</fieldset>
<fieldset id="militarybranch" title="Military Branch">
<legend>Please Copy & Paste your selection and add it to the text area below.</legend>
<table cellpadding="4" cellspacing="0" border="0" align="left">
<tr>
<td class="smallfont" colspan="Military Branch">
<tr><td>Army</tr>
<tr><td>Navy</tr>
<tr><td>Air Force</tr>
<tr><td>Coast Guard</tr>
<tr><td>Marine Corps</tr>
<tr><td> Note: Using this option will show the flag for that military branch in every post you make.</tr>
</td>
</tr>
</table>
</fieldset>
Set Default: No
Field Required: No
Field Editable bu User: Yes
Private Field: No
Field Searchable on Members List: Yes
Show on Members List: Yes
Display Page: Edit Your Details
Adding the code to the Discription Box will result the following.
I am not trying to re-write your addon Redlinemotorsports, I am only making it easier on me & others that use your addon, if one of our members selects a branch, out of curiosity & can't remove it.