@Lyubomir Minchev
Did you got a solution?
@ Hero
My google_connect is not show Flashmessages at all.
Also I uninstall the plugin and reinstall it. But same result.
So I tried the following:
Thought maybe it works with the Facebook Flashmessage because in the Facebook Plugin the Flashmessages works.
} else if ($login_code == 3) {
osc_add_flash_ok_message(__('You have been successfully logged in.', 'google_connect'));
}
osc_add_flash_ok_message(__('You have been successfully logged in.', 'google_connect')); // Test ======================
osc_add_flash_ok_message(__('You have been successfully logged in.', 'facebook_login')); // Test ======================
header('Location:' . osc_user_profile_url());
...but nothing happens.
Second I tried:
} else {
osc_add_flash_error_message(__('Your profile picture could not be saved, because there is already picture uploaded by you or you do not have any picture uploaded in your Google account.','google_connect'));
}
}
}
osc_add_flash_ok_message(__('Hello World 1', 'google_connect')); //Test one ================================
if($osclass_user == 0 or $osclass_user == '') {
$get_user = ModelGC::newInstance()->getUserByEmail($email);
$login_code = gc_user_login($get_user['pk_i_id']);
osc_add_flash_ok_message(__('Hello World 2', 'google_connect')); // Test two ===================================
if($login_code == 3) {
//Remeber user login & save user to cookies
//this include contains de osc_genRandomPassword function
require_once osc_lib_path() . 'osclass/helpers/hSecurity.php';
on line 162 i put the first message in. it is before the IF loop " if($osclass_user == 0 or $osclass_user == '') " begins. This message (Hello world 1) is showing on front-end (Attachment 1).
The second message is on line 168. But no message (Hello world 2) is showing.
What is happen in this IF loop? I'm not a programmer so I don't understand what it really does/should doe.