The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
cool switches in the settings - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.4 (https://userspice.com/forums/forumdisplay.php?fid=27) +--- Thread: cool switches in the settings (/showthread.php?tid=1444) |
cool switches in the settings - LBC - 04-18-2019 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! RE: cool switches in the settings - anasaz - 04-18-2019 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 RE: cool switches in the settings - LBC - 04-18-2019 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. RE: cool switches in the settings - mudmin - 04-18-2019 (04-18-2019, 01:26 PM)LBC Wrote: Thank you Anasaz, 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. RE: cool switches in the settings - LBC - 04-20-2019 Okay, thanks. I will dive into that. I may have to bother you with some more questions though RE: cool switches in the settings - mudmin - 04-20-2019 No prob at all |