vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - Military Branches in Postbit and Memberslist (https://vborg.vbsupport.ru/showthread.php?t=213359)

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

Quote:

Originally Posted by HappyFeet (Post 1869208)
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

Quote:

Originally Posted by Redlinemotorsports (Post 1869326)
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

Quote:

Originally Posted by HappyFeet (Post 1869208)
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 (Post 1869326)
Try making your field editable by user ;)

Quote:

Originally Posted by HappyFeet (Post 1869420)
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:
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.
http://outerzone.us/forum/imagehosti...ef9fdd623f.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

Quote:

Originally Posted by blind-eddie (Post 1871788)
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:


All times are GMT. The time now is 05:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01036 seconds
  • Memory Usage 1,752KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete