PDA

View Full Version : Urgent Request - I need an extra "Are you sure" prompt when Removing Forums...


Chris M
06-28-2002, 02:32 PM
Please...

Can anyone tell me how I would get an Extra "Are you sure" prompt when removing Forums via the Admin CP?

Weve had 2 accidents in the last 2 days concerning this...

The person yesterday thought he clicked "Remove Moderator", but infact clicked "Remove Forum"...

He didnt notice until it was too late after clicking the Yes button at the Prompt - Is there any way an extra prompt can be devised, so that it appears in Bold and a Bright Yellow Colour, so that the same mistake doesnt happen again?

Satan

Xenon
06-28-2002, 04:14 PM
open forum.php
find:
// ###################### Start Remove #######################

if ($action=="remove") {

doformheader("forum","kill");
makehiddencode("forumid",$forumid);
maketableheader("Confirm deletion");
makedescription("Are you sure you want to delete this forum?<br>It will remove all posts and subforums too!");
doformfooter("Yes","",2,"No");

}

replace with this:
// ###################### Start Remove #######################

if ($action=="remove") {

doformheader("forum","killforum");
makehiddencode("forumid",$forumid);
maketableheader("Confirm deletion");
makedescription("Are you sure you want to delete this forum?<br>It will remove all posts and subforums too!");
doformfooter("Yes","",2,"No");

}

// ###################### Start Remove Question2#######################

if ($action=="killforum") {

doformheader("forum","kill");
makehiddencode("forumid",$forumid);
maketableheader("Confirm deletion");
makedescription("Are you sure you want to delete this <font size=4>forum?</font><br>It will remove all posts and subforums too!");
doformfooter("Yes","",2,"No");

}

:D

Change the design like you want ;)

Chris M
06-28-2002, 06:31 PM
Thanks:)

Satan

filburt1
06-28-2002, 06:45 PM
Are you sure you want to delete this <font size=4>forum?</font>
LOL :D

Chris M
06-28-2002, 06:47 PM
It doesnt work:(

It causes a parse error...

Satan

Chris M
06-28-2002, 06:50 PM
Wait scrap that...

Satan

Chris M
06-28-2002, 06:51 PM
It does work now...:)

Weird...

Satan

Xenon
06-28-2002, 10:59 PM
np :)

filburt: *gg*