// get post data
$rbumpq = $db->query_read("SELECT pagetext FROM ".TABLE_PREFIX."post WHERE postid=".$threadinfo['lastpostid']);
if($db->num_rows($rbumpq)) {
$bumppost = $db->fetch_array($rbumpq);
$db->free_result($rbumpq);
$bumppost = $bumppost['pagetext'];
$bumppost = $bumppost . "\n\nBump: " . $newpost['message'];
unset($newpost);
// now update the post
require_once('./includes/functions_editor.php');
require_once('./includes/class_dm.php');
require_once('./includes/class_dm_threadpost.php');
$dm =& datamanager_init('Post', $vbulletin, ERRTYPE_STANDARD, 'threadpost');
$arr = array('postid' => $threadinfo['lastpostid']);
$dm->set_existing($arr);
$dm->set('pagetext',$bumppost);