I am trying to create a filter for the word Amazon, to replace it with the generic affiliate link they give me. When I create the filter, anything after the work amazon in my page text is being removed, up to a certain length which i haven't completely figured out yet.
My filter looks like this:

[code]
Amazon|AmazonOnly local images are allowed.
[/code]

I have a page on my site which is showing the problem in action if you'd like to send me a message, I'll give the link.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AppleBag’s picture

That didn't work right. If you send me an email of where I can send the code to replace to, I'll send,

jaydub’s picture

You can send me a message through my Drupal user page.

http://drupal.org/user/46257/contact

AppleBag’s picture

Hi jaydub

Has there been any update to this since we last emailed about it? (the length of the replacement text being too long issue)

jaydub’s picture

Status: Active » Needs review
FileSize
1.45 KB
2.08 KB

Can you try the attached patch? You might want to update from CVS or download a dev snapshot if you are not using the latest d5 or d6 release. Be sure to use the patch for which version of Drupal you are running.

AppleBag’s picture

Status: Needs review » Reviewed & tested by the community

I installed the current dev version, and then patched it (D5), and ran the update script, and it's working great. I also made a small change on mine to the edit form, turning the textfield into a text area so it would accept more than 255 characters. Turning it into a textarea also enables editors like FCKEditor to come into use there, if desired. I saw a couple of other areas that the same change may be useful, but I left those alone for now.

Thanks a million for fixing this jaydub. =)

jaydub’s picture

Version: 5.x-1.0 » 6.x-1.x-dev
Assigned: Unassigned » jaydub

setting to 6.x and putting on my radar again.

mxh’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Closed (outdated)

Drupal 6 support ended on February 24th 2016. https://www.drupal.org/drupal-6-eol