vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Miscellaneous Hacks - [3.8.x] Staff Application (https://vborg.vbsupport.ru/showthread.php?t=216953)

HMBeaty 10-29-2009 11:15 PM

Farman and maddoghalo1, to change/add positions you want your users to apply for, you would have to edit the following lines in the template staff_app (x2)

HTML Code:

<if condition="$vboptions['usml_postitionapplying_mod_onoff'] == '1'">
                <input type="radio" name="position_applying" value="Moderator" />$vbphrase[usml_staffapp_mod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_smod_onoff'] == '1'">
                <input type="radio" name="position_applying" value="Super Moderator" />$vbphrase[usml_staffapp_smod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_admin_onoff'] == '1'">
                <input type="radio" name="position_applying" value="Administrator" />$vbphrase[usml_staffapp_admin]
</if>

More specifically, you would change value="whatever here" and change the phrases ($vbphrase[usml_staffapp_mod]), or hardcode your options in there versus using phrases

ProFifaLeagues 10-30-2009 02:01 AM

Suoerb mod installed on 3.8.4 patch level 1 and working a treat thanks!!!

Farman 10-30-2009 03:56 AM

Thanks for helping, but I can't get it to work. I made the changes in staff_app template but not appearing in the Settings nor the Form itself. and I can't find staff_app (x2) template.

Heres the code:
Code:

<if condition="$vboptions['usml_postitionapplying_gfx_onoff'] == '1'">
                <input type="radio" name="position_applying" value="GFX Team" />$vbphrase[usml_staffapp_gfx]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_mod_onoff'] == '1'">
                <input type="radio" name="position_applying" value="Moderator" />$vbphrase[usml_staffapp_mod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_smod_onoff'] == '1'">
                <input type="radio" name="position_applying" value="Super Moderator" />$vbphrase[usml_staffapp_smod]<br />
</if>
<if condition="$vboptions['usml_postitionapplying_admin_onoff'] == '1'">
                <input type="radio" name="position_applying" value="Administrator" />$vbphrase[usml_staffapp_admin]
</if>

I also made a new phrase with the following details:

Code:

Template: Global
Product: [U.S. Military Life] Staff Application
Varname: usml_staffapp_gfx
Text: GFX Team


But not worked...

HMBeaty 10-30-2009 11:06 PM

Since you added this...
HTML Code:

<if condition="$vboptions['usml_postitionapplying_gfx_onoff'] == '1'"></if>
Did you add an option in your vBulletin options to turn this on/off? If not, remove that if condition and it should work

And "staff_app (x2)" means, you need to edit the template (staff_app) 2 times, because these options appear twice in that template

Farman 11-01-2009 04:53 AM

How to add an option for this in Vbulletin options to turn it off/on? I've just edited the staff_app (x2) template

giraffesyo 11-01-2009 10:02 PM

Is it possible to add prefixes to the thread creation depending on which position you are applying for?

BlownFiveLiter 11-09-2009 01:16 PM

Installed. :up:

karlm 11-09-2009 07:24 PM

Can the options for positions be changed?

e.g. I won't be accepting 'admin' applications ever, as I handpick them myself. But, I'd like to able to offer various positions (links editor, forum1 mod, forum2 mod, forum33 mod, blog moderator, etc.)

HMBeaty 11-09-2009 08:23 PM

Quote:

Originally Posted by karlm (Post 1912112)
Can the options for positions be changed?

e.g. I won't be accepting 'admin' applications ever, as I handpick them myself. But, I'd like to able to offer various positions (links editor, forum1 mod, forum2 mod, forum33 mod, blog moderator, etc.)

See this post

msu2k 11-10-2009 06:03 PM

This would be great.


All times are GMT. The time now is 09:56 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.02559 seconds
  • Memory Usage 1,746KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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