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
cool switches in the settings
#1
Hey,

Those switches on the settings page are so cool!

Can I use those on other pages as well? If so, can someone give some tips on how to make them work?

Thanks!
  Reply
#2
These swicthes are actually Boottstrap checkboxes http://www.bootstraptoggle.com/ & https://mdbootstrap.com/docs/jquery/forms/switch/

CSS based can be found here: https://www.w3schools.com/howto/howto_css_switch.asp
  Reply
#3
Thank you Anasaz,

Actually I know they are Bootstrap, and I know how to make them...I just dont know how to make them work (through the use of php).
Especially in US.
  Reply
#4
(04-18-2019, 01:26 PM)LBC Wrote: Thank you Anasaz,

Actually I know they are Bootstrap, and I know how to make them...I just dont know how to make them work (through the use of php).
Especially in US.

So those in particular if you notice that they all have classes like text or number on them. If you look at the bottom of admin.php you will see that I'm making an ajax call and using that to validate the info. So you could totally just create your own class names, copy the javascript at the bottom of admin.php and copy the parser file that is called by the ajax to do the exact same thing I'm doing with the settings table.
  Reply
#5
Okay, thanks. I will dive into that.

I may have to bother you with some more questions though Wink
  Reply
#6
No prob at all
  Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)