Página 1 de 1

Mod estadí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­sticas

Publicado: 30 Mar 2004, 20:39
por JoeCamel
Resulta que estoy viendo si puedo adaptar el mod de estadí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?­sticas a PHP-Nuke. Encontre una adaptacií?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³n que funciona en nuke 6.5 y quisiera readaptarlo para que funcione en la í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?ºltima versií?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?³n.

Hasta ahora no tuve problemas excepto por el archivo posting.php.

Estas son las instrucciones que tengo:

Código: Seleccionar todo

# 
#-----[ FIND ]------------------------------------------ 
# 
            if ( $error_msg == '' ) 
            user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user); 


                      if ($error_msg == '' && $mode != 'poll_delete') 
                { 
                        user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user); 
                } 

# 
#-----[ REPLACE ]------------------------------------------ 
# 
 if ( $error_msg == '' && $mode != 'poll_delete') 
                                { 
                                        user_notification($mode, $post_data, $forum_id, $topic_id, $post_id, $notify_user); 
                                        if( $mode != "editpost" ) 
                                        { 
                                                top_smilies($message); 
                                        } 
                                }
Y este es el posting.php que tengo en nuke:

Código: Seleccionar todo

// 
        // Submit post/vote (newtopic, edit, reply, etc.) 
        // 
        $return_message = ''; 
        $return_meta = ''; 

        switch ( $mode ) 
        { 
                case 'editpost': 
                case 'newtopic': 
                case 'reply': 
                        $username = ( !empty($HTTP_POST_VARS['username']) ) ? $HTTP_POST_VARS['username'] : ''; 
                        $subject = ( !empty($HTTP_POST_VARS['subject']) ) ? trim($HTTP_POST_VARS['subject']) : ''; 
                        $message = ( !empty($HTTP_POST_VARS['message']) ) ? $HTTP_POST_VARS['message'] : ''; 
                        $poll_title = ( isset($HTTP_POST_VARS['poll_title']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_title'] : ''; 
                        $poll_options = ( isset($HTTP_POST_VARS['poll_option_text']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_option_text'] : ''; 
                        $poll_length = ( isset($HTTP_POST_VARS['poll_length']) && $is_auth['auth_pollcreate'] ) ? $HTTP_POST_VARS['poll_length'] : ''; 
                        $bbcode_uid = ''; 

                        prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length); 

                        if ( $error_msg == '' ) 
                        { 
                                $topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type; 

                                submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length); 
                        } 
                        break; 

                case 'delete': 
                case 'poll_delete': 
                        delete_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id); 
                        break; 
        } 

        if ( $error_msg == '' ) 
        { 
                if ( $mode != 'editpost' ) 
                { 
                        $user_id = ( $mode == 'reply' || $mode == 'newtopic' ) ? $userdata['user_id'] : $post_data['poster_id']; 
                        update_post_stats($mode, $post_data, $forum_id, $topic_id, $post_id, $user_id); 
                } 

                if ($error_msg == '' && $mode != 'poll_delete') 
                { 
                        user_notification($mode, $post_data, $post_info['topic_title'], $forum_id, $topic_id, $post_id, $notify_user); 
                } 

                if ( $mode == 'newtopic' || $mode == 'reply' ) 
                { 
                        $tracking_topics = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_t']) : array(); 
                        $tracking_forums = ( !empty($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) ) ? unserialize($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_f']) : array(); 

                        if ( count($tracking_topics) + count($tracking_forums) == 100 && empty($tracking_topics[$topic_id]) ) 
                        { 
                                asort($tracking_topics); 
                                unset($tracking_topics[key($tracking_topics)]); 
                        } 

                        $tracking_topics[$topic_id] = time(); 

                        setcookie($board_config['cookie_name'] . '_t', serialize($tracking_topics), 0, $board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); 
                } 

                $template->assign_vars(array( 
                        'META' => $return_meta) 
                ); 
                message_die(GENERAL_MESSAGE, $return_message); 
        } 
}
í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¿Pueden darme una mano con esto? :oops:

Gracias! :D