The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to replace text in content - Please help
Hi,
i'm want to replace text or add tag <span> in content, ex: Code:
You may post new threads You may post replies You may post attachments You may edit your posts Code:
You <span>may post new threads</span> You <span>may post replies</span> You <span>may post attachments</span> You <span>may edit your posts</span> |
#2
|
|||
|
|||
You can probably take care of that in the Phrase Manager.
|
#3
|
||||
|
||||
No, i'm mean content in postbit ====> post['message']
|
#4
|
|||
|
|||
Please provide a screenshot showing what you want and a link to your forum.
|
#5
|
||||
|
||||
Quote:
Thanks! |
#6
|
||||
|
||||
anyone helps me?
|
#7
|
||||
|
||||
Đến lắm quảng cáo nhìn đau cả mắt.
|
#8
|
||||
|
||||
Please post in English. Thank you.
|
#9
|
||||
|
||||
I've done outside tags, but i don't know using random tags, here my code:
Code:
$content = "<span style="color:black;">hello word</span>, this is my <span style="color:black;">code!</span>...and nice to meet everyone!"; $find = array('#>([^<>]+)<([^/]{1,1})#'); $replace = array( '><span style="color:red;">$1</span><$2', '><span style="color:blue;">$1</span><$2', '><span style="color:white;">$1</span><$2'); $content = preg_replace($find, $replace, $content); Quote:
--------------- Added [DATE]1359091756[/DATE] at [TIME]1359091756[/TIME] --------------- i tried preg_replace to preg_replace_callback but don't work , please anyone help me! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|