Плагин wp-noexternallinks некорректно работает.
Более поздние версии вообще не работают.
Установил все галочки кроме “Выключить подмену путей для ссылок “.
Тег more, нажимаю “читать далее” и мне открывает пост в новом окне.
Другие ссылки тоже открывает в новом окне.
Мне нужно чтобы ссылки на more открывались в этом же окне (target=self).
А другие ссылки в новом окне (target=blank).
Уже два дня бьюсь над сокрытием внешних ссылок! lgg24ggvx@mail.ru
Более поздние версии версии работают. Просто у тебя на сервере PHP4. А под него я плагин не конфигурирую.
Более старые версии работают с PHP4, но они кривые немного – как в случае со ссылкой “more”.
Могу только посоветовать сменить хостинг на нормальный с поддержкой PHP5 :)
I don’t know if this topic was covered, as russian aint my language, and google refused to translate your page for me – so here goes.
After using for a week or so, your plugin works great. Only thing I notice, it doesn’t work on sidebar links!??? can it work on these?
My settings are:
Mask links in your posts YES
Mask links in comments YES
Mask comments authors`s links YES
NEW!!!
Add rel=nofollow for masked links (for google) YES
Add target=”blank” for all links (links will open in new window) YES
Surround masked links with link tag (for yandex search engine) NO
Disable url rewrite of all links (you can be OK with just noindex tag and rel=nofollow) YES
Exclude URLs that you don`t want to mask (all urls, beginning with those, won`t be masked). Put one adress on each line, including prefix (for example, “http://jehy.ru”) GNETWORK.COM.AU
Unfortunately, wordpress doesn’t have any filters for processing sidebar links. I also find it very inconvenient – but can’t do anything about it.
There’s no way way to process links in sidebar, or theme elements.
If you need to put links in sidebar, you can either add there text widget with masked links code, or write own widget, which supports masking links.
В принципе можно посоветовать ручками проставить префиксы на все сайдбарные ссылки. Но если они там генерятся автоматом. То возможно обрабатывать их через ob_start (вроде так) естественно это поможет только в том случае, когда ссылки генерятся на уровне php. Если же они вставляются туда через JS то тут скорее стоит использовать JS для изменения префиксов ссылок.
Навешивать туда output buffering – безумно тормозно, больно для сервера, и просто нерационально :)
Проще всего – конечно, ручками.
Сайдбары через JS – вообще чур меня ))
А у меня плагин работает с ошибками . Первый раз при переходе по ссылке — переходит, второй раз пишет — You were going to the redirect link, but something did not work properly.
и в конец пути добавляет точку с запятой ;
В чем может быть проблема? Стоит PHP5 и WP Super Cache.
Интересная проблема. Но зашёл в ваш блог – всё вроде как работает корректно… Если есть проблемы – свяжитесь со мной по скайпу (jehy_rus), включите плагин, и посмотрим вместе.
c 2.7 плагин работал отлично, после обновления до 2.8 плагин ставит только rel=nofollow. А target=”blank” и подмена путей перестали работать! версия плагина как была 2.15 так и осталась, хостинг тот же :).
Hi.
Sorry it took me so long time to do smth with that plugin :)
I added “javascript” to list of default hardcoded exclusions – now everything should be ok.
Thanks for feedback, I put link to your blog on plugin page in gratitude.
also. I’ve forgot. To make it fully compatible with WordPress Mu, so you activate it globally and in every new blog get the first configuration how you want to:
Hmm. I think that if you add activating script there, it will update options every time somebody goes to admin area :)
There really are several things which must be made if plugin is used with wordpress mu, and I think that webmaster should make what he wants in particular case – it’s not so complicated.
For MU it’s better to completely remove any admin scripts and hardcode plugin options – it will optimize performance.
Только что специально обновился до 2.8.2
Как видите, всё отлично работает.
Между прочим, сообщение “не работает” – очень информативно, сразу понятно, с чем именно у вас возникли неполадки, и я сразу могу исправить, чтобы всё заработало, не так ли? ;)
Вообще не работает… Вернее я так думал сначала, но потом выяснил, что на главной в анотациях все таки меняется ссылка. Но меняется для всех даже внутриблоговых (забыл как это правильно называется). Сайты комментаторов не экранируются, и в самом посте тоже.
Эта проблема уже многократно поднималась – с вероятностью 99.9% у вас некорректно написанная тема, и ссылки не проходят через необходимый фильтр. Текст ссылки для комментариев в теме должен получаться функцией comment_author_link. Если вы его дёргаете напрямую из базы, пропуская все фильтры, то я разве что ob_start ob_end могу делать, чтобы ссылки подменять.
На первой же странице комментариев эта проблема и её решение подробно описаны. Но, конечно, гораздо проще сказать “не работает” :)
Hi, Great plug in.. thank you… I am wondering if there is any way I can modify this to mask the link in my post title. Some of my posts have a title that links to an external topic somwhere else. Is this possible?
Then you have to add to apply filter “comment author” or smth like that on link generated by plugin – inside of plugin code.
There is no other way my plugin can fix that link…
Hi,
I love your plugin, but I have a question.
If I use it within posts that has some referral links (to PTC sites and others) does the target site will see the referral URL or the masked URL?
I’m asking this, because I’m afraid that someone click a referral link and the target site doesn’t assume the referral!
Здравствуй, Jehy,
а как можно заставить маскировать ссылки из custom fields? У меня ID, $key, true); ?> прописан в single.php – отображает ссылки в посте. Я понимаю, что твой плагин маскирует только content и comments, но есть ли панацея для кастомного поля? или единственный выход, это выводить поле в content?
Спасибо
Hi, if you use this, do you basically cheat your link exchange partners? (whether that’s desirable or not..)
I mean, is it really that Google just can’t process the link and therefore does not see your link as a link to their site? Then if the other site links back to you, then it’s considered a one-way link?
If your partner needs a direct link, then yeah – it is a bit cheating.
Google does not process this link as direct – and it’s the only difference and the purpose of plugin – to make external links which don’t waste your site’s PR.
22 May at 1:32 am
yihaa – jehy ;)
nice, very nice plugin!
23 May at 1:39 pm
Плагин wp-noexternallinks некорректно работает.
Более поздние версии вообще не работают.
Установил все галочки кроме “Выключить подмену путей для ссылок “.
Тег more, нажимаю “читать далее” и мне открывает пост в новом окне.
Другие ссылки тоже открывает в новом окне.
Мне нужно чтобы ссылки на more открывались в этом же окне (target=self).
А другие ссылки в новом окне (target=blank).
Уже два дня бьюсь над сокрытием внешних ссылок!
lgg24ggvx@mail.ru
23 May at 1:50 pm
Более поздние версии версии работают. Просто у тебя на сервере PHP4. А под него я плагин не конфигурирую.
Более старые версии работают с PHP4, но они кривые немного – как в случае со ссылкой “more”.
Могу только посоветовать сменить хостинг на нормальный с поддержкой PHP5 :)
28 May at 4:02 am
I don’t know if this topic was covered, as russian aint my language, and google refused to translate your page for me – so here goes.
After using for a week or so, your plugin works great. Only thing I notice, it doesn’t work on sidebar links!??? can it work on these?
My settings are:
Mask links in your posts YES
Mask links in comments YES
Mask comments authors`s links YES
NEW!!!
Add rel=nofollow for masked links (for google) YES
Add target=”blank” for all links (links will open in new window) YES
Surround masked links with link tag (for yandex search engine) NO
Disable url rewrite of all links (you can be OK with just noindex tag and rel=nofollow) YES
Exclude URLs that you don`t want to mask (all urls, beginning with those, won`t be masked). Put one adress on each line, including prefix (for example, “http://jehy.ru”) GNETWORK.COM.AU
Any ideas?
28 May at 8:00 am
Unfortunately, wordpress doesn’t have any filters for processing sidebar links. I also find it very inconvenient – but can’t do anything about it.
There’s no way way to process links in sidebar, or theme elements.
If you need to put links in sidebar, you can either add there text widget with masked links code, or write own widget, which supports masking links.
3 June at 2:02 pm
В принципе можно посоветовать ручками проставить префиксы на все сайдбарные ссылки. Но если они там генерятся автоматом. То возможно обрабатывать их через ob_start (вроде так) естественно это поможет только в том случае, когда ссылки генерятся на уровне php. Если же они вставляются туда через JS то тут скорее стоит использовать JS для изменения префиксов ссылок.
3 June at 10:57 pm
Навешивать туда output buffering – безумно тормозно, больно для сервера, и просто нерационально :)
Проще всего – конечно, ручками.
Сайдбары через JS – вообще чур меня ))
25 June at 1:42 pm
А у меня плагин работает с ошибками . Первый раз при переходе по ссылке — переходит, второй раз пишет — You were going to the redirect link, but something did not work properly.
и в конец пути добавляет точку с запятой ;
В чем может быть проблема? Стоит PHP5 и WP Super Cache.
29 June at 3:01 am
Интересная проблема. Но зашёл в ваш блог – всё вроде как работает корректно… Если есть проблемы – свяжитесь со мной по скайпу (jehy_rus), включите плагин, и посмотрим вместе.
29 June at 2:52 am
I’ve got a problem with javascript code. I’d like to make the plugin do not mask the javascript code (any link with code javascript: in it)
That because my theme uses them for the links and in this case the links don’t work.
Is there anyway to solve this?
I get the redireccion page instead but is javascript and doesn’t work that way
Thank you!
29 June at 3:03 am
Okay, I’ll disable masking for javascript links. Please wait for plugin update – I’ll try to make it tomorrow…
29 June at 3:10 am
Thank you so much!!
30 June at 2:24 pm
c 2.7 плагин работал отлично, после обновления до 2.8 плагин ставит только rel=nofollow. А target=”blank” и подмена путей перестали работать! версия плагина как была 2.15 так и осталась, хостинг тот же :).
6 July at 2:21 am
Хмм. Странно. У меня сейчас стоит 2.8, и проблем нет…
Если поймёте, что у вас случилось, отпишите, пожалуйста.
30 June at 3:06 pm
Ok i’ve done it for you. Actually you did the hard work so i’ll be pleased to help you.
in wp-noexternallinks-parser.php find:
#no masking for those urls (0 is the own blog/site url):
Add before:
//
foreach($matches as $var)
if (ereg(“javascript:”,$var))
return $matches[0];
//
With this the plugging will avoid any code line with “javascript:” so javascript pop-ups or (in my case) forum buttons will work.
Redirections will also work.
21 July at 4:38 am
Hi.
Sorry it took me so long time to do smth with that plugin :)
I added “javascript” to list of default hardcoded exclusions – now everything should be ok.
Thanks for feedback, I put link to your blog on plugin page in gratitude.
7 August at 3:00 pm
you are very welcome
30 June at 3:29 pm
also. I’ve forgot. To make it fully compatible with WordPress Mu, so you activate it globally and in every new blog get the first configuration how you want to:
in wp-noexternallinks-options.php after:
register_deactivation_hook(__FILE__,array($this,’wp_noextrenallinks_DeActivate’));
Add:
update_option(‘noexternallinks_mask_mine’,’1′);
update_option(‘noexternallinks_mask_comment’,’1′);
update_option(‘noexternallinks_mask_author’,’1′);
update_option(‘noexternallinks_add_nofollow’,’1′);
update_option(‘noexternallinks_put_noindex’,’1′);
With this any new blog will get the options mask author, mask mine, mask comment, add nofollow and add noindex by default.
Also i could make (i think) that only the master admin in MU could be only one to see that option.
But i think this is good enought.
Wonderfull pluging by the way.
21 July at 4:44 am
Hmm. I think that if you add activating script there, it will update options every time somebody goes to admin area :)
There really are several things which must be made if plugin is used with wordpress mu, and I think that webmaster should make what he wants in particular case – it’s not so complicated.
For MU it’s better to completely remove any admin scripts and hardcode plugin options – it will optimize performance.
Thanks for feedback, again.
7 August at 2:59 pm
I coudn’t see that effect. But probably you are right.
21 July at 4:02 am
Не работает с 2.8.2
21 July at 4:19 am
Только что специально обновился до 2.8.2
Как видите, всё отлично работает.
Между прочим, сообщение “не работает” – очень информативно, сразу понятно, с чем именно у вас возникли неполадки, и я сразу могу исправить, чтобы всё заработало, не так ли? ;)
22 July at 2:28 pm
Вообще не работает… Вернее я так думал сначала, но потом выяснил, что на главной в анотациях все таки меняется ссылка. Но меняется для всех даже внутриблоговых (забыл как это правильно называется). Сайты комментаторов не экранируются, и в самом посте тоже.
22 July at 2:40 pm
Эта проблема уже многократно поднималась – с вероятностью 99.9% у вас некорректно написанная тема, и ссылки не проходят через необходимый фильтр. Текст ссылки для комментариев в теме должен получаться функцией comment_author_link. Если вы его дёргаете напрямую из базы, пропуская все фильтры, то я разве что ob_start ob_end могу делать, чтобы ссылки подменять.
На первой же странице комментариев эта проблема и её решение подробно описаны. Но, конечно, гораздо проще сказать “не работает” :)
23 July at 1:38 am
Такой функцией и получаю. Да и 2.7 работало все прекрасно.
23 July at 1:49 am
Это уже мистика, надо разбираться на месте.
Попробуй посмотреть, отрабатывает ли фильтр.
23 July at 1:51 am
Что именно обрабатывает? Или какой именно фильтр. В icq можно пообщаться?
29 July at 2:45 pm
Great plugin. The one thing, it does not seem to handle destination anchors.
For instance:
…href=”#section2″>Section 2Section 2<…
This renders anchors useless. Is there a way to have them ignored?
29 July at 10:02 pm
Yeah, you can just add “#” to plugin exclusions (on plugin settings page).
Later I will integrate it…
UPDATE: fixed in 2.171
30 July at 7:01 am
Hi, Great plug in.. thank you… I am wondering if there is any way I can modify this to mask the link in my post title. Some of my posts have a title that links to an external topic somwhere else. Is this possible?
Thank you,
Tom
30 July at 9:54 pm
As far as I know wordpress, it’s impossible to make post title link to somewhere external…
Do you use some kind of plugin for it?
2 August at 6:28 pm
It is within the Simple:Press Forum plugin, but I just added a “#” in the Excluded URLs list and it worded fine. Thanks.
3 August at 5:17 am
Yes.. I use a plugin that makes the post title link to an external site
3 August at 6:20 pm
Then you have to add to apply filter “comment author” or smth like that on link generated by plugin – inside of plugin code.
There is no other way my plugin can fix that link…
17 August at 6:02 pm
Невозможно сменить тему при включенном плагине. Хостинг mchost (shared)
17 August at 8:24 pm
К сожалению, без каких-то подробностей ничего не скажу – в первый раз у кого-то такая проблема, и даже не могу придумать, откуда она мога вылезти.
20 August at 4:28 am
Hi,
I love your plugin, but I have a question.
If I use it within posts that has some referral links (to PTC sites and others) does the target site will see the referral URL or the masked URL?
I’m asking this, because I’m afraid that someone click a referral link and the target site doesn’t assume the referral!
Thanks
28 August at 11:02 am
Hi. Unfortunately, I didn’t notice your message, sorry.
I just checked – target site sees the correct referral url.
28 August at 3:18 am
Классный плагин!
Хочу спросить, можно ли убрать внешние ссылки с кнопок на яндекс тиц, рамблер топ 100, мейл рейтинг?
28 August at 10:51 am
Если кнопки стоят внутри поста или страницы, то ссылки уберутся, а если они прописаны в шаблоне сайта – то только ручками.
15 September at 2:09 pm
Здравствуй, Jehy,
а как можно заставить маскировать ссылки из custom fields? У меня ID, $key, true); ?> прописан в single.php – отображает ссылки в посте. Я понимаю, что твой плагин маскирует только content и comments, но есть ли панацея для кастомного поля? или единственный выход, это выводить поле в content?
Спасибо
16 September at 11:53 am
Да, к сожалению, я ничего не могу поделать с кастомными полями.
16 September at 5:33 pm
Hi, if you use this, do you basically cheat your link exchange partners? (whether that’s desirable or not..)
I mean, is it really that Google just can’t process the link and therefore does not see your link as a link to their site? Then if the other site links back to you, then it’s considered a one-way link?
17 September at 2:02 pm
If your partner needs a direct link, then yeah – it is a bit cheating.
Google does not process this link as direct – and it’s the only difference and the purpose of plugin – to make external links which don’t waste your site’s PR.
19 September at 8:11 pm
Is there a way to add the FEATURE:
-outgoing link warning, add a costum page to warn users that they are about to leave your web site .
like drupal dose here
http://drupal.org/project/ext_link_page
24 September at 5:51 pm
Sorry for late answer.
Yeah, of cause. You need only to remove “Header: Location…” and write custom leaving message. It’s really simple.
24 September at 5:12 pm
Doesn’t work on Google links or Yahoo News with image links.
24 September at 5:43 pm
Please show some kind of example, and how exactly it doesn’t work.
25 September at 5:48 pm
отличный плагин. единственный из всех заработал с ходу на всех сайтах. другие этим не отличались