vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - [USML] Staff Application (https://vborg.vbsupport.ru/showthread.php?t=261978)

bp323 09-13-2011 10:28 PM

^ as stated above. assign it to the forum email/email you have set for the "contact us" link.
Just remember to check your email :P

ibeteck 09-28-2011 03:59 PM

Is there a way to remove the feature "applying to". I actually want to remove the selectable forums.

HMBeaty 09-28-2011 11:48 PM

Quote:

Originally Posted by ibeteck (Post 2250961)
Is there a way to remove the feature "applying to". I actually want to remove the selectable forums.

In the file /includes/functions_staff-application.php, find and remove the following:
PHP Code:

function usml_construct_forum_chooser()
{
    global 
$vbulletin;

    
$forumids = array();

    foreach (
$vbulletin->forumcache AS $forumid => $forum)
    {
        
$forumperms $vbulletin->userinfo['forumpermissions']["$forumid"];

        if (
            
$forum['displayorder'] > 0
            
AND verify_forum_password($forum['forumid'], $forum['password'], false)
            AND (
$forum['options'] & $vbulletin->bf_misc_forumoptions['active'])
            AND (
$forumperms $vbulletin->bf_ugp_forumpermissions['canview'])
        )
        {
            
$forumids["$forumid"] = usml_construct_forum_depth($forum['depth']) . ' ' $forum['title'];
        }
    }
    return 
$forumids;
}

function 
usml_construct_forum_depth($depth)
{
    
$depthmark '';

    for (
$i 0$i $depth$i++)
    {
        
$depthmark .= '--';
    }
    return 
$depthmark;
}

function 
usml_construct_forum_options($forumids)
{
    
$options '';

    foreach (
$forumids AS $key => $val)
    {
        
$options .= render_option_template($val$key'');
    }
    return 
$options;


In the file /staff-application.php, find and remove the following (these are in the same order as they are in the file (unless already modified)):
PHP Code:

        'forumids'         => ''

PHP Code:

    $forumids usml_construct_forum_options(usml_construct_forum_chooser()); 

PHP Code:

        $templater->register('forumids'$forumids); 

PHP Code:

        'forumids'         => TYPE_ARRAY_UINT

PHP Code:

    $forumids usml_construct_forum_options(usml_construct_forum_chooser()); 

PHP Code:

    if (empty($vbulletin->GPC['forumids'])) { $errors[] = fetch_error('usml_staffapp_forumids'); } 

PHP Code:

    if (!empty($vbulletin->GPC['forumids']))
    {
        foreach (
$vbulletin->GPC['forumids'] AS $forumid)
        {
            
$applyingto[] = $vbulletin->forumcache["$forumid"]['title_clean'];
        }
        
$applyingto implode(', '$applyingto);
    } 

PHP Code:

$vbphrase[usml_staffapp_applyingto]:
$applyingto 

PHP Code:

[b]$vbphrase[usml_staffapp_applyingto]:[/b]
$applyingto 

PHP Code:

        $templater->register('forumids'$forumids); 

In the template usml_staff_application, find and remove the following:
HTML Code:

<!-- START FORUMS APPLYING TO -->
        <div class="blockrow">
            <div class="colrow">
                <div class="col1">
                            <select class="primary" id="sel_forumids" name="forumids[]" multiple="multiple" tabindex="1" size="5">{vb:raw forumids}</select>
                            <p class="staffappdescription">{vb:rawphrase usml_staffapp_selectforumsdesc}</p>
                </div>
                <div class="col2">
                    <label for="applyingto">{vb:rawphrase usml_staffapp_applyingto}</label>
                </div>
            </div>
        </div>
<!-- END FORUMS APPLYING TO -->


barbaros1 12-07-2011 08:37 PM

install later..thank you..

pantani 12-12-2011 02:51 PM

Reserved, thanks

lapiervb 12-18-2011 03:42 PM

Does this work fine on vb 4.1.8 ?

HMBeaty 12-18-2011 03:47 PM

Quote:

Originally Posted by lapiervb (Post 2278860)
Does this work fine on vb 4.1.8 ?

Yes

Merjawy 12-29-2011 01:40 AM

Great MOD thanks, never had the need for it before, but now I am checking it out..

Some phrases are hardcoded I had to play around to get away with it..

Like the tiltle, header title, welcome and thank you..

I am working on it..

Thanks

Update: Everything seems to be working fine, till I click Submit and things went real crazy, loads of error many pages
toooooo long to post in here ... Sorry had to uninstall 4.1.10

Update 2: I found out it only goes nuts when I choose to use Polls both private or public, but when I choose create Thread only it worked fine, and it sends PM, but will not create a Thread even though it's set and forum selected

HMBeaty 12-29-2011 02:57 AM

So there's possibly a conflict with 4.1.10 then. I'll look into this and test it when 4.1.10 final is released. Thanks for your feedback :)

HMBeaty 12-29-2011 03:21 AM

Also, Merjawy, if you wouldn't mind posting step-by-step in detail what you did that caused the error so I can try to reproduce this when I get the final version of 4.1.10 installed, I'd appreciate it ;)

Also, what were the error(s) you received? (You can post in code/php/html tags so it doesn't take up so much room)

Thanks :)


All times are GMT. The time now is 12:27 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.01291 seconds
  • Memory Usage 1,780KB
  • 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_html_printable
  • (11)bbcode_php_printable
  • (2)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