2009-04-17, 02:59 AM
I'm modifying myBB's post variables
see below for an example:
//created my function in globals.php
//in functions_post.php where $post['message'] must have my special sig
I globalized already the $post array and i can use it already in function but somehow the actual variable $post['message'] outside the function isnt getting updated...
is this the right way to set variables to a global array from w/in a function??
regards
TJ
see below for an example:
//created my function in globals.php
Quote:function addmysig(){
global $post;
$post['messsage'] . = "<br> Blah! </b>";
}
//in functions_post.php where $post['message'] must have my special sig
Quote:......
$post['message'] = $parser->parse_message($post['message'], $parser_options);
addmysig();
I globalized already the $post array and i can use it already in function but somehow the actual variable $post['message'] outside the function isnt getting updated...
is this the right way to set variables to a global array from w/in a function??
regards
TJ