vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Urgent Request - I need an extra "Are you sure" prompt when Removing Forums... (https://vborg.vbsupport.ru/showthread.php?t=40404)

Chris M 06-28-2002 02:32 PM

Urgent Request - I need an extra "Are you sure" prompt when Removing Forums...
 
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:
PHP Code:

// ###################### 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:
PHP Code:

// ###################### 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

Code:

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*


All times are GMT. The time now is 11:17 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01140 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete