2013-09-18, 08:33 AM
(This post was last modified: 2013-09-18, 08:35 AM by Dr_The_One.)
hello sir..i had done changes whatever mention here ..
And also changes mention in made at http://mods.mybb.com/reviews/hideuntilpost
pen plugin file and find;
PHP Code:
eval("\$post['attachments'] = \"".$templates->get("hideUntilPost_box",1,0)."\";");
and ADD the following code just after that line;
PHP Code:
return $post;
and
PHP Code:
$message = preg_replace("#\[lock\](.*)\[/lock\]#is",'$1',$message);
}
And add this on a new line:
PHP Code:
return $message;
And find:
PHP Code:
$msg = preg_replace("#\[lock\](.*)\[/lock\]#is",'',$msg);
}
}
And add this on a new line:
PHP Code:
return $msg;
even though its not working.
Please help me to be working.
(2011-12-26, 03:13 PM)ranjani Wrote: open plugin file (hideUntilPost.php) in a code editor (eg. notepad ++) ;
find below code in around line 178
function hideUntilPost_code($message)
change to below code & save the file
function hideUntilPost_code(&$message)
it should work ; checked on localhost - myBB 1.6.5
And also changes mention in made at http://mods.mybb.com/reviews/hideuntilpost
pen plugin file and find;
PHP Code:
eval("\$post['attachments'] = \"".$templates->get("hideUntilPost_box",1,0)."\";");
and ADD the following code just after that line;
PHP Code:
return $post;
and
PHP Code:
$message = preg_replace("#\[lock\](.*)\[/lock\]#is",'$1',$message);
}
And add this on a new line:
PHP Code:
return $message;
And find:
PHP Code:
$msg = preg_replace("#\[lock\](.*)\[/lock\]#is",'',$msg);
}
}
And add this on a new line:
PHP Code:
return $msg;
even though its not working.
Please help me to be working.