b a
Forum Replies Created
-
so whats the solution?
Forum: Plugins
In reply to: [BuddyPress Like] Known issues, and have you found any issues?I also have modfied version with internal notifications
Forum: Plugins
In reply to: [BuddyPress Like] Known issues, and have you found any issues?Didn’t wonted to open new thread, so I’ll just write it here
//TODO: I believe there is a bp core function for this.
since
bplike_activity_button
runs inside loop, there is no need to add extra query.you can use functions like
bp_get_activity_type()
as you are usingbp_get_activity_id()
Forum: Plugins
In reply to: Encrypting loginOKay so here is a wp_autentificate action in wp_signon:
function wp_signon( $credentials = '', $secure_cookie = '' ) { if ( empty($credentials) ) { if ( ! empty($_POST['log']) ) $credentials['user_login'] = $_POST['log']; if ( ! empty($_POST['pwd']) ) $credentials['user_password'] = $_POST['pwd']; if ( ! empty($_POST['rememberme']) ) $credentials['remember'] = $_POST['rememberme']; } if ( !empty($credentials['remember']) ) $credentials['remember'] = true; else $credentials['remember'] = false; // TODO do we deprecate the wp_authentication action? do_action_ref_array('wp_authenticate', array(&$credentials['user_login'], &$credentials['user_password'])); var_dump($credentials['user_password']); if ( '' === $secure_cookie ) $secure_cookie = is_ssl(); $secure_cookie = apply_filters('secure_signon_cookie', $secure_cookie, $credentials); global $auth_secure_cookie; // XXX ugly hack to pass this to wp_authenticate_cookie $auth_secure_cookie = $secure_cookie; add_filter('authenticate', 'wp_authenticate_cookie', 30, 3); $user = wp_authenticate($credentials['user_login'], $credentials['user_password']); if ( is_wp_error($user) ) { if ( $user->get_error_codes() == array('empty_username', 'empty_password') ) { $user = new WP_Error('', ''); } return $user; } wp_set_auth_cookie($user->ID, $credentials['remember'], $secure_cookie); do_action('wp_login', $user->user_login, $user); return $user; }
add_action(“wp_authenticate”, “myfunctionhere”, 10, 2);
function myfunctionhere($user, $pass) {
// CODE HERE
}I found all this but I don’t know now how to return $pass to action.
I tried making it global and etc but nothing works + this stange do_action_ref_array method of binding action. so I stack here, but seems pretty easy task for experiensed developer how to solve this problem.Forum: Plugins
In reply to: Encrypting loginDo I ask it too simply? Do I need to provide any additional iformation?
Is there any way to do it without hacking core itself?
How wordpress secures my login by its own?Forum: Plugins
In reply to: Encrypting loginbump?
philipjon, I can’t include wp_head, then It looses all the point I’m loading my pages with ajax. I’ll try to recreate that in future.
Marcus, I have read that in the first place.
The last will do the job for know I guess.in fact my theme is loading https://ajax.googleapis.com/ajax/libs/jqueryui/1.9.2/jquery-ui.min.js?ver=1.2
but it is not enought for some reason, mini calendar (widget) is not working properly.
Thanks everyone for support.
I load my pages with ajax. it means when I load my website once, then going to pages does not load wp_head and wp_footer. (and thus js files)
So I question is if I can they are all nessasary and if I can deregister some of them?
sad there is no report button for reviews, as this one deserves it for sure!
As I thought, thank you anyway!
the second one ))
I mean, tickets never end up, no metter how many people book it.
Hey, thanks for your support.
As long as I understand, it’s for changing default value.
(and big thank again for this)What about unlimited tickets?
Forum: Plugins
In reply to: [Quick Chat] Show Chat Messages In Reverse Chronological OrderOkay, so if you don’t mind hacking quick-chat code, here is the solution:
first of all, turn quick-chat to debugging mode, so quick-chat will use javascripts .dev files instead of minified ones.
then go to quick-chat/js/quick-chat-core.dev.js and find lines:
jQuery(history_container).append(quick_chat.single_message_html (there should be three of them, and instead of append use prepend (so it will insert content on top of elements, instead of bottom)
and in the end find jQuery(history_container).animate(…
and use this instead:
jQuery(history_container).animate({scrollTop: 0}, 500);
this will scroll to top when new message comes, instead of scrolling bottom.
cheers
Forum: Plugins
In reply to: [Quick Chat] Show Chat Messages In Reverse Chronological Order+1 on this, I’m very interested to find a solution, even changing in code
Forum: Plugins
In reply to: [Achievements for WordPress] Trigger on wp_login?? yeaah, who needs sleeping! Never played it but looks like my style.
> wp_login, what do you mean by there is – because it is not in the list but I have two “The user updates their profile information.” <- thats what makes me suspiciouse )
anyways I guess it will not be hard to implement since it has actions/hooks.
Thanks for the way )) I’ll start it today and will post my classes for those plugins just in case somebody will come for the same )cheers