4x4 Mecca
06-09-2008, 02:51 PM
What I mean is, I have a plugin that is supposed to replace something in the postbit with additional info, but it repeats that additional info more for each poster in the thread, so for example their post count looks like this
Posts: 125!
next user
Posts: 36,588!!
Next user
Posts: 16!!!
and so on adding more ! every time, here is the code, and I'm using postbit_display_complete because it's the only one that actually even inserts the data. Thanks for your help
$stuff="!";
$lookfor='$vbphrase[posts]: $post[posts]';
$replace='$vbphrase[posts]: $post[posts] $stuff';
$vbulletin->templatecache['postbit_legacy'] = str_replace($lookfor, $replace, $vbulletin->templatecache['postbit_legacy']);
Posts: 125!
next user
Posts: 36,588!!
Next user
Posts: 16!!!
and so on adding more ! every time, here is the code, and I'm using postbit_display_complete because it's the only one that actually even inserts the data. Thanks for your help
$stuff="!";
$lookfor='$vbphrase[posts]: $post[posts]';
$replace='$vbphrase[posts]: $post[posts] $stuff';
$vbulletin->templatecache['postbit_legacy'] = str_replace($lookfor, $replace, $vbulletin->templatecache['postbit_legacy']);