WordPress OpenId plugin fix14 December 2008, 03:12:17 |
In case you have problems with using your own url as openid server with , the reason may be that server actually works but does not declare itself – so no openid system can recognize it.
If you can login to your blog as http://myblog.com/author/myname/ but can’t use just http://myblog.com/ then it’s possibly the case.
You can fix it for now with a little plugin which adds this declaration.
Plugin code (copy-paste it to your wp-content\plugins directory, change “http://jehy.ru/articles/” to your main blog directory, “jehy” to your login and activate plugin)
I really hope that strange bug will be fixed soon so I don’t want to write a complete plugin with interface. Use that fix for now.
By the way, if you don’t have wordpress openid plugin, but want to use external openid provider, you can use the following code (the example is for myopenid.com, but I am sure that you will get the idea):
(by )
If you can login to your blog as http://myblog.com/author/myname/ but can’t use just http://myblog.com/ then it’s possibly the case.
You can fix it for now with a little plugin which adds this declaration.
Plugin code (copy-paste it to your wp-content\plugins directory, change “http://jehy.ru/articles/” to your main blog directory, “jehy” to your login and activate plugin)
<? /* Plugin Name: openid-rel Plugin URI: http://jehy.ru/articles/2008/12/14/wordpress-openid-plugin-fix Description: Mini plugin for displaying of fucken openid rel link Version: 0.01 Author: Jehy Author URI: http://jehy.ru*/ function add_openid_rel() {?> <link rel="openid2.provider" href="http://jehy.ru/articles/?openid_server=1" /> <link rel="openid2.local_id" href="http://jehy.ru/articles/author/jehy/" /> <link rel="openid.server" href="http://jehy.ru/articles/?openid_server=1" /> <link rel="openid.delegate" href="http://jehy.ru/articles/author/jehy/" /> <? } add_action('wp_head', 'add_openid_rel'); ?>
I really hope that strange bug will be fixed soon so I don’t want to write a complete plugin with interface. Use that fix for now.
By the way, if you don’t have wordpress openid plugin, but want to use external openid provider, you can use the following code (the example is for myopenid.com, but I am sure that you will get the idea):
<? /* Plugin Name: openid-rel Plugin URI: http://jehy.ru/articles/2008/12/14/wordpress-openid-plugin-fix Description: Mini plugin for displaying of fucken openid rel link Version: 0.01 Author: Jehy Author URI: http://jehy.ru*/ function add_openid_rel() {?> <link rel="openid.server" href="http://www.myopenid.com/server" /> <link rel="openid.delegate" href="http://youraccount.myopenid.com/" /> <link rel="openid2.local_id" href="http://youraccount.myopenid.com" /> <link rel="openid2.provider" href="http://www.myopenid.com/server" /> <meta http-equiv="X-XRDS-Location" content="http://www.myopenid.com/xrds?username=youraccount.myopenid.com" /> <? } add_action('wp_head', 'add_openid_rel'); ?>
(by )
| Tags: openid | Comments [ 4 ] |

Subscribe? Sure? What for?

1 February at 11:14 am
i am having nightmares with openid – I just gave up on the wordpress one because it never worked – it just kept telling me to sign in when I was already signed in. Now I have an OpenID through MyOpenID.com but it won’t let me put my blog URL in – just the OpenID which directs it back to the myOpenID site, not my blog – very annoying!!!
I would like to use your fix but I really don’t know how or where to put it
Can you explain in a bit more laymens terms. I’m not very savvy with coding..
Thanks a lot
2 February at 1:34 pm
It is just a plugin.
You should save it to some kind if file like “openid.php” and copy to your blog dir / plugins directory.
After it, activate plugin in wordpress admin – that’s all.
I hope it will help you.
14 April at 3:48 pm
Всем привет
Посещаемый сайт у Вас
Хочу преобрести ссылки на вашем сайте
Харьков
В центре и можно слева в сообщениях. Ну или каких-либо других интересныхрекламных мест.
Возможно по тематике вашего проекта подойдёт для рекламы сайта
для этого проекта могу заказать более дорогостоящие статьи и обзоры.
Поясните, как вы работаете?
Хотелось бы постоянно заказывать статьи, и др. надеюсь эти сайты подойдут для ваших посетителей.
Я покупал рекламу на разных сайтаx всего за 1950 руб. в квартал за ссылки.
Жду вашего ответа тут, напишите вашу цену. Нужно для отчёта
17 April at 3:21 pm
Русские не продаются :)