Quote:
Originally Posted by Stoebi
Hi
These lines should solve all problems which i had and others posted:
@Larrysw
Replace -> Post Replacements (Hook: postbit_display_complete)
Code:
//$this->post[message]
if ($this->registry->options['post_replacements_enabled'] == '1')
{
$replacments_array_mine = explode("|||", $this->registry->options['post_Replacements_option']);
foreach ($replacments_array_mine as $post_replace)
{
$post_explode_rple = explode("===", $post_replace);
$this->post['message'] = preg_replace("/\s(" . $post_explode_rple['0'] . ")\s?\b/iU", " " . $post_explode_rple['1'], $this->post['message']);
}
}
Edit:
This fine addon works fine with "Hide Links From Guests". You only need to set the "Execution Order" from 5 to 4 in "Plugin Manager" -> Guests will not see links in posts (Hook: postbit_display_complete)
Kind Regards,
Stoebi
|
thanks again Stoebi I will update the hack.