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)

Jman423 07-18-2009 07:14 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1850089)
I can add that in there

Could you post a screenshot please? Not sure I quite understand

In staffapp.php, lines 311 and 313 are the same:
Code:

User's Name: " . $vbulletin->GPC['first_name'] . " " . $vbulletin->GPC['last_name'] . "

Line 313 should be:
Code:

Username: " . $vbulletin->GPC['username'] . "
I noticed that and fixed it today.

Also, is there any way to make this file force a prefix when it starts a thread? I know it would be a simple file edit, I am just not sure where.

I also added in a little code that allows me to show/hide position information on the application based on which positions are turned on. I did it in the template, but maybe this could be a feature in future versions.

After this code:
Code:

<!-- YOU MAY EDIT YOUR WELCOME MESSAGE HERE (START) -->
                <p>Welcome $bbuserinfo[musername]!</p>
                <p>$vboptions[usml_staffapp_welcome]</p>

I added:
Code:

<if condition="$vboptions['usml_postitionapplying_mod_onoff'] == '1'">
...and then some table code with position information and requirements. It will only show when that position is enabled.

Thank you for a great mod!! :)

HMBeaty 07-18-2009 07:22 PM

Quote:

Originally Posted by Jman423 (Post 1851289)
In staffapp.php, lines 311 and 313 are the same:
Code:

User's Name: " . $vbulletin->GPC['first_name'] . " " . $vbulletin->GPC['last_name'] . "
Line 313 should be:
Code:

Username: " . $vbulletin->GPC['username'] . "
I noticed that and fixed it today.

Thanks, I thought I fixed that

Quote:

Originally Posted by Jman423 (Post 1851289)
Also, is there any way to make this file force a prefix when it starts a thread? I know it would be a simple file edit, I am just not sure where.

Not that I know of since it automatically creates the thread after submission. Or do you want it to have a pre-defined prefix?

Quote:

Originally Posted by Jman423 (Post 1851289)
I also added in a little code that allows me to show/hide position information on the application based on which positions are turned on. I did it in the template, but maybe this could be a feature in future versions.

After this code:
Code:

<!-- YOU MAY EDIT YOUR WELCOME MESSAGE HERE (START) -->
                <p>Welcome $bbuserinfo[musername]!</p>
                <p>$vboptions[usml_staffapp_welcome]</p>

I added:
Code:

<if condition="$vboptions['usml_postitionapplying_mod_onoff'] == '1'">
...and then some table code with position information and requirements. It will only show when that position is enabled.

Thanks :)

There's going to be quite a bit of new things in future versions ;)

Jman423 07-18-2009 07:40 PM

Quote:

Originally Posted by Redlinemotorsports (Post 1851293)
Thanks, I thought I fixed that

I figured you had because I didn't see any complaints until this most recent version. It was probably just an oversight.

Quote:

Not that I know of since it automatically creates the thread after submission. Or do you want it to have a pre-defined prefix?
Yes sir, a predefined prefix would be great. I will only use one prefix so that the thread stands out to the staff and administrators.

Quote:

There's going to be quite a bit of new things in future versions ;)
Good to hear, I look forward to it!!

HMBeaty 07-18-2009 07:43 PM

Quote:

Originally Posted by Jman423 (Post 1851302)
I figured you had because I didn't see any complaints until this most recent version. It was probably just an oversight.

Yeah. I don't like releasing mods with bugs which is why the next version is taking so long. I have been testing each new addition like crazy and sometimes just get an error that pops up out of nowhere. :confused:
Quote:

Originally Posted by Jman423 (Post 1851302)
Yes sir, a predefined prefix would be great. I will only use one prefix so that the thread stands out to the staff and administrators.

I'll see what I can do

BigDog56 07-19-2009 12:01 AM

Seems to be working ok on the trial run, lol, Thank you!

HMBeaty 07-19-2009 12:12 AM

No problem :)

mikeo9043 07-19-2009 03:57 AM

I love this mod, but is there anyway to change the things from Super Moderator/Moderator to things like Reviewer or News Editor? Or possibly just add those on instead of replacing.

HMBeaty 07-19-2009 04:05 AM

Quote:

Originally Posted by mikeo9043 (Post 1851499)
I love this mod, but is there anyway to change the things from Super Moderator/Moderator to things like Reviewer or News Editor? Or possibly just add those on instead of replacing.

Yes, you just need to do the template edits for each

Jman423 07-19-2009 04:29 AM

I changed them around by altering the phrases...

SpeedyHire 07-19-2009 05:15 AM

create a poll on posting would be nice, hope to see it in next release


All times are GMT. The time now is 06:51 PM.

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.01311 seconds
  • Memory Usage 1,749KB
  • 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
  • (8)bbcode_code_printable
  • (10)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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