Welcome, Guest. Please Login or Register.
November 26, 2024, 02:16:21 AM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  What's wrong here? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: What's wrong here?  (Read 5550 times)
HyperDev
Full Member
***
Posts: 210


Have drumsticks, will travel.

gtcproject@hotmail.com WWW
What's wrong here?
« on: February 19, 2004, 01:51:35 AM »
Reply with quote

Working on PM Alert mod. Again.

What's wrong with this:

if ($munred > 0 && $alertshow == 1) {
echo '<SCRIPT LANGUAGE="javascript">';
echo 'if (confirm("You have new Instant Messages! Read now?"))';
echo '{';
echo 'window.open(\'$boardurl/index.php?board=;action=im\')';
echo '}';
echo '</SCRIPT>';
$alertshow = 0;
}


For some reason it won't show the alert.
Logged

--JC

HyperDev Admin

Will drum for food TO PISS GIRLS OFF! (Only reason I'd do anything.)

Proud Member of HHS Drumline

Mach8 and [Unknown], I still don't know how you convinced me girls aren't evil.

And please, SAVE THE LLAMAS!!!
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...

WWW
Re:What's wrong here?
« Reply #1 on: February 22, 2004, 12:14:06 AM »
Reply with quote

Have you tried pasting your code straight into a test page preceded by:

$munred = '1';
$alertshow = '1';


?

FWIW, that works for me, so perhaps your problem lies elsewhere!

Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  What's wrong here? « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.053 seconds with 21 queries.