AHWEBDEV
Forum Replies Created
-
Not in the Facebook AWD base plugin.
Facebook comments are iframe.
The plugin must call the api of facebook to get comments numbers.So you must wait for the new version of AWD seo comments to do what you want. merge wp comments and Fb comments, number of comments too.
But with the new changes of the 0.9.9, it will break current version of this subplugin.
You can do it by your own way, using the api (if you can code) inside the AWD plugin.
Maybe the AHWEBDEV wiki can help you.Can you set this thread as resolved ?
thanks.Your welcome, my english is so poor…
Note: the next version of the plugin contains majors update, so It will only work on wordpress 3.3 and after.
I know perfectly how to add script on specific pages,
You just need to wait the 0.9.9, or just use the solution above.
OpenGrapah need the Jquery UI in admin post, page, and cutom post type editor page.
So i need to list all the edit page that is used, and add the library only on it.Thank you
In fact i can’t limit the UI.css only in admin pages of AWd.
This file is required to get hte openGraph form to work on all edit page,
if you want remove it, you can simply add wp_dequeue_style and wp_dequeue_script functions.
in a plugin in the init hook of your admin.you can do
<?php global $AWD_facebook; wp_dequeue_style($AWD_facebook->plugin_slug.'-jquery-ui'); wp_dequeue_script($AWD_facebook->plugin_slug.'-jquery-ui'); ?>Did you try it ?
Hi,
Login with facebook is like register.
The plugin will sync account with wordpress account.I have to modify the login_process to make better verification while trying to create username.
Issue added on tracker: http://trac.ahwebdev.fr/issues/85
Are you using Dev Version ?? Did you dowload the code form trac.ahwebdev repository ?
This is the version the 0.9.9Beta ?
It’s not working yet.
You should dowload the 0.9.8 for the moment, and wait for new version.
Hi,
I am woking on new verion 0.9.9,
I will add some special hook to add this file only where it’s needed.this file is needed in all post type editor, and in AWD pages.
It will be fixed in 0.9.9I created an issue tracker for that.
http://trac.ahwebdev.fr/issues/84Thanks!
For your first question,
You should use xfbml instead of iframe to let facebook detect your lang.
For the second quesiton:
I have to modify the plugin to use the custom field with an underscore above the key.
_awd_fcbk_option_ogtags_title instead of awd_fcbk_option_ogtags_title.
To hide them in the post editor.This will be done in 0.9.9
You can try to increase the timeout setting in the plugin settings. maybe the problem come from the timeout of the connect.
You should read the answer i send you on the other post, and read the wiki to find the way to get facevook user info.
Forum: Plugins
In reply to: Help with register modificationthe function
show_reff_field()can not be called in the plugin, because it’s for the register form. And Facebook connect do not use it.But the other one
register_refferal()can be called.
I must implement the action “user_register” in the register process of facebook.Then you will be able to add it in your function.php (in your theme.)
The only thing you have to do is, waiting for the next verison of the plugin. (0.9.9)
I added the hook “user_register” in the register process.Modifications in your function:
//cannot be done with AWD... add_action('register_form','show_reff_field'); function show_reff_field(){ ?> <input id="ref" type="text" tabindex="20" size="25" value= "<?php if (isset($_GET['ref'])){echo $_GET['ref'];} ?>" name="ref" readonly="readonly"/> <?php } //the action user register is called in the file login_process.php in the plugin Facebook AWD. So this function will be called when a user register. add_action('user_register', 'register_refferal'); function register_refferal($user_id) { $userdata = array(); $userdata['ID'] = $user_id; wp_update_user($userdata); $userdata['ref'] = $_POST['ref']; //We must modify the $_POST['ref']; (the plugin can not send that value. so we must find it by an other way.) //get facebook user id to know if it's a user form facebook $fb_uid = get_user_meta($user_id,'fb_uid',true); if($fb_uid != ''){ $userdata['ref'] = 'Facebook'; } if (isset($userdata['ref']) && !empty($userdata['ref']) && $userdata['ref'] != ""){ //get reffering user id by his login $refuser = get_userdatabylogin($userdata['ref']); //get current refferial credit that user has $current_ref_credit = get_user_meta($refuser->ID, 'ref_credit', true); //add credit for the newly created user $current_ref_credit[] = $user_id; //save the changes update_user_meta( $refuser->ID, 'ref_credit', $current_ref_credit); } }This will the code you should use with the version 0.9.9 of the plugin
Sorry the probleme come from facebook.
THe like box is not a part from the plugin. it’s an iframe.The plugin does not modify the content of the box.