![]() |
How to exclude url tage
Hello,
I use plugin. But i need to exclude url's "Anchor Text" inside post's to NOT effected. Any help please? Thank you |
What hook is your replacement plugin using, is it before or after bbcode replacement?
|
postbit_display_complete
Thanks for help |
OK, there may be some more elegant way someone knows to do it (in which case, please post it), but here's what I came up with:
Code:
$word = array( |
You are wonderful kh99,
Its work like a CHARM Without any error, YOU ARE GREAT believe me. If you have a website just pm me the link with title, i will add link on my home page PR4 for your website. Grateful for you and Thanks a lot Quote:
I am sorry, There is problem on images TAG I need to exclude images IMG tags inside post's to NOT effected. I am sorry kh99, please help me to fix it. Thank you |
Yeah, I had a feeling you'd evenutally find a problem with that. It's hard to get stuff like that to be bulletproof (or at least it's hard for me).
Anyway, try this: Code:
$word = array( It's getting ugly now... |
Thats IT, :D:D:D:D
Great, I really very appreciate your patience and help, Thank you so much kh99. |
I would have searched for " google" or "google " (note the space) and replaced them with " <a href="http://google.com">google</a> " and the same for yahoo. Requiring the space as part of the string would mean www.google.com or http://google.com wouldn't be effected. The extra space introduced by the replacement is usually ignored anyway.
|
That's a good idea, that might have solved the OP's problem. I guess since it says "Anchor Text" in the first post I was thinking the problem was the text and not the url. But it might have been a translation thing because it makes more sense that the url would be the problem.
|
He seems to have edited the first post, I thought this was more in line with what he originally said but now I'm not so sure.
|
All times are GMT. The time now is 01:45 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|