The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
It is being called, however I believe the template gets evaled before it is called, so doing the preregister of the variable may not be working. (You'd have to do a str_replace in the evaled template instead.)
|
#12
|
|||
|
|||
I think the problem might be that the template name used by PMs is "postbit" and not "postbit_legacy", or at least that's what it shows in the html comments. Try changing the preRegister call to 'postbit', or just do preRegister twice, once each to 'postbit' and 'postbit_legacy', and see if that works.
BTW, if that is all the plugin code you don't need the ob_ calls, you could just replace the "echo"s with "$php_include = " and remove all the ob_ lines. Also, if you replace only the style= part instead of the entire <div> tag, it won't mess up the html even if the variable is blank. Edit: or it might be what Lynne said - I was typing while she posted. |
#13
|
|||
|
|||
Quote:
Quote:
I'll try with the just replacing the style, as that would be a lot easier and did not think of that, not quite sure how I didn't lol --------------- Added [DATE]1351021778[/DATE] at [TIME]1351021778[/TIME] --------------- Okay I did what you said, Kh99. Just make it edit the style, and add a background. Which works, it doesn't mass up any PM templates, and adds a background correctly. I appreciate your help with this. Thanks. |
#14
|
|||
|
|||
Quote:
In any case I guess it doesn't matter now. |
#15
|
|||
|
|||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|