The vB Geek

Go Back   The vB Geek > vB Geek Products > Geek Auto-Linker

Geek Auto-Linker GAL automatically links keywords that users type in posts to advertising hover pop-ups.

This is an HTML example. Isn't it just wonderful?!?!
  Learn how to remove ads

Thread Tools Display Modes
Old 02-19-2008, 06:53 AM
cellarius's Avatar
cellarius cellarius is offline
Junior Member
Join Date: Dec 2005
Posts: 20
Geek Auto-Linker Pro License Holder 
Default Ampersand in Replacement Text

Hi Morgan,

me again :o

I need ampersands replaced in my GALs (as in B&B or Bed & Breakfast). With version 4 this was possible (iirc). I tried escaping (\&), HTML-entities (&) and Unicode (&), but nothing works. In fact, the "&" is always stripped out when saving (so B&B -> Bamp;B and B&#38B -> B#38B).

Any idea how phrases with an "&" can be autolinked?
Reply With Quote
Old 02-21-2008, 09:22 PM
Morgan's Avatar
Morgan Morgan is offline
Join Date: Jul 2006
Posts: 2,255
Geek Article and Review System License Holder GeekMart License Holder Geek Auto-Linker Pro License Holder Geek Advertising Banner License Holder Geek Gazette License Holder 

Word characters (\w), space (\s), comma (,), apostrophe ('), and dash (-) are currently allowed. Other characters get stripped, but if you want to allow other characters, you'd need to edit the strip_text function, appearing in both the gal_class_core.php and gal_class_dictionary.php files. Look for all instances of [^\w\s,\'\-] and add whatever you want to the character class, making sure to not allow unsafe characters. [^\w\s,&;\'\-] might do with either B&B or B&B but it'd need a test .
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Old 02-29-2008, 09:15 AM
cellarius's Avatar
cellarius cellarius is offline
Junior Member
Join Date: Dec 2005
Posts: 20
Geek Auto-Linker Pro License Holder 

Works fine, though in the gals & have to be masked as html-entity. Also added the "." in order to be able to autolink things like
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iTrader replacement? plantswap Geek Article and Review System 2 08-05-2008 02:28 AM
Replacement variable gldtn Geek Article and Review System 1 03-14-2008 04:17 PM
How do I wrap text around the user info box, and change the alignment of the text? ziggy Geek Article and Review System 1 03-12-2008 12:30 PM
Replacement Similarities... Jaxel Geek Auto-Linker 1 07-30-2006 07:24 PM
Replacement Variable Manager troubles. RBasil Geek Auto-Linker 3 11-28-2005 09:07 AM

All times are GMT. The time now is 02:19 PM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.