PDA


View Full Version : No pm popup on main page just on forum (How Do I do this)


BrentWilson
05-02-2005, 03: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.

BrentWilson
05-08-2005, 11:58 PM
bump

Brian
05-09-2005, 11:44 AM
If you remove this code from your forum/includes/vba_cmps_include_bottom.php file then that should do the trick.
if ($shownewpm)
{
eval('$pmscript = "' . fetch_template('pm_popup_script') . '";');
$footer .= str_replace('"private.php', '"' . $vboptions['bburl'] . '/private.php', $pmscript);
}