Quote:
Originally Posted by aspen0
This made it work for me. My Plugin code nowlooks like
Code:
if($this->registry->options['hideimg_enabled'] AND $show['guest'])
{
$this->post['pagetext_html'] = preg_replace('/\[IMG\](.*)\[\/IMG\]/im', construct_phrase($vbphrase['hideimg_message'], $session['sessionurl_q']), $this->post['pagetext_html']);
$this->post['pagetext'] = preg_replace('/\[IMG\](.*)\[\/IMG\]/im', construct_phrase($vbphrase['hideimg_message'], $session['sessionurl_q']), $this->post['pagetext']);
}
|
Yeah that's pretty much what I'm doing - although it also seems to have affected random logged in members on certain styles (where they are logged in and can't see images). The crazy thing is that even if I disable the plugin it still hides the images for the logged in member, so it's as if the PHP logic itself has been stored in the post. If I edit and save the post as an admin after the plugin has been disabled it removes the logic and everyone can now see the image - anyone any ideas?