PDA

View Full Version : Miscellaneous Hacks - Military Branches in Postbit and Memberslist


HMBeaty
05-10-2009, 10:00 PM
This modification basically allows you to show an animated waving flag for which Military Branch your users are in and will be displayed in your Postbit, Postbit Legacy, and Members List.

If you'd like me to add more locations for it to be displayed, just let me know and I'll see what I can do. Thank you!

Don't forget to click "Installed"

Support will be given only to those who have clicked "Installed". :)

Shazz
05-11-2009, 02:58 AM
Fix spelling error! :D

HMBeaty
05-11-2009, 02:59 AM
Fixed :o

kalypsoweb
06-05-2009, 03:41 PM
Very nice, thank you for this mod!

Semper Fi!

Nadeemjp
06-06-2009, 05:01 AM
nice one:)
installed

deadlySniper
07-24-2009, 01:44 AM
Thanks this is great

Semper Vigilans

kellyandmark04
07-24-2009, 02:33 AM
Will this work in the 3.6.X???

HMBeaty
07-24-2009, 05:40 PM
Will this work in the 3.6.X???

Yes as all it is is a template edit and adding profile fields

BGObsession
07-25-2009, 06:46 PM
Very nice. I may look around and see if I can find some better versions of the flags, but I like it :)

HMBeaty
07-25-2009, 09:44 PM
Thank you :)

HappyFeet
08-15-2009, 11:57 PM
Proudly marked *Installed*

Many Thanks...

HMBeaty
08-16-2009, 12:13 AM
No problem. Thanks for using :)

HappyFeet
08-17-2009, 03:05 PM
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:

HMBeaty
08-17-2009, 06:34 PM
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:

Try making your field editable by user ;)

HappyFeet
08-17-2009, 10:12 PM
Try making your field editable by user ;)

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.:confused: 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.

HMBeaty
08-17-2009, 10:24 PM
I'm thinking thats on your end. I can change mine just fine so I'm not sure whats going on with yours.

betts02
08-18-2009, 08:07 AM
installed,will try it out and change the flg images to suit my site.nice mod cheers

betts02
08-18-2009, 04:28 PM
installed but only thing is it does not show images ?
sorted,working great with new images.

what i want to know is it possible to have say 4 flags instead of 1 showing.and let user select flag order ?

i have a gaming site and want users to be able to select the games they play in order of skill and let it show this order in profile.
let me know if this can be done or how muuch iit will cost please.cheers

blind-eddie
08-21-2009, 06:33 PM
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:

Try making your field editable by user ;)

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.:confused: 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:
<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.
http://outerzone.us/forum/imagehosting/14a8ef9fdd623f.bmp


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.

HappyFeet
08-21-2009, 09:19 PM
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.

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.

Many thanks blind-eddie! I will make the changes as noted.

I think I may have come up short in explaining exactly what was happening.

Thanks again to Redlinemotorsports for the mod, and thanks to you blind-eddie for a solution!

:up:

blind-eddie
08-21-2009, 09:25 PM
Glad I could help.

atonement
08-29-2009, 03:48 PM
Installed, I LOVE IT!!!!!!!!!!!!!!!!! THANK YOU

-Semper Fi

FTG STRYKER FG
10-21-2009, 07:43 AM
Works perfectly. Thx. Have a few military members in our community that will appreciate this as much as me.

Gav-n-Tn
10-24-2009, 06:37 AM
I want the icon to show next to the avatar but I don't want it in the member's list. Where do I need to leave the code out (out of the 3 places to put it as instructed) so that it just shows in the posts and not there? I THINK I already know but I'd like to be sure. Also, has anyone figured out how to make it allow a member to de-select without leaving a permanent pic of some sort? Even with the translucent pic, it's still there.

txsbmw
10-28-2009, 04:54 PM
Question....I already have a Single-Selection Menu field so my members can select their branch. Is there anyway to go ahead and use that field without having to create a Single-Selection Radio Button field?

HMBeaty
10-28-2009, 08:03 PM
Question....I already have a Single-Selection Menu field so my members can select their branch. Is there anyway to go ahead and use that field without having to create a Single-Selection Radio Button field?
Yes, if I remember correctly, you would use something like this...

<img src="http://www.yoursite.com/[fieldx].gif" border="0" alt="" />

1.) Change fieldx to your field number
2.) Change .gif to your images file extensions (if applicable)
3.) Make sure your images are named exactly how they are for the fields. For example, if you have a selection Marine Corps, you would have to name your image Marine Corps.gif

:)

txsbmw
10-29-2009, 12:38 PM
Nope didnt work, I just get the red x. When I right click for properties it shoes it going to the right directory but just says [field5].gif

HMBeaty
10-29-2009, 11:08 PM
Whoops! Sorry! Try this one, made a mistake in the code I posted:

<img src="http://www.yoursite.com/$userinfo[fieldx].gif" border="0" alt="" />