
11-07-2010, 07:09 PM
|
|
|
Join Date: Aug 2010
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by bigrover
GOT IT!
Find at line 685 in vS_HHR_Engine.php:
PHP Code:
if (!($purpose == 'dopost' AND $show['toolbar_showtogroups_button']))
{
$message = preg_replace("/\[(" . $this->tags['SHOWTOGROUPS'] . ")=("|\"|'|)([0-9,]+)\\2\](.*)\[\/\\1\]/siU", $replacement, $message);
}
Replace with:
PHP Code:
if (!($purpose == 'dopost' AND $show['toolbar_showtogroups_button']))
{
// hack trying to fix HIDE without options
$message = preg_replace("/\[(" . $this->tags['SHOWTOGROUPS'] . ")\](.*)\[\/\\1\]/siU", $replacement, $message);
$message = preg_replace("/\[(" . $this->tags['SHOWTOGROUPS'] . ")=("|\"|'|)([0-9,]+)\\2\](.*)\[\/\\1\]/siU", $replacement, $message);
}
The regex was not going to match on to the tag without the options included. I basically duplicated the function of the HIDE-POSTS match above it at line 662. Works great now.
Now to figure out the toolbar button prompt issue. The provided instructions are incorrect and lead to a dead-end.
|
I did this and now both hide and showtogroups makes the message invisible to everyone. I don't even see "This message is hidden", its just as if I didn't type anything.
|