latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Antonio Monteagudo

Sorry, I've not written a description yet. I'll get to it soon!


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Multi-language website

By:  Jacqueline Brandes in: Translations

voices: 6
replies: 10

4 years ago  Simon Christensen

Offering REAL free coupon code

By:  Antonio Monteagudo in: Unofficial Extensions/Hacks

voices: 1
replies: 0

4 years, 6 months ago  Antonio Monteagudo

External access to protected content

By:  Antonio Monteagudo in: Community Forum

voices: 2
replies: 6

4 years, 6 months ago  Cristián Lávaque

Viewing 3 topics - 1 through 3 (of 3 total)

Topics I've Started

Viewing 2 topics - 1 through 2 (of 2 total)
Topic Count Last Reply
Offering REAL free coupon code

By:  Antonio Monteagudo in: Unofficial Extensions/Hacks

voices: 1
replies: 0

4 years, 6 months ago  Antonio Monteagudo

External access to protected content

By:  Antonio Monteagudo in: Community Forum

voices: 2
replies: 6

4 years, 6 months ago  Cristián Lávaque

Viewing 2 topics - 1 through 2 (of 2 total)

My Latest Replies (From Various Topics)

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Wednesday Jun 20th, 2012 at 10:09 am #17016

I’ve implemented a temporal fix for this. This is what i have done, usefull if someone needs something like this…

First, create an user with the necesary access level on wp backend panel and get his user id. For this example supose that user’s id is 5.

Now edit on file posts.inc.php:

Near line 50, after:

$user = (is_user_logged_in () && is_object ($user = wp_get_current_user ()) && !empty ($user->ID)) ? $user : false; /* Current User's object. */

Add:

if ((!$user) && (isset($_GET['key'])) && ($_GET['key'] == md5(date("Ymd")."yourstring"))){
	$userid = 5;
	$user = get_userdata( $userid );
	}
										

Now you have to provide add the key parameter to the address that you have to give to the thrid-party service.

For example, if the url of your post is http://www.website.com/blog/post_name/ , you have to give the url: http://www.website.com/blog/post_name/?key= followed with the md5 key that you want to generate (in my case is date(“Ymd”) + “yourstring”)

Maybe this is not the best solution, but is a solution until the s2team give us a better fix.

Posted: Tuesday Jun 19th, 2012 at 6:46 am #16869

Thanks Cristian. Is there any temporal fix that I can improbe until the next release be done?

Posted: Tuesday Jun 19th, 2012 at 5:31 am #16856

I’m interested on this feature too.

Posted: Monday Jun 18th, 2012 at 6:56 am #16765

I think it would be usefull to have some way to login using get parameters.

For example:

If I want to access to a protected post with the url: http://www.website.com/blog/post_name
With the user: bloguser and pass: passuser
It would be great to have the option to do something like this:

http://www.website.com/blog/post_name?action=login&user=bloguser&pass=passuser

Doing this we can provide to third-party apis an url with his own user to access to protected content.

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

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.