BrentWilson
05-02-2005, 02:57 PM
You can check out my website http://mustangevolution.com and can see its heavily modified from stock.
What I would like to do is make it so that when a member opens the main page he doesn't get a pm pop up alert if he has a new pm... but only if he goes to the forum should he get the pop up.
Anyone know how to do this. I have tried some different if conditions but nothing:
Tried
if (THIS_SCRIPT != 'mainpage' AND $shownewpm)
{
eval('$pmscript = "' . fetch_template('pm_popup_script') . '";');
$footer .= str_replace('"private.php', '"' . $vboptions['bburl'] . '/private.php', $pmscript);
}
and:
if (THIS_SCRIPT != 'adv_index' AND $shownewpm)
{
eval('$pmscript = "' . fetch_template('pm_popup_script') . '";');
$footer .= str_replace('"private.php', '"' . $vboptions['bburl'] . '/private.php', $pmscript);
}
and removed the above code all together but the problem is if I go to the mainpage first and then the forum I got no notification anywhere.
What I would like to do is make it so that when a member opens the main page he doesn't get a pm pop up alert if he has a new pm... but only if he goes to the forum should he get the pop up.
Anyone know how to do this. I have tried some different if conditions but nothing:
Tried
if (THIS_SCRIPT != 'mainpage' AND $shownewpm)
{
eval('$pmscript = "' . fetch_template('pm_popup_script') . '";');
$footer .= str_replace('"private.php', '"' . $vboptions['bburl'] . '/private.php', $pmscript);
}
and:
if (THIS_SCRIPT != 'adv_index' AND $shownewpm)
{
eval('$pmscript = "' . fetch_template('pm_popup_script') . '";');
$footer .= str_replace('"private.php', '"' . $vboptions['bburl'] . '/private.php', $pmscript);
}
and removed the above code all together but the problem is if I go to the mainpage first and then the forum I got no notification anywhere.