The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
newreply - editing the message on newreply
So along the lines of my previous post I need to make a manual change to some posts. I accomplish this by using the hook postbit_display_complete and making replacments to $post['message']. But now i realize the posts are also displayed on "New Reply" (in reverse order) so now I urgently need to make the same change I make in postbit_display_complete into the new reply but off hand I don't see what hook to use... also what would be the variable that contains the message because I don't think it would be $post['message'] - I'm thinking there's a seperate "postbit" for newreply?
--------------- Added [DATE]1286122707[/DATE] at [TIME]1286122707[/TIME] --------------- UPDATE I'm using newreply_post_complete hook and $reviewmessage as the string to be edited but like with the "preview" code this isn't working at all. Code:
if ($vbulletin->userinfo['field16'] == "No" OR $vbulletin->userinfo['styleid'] == 20 OR $show['guest'] OR strpos($reviewmessage, "domain1.com") OR strpos($reviewmessage, "domain2.com") ) { $reviewmessage = str_replace('old <html> code', 'new <html> code', $reviewmessage); } update 2 I change the hook to: newreply_forum_reviewbit and it seems to be working. :up: |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|