The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Find and replace in postbit
im trying to replace this string in postbit and postbit_legacy template through a plugin.
Code:
<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /> this is what im messing around with but cant find a solution to. Code:
$search = '<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />'; $replace = '<div id="drcltrav" style="background-color:'.$color.';"><span>'.strtoupper($drcltrav_lgth).'</span></div>'; $vbulletin->templatecache['postbit'] = str_replace($search, $replace, $vbulletin->templatecache['postbit']); $show['avatar'] = true; |
#2
|
||||
|
||||
Try using the following search string:
PHP Code:
|
#3
|
||||
|
||||
PHP Code:
Code:
<img src="" alt="DrCustUmz's Avatar" border="0" title="DrCustUmz's Avatar"> $show['avatar'] = true; |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|