![]() |
find and replace in a varible?
I'm looking for a way to search a stored varible (a post for example) for instances of a links and add a rel varible to it, in php...
So.... HTML Code:
<a href="someurl" HTML Code:
<a href="someurl" rel="somerel" |
so specific URLs or all URLs?
|
All urls. Thanks, john
Also important to note the link might have a title or already have a rel attribute |
New plugin
Product: vBulletin Title: 0 - rel="#" to links Hook: postbit_display_complete PHP Code:
Change somerel to whatever you want. |
Thanks alot for that, really helped (have added a comment to the code crediting this post)
|
All times are GMT. The time now is 03:48 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:
|