aLinks 2.0 Bug Fixes
I had been happily using the “aLinks” WordPress plugin by Sean Hickey for quite a while. The plugin automatically generates links for keywords that you specify. Version 1 did everything that I wanted, but it broke when I upgraded to WordPress 2.6. I found that Sean had written a completely new aLinks 2.0, so I installed it and found that it mostly worked, though with some minor problems.
Then Sean seemed to vanish from the face of the Internet. His web server went off line, making it impossible to even send him an email, and has been that way for several months.
So I had no choice but to go into the source code and fix the bugs that were bothering me. Since the code is released under the GNU General Public License (GPL) I am making the revised plugin available to anyone who is interested.
New WordPress 3.x compatible version.
Old WordPress 2.x compatible version.
Bugs Fixed
- aLinks failed to respect word boundaries when identifying keyphrases, causing links to be inserted in the middle of words.
- aLinks was ignoring the “classes” setting which allows you to assign one or more CSS classes to the links.
Warning
If you are upgrading from aLinks 1.x you must first export your keyphrases to a file, then import them back in after you have installed version 2.0. Otherwise you will lose your keyphrases.
Other Notes
To install, unzip and copy the entire alinks directory to your wp-content/plugins directory.
The documentation is included as a PDF file in the alinks/includes directory.
Tags: aLinks
November 15th, 2008 at 11:03 am
Hi thanks for providing this alink upgrade! What happen to Sean? anyone know, its a web mystery.
It would be great if you continue to upgrade this from time to time.
November 25th, 2008 at 6:55 am
Hi, thanks for updating this. I updated to 2.6 and then had massive issues with not being able to log in even though the site was working to public view.
I finally tracked it down to Alinks not working, then found your blog. However, I copied files over to plugins dir and tried to activate but get the following message:
*/wp-content/plugins/alinks/alinks.php on line 100
any ideas?
As it probably is for you if you went to the trouble of re-writing the code, Alinks is a key element to my site traffic,
thanks Perry
November 25th, 2008 at 6:58 am
Sorry forgot to say that message was Parse error: syntax error, unexpected ‘{‘ in (my server address)/wp-content/plugins/alinks/alinks.php on line 100
P
November 27th, 2008 at 11:18 am
That’s pretty mysterious. The only things that come to mind are:
1) The file got corrupted somehow.
2) Maybe you’re using an old version of PHP? (older than version 5)
December 2nd, 2008 at 10:47 am
hi.
i try to install alinks 2 on my blog. i upload files, set up permisions on directories but when i trying to activate Alinks, i get this error:
lugin could not be activated because it triggered a fatal error.
Warning: require_once(Alinks/Cacher/Factory.php) [function.require-once]: failed to open stream: No such file or directory in /home/domains/esmar.eu/www_root/wp-content/plugins/alinks/alinks.php on line 40
Fatal error: require_once() [function.require]: Failed opening required ‘Alinks/Cacher/Factory.php’ (include_path=’/home/domains/esmar.eu/www_root/wp-content/plugins/alinks:/home/domains/esmar.eu/www_root/wp-content/plugins/alinks/includes:.:/usr/share/pear:/usr/share/php’) in /home/domains/esmar.eu/www_root/wp-content/plugins/alinks/alinks.php on line 40
I cant find Cacher/Factory.php but how i can resolve this problem?
December 2nd, 2008 at 11:22 pm
Paul,
Your installation should include the subdirectory
includes/Alinks/Cacher
which includes a file called Factory.php.
Make sure that you extracted and copied all the subdirectories from the .zip file.
December 3rd, 2008 at 11:59 am
Thanks JT, definitely using PHP 5. I also tried downloading the earlier Alinks 2 prior to your fix and got the same problem. Have installed a lot of others but Alinks is the only one I’ve had issues with.
I will try downloading it again, but the fact the the fault replicates from your version and the original makes it seem like something else.
I checked the PHP and although no expert I couldn’t see any obvious unclosed comments above line 100 that might have caused it stop at the next ‘}’…
Perry
December 4th, 2008 at 6:50 pm
Perry,
A fresh install of the entire alinks directory tree, first deleting whatever is currently there, is probably the best thing to try.
December 11th, 2008 at 12:11 pm
where is Tags to Keyphrases factory?)
i try to use from original package – but it didnt work
December 14th, 2008 at 6:53 pm
The Tags to Keyphrases Factory is broken with WordPress 2.6 or higher. I’ll see if I can figure out what it wrong.
December 26th, 2008 at 10:59 pm
Hi Jonathan!
Thank you VERY MUCH for the “fix”!
You don’t know how many hours I’ve tried different
updates and different permissions, etc…
You have saved my blog! :)
Jim Furr >
December 26th, 2008 at 11:24 pm
Oh No!
I got it to load into the Plugins but now I get junk on my post!
—————————————————————————-
Fat Loss Review: Revealed! Diet For Idiots
Friday 26 December 2008 @ 4:56 am
Warning: file_put_contents(/home/fatloss4/public_html/fatloss-blog/wp-content/plugins/alinks/temp/cache/keyphrases/all.php) [function.file-put-contents]: failed to open stream: Permission denied in /home/fatloss4/public_html/fatloss-blog/wp-content/plugins/alinks/includes/Alinks/Cacher/File.php on line 161
Fatal error: Class ‘Alinks_Cache_Exception’ not found in /home/fatloss4/public_html/fatloss-blog/wp-content/plugins/alinks/includes/Alinks/Cacher/File.php on line 166
—————————————————————————-
Please help!
Jim >
December 27th, 2008 at 3:13 am
Also,
I use:
PHP version 5.2.5
WP: 2.7
Thanks,
Jim >
February 25th, 2009 at 8:42 am
How to import keyphrases.ale or from other spreadsheet?
how to set spreadsheet for importation?
February 25th, 2009 at 11:15 pm
Importing: Select the aLinks tab, then select the Import/Export tab. Note that you can ONLY import things previously exported from aLinks. Only the aLinks 2.0 XML format or the old .ale format are supported.
It might be possible to write a script to convert the contents of a spreadsheet to the aLinks XML format.
April 10th, 2009 at 3:07 pm
Hey, everybody,
I downloaded the file to my plugins directory and everything was going fine, until I tried to add my first “default” type key phrase… the form field came up, and it let me add the info, but when I clicked “ok” nothing happens.
Any suggestions?
April 10th, 2009 at 3:12 pm
Wait, strike that last comment… the links render on the actual blog, but no grid appears in my admin panel listing those links.
So now I cant unlink nor adjust my links… any suggestions?
(again)
April 11th, 2009 at 12:13 pm
[...] in a blog post? I installed alinks on my WP site and it works great. Try the link below: bugfox blog Blog Archive aLinks 2.0 Bug Fixes Good [...]
April 25th, 2009 at 3:56 am
I just started working with WP and a friend recommend aLinks to me. After being unable to find it anywhere else, I stumbled upon it here. If it works right and serves it’s purpose… Well, I’ll gladly help with the development. ;-)
Thanks.
May 26th, 2009 at 10:39 am
[...] supported by its developer, however you can get an updated (modified) version of aLinks here: – http://bugfox.net/blog/2008/11/14/alinks-20-bug-fixes/ A WordPress plugin that automatically links keywords in your blog post. By Sean [...]