PDA

View Full Version : newreply - editing the message on newreply


BirdOPrey5
10-03-2010, 02:51 PM
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 1286122707 at 1286122707 ---------------

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.


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);
}


--------------- Added 1286122964 at 1286122964 ---------------

update 2

I change the hook to: newreply_forum_reviewbit
and it seems to be working. :up: