Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Auto Link 1.1 - How do I add the hyperlinks ?
Carlo_13
✭
Hello,
For the person who created this plugin, how do I add the hyperlinks ?
Tks
Tagged:
0
Comments
what exactly would you like to do? give me an example. And I'll try to provide a solution on how to adjust.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Hi peregrine, tks for taking the time to answer my post.
I just want to add an automatic hyper links in everybody posts.
Let's I have to add an hyperlink for "Chocolate", every body you write chocolate in their post would get the word "Chocolate" hyperlinked.
You wrote:
What strings in class.autolink.plugin.php shoudl I edit to add keywords and links?
you can do it two ways.
Option 1
tag option
a) chocolate is a tag in your tagging database,
then it can be autotagged
if you choose the 3rd option in settings (tags is checked in settings in the plugin).
Option 2
creating your own directed links
choose the 2nd option in settings (links is checked in settings in the plugin).
if you want the word chocolate to be autolinked always to www.chocolate.com
Option 3 - lets say you made the changes in both option 2 and option1
meaning chocolate was a tag in your database, but was also a directed link (set up in option 2)
you could use the precedence checkbox (precedence option checkbox in dashboard gfor plugin to say which linkage take precedence when you click on it
e.g - when clicking on chocolate - should it go to www.chcolate.com or do a search of your discussions containing the tag chocolate.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Likewise you can alter the css
to display "autolinked as highlighed, underlined, dotted underline, etc.
just modify plugins/AutoLink/design/al.css
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@Carlo_13 and @est
do you follow?
I could change the plugin and give a settings for about 3 or 4 options for directed linkwords and linkage.
But I figured people would want more than 3 or 4 - so it is easier just for you to change the program. Because invariably someone would want just one more keyword.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine
Thank you so much! I'll try that.
I was waiting for this plugin for a long long time.... I am not lying:
http://vanillaforums.org/discussion/16632/plugin-create-automatic-hyperlink#latest
Let me know if it works for you - its alway cool if somebody uses a plugin that is developed and actually tells the developer, I believe.
If it doesn't work for you post your changes and error messages if any will sort it out.
the syntax with commas, etc has to be just right.
Too little positive feedback on users who use the plugins and themes in general, I think
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
@peregrine
Thanks a lot for sharing this plugin, it really helps to add internal linking to the site, and it works.
But... Can I make this plugin to work with international characters? E.g. with cyrillic.
you may be able to tinker with the $search variable
and the addition of some variant of
\p{M}
I'm not real familiar with internationalization or cyrillic or unicode
Perhaps someone else might have a solution
http://stackoverflow.com/questions/3538293/php-regular-expression-pcre-does-not-support-l-l-n-p
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
other options are to try for $search in class.autolink.plugin.php
$search = '/(\b\X{4,15}\b)/u';
or possibly
$search = '/(\b\p{Cyrillic}{4,15}\b)/u';
be interested if either of these work, if you want to report back @est
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Neither of these works. Even
$search = '/(\w+)/u';
searches only English (Latin).Now I'm digging into system locale settings.
@est
I don't think the unicode works well with the \b consequently the callback probably won't work. But a search and replace array works for cyrillic, let me know and I'll send you the code.
Here's a screenshot of cyrillic unicode with modified autolink.
I don't know cyrillic but I cut and pasted some words from here
http://en.wikipedia.org/wiki/Cyrillic_script_in_Unicode
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Oh, that would be great, please show me the code!
Yes, this is cyrillic.
@peregrine
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I tried the code, but it doesn't work. I think the problem most likely is in my server environment.
Anyway, thanks a lot for your help.