|
Geek Auto-Linker GAL automatically links keywords that users type in posts to advertising hover pop-ups. |
Advertisement | |
Learn how to remove ads |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
How to use & in keywords
I want to link a text that contains an &
When I enter it in the field, it gets stripped away. Any ideas? |
#2
|
||||
|
||||
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 word1&word2 or word1&word2 as the keyword, 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 |
#3
|
|||
|
|||
I tried both, word1&word2 and word1&word2, after changing the two instances of [^\w\s,\'\-] into [^\w\s,&;\'\-] in both .php files, but it doesn't seem to work. I even tried to rebuild the post cache, just in case, but no luck. Anything else we could try?
|
#4
|
||||
|
||||
Not sure, others were able to get this to work so the only thing I can suggest is to try again. IIRC people needed to use word1&word2 as the keyword because vB amps the &s unless HTML is allowed in posts, which it shouldn't be due to security reasons.
__________________
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 |
#5
|
|||
|
|||
Hmm, I finally got it going by specifying as a keyword both of the following: Word1 & Word2,Word1 & Word2 (with just one or the other I had no luck).
Thanks for telling me to try again! |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"&" in keywords? | john2k | Geek Auto-Linker | 1 | 11-03-2009 03:49 PM |
Periods in keywords? | john2k | Geek Auto-Linker | 1 | 11-03-2009 03:48 PM |
HTML special characters - $ and " being parsed to & and " | rtysmith | Geek Auto-Linker | 8 | 01-29-2008 07:26 PM |
Keywords in articles | Bytecon | Geek Article and Review System | 1 | 03-08-2006 08:56 AM |
Keywords & search | Lizard King | Geek Article and Review System | 2 | 11-22-2005 03:09 PM |