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
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.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
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
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.
Oh, that would be great, please show me 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
Comments
what exactly would you like to do? give me an example. And I'll try to provide a solution on how to adjust.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •You wrote:
What strings in class.autolink.plugin.php shoudl I edit to add keywords and links?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Likewise you can alter the css
to display "autolinked as highlighed, underlined, dotted underline, etc.
just modify plugins/AutoLink/design/al.css
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@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.
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@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
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Neither of these works. Even
$search = '/(\w+)/u';searches only English (Latin).Now I'm digging into system locale settings.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@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
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Oh, that would be great, please show me the code!
Yes, this is cyrillic.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •@peregrine
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •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.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •