What does this plugin do?
The internal link plugin allows blog owners to easily link to posts and pages within their wordpress blog without having to enter the full URL. Use wiki style tags to define a link when writing a post the sites permalink structure is maintained. The wiki code can be inserted manually or by using the wysiwyg plugin.
Can I see it in action?



Here are some screenshots taken using the plugin. The first is an example of the wiki code in the editor and the last two are examples of the wysiwyg plugin.
Download
Latest version of RB Internal Links from the WP Repository
Requirements
WordPress version 2.5+
PHP version 5+ (try Rb Internal Links v0.22 if you still have PHP 4)
Installation
- Upload the “rb-internal-links” folder to your wp-content/plugins/ directory.
- Activate the plug-in
- Browse to Options > RB Internal Links to take a look at preferences
- Start internally linking
Usage
To manually link a page:
At the place you would like the link to appear write
link text
Exchanging post-slug or post-id for the post or page slug/id you would like to link to.
Note:
- you can specify a class for the link using …
class="my_class"
… - you can specify a target for the link using …
target="_new"
… - you can specify an anchor to target on the linked page using …
anchor="top"
… - you can put html in the text parameter, e.g. text=”<img src=’myimage.gif’ />”
Using the tinymce wysiwyg editor:
- Make sure you’ve ticked “enable wysiwyg editor” on the plugin preferences page.
- A new icon will appear on the wysiwyg toolbar, it looks like a page with a link over itClicking on the icon will pop-up a toolbox
- Select the category the post you need is in or alternatively, choose pages for a list of pages
- Click on the post or page you wish to link to
- Fill in the optional properties for the link
- Click “Insert Link”
Got a bug or request?
Please get in touch via the contact page until I can get this moved to Github!
Donate
Creating this plug-in was never about making any money but a few people have requested a way of making a small donation. I’m not going to turn them away! 🙂 Donations can be made via paypal using the button below.
Warning: Declaration of Social_Walker_Comment::start_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::start_lvl(&$output, $depth = 0, $args = Array) in /home/customer/www/arronwoods.com/public_html/blog/wp-content/plugins/social/lib/social/walker/comment.php on line 18
Warning: Declaration of Social_Walker_Comment::end_lvl(&$output, $depth, $args) should be compatible with Walker_Comment::end_lvl(&$output, $depth = 0, $args = Array) in /home/customer/www/arronwoods.com/public_html/blog/wp-content/plugins/social/lib/social/walker/comment.php on line 42
Thanks for the great plugin!
Two things:
– The meta tag for the popup window in tmce_plugin.php on line 29 should be changet to utf-8, in order to facilitate showing of unicode encoded post/page titles.
– In the same file, on line 17, it is safer to return the article->ID instead of post_name, since you cannot guarantee that the slug will be non-unicode (in which case it is an ASCII encoded string, totally unreadable). Maybe this can be made an option – what to return, the id or the slug.
Best regards, Vanco
Hey Vanco, some great suggestions that I’ll build in this evening. Thanks for your feedback.
great plugin!!!
thanks
is possible this plugin works in mode code (instead of Visual Editor, )
thanks
Hi there 😉 Cool plugin, waited for something like that all the time 😉
But I do have an issue with using the plugin in the wysiwyg editor. The icon does not appear. I downloaded the plugin, put the top folder and all its contents (including all subfolders etc pp)in the plugin folder of my wordpress installation and activated it. Then I checked whether all settings are ok, which they are.
But the icon does not display.
I am using WP 2.3.1. Any ideas?
Oh, and by the way, there still is a Thumbs.db in the image folder 😉
And one more thing 😉
The URL in the plugin information does link to http://www.blograndom.com/extras/ – guess there is ‘/blog’ missing somewhere.
How to link to a category page?
Hi Cohen,
It looks like it will be a very handy plugin. I intstalled, activated, and updated the options but I am unable to see it when I am making a post.
Where should it show up?
Steve
Hi Stephen,
There seem to be a few people having problems getting the tinyMCE icon to appear. It should be in the visual toolbar and it looks like a page with a link in front of it.
If it isn’t there could you let me know what version you are currently using and also what other plugins you have installed as I have tried to install the plugin in multiple scenarios and it always appears for me. Very odd!
And Daniel:
At the moment you can’t link to category pages or anything other than a post or page. I’m noted you’re request, and it is something I hope to build in soon along with the ability to link to other items, such as blogs in the blogroll.
I am running WordPress 2.3.1 and had the problem with the icon not showing up in TnyMCe.
Solution:
I checked the source of the live site and got this:
—————————————-
/* */
——————————–
It should be the following on lines 122-124 of rb-internal-links.php:
——————————–
echo ” . “\n” . ‘// //’ . “\n” . ”;
——————————–
works fine now!
it commented out my code for real! ahah
ok…
so just replace any instance of * /
with / /
with no spaces between the two characters
Thanks Aleks! I can’t figure out why the /* */ comments wouldn’t work but I’ve taken your word for it and changed them to normal line comments.
The new version, with an updated rb-internal-links.php is available from http://downloads.wordpress.org/plugin/rb-internal-links.zip
Please let me know if this finally solves the mystery of the tinymce icon.
Nice plugin!
Do you have any idea why I can only see the inserted link if I switch to the Code tab and back, or hard refresh the page? (WP2.2.1)
Cheers
3stripe
I’ve added in some code so that on the preview tab the ugly code is hidden and replaced with the value in the text=”*” parameter.
Make sure you have some content in the text=”” parameter, if you do and it still shows nothing in the preview tab please send over the link code so I can test it out.
Hi Cohen!
I cant see my text, when i add an internal link.
I usually select text and afterwards add the internal link. When I apply the link now, the text is invisible although it works after publishing on the frontend.
also if I edit the post/page after publishing I can see the text with the yellow background.
Ah ok I see the problem! The text doesn’t appear straight away if you insert the link using the tinymce plugin. As soon as you go to code and back to preview it works again.
I’ll need to run the ‘code hide’ function when the link is inserted in order for it to appear straight away.
thanks for the plugin,
another thing displaying the links, is it possible that it adjusts to the url-pattern setting for permanent-links? i am having pattern without id (like http://server/about/email), but the rb-plugin still genereates something like http://server/?page_id=31 . it would be fantastic if all internal links would match or adjust to the chosen permanent-link pattern.
hi again,
i was mistaken. it was an old link which appeared and i thought it got generated by your plugin.
never the less now i see that plugin does not work (i cannot see an icon top right in editor nor manual rich editing works).
i followed installing procedure as you suggested and got only success-messages and rb-links options are all activated.
i am using standard wordpress 2.3.2.
rb-link plugin version is v0.13.
all good things are three…
weird, without having done something the plugin works now. the only difference between now and some ours ago is, that i logged off and loggin again to the admin area. could this be the reason?
Hi there! Firstly great plugin!
Just one thing, would it be possible to allow linking to anchors? This would make linking to sections on the same page much easier! Atm I can’t see a way to do that with your plugin.
~Shiv
I stumbled upon a strange behaviour:
if you’re using Admin Menu http://www.semiologic.com/software/publishing/admin-menu/
this menu is inserted in the head of the link pop-up window, too?
Woah, glad to see the plugin is gaining some popularity! Sorry about everyone having issues, I’ll do my best to get to the bottom of them.
manuel: I’m not sure why the plugin didn’t appear until you’d logged out and back in again. This doesn’t make much sense and I haven’t heard of it before. Did you disable any other plugins at the same time?
Shiv: Do you mean linking to anchors on the page you are linking to? If so this sounds like a great idea, I’ll add the code for this. If not, I’m not sure what you mean?
Marco: I’ll have to test this out, not sure whether its my fault or admin menu’s. :p
yes, does not make real sense, for i don’t think either that logging in/out would change a plugin’s state in wordpress architecture.
but logging in/out was the only thing i remember which changed.
other plugins (flexi-pages, akismet) weren’t activated or deactivated.
never the less… let’s be grateful that it works now.
Seems as the Admin Menu is adding the trouble, as Dashbar works fine.
okay thanks cohen!
did you do an update on the code hide funtion position?
’cause otherwise i will have a look on it if i can change it (my scripting skills are not really intermediate 😉
flo
Cohen,
TNX for a great plugin.
As for the “linking to anchors”: What I would like to generate (and I think that’s what Shiv wants, too) are links like
http://www.mysite.com/links#some_super_program
doesn’t work for me either… wp 2.3.1, plugin is activated, no errors. icon doesn’t show up in the editor, tried some tricks, logged in and out. nothing. any ideas?
very strange behavior! i did nothing *except* for logging in and out several times, and now it seems to work! seems like instability its best.
Nice plugin. Should really be implemented by default. But how do I remove a link in visual mode?
I have 2.3.1 and I cannot view the icon in the visual editor. I have the latest rb_internal-links.php file too.
Thank you for releasing this plugin! I cannot wait to get it working 😉
Thanks for all the feedback again, sorry its taken a while to get back to you all.
Flo – I’ve just released an updated version that inserts the correct code in to the visual version.
Everyone with missing tinymce icon until logging in/out – I’m not sure what could be causing this, is it possible that the tinymce settings are cached? As long as the admin panel reports the tinymce plugin as enabled there is nothing stopping this working.
Anders – I have also come across the issue of removing a link in visual mode, not sure how to get around this yet. Anyone have any ideas?
Oh and I almost forgot, Andreas – I’ve added the anchor feature you were after.
Hi and thanks for the plugin, just what we were looking for today! I initially also had problems with the icon not showing up (in Firefox), but open IE and it was there, so I just hit shift+F5 in FF and the icon showed after clearing the cache.
There’s one issue though. We’re running WP 2.3.2 and when we’re adding a link with this plugin, it doesn’t show in the visual editor. Only when we click Save (and continue) does the link show up. Wouldn’t be such a problem for us, but harder to ask a client to remember the roundabout procedure.
Has anyone else run into this?
Short follow up – also seems to create a problem with the code view mode. When having added a link (which doesn’t show up) and then clicking on “code view”, it freezes both my FF and IE browser.
Secondly, if I highlight part of a word in the visual editor and then click to add a new link with this plugin, the popup window breaks that link apart for the “Link text” field, so that part of the link appears after and outside of the textbox.
Great plugin though, just a few glitches, at least in my setup.
Sounds great! I can’t find the new version though. The download link up in the article seems to go to the old version (0.13). At least I couldn’t find any hints on how to use the new anchor feature. Any idea?
Just came back to check if there’d been a reply to my comment and spotted that the first of my two posts didn’t get listed, perhaps it got deleted when I posted twice?
Anyway, what I originally said was that in my WP 2.3.2, when I add a link with the plugin, it doesn’t show up until I click save. OK if you know about it, but can be confusing.
Hi Karl/Andreas,
I may have forgotten to commit this to the wordpress plugin site but both these features have now been implemented.
I’ll put this up tonight and then let you know so you can download it and test it out. Hopefully some of these bugs will be fixed.
It’s brilliant, I love it and it’s exactly what I’ve been waiing for. Thank you!
Hi Cohen,
I wrote a little while ago as I was having problems getting your plugin to work. It somehow magically started working (just got to love computers!)
This is a very cool plugin and it makes my life soooo much easier.
Thanks a million,
Steve
Hi Cohen,
Thanks, that sounds great with a new version, I’ll check back and hopefully it’ll be up soon. At the moment, if I’ve added a link, place the cursor somewhere close to it and switch to code view in the WP editor, it crashes my entire computer (running Vista and Firefox 2), racking the memory consumption up to 98-99%, forcing me to re-boot!
Apart from that, still works great though.
Sorry about the MASSIVE delay in getting the new version out, I’ve just committed it to the wordpress plugin cvs. Please give it a go and let me know how you get on.
Cohen –
Thanks ever so much! It now shows straight away and doesn’t crash the computer; it’s working flawlessly. Great job!
Thanks, Karl
Works absolutely fine, thank you very much! 🙂
Hi Cohen,
Thanks for this great plug-in. I’ve just installed your latest version (2-12-08) on WP 2.3.3 but am still having the problems previous users spoke of:
– The tinymce wysiwyg editor button not showing up
– And after manually inserting the link in the code editor, the link doesn’t appear on the visual side. The link does appear in the published post, but still doesn’t in the visual editor when I got back to edit it.
I tried logging in and out again, but no luck there. I do have several other plug-ins installed though, including cforms II which has a wysiwyg editor button too. So maybe it’s conflicting with that.
Other plug-ins I have installed are: Google XML Sitemaps, WordPress.com Stats, No Self Pings, Akismet, Flexi Pages Widget, My Category Order, AddThis Social Bookmarking Widget (drop-down), Google Analytics for WordPress, cfoms II, and All-in-one SEO pack.
Sorry for the really long post and thanks again,
Aubrey
P.S. In the readme, the “For more information visit” link has a typo – it says link instead of links and takes you to a 404 NOt Found page:
http://www.blograndom.com/blog/extras/rb-internal-link-plugin/
Hi again,
I just wanted to let you know that about 5-6 hours after I sent my comment yesterday, the wysiwyg editor button appeared and is still here after a day. And it works great.
Thanks!
Awesome plugin! Almost exactly what I’m looking for. Would you be interested in adding a search box? For larger blogs with hundreds or thousands of posts, browsing by category isn’t very efficient. Great work though! Works like a charm.
Hello Cohen,
after deactivating the plugin or removing the plugin directory, TinyMCE shows up with an empty textbox for every post – wether it includes an internal link or not. The sourcecode box is empty, too. How can I deactivate or uninstall the plugin without having such problems? An upgrade to 2.3.3 german didn’t help. Only a new installation and activation of your plugin helps.
Robert
Hi Cohen,
I really like the simplicity of the plugin in action as I have used on several sites.
Now I seem to have an issue with it when running php on a Windows machine (not a great combination, but necessary for various reasons) and in the pop up-window I DO see my pages and posts, but when I click on either one, the page just continues to load – “Loading posts…”, but the pages or posts never show up.
It works fine on non-windows systems with the same setup, latest version of your plugin along with WP 2.3.
Any idea what can be the fault?
Thanks!
I love this plugin thanks
Can you make it so I can create a link to the category?