The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Messaging System Mods
#16


Quote:@mudmin @firestorm – do you guys know how to make these checkboxes multiple purpose driven by buttons? If I understand them correctly, the “unarchive” prior to the ID in the name of the checkbox is what drives the if (!empty($_POST['unarchive'])) command…or am I wrong on this? If I am right, do you know how I can go about leaving the name attribute with the ID only, and appending a prefix of “unarchive” or “delete” based on the button selected (unarchive selected threads or delete selected threads)?

if i understand your question correctly,
Code:
$_POST['unarchive']
is triggered by the name attribute like:

Code:
<input type="checkbox" class="check-all" name="unarchive"/>

checkout the backup script in admin_backup.php and where commented as existing backups you'll see a working example of checkboxes triggered by buttons, you can select single,mutiple or all checkboxes then select the delete button to submit them, the php is near the top of the page at the end of the php logic.

hopefully I've got the correct gist of your question
  Reply


Messages In This Thread
Messaging System Mods - by Brandin - 06-28-2017, 05:02 PM
Messaging System Mods - by Brandin - 06-28-2017, 08:00 PM
Messaging System Mods - by firestorm - 06-29-2017, 09:40 AM
Messaging System Mods - by Brandin - 06-29-2017, 10:11 AM
Messaging System Mods - by firestorm - 06-29-2017, 12:02 PM
Messaging System Mods - by Brandin - 06-29-2017, 12:05 PM
Messaging System Mods - by mudmin - 06-29-2017, 01:22 PM
Messaging System Mods - by jdmfarms - 07-03-2017, 12:28 PM
Messaging System Mods - by Brandin - 07-03-2017, 01:02 PM
Messaging System Mods - by firestorm - 07-03-2017, 08:51 PM
Messaging System Mods - by faguss - 07-04-2017, 04:20 PM
Messaging System Mods - by Brandin - 07-04-2017, 06:22 PM
Messaging System Mods - by Brandin - 07-06-2017, 02:20 PM
Messaging System Mods - by Brandin - 07-06-2017, 05:25 PM
Messaging System Mods - by Brandin - 07-06-2017, 05:37 PM
Messaging System Mods - by firestorm - 07-06-2017, 07:16 PM
Messaging System Mods - by faguss - 07-10-2017, 11:45 AM
Messaging System Mods - by Brandin - 07-13-2017, 10:03 PM
Messaging System Mods - by karsen - 07-15-2017, 03:53 PM
Messaging System Mods - by Brandin - 07-18-2017, 12:05 PM
Messaging System Mods - by karsen - 07-18-2017, 06:38 PM
Messaging System Mods - by Brandin - 07-19-2017, 12:14 PM
Messaging System Mods - by Brandin - 08-05-2017, 06:31 PM
Messaging System Mods - by mudmin - 08-05-2017, 08:59 PM
Messaging System Mods - by mudmin - 08-05-2017, 09:29 PM
Messaging System Mods - by Brandin - 08-05-2017, 09:31 PM
Messaging System Mods - by mudmin - 08-05-2017, 09:38 PM
Messaging System Mods - by Brandin - 08-05-2017, 09:39 PM
Messaging System Mods - by mudmin - 08-05-2017, 09:43 PM
Messaging System Mods - by mudmin - 08-05-2017, 09:45 PM
Messaging System Mods - by Brandin - 08-05-2017, 09:49 PM
Messaging System Mods - by mudmin - 08-05-2017, 10:09 PM
Messaging System Mods - by Brandin - 08-06-2017, 10:30 AM
Messaging System Mods - by mudmin - 08-06-2017, 12:54 PM
Messaging System Mods - by mudmin - 08-06-2017, 12:54 PM
Messaging System Mods - by Brandin - 08-06-2017, 01:01 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)