The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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" |
#2
|
||||
|
||||
so specific URLs or all URLs?
|
#3
|
||||
|
||||
All urls. Thanks, john
Also important to note the link might have a title or already have a rel attribute |
#4
|
||||
|
||||
New plugin
Product: vBulletin Title: 0 - rel="#" to links Hook: postbit_display_complete PHP Code:
Change somerel to whatever you want. |
2 благодарности(ей) от: | ||
nitra1000, TheLastSuperman |
#5
|
||||
|
||||
Thanks alot for that, really helped (have added a comment to the code crediting this post)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|