The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
hook for posting data?
I have coded alot in my days but I am new to VB and PHP.. Anyways I want a simple peice of code that will go through a users post right before they post it or preview it and replace string 'x' with string 'y'..
Lets say for the sake of exmaple it will detect the word "infinity" and replace it with the character "∞" This is what I have so far (for the main part of the plugin) and I have no clue where to go? any guiding hands?? Code:
<plugin active="1" executionorder="5"> <title>Math</title> <hookname>newpost_process</hookname> <phpcode><![CDATA[if (THIS_SCRIPT == "index" and $vbulletin->options['math_onoff']) { $mathpost .= ''; $template_hook['postbit_messagearea_start'] .= 'mathpost'; }]]></phpcode> </plugin> |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|