PDA

View Full Version : Newreply.php mod


Dean C
01-02-2003, 09:14 AM
I was looking in editpost.php yesterday and it performs a query which remembers whether the user is subscribed or not when editing the thread...

I tried using that query so it remember whether the user is subscribed or not in newreply.php but i couldn't get it to work..

Basicallay if the user is already subscribed i want the "email notification" box to ticked... and if they're not subscribed i don't want it to be ticked..

I couldn't fathom this one :(

- miSt

Chris M
01-02-2003, 12:43 PM
Er...

Unless I am mistaken, this code already exists in newreply.php:

if ($bbuserinfo[emailnotification]!=0) {
$emailchecked="checked";
}

:bored:

Satan

Dean C
01-02-2003, 12:45 PM
yes i know that d00d

Xenon
01-02-2003, 01:17 PM
chris that one is just if the users has enabled always use email-notification in profile or not :)

mist, put directly after that from chris this:
if ($checkid=$DB_site->query_first("SELECT subscribethreadid FROM subscribethread WHERE userid='$bbuserinfo[userid]' AND threadid=$threadid")) {
$emailchecked="CHECKED";
} else {
$emailchecked="";
}