Title: eek's Replies | WordPress.org

---

# eek

  [  ](https://wordpress.org/support/users/eek/)

 *   [Profile](https://wordpress.org/support/users/eek/)
 *   [Topics Started](https://wordpress.org/support/users/eek/topics/)
 *   [Replies Created](https://wordpress.org/support/users/eek/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/eek/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/eek/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/eek/engagements/)
 *   [Favorites](https://wordpress.org/support/users/eek/favorites/)

 Search replies:

## Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] AMP Videos – Stuck at 400px height](https://wordpress.org/support/topic/amp-videos-stuck-at-400px-height-2/)
 *  Thread Starter [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [5 years, 12 months ago](https://wordpress.org/support/topic/amp-videos-stuck-at-400px-height-2/#post-13255802)
 * Yes, if I upload the file in the media library there’s no issue with it.
 * I understand this behavior for elements the browser doesn’t know the Aspect Ratio,
   but for video blocks, it shouldn’t have an issue.
 * Also, another curious thing, on the link that I’ve sent yesterday, I now see 
   the “responsive” video now appears and also has the proper width / height and
   so with the “Default” one.
 * Yeah, I think removing the Layout control is a good thing.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] AMP Videos – Stuck at 400px height](https://wordpress.org/support/topic/amp-videos-stuck-at-400px-height-2/)
 *  Thread Starter [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [6 years ago](https://wordpress.org/support/topic/amp-videos-stuck-at-400px-height-2/#post-13242627)
 * Here is an example: [https://thebleedingedge.tech/2020/08/12/amp-video-test/](https://thebleedingedge.tech/2020/08/12/amp-video-test/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Facebook Connect] sfc_remote & malformed access token](https://wordpress.org/support/topic/sfc_remote-malformed-access-token/)
 *  Thread Starter [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/sfc_remote-malformed-access-token/#post-3865996)
 * I finished my function.
 * Unfortunately if I use the add_action facebook me will return me an oauth exception(
   not sure if it’s from the cookie parsing or the sfc_remote, even weired is that
   it works before).
 * So this is the function
 *     ```
       function sfc_login_register_user( $data ){
   
       		if ( empty( $data ) ) return 0;
       		if ( array_key_exists( $data['error'] ) )  return 0; 
   
       		$username = str_replace( ' ', '', strtolower( $data['first_name'].".".$data['last_name'] ) );
       		$username = sanitize_user($username, true);
   
       		$counter = 1; //Check for Unicity
       		if ( username_exists( $username ) )
       		{
       			do
       			{
       				$finalname = $username;
       				$counter++;
       				$finalname = $finalname . $counter;
       			} while ( username_exists( $finalname ) );
       		}
       		else
       		{
       			$finalname = $username;
       		}
   
       		if ( !email_exists( $data['email'] ) ) {
       			$random_password = wp_generate_password( $length=12, $include_standard_special_chars=false );
       			$user_id = wp_create_user( $finalname, $random_password, $data['email'] );
   
       			wp_update_user(
       				array (
       					'ID' => $user_id,
       					'first_name' => $data['first_name'],
       					'last_name' => $data['last_name']
       				)
       			);
       			update_usermeta( $user_id, 'fbuid', $data['id'] ); 
   
       			$user = new WP_User( $user_id );
       			if( is_user_logged_in() ) {
       				wp_redirect( home_url() );
       				exit;
       			}
       		} else {
       			echo "Email already exists.";
       		}	
   
       	}
       ```
   
 * On sfc_login.php on line 169, I have replaced the `do_action('sfc_login_new_fb_user');//
   TODO hook for creating new users if desired`
    with
 *     ```
       $succes = sfc_login_register_user($data);
       if ($succes == 0) { wp_redirect( site_url( 'wp-login.php', 'login' ) ); }
       ```
   
 * Line 2 is there because on the first login $data from sfc_remote is empty, and
   if I refresh it’s ok. Weird.
    It works, also, I added “username,first_name,last_name”
   to fields from sfc_remote on line 155
 * 🙂
 * If anyone finds it useful, I’m glad 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Login With Ajax - Fast Logins, 2FA, Redirects] Update from 3.0.4.1 to 3.1.2](https://wordpress.org/support/topic/update-from-3041-to-312/)
 *  Thread Starter [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/update-from-3041-to-312/#post-3782188)
 * I know changes are sometimes necesary, but having backward compatibility is always
   a huge plus, especially since more than 90% of your plugin users will be just
   that. Users. They will not have the necesarry skills to modify their themes to
   make it work again. But yeah, you could say that if they didn’t modifiy their
   widget’s php’s, they’ll be fine.
 * Also, I’m using lwa with otto’s simple facebook connect, and I could share the
   code snippet to include a login button to your widgets, also I could make some
   options in the option page for users to include / exclude button if they have
   SFC installed or not. If you’d want to include them in a next release or something
   🙂
 * Thanks,
    Eek
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostRatings] WP-postratings image size](https://wordpress.org/support/topic/wp-postratings-image-size/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wp-postratings-image-size/#post-3458504)
 * You can force via css using
 * `.widget .post-ratings img{width:10px !important;}`
 * Your widget should output the “widget” class, so including this css snippet, 
   would overwrite only under the .widget class 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostRatings] Small stars on index.php and big stars on single.php](https://wordpress.org/support/topic/small-stars-on-indexphp-and-big-stars-on-singlephp/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/small-stars-on-indexphp-and-big-stars-on-singlephp/#post-3506453)
 * Make a theme with the biggest stars there are (to use them on single.php) and
   on home.php incluse in your stylesheer a snippet of css to make your stars smaller.
 * For example:
 * `.post-ratings img{width:10px;}`
 * That should work and make your stars different size 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [functions.php of a theme is not called ?](https://wordpress.org/support/topic/functionsphp-of-a-theme-is-not-called/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/functionsphp-of-a-theme-is-not-called/#post-2262651)
 * Hmm… To see if it’s called or not, try adding a function in the functions.php
 *     ```
       function removeres(){
          echo "remove_action";
       }
       ```
   
 * And then try calling it in the footer: `removeres();`
 * See if that shows anything 🙂
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [functions.php of a theme is not called ?](https://wordpress.org/support/topic/functionsphp-of-a-theme-is-not-called/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/functionsphp-of-a-theme-is-not-called/#post-2262610)
 * functions.php is always called.
 * But I don’t understand how you don’t get a parse error…
 * Declaration of the variable should be something like this:
 *     ```
       global $removeres;
       $removeres = 'remove_action: ';
       ```
   
 * Try now that echo 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Breadcrumb Links Don't Change To Say Page You're On…](https://wordpress.org/support/topic/plugin-breadcrumb-navxt-breadcrumb-links-dont-change-to-say-page-youre-on/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-breadcrumb-navxt-breadcrumb-links-dont-change-to-say-page-youre-on/#post-1981830)
 * I had the same problem… Don’t know how I managed to forget to reset the query
   🙁 What a headache!
 * Thanks mtekk >:D<
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: Editable Comments] Problems with plugin and javascript](https://wordpress.org/support/topic/plugin-editable-comments-problems-with-plugin-and-javascript/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/plugin-editable-comments-problems-with-plugin-and-javascript/#post-1396185)
 * I had the same problems 🙂 But you can quickly fix it by going at the plugin 
   folder, open editable-form.php and change the line
    `<form action="<?php echo
   get_permalink().'#comment-'.$editable_comment->comment_ID; ?>" method="post" 
   id="dialog_commentform" onsubmit="return dialog_validate()">`
 * to
 * `<form action="<?php echo get_permalink().'#comment-'.$editable_comment->comment_ID;?
   >" method="post" id="dialog_commentform" onsubmit="dialog_validate()">`
 * That is simply remove the “return” in from of dialog_validate() on the onsubmit
   🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[TDO Mini Forms] [Plugin: TDO Mini Forms] Activation Issue](https://wordpress.org/support/topic/plugin-tdo-mini-forms-activation-issue/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-tdo-mini-forms-activation-issue/#post-1656358)
 * Set in php.ini, memory_limit = 64M; and that will probably fix your problem 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Plugin: TDO Mini Forms] Fatal Error, memory exhaused](https://wordpress.org/support/topic/plugin-tdo-mini-forms-fatal-error-memory-exhaused/)
 *  [eek](https://wordpress.org/support/users/eek/)
 * (@eek)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/plugin-tdo-mini-forms-fatal-error-memory-exhaused/#post-1285257)
 * Had the same problem, define(‘WP_MEMORY_LIMIT’,’64M’); didn’t work, but setting
   memory_limit in phpini to 64M did work 🙂
 * So, php.ini, define memory_limit = 64M;

Viewing 12 replies - 1 through 12 (of 12 total)