The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Status Update 014
#1
This is a pretty hefty update.

Requires new SQL

Added pagination to users, pages, tomfoolery and maybe a few other places. It's easy to do other places and also to customize.

Pagination CSS looks a little weird on standard.css, but the other ones look good for the most part. I pushed the default bootstrap css as the default in the sql dump.

Started tabbed interface on the dashboard. I think we can still simplify those main panels.

Plus everything Brandin did with system logs as well as his new functions. I don't think the log feature is toggling properly. I ran out of time to check on this. See his post for more info...
https://userspice.com/forums/topic/statu...#post-5940

Thanks for everything!
  Reply
#2
Oh, I also started breaking the admin panel into different views. It was getting pretty unruly.
  Reply
#3
Downloaded and installed this version. I just got to work and don't have much time to look at it right now but here are my first impressions:

-The settings lists in the admin dashboard tabs are fairly long, I'd split them into 2-3 columns
-I love the pagination, what if we combine both JS files into one so users don't accidentally forget to include one of the files and waste time figuring out why things don't work as expected?
-The system log manager button to enable/disable isn't mapped to any jQuery and I can't immediately see what it's supposed to to.

I wasn't sure if Brandin would be making any notification changes so I haven't worked on them, but since he didn't I'll add the requested features from other threads. I'll see if I can tackle these and a few other things once things settle down today.
  Reply
#4
When I copied over the enable/disable buttons from places like the Cron Manager and System Logs Manager, I couldn't get them to work for some reason - and didn't have enough time to re-examine the code, so we should take that button out. I think they are fine to edit by default. Unless you guys would wish for them to be disabled by default in which case I'll have to rexamine the code.
  Reply
#5
It should be easy enough to re-code them. I still understand what exactly they should do, but if you explain it to me we can write out any PHP or jQuery needed.

---
Cosmetic changes-

admin.php (https://pastebin.com/EjGpWHqE):
-Set tab1 to active by default when $_GET['tab'] isn't set

views/_admin_site_settings.php (https://pastebin.com/jYscGBnY):
-Tabbing fixed
-Content moved into two columns at media screen size small and above
-Submit button centered

views/_admin_login_settings.php (https://pastebin.com/QwjQCqbi):
-Tabbing fixed
-Content moved into two columns at media screen size small and above
-Submit button centered
-This view has uneven columns because I didn't want to split up the oAuth settings
  Reply
#6
Here is all the JS related stuff in my project on system logs manager page:
http://pasted.co/fbd2df36

The #enable part is related to the button

The function after this makes them editable, then disables them

And the scripting for the button:
http://pasted.co/92c9fce5

I don't know why it is not working - on my end - it would load them, and they would show as links, but I could not edit them, until I removed the disable function and just let them be what they are by default.
  Reply
#7
Cool, I'll take a look into it.

---

Here's updated notifications code to add pagination and a site setting to specify when to auto-archive read notifications. There are new optional constructor parameters to specify whether to get current or all notifications and to specify the archive day limit. I've updated
Code:
includes/navigation.php
and
Code:
parsers/getNotifications.php
to default to the site settings.

Add site setting for days to keep notifications before archiving:
ALTER TABLE
Code:
settings
ADD
Code:
notif_daylimit
INT(3) NOT NULL DEFAULT '7' ;

Add notification setting to define archive status:
ALTER TABLE
Code:
notifications
ADD
Code:
is_archived
TINYINT(1) NULL DEFAULT '0' AFTER
Code:
is_read
;

Code:
parsers/getNotifications.php
: https://pastebin.com/j813VZEY
Code:
classes/Notification.php
: https://pastebin.com/X8Zry1RJ
Code:
includes/page_footer.php
: https://pastebin.com/kpqN19e9
Code:
includes/navigation.php
: https://pastebin.com/1rCCrYiM
  Reply
#8
This code should work now for your enable/disable button:
https://pastebin.com/jjrLY3kz

I moved all your code into the document.ready function, and fixed the elements that are affected.
  Reply
#9
Combining the pagination JS files broke them pretty much no matter how I tried it.

But I have a gift for breaking javascript.
  Reply
#10
I didn't see your changes. I had already split them. Let me push mine and then I'll go back and get your tabs. I made a lot of the same changes.

Thanks for your help.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)