Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter webchiase.vn

    (@webchiasevn)

    any error here?

    /*
     * Add login button to widget.
     */
    function facebookall_render_widget_button() {
      $fball_settings = get_option('fball_settings');
      if (is_user_logged_in()) {
    		global $user_ID;
    		$size ='60';
    		$user = get_userdata($user_ID);
    		echo "<div><div style='float:left;'>";
    		if(($fbavatar = get_user_meta($user_ID, 'facebookall_user_thumbnail', true)) !== false && strlen(trim($fbavatar)) > 0){
    			echo '<img alt="user facebook avatar" src="'.$fbavatar.'" height = "'.$size.'" width = "'.$size.'" title="'.$user->user_login.'" style="background: none repeat scroll 0 0 #FFFFFF; border: 1px solid #CCCCCC; display: block; margin: 2px 4px 4px 0; padding: 2px;"/>';
    		}else{
    			echo @get_avatar($user_ID, $size, $default, $alt);
    		}
    		echo "</div><div style='float:left; margin-left:10px;padding:1px;'>";
    		echo $user->user_login;
    		echo '<a href="'.wp_logout_url().'">'; _e('Log Out', 'facebookall');'</a></div></div>';
    	}
    	else {
    	  facebookall_render_facebook_button();
    	}
    }

    [please use the code buttons – as is your code may have been corrupted]

    Plugin Author sourceaddons

    (@sourceaddons)

    Hi,
    replace code
    echo ‘‘; _e(‘Log Out’, ‘facebookall’);’</div></div>
    with below code
    echo ‘‘; _e(‘Log Out’, ‘facebookall’);’</div></div><div style=”clear:both;”></div>’;
    also set fanbox width to 230 or according you.
    Thanks

    Thread Starter webchiase.vn

    (@webchiasevn)

    nothing has changed when i do follow u, and the error just happens to facebook login box
    plz check it again bro,
    tks,

    Plugin Author sourceaddons

    (@sourceaddons)

    Hi,
    please try to change html/css for widget.
    Thanks

    Thread Starter webchiase.vn

    (@webchiasevn)

    Hi,
    other widget: fanbox, Facepile is ok, but login is not…
    i dont know where i have to fix html/css

    Plugin Author sourceaddons

    (@sourceaddons)

    Hi,
    please fix in above showed code. arrange or try to clear div in appropriate place .
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘my widget has problem when login by facebookall’ is closed to new replies.