It looks like you're new here. If you want to get involved, click one of these buttons!
I am retrieving FormatBody in a plugin via this function
public function DiscussionController_AfterCommentFormat_Handler($Sender) {
$Object = $Sender->EventArguments['Object'];
$Body = $Object->FormatBody;
.... now I want to modify $Body and truncate. works fine
Ideally if there is a way to do something like this (I know it is incorrect code)
$Object->FormatBody = ""; $Sender->EventArguments['Object'] = $Object
But I don't want to have the original $Object->FormatBody; printing
short of modifying the helper functions and commenting out
// echo $Object->FormatBody;
Any other ideas of what can be done?
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
Comments
solved. duh!
$Object->FormatBody = $newtext;
factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!
Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant
- Spam
- Abuse
- Troll
1 • Off Topic Insightful Awesome 1LOL •