The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help need using str_replace($find,$add_before.$find, $output);
for the past week i've been trying to do the following code in php plugins and php files
Code:
if ($vbulletin->options[option1]){ $iptools = '<vb:if condition="can_moderate()"><a href="http://www.dnsstuff.com/tools/ipall/...t=0&ip={vb:raw post.ip}" alt="YoBroMoFo IP Tracker" title="YoBroMoFo IP Tracker"target="_blank"><img src="images/site_icons/account.png" border="0"></a></vb:if> '; $find = '<vb:if condition="$show['reputationlink']">'; $add_before = "$iptools". PHP_EOL; $output = str_replace($find,$add_before.$find, $output); } the peice of code is ina a template call postbit_legacy |
#2
|
||||
|
||||
Your problem is that the code is php and you cannot put php in a template.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|