Sort Message Position 'messages generated from actions' box
6th May
<?php
// -----MESSAGES GENERATED FROM ACTIONS -----
if (47 == 47)
{
messages( array(
'block_start' => '<div class="action_messages">',
'block_end' => '</div>' . $_GET['blog'] ,
) );
}
// --END OF MESSAGES GENERATED FROM ACTIONS --
?>
The only reference to messages( is in
inc/_core_template.funcs.php [lines 555 to 560]
function messages( $params = array() )
{
global $Messages;
$Messages->disp( $params['block_start'],
$params['block_end'] );
}
So now find $Messages Oops! 73 files . . .
Ruled out
_adminUI.class.php
_resultsel.class.php
In reading the above file I can see that I may search for something like:
$Messages->add( T_(*),) so I could look for "Post has been updated"
Found in inc/items/items.ctrl.php : lines 377 to 387]]
// Execute or schedule notifications & pings:
$edited_Item->handle_post_processing();
$Messages->add( T_('Post has been updated.'), 'success' );
// REDIRECT / EXIT
header_redirect( $redirect_to );
// Switch to list mode:
// $action = 'list';
// init_list_mode();
break;
At line 373 before the above there is a reference to edited_Item->ID maybe I can use that.
echo ID as Instead of blog
OK modify post.main.php :
{if ($ItemCache->get_by_ID( $p ) == $edited_Item->ID}
<!-- MESSAGES GENERATED FROM ACTIONS -->
<?php
$url = $_SERVER['HTTP_REFERER'];
$start = strstr($url,'&p=');
$part = substr($start,3);
$end = strpos($part, '&');
$edited = substr($start,3, $end);
if ($Item->ID == $edited)
{
messages( array(
'block_start' => '<div class="action_messages">',
'block_end' => '</div>',
//'block_end' => '' . "Post ID = " . $Item->ID . "<br /> Edited Post ID = " . $edited,
) );
}
?>
<!-- END OF MESSAGES GENERATED FROM ACTIONS -->;