-
Did I mention any documentation regarding this function? Where?
You are correct, you didn’t mention this function. The chat you and I had a few weeks back where you said you were going to take a couple days and better document the API so people would be able to know how to use it better is what I referred to.
Most people don’t even know where to look for the API. Let alone find any documentation on how it might be used. You say it is easy, well for you and for developers maybe, because you and they can read it.
Most of the people using this plugin aren’t developers. They need something to guide them. And I see more and more people asking for some sort of documentation that will help them. Please understand, I’m not trying to be contrary with you, I am simply echoing what I see more and more people requesting. And helping with support, from my perspective is helping those who need it and who are asking for it.
And really, if you think about it, UserPro has become much more complex recently and the average user may be a little overwhelmed with all the tabs and the settings (which to me and you are easily understood), may not necessarily be so easy for a new user to understand. And telling people that are having problems with certain parts of UserPro that the API is easy, when finding it isn’t even easy really doesn’t help. There is no documentation anywhere that points to the API. Most people don’t even know about it, let alone know how to read it, or use it.
I’m not a coder, I also need some indication of how to use some of the API that has been written. I don’t think it is unrealistic to ask for some more documentation.
It is fine to ask about API documentation, I have give an example in my previous reply, and whenever someone asks how to do this or that with php, I refer him to an api function with example. Thanks!
Yes, I started looking for a documentation script already – and I will work on a docs site, apart from this forum where I can store all static/tutorials. I am not convenient using normal WP pages to do this, looking for something easier and helps produce docs faster – because there is many stuff to cover.
Oh, yes.. I understand your logic there completely. And having maybe just a link like UserPro has for updates and changelog pointing to a page that you can easily update as you improve or add new features would be great. That is all I am suggesting. Besides, trying to place all documentation within the plugin could become a little heavy.. I understand that as well.. Thanks for sharing that.
You’re welcome! 🙂 You’ll start to some progress asaap on the documentation/how-to. thanks
Is this something that could be implements into the admin panel?
I want to have it so that all accounts have to require admin approval, including social accounts. I have a private site, so whether they are registering with their email, or facebook/twitter/google+ I want to approve all accounts manually before they are able to log in to my site and view its contents.jpack. please read my reply here:
http://userproplugin.com/userpro/forums/topic/verify-option-without-user-request/#post-20314
Thanks Ahmed for the reply. I have edited the code in ajax.php to allow for facebook logins to require admin approval. I guess I was asking if it could be added to the admin panel so that I didn’t need to edit the code every time I update the plugin. Not a big deal since it is an easy fix.
Also, is there a way to implement the same type of thing for the twitter and google+ registrations? I see the facebook connect in ajax.php, but maybe I am blind, but I am not finding anything similar for twitter or google+.
Thanks!
Thanks Ahmed,
Just checking, does it follow the same structure for the edit?
==== Google+ ====PHP12$user_id = $this->new_user( $unique_user , $user_pass, '', $user_info, $type='google', $approved=0 );$userpro->pending_admin_approve( $user_id, $user_pass, $_POST);==== Twitter ====
PHP12$user_id = $this->new_user( $unique_user, $user_pass, '', $user_info, $type='twitter', $approved=0 );$userpro->pending_admin_approve( $user_id, $user_pass, $_POST);the code feature of this forum is messing up with the code, but I think you get my point.
Well I tried it, and that code did not work. So I am assuming the setup is slightly different for the code from the facebook implementation.
The basics are same. approved=0 must be passed to new_user api function. and then pending_admin_approve request. the form must be changed to be compatible with your social connect. example
pending_admin_approve( $user_id, $user_pass, $user_info);
instead of
pending_admin_approve( $user_id, $user_pass, $_POST);
You must be logged in to reply to this topic.