Sponsored Content
Top Forums Web Development Update to Member List - New Click Options Post 303025986 by Neo on Friday 16th of November 2018 07:04:05 AM
Old 11-16-2018
Update:

I added this jQuery to the memberlist HTML page:

Code:
$(function() {
  $("a#memberlisttitle").click(function() {
    var n = localStorage.getItem("mlstate");
    if (n === null) {
      n = 0;
    }
    n++;
    if (n > 2) n = 0;
    localStorage.setItem("mlstate", n);
    if (n == 0)
      $("a#memberlisttitle").attr({
        href: "/members/list/?order=DESC&sort=lastvisit&pp=30"
      });
    else if (n == 1)
      $("a#memberlisttitle").attr({
        href: "/members/list/?order=DESC&sort=lastvisit&pp=30&showall=1"
      });
    else if (n == 2)
      $("a#memberlisttitle").attr({
        href: "/members/list/?order=DESC&sort=lastvisit&pp=30&showall=2"
      });
  });
});

Originally tried doing this in view, but because the page reloads, it was easier to do in jQuery. If I changed the memberlist to load using AJAX and not reloading the page (maybe something to do in future), then Vue.js would have been the better choice.

Basically, you can click on the text in the top left corner of the list and cycle through 3 different views and if you have a view you particularly like, the value is stored in your browser localStorage so you will always have that view until you change it, even it you log out, close your browser, and log back in.

Image

This started out as a Vue.js project, but I ended up doing it in jQuery and not Vue, LOL
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Left click select,right click copy

Hi all, when i ssh into my linux machine, i can do a double left click and then right click to paste it anywhere i need. However, on the actual machine, in the terminal, i cannot do a double left click and right click to paste it. i need to right click and select Copy followed by click click... (1 Reply)
Discussion started by: new2ss
1 Replies

2. Shell Programming and Scripting

grep option to print the first match of each member of a list?

Hello, How to grep only the first match of each (unique) member of a list from the file? Say member.list contains: member1 member2 member3and table.tab which is sorted by the first 2nd and then 3rd column. member1 1.2 234 member1 1.1 234 member2 3.3 111 member2 2.3 222 member2 2.3 111... (5 Replies)
Discussion started by: yifangt
5 Replies

3. UNIX for Dummies Questions & Answers

List of 'if -f' options - AIX / Korn Shell

Hi all, Can someone point me in the right direction for a manual on the various statement options for 'if'. Basically I have a piece of code which says: if ] and I wondered what the -f was. I know the '!' means not equal.. As usual any help much appreciated.. (5 Replies)
Discussion started by: Grueben
5 Replies

4. What is on Your Mind?

Update to Navbar - Member Info and Avatars

Hey, I moved the user information in the top right on the navbar to side panel and replace it with a clickable avatar image. If you have an avatar, you will see your avatar and if you don't you will see some default one (will change it to something better later). If you have any notification... (53 Replies)
Discussion started by: Neo
53 Replies

5. What is on Your Mind?

Update to Posts - Member Info Icon and Badge

Hey, Upgrade (step 1) the posts, by putting a "user info" icon in the top right and making it so it toggles the user info. The user info icon has a badge which shows the number of posts. I will have to dig around in the code more to get the total posts thanks and other badges working; but... (22 Replies)
Discussion started by: Neo
22 Replies
ftpscrub(8)						      System Manager's Manual						       ftpscrub(8)

NAME
ftpscrub - scrub the proftpd scoreboard file of stale entries SYNOPSIS
ftpscrub DESCRIPTION
The ftpscrub command provides a way to scrub the scoreboard file on demand, at times which suit the site best. This should be run periodi- cally on sites which run proftpd in inetd mode. OPTIONS
-h,--help Display a short usage description, including all available options. -f,--file scoreboard-file Specify the full path to proftpd's run-time scoreboard file (configured via the ScoreboardFile directive in proftpd.conf ). If proftpd's default directory has been changed via this directive, ftpscrub must either be recompiled, or this option must be used in order to find proftpd's scoreboard. -v,--verbose Reports additional information while scrubbing the scoreboard. FILES
/usr/sbin/ftpscrub /var/run/proftpd.scoreboard AUTHORS
ProFTPD is written and maintained by a number of people, full credits can be found on http://www.proftpd.org/credits.html SEE ALSO
inetd(8),ftp(1),proftpd(8),ftpwho(1),ftpcount(1) Full documentation on ProFTPD, including configuration and FAQs, is available at http://www.proftpd.org/ For help/support, try the ProFTPD mailing lists, detailed on http://www.proftpd.org/lists.html Report bugs at http://bugs.proftpd.org/ November 2008 ftpscrub(8)
All times are GMT -4. The time now is 03:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy