Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/07/2006, 12:33
Avatar de djwarez
djwarez
 
Fecha de Ingreso: diciembre-2005
Ubicación: Colima México
Mensajes: 1.219
Antigüedad: 18 años, 4 meses
Puntos: 5
Pregunta Plugin para chat Wordpress

TEngo mi blog y queria meterle un chat.... aki esta el codigo,
Código PHP:
<?php 
/*
Plugin URI: http://gabbly.com/
Plugin Name: Gabbly Chat Widget
Update Server: http://gabblywidgets.com/gchat.zip
Description: Adds a sidebar widget to let users chat using gabbly.
Author: MASA
Version: 5.0
Author URI: http://gamespotting.net
*/

function widget_gchat_init() {

    
    if ( !
function_exists('register_sidebar_widget') )
        return;

        function 
widget_gchat($args) {
        
        
extract($args);

        
$options get_option('widget_gchat');
        
$title $options['title'];
$width $options['width'];
$height $options['height'];
$size $options['size'];
        
        echo 
$before_widget $before_title $title $after_title;
        
$url get_bloginfo('home');
        echo 
'<center><iframe src="http://cw.gabbly.com/gabbly/cw.jsp?e=1&pw='.$size.'&t='.$url.'" scrolling="no" frameborder="0" style="width:'.$width.'px; height:'.$height.'px;"></iframe></center>';
        echo 
$after_widget;
    }
    
    function 
widget_gchat_control() {

        
// Get our options and see if we're handling a form submission.
        
$options get_option('widget_gchat');
        if ( !
is_array($options) )
            
$options = array('title'=>'Live Chat''width'=>'204','height'=>'350','size'=>'80');
        if ( 
$_POST['gchat-submit'] ) {

            
$options['title'] = strip_tags(stripslashes($_POST['gchat-title']));
            
$options['width'] = strip_tags(stripslashes($_POST['gchat-width']));
            
$options['height'] = strip_tags(stripslashes($_POST['gchat-height']));
            
$options['size'] = strip_tags(stripslashes($_POST['gchat-size']));
            
update_option('widget_gchat'$options);
        }

        
$title htmlspecialchars($options['title'], ENT_QUOTES);
        
$width htmlspecialchars($options['width'], ENT_QUOTES);
$height htmlspecialchars($options['height'], ENT_QUOTES);
$size htmlspecialchars($options['size'], ENT_QUOTES);
        echo 
'<p style="text-align:right;"><label for="gchat-title">Title: <input style="width: 200px;" id="gchat-title" name="gchat-title" type="text" value="'.$title.'" /></label></p>';
        echo 
'<p style="text-align:right;"><label for="gchat-width">Width # (only numbers no spaces): <input style="width: 200px;" maxlength="3" id="gchat-width" name="gchat-width" type="text" value="'.$width.'" /></label></p>';

echo 
'<p style="text-align:right;"><label for="gchat-height">Height # (only numbers no spaces): <input style="width: 200px;" maxlength="3" id="gchat-height" name="gchat-height" type="text" value="'.$height.'" /></label></p>';

echo 
'<p style="text-align:right;"><label for="gchat-size">Chatters online width (78 hides the chatbox): <input style="width: 200px;" maxlength="3" id="gchat-size" name="gchat-size" type="text" value="'.$size.'" /></label></p>';


        echo 
'<input type="hidden" id="gchat-submit" name="gchat-submit" value="1" />';
    }
    
    
register_sidebar_widget('Gabbly Chat''widget_gchat');
    
register_widget_control('Gabbly Chat''widget_gchat_control'350175);
}
add_action('plugins_loaded''widget_gchat_init');

?>

el problema eske lo activo y no pasa nada... ¿ke pasa,, alguien me puede explicar que hacer?
__________________
"I miss you so. Wath I Do...?"
www.djwarezweblog.com