View Single Post
  #51  
Old 03-25-2007, 10:26 PM
Xaices's Avatar
Xaices Xaices is offline
 
Join Date: May 2006
Location: West Coast USA
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok I went into myPHPadmin and created the table from there. Seems to all work except I get this error now.

Quote:
Warning: Missing argument 16 for setstatus() in /modules/class_recruit.php on line 45
That error message appears right above the edit display on the frontpage of cmps.

Here is the code for class_recruit.php that I am using.

PHP Code:
<?php
/*======================================================================*\
    class_recruit.php
    ------------------------------------------------------------------
    
     * Dark Portal Syndicate http://www.darkportals.com
     * Copyright 2002-2007
     * ------------------
     * class_recruit.php
     * Began: 6/27/05
     * Last Modified 3/18/2007
     * Authors: Delinah Howard, Jessica Zakhar. <site-admins@darkportals.com>
    ------------------------------------------------------------------

\*=======================================================================*/

class recruit {

    var 
$result_rows = array();
    var 
$vbObj;

    function 
recruit()
    {

        global 
$vbulletin;
        
$this->vbObj =& $vbulletin;
    
    }
        
    function 
setStatus$druid,
                        
$warrior
                        
$paladin
                        
$dreadknight
                        
$ranger
                        
$rogue
                        
$monk,
                        
$bard,
                        
$cleric,
                        
$shaman,
                        
$desciple,
                        
$bloodmage,
                        
$sorcerer,
                        
$druid,
                        
$psionicist
                        
$necromancer )
    {
    
    
$classes = array(
                    
'Warrior' => $this->vbObj->db->escape_stringstrip_tags$warrior'<b>' ) ),
                    
'Paladin' => $this->vbObj->db->escape_stringstrip_tags$paladin'<b>' ) ), 
                    
'DreadKnight' => $this->vbObj->db->escape_stringstrip_tags$dreadknight'<b>' ) ),
                    
'Ranger' => $this->vbObj->db->escape_stringstrip_tags$ranger'<b>' ) ),
                    
'Rogue' => $this->vbObj->db->escape_stringstrip_tags$rogue'<b>' ) ),
                    
'Monk' => $this->vbObj->db->escape_stringstrip_tags$monk'<b>') ),
                    
'Bard' => $this->vbObj->db->escape_stringstrip_tags$bard'<b>' ) ),
                    
'Cleric' => $this->vbObj->db->escape_stringstrip_tags$cleric'<b>' ) ),
                    
'Desciple' => $this->vbObj->db->escape_stringstrip_tags$desciple'<b>' ) ),
                    
'Bloodmage' => $this->vbObj->db->escape_stringstrip_tags$bloodmage'<b>' ) ),
                    
'Sorcerer' => $this->vbObj->db->escape_stringstrip_tags$sorcerer'<b>' ) ),
                    
'Druid' => $this->vbObj->db->escape_stringstrip_tags$druid'<b>' ) ),
                    
'Psionicist' => $this->vbObj->db->escape_stringstrip_tags$psionicist'<b>' ) ),
                    
'Necromancer' => $this->vbObj->db->escape_stringstrip_tags$necromancer'<b>' ) )
                    );

    foreach( 
$classes AS $key => $value )
        {
            
$query = ( "UPDATE recruitment SET status='$value' WHERE class='$key'" );
            
$this->vbObj->db->query$query );
        }
    }
Line 45 of that is
PHP Code:
                        $necromancer 
So what happens now is that when I fill out the edit fields and hit save I get that error and Dread Knight and Necromancer show no values. If I hit the refresh button on the page then certain class values get changed.

Any ideas?
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01223 seconds
  • Memory Usage 1,832KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete