external links filter module

Updated Tue, 22 Nov 2011

drupal external links filter (elf) module
http://drupal.org/project/elf 6.x-3.0-alpha2 on 6.22
starting from 6.x-2.1 on 6.14

Main function:
Adds little icons to links, so that you know it's a link.

Example function:
Making links more prominent without chaning the actual link title's style. This is useful, for example, if your theme does do not show overly prominently.

Manage:
Site configuration > External links filter
Here you can administer two effects:
- add a standard icon to all external links different for (link and mail link)
- make all external links open in a new window
Site configuration > Input formats
- checkmark the filter types that should use this external links filter

Testlink: http://en.wikipedia.org/wiki/Wikipedia:Icons

But I'm not seeing any icons. Changing themes to see if the cause might be there. But it's the same on Garland. Checking documentation: there is no documentation. I wonder what I'm missing here. Checklist: Permissions are set. What else. Checking Site configuration >
Input formats. Yes, it needs to enabled in the input filter(s). It works now.

Another module exists with similar functionality: http://drupal.org/project/extlink. That is based on java script, not filter.

The elf filter approach appears to have one advantage, the links can be made to behave differently according to input formats/user groups. The extlink module can be modified to behave differently in different settings as well.

Elf error
20 November 2011, using Drupal 6.22, Elf 6.x-3.0-alpha2, PHP 5.2.22, MySQL 5.0.92-community.

This came up as I edited content. Obviously related to the contributed Elf external links filter module.

warning: DOMDocument::saveHTML() expects exactly 0 parameters, 1 given in /home/janroe/public_html/sites/all/modules/elf/elf.module on line 181.
M

Links will not show on the page, after a node has been created or edited. Existing nodes remain unaffected as long as no cron has been made (like checking for site updates). Clearly after cron and updating other modules *all* site links disappeared and all pages have the error message, one for each link. Unpleasant business.

The error does not let me place a link to the discussion about it! So, suggestion to copy paste: drupal.org/node/1261568. Here, a contributor says that the module requires PHP 5.3.6 or higher. Another user has the same problem with PHP 5.3.8. My site uses PHP 5.2.22, which, in fact is quite with the times.

For the moment, disabled the elf module. Replacing it with the extlink module http://drupal.org/project/extlink. After upload, find it under module heading "User interface".

After cache flush, the links reappear: www.drupal.org/node/1261568.
Elf error not resolved as of 22 November 2011.

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <h2> <h3> <div>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
Thanks for your help in stopping spam.
Fill in the blank