Loading...
 
Features / Usability

Features / Usability


User list second page :Solved:

posts: 26

Hello, I am coming back to revisit an issue that I still haven't found an answer to.

The user list has gotten long enough now to be two pages(17 names), but when I click to see the second page, it gives me a page that lists the first 7 names from the first page in reverse order.

Here is the URL http://www.community-resources.com/wiki/tiki-list_users.php?find=&offset=10&sort_mode=score_descexternal link

I have heard that this is just an issue for me and not a bug. What can I do to make it work properly?

Thanks,

Jason

posts: 3665 United States

Without admin access to your site, I can't use the URL you provided. However, the link appears to be incorrect. Try:

http://www.community-resources.com/wiki/tiki-list_users.php?find=&offset=10&sort_mode=score_desc instead. I don't know where the external (that you included in your post) came from.

Did you modify the tpl file?

-Rick

> Hello, I am coming back to revisit an issue that I still haven't found an answer to.
>
> The user list has gotten long enough now to be two pages(17 names), but when I click to see the second page, it gives me a page that lists the first 7 names from the first page in reverse order.
>
> Here is the URL http://www.community-resources.com/wiki/tiki-list_users.php?find=&offset=10&sort_mode=score_descexternal link
>
> I have heard that this is just an issue for me and not a bug. What can I do to make it work properly?
>
> Thanks,
>
> Jason

posts: 26

Thanks for getting back to me Rick. I copied that url from the address bar of the broken page. I tried your suggested link but it came up with the same results. I don't think that I changed the tpl file. If I did it was by mistake. If you want to log in as a user I could give you a temporary account, if that would help. Thank you very much for your help.

Jason

posts: 26

Here is another piece to the puzzle:

I have a dummy server with the same instalation of Tikiwiki on it that I use to experiment with. It has the same issue (not surprising as one was coppied from the other). I just created 30 dummy users to see what would happen:

Page one: http://www.thepropagandafactory.com/wiki/tiki-list_users.php Has entries 30-21

Page two: http://www.thepropagandafactory.com/wiki/tiki-list_users.php?find=&offset=10&sort_mode=score_desc has entries 20-11

Page three: http://www.thepropagandafactory.com/wiki/tiki-list_users.php?find=&offset=20&sort_mode=score_desc Has entries 10-1

Page four: http://www.thepropagandafactory.com/wiki/tiki-list_users.php?find=&offset=30&sort_mode=score_desc Should have my original 5 names, instead has entries 26-30

It seems like a simple code error, but I don't know how to fix it. Any help would be greatly appriciated.

Jason

P.S. if you want to log into this dummy server you can use admin PW admin.

posts: 26
.

posts: 3665 United States

I used the amin login on your demo site. I'm afraid I don't quite understand the issue.

You have a total of 35 users. Using the tiki-list_users.php page, I saw a total of four pages (10 on the first 3 pages, 5 on page 4) showing all 35 users. Note that the users are shown in order of SCORE — not user name or email.

I also reviewed the tiki-admin_users.php page. Again, I saw a 35 users on 4 pages. Using this page though, you can resort the list by name, email, etc., in order to make it easier.

As a comparison, I then changed your default page list from 10 to 50. Now all 35 users are listed on the same page in either list.

Can you elaborate on exactly what you were expecting to happen?

-Rick

posts: 26

Hi Rick,

I was just writing a reply, but it took me too long and it made me log in againfrown so I'll try to distill it down:

The problem is that the last page (page 4) should show the last 5 entries, but it shows the first 5 in reverse order. I just figured out that this is only in the "score" view, which is default. If the user clicks the "user" button, it reorders the names into alphebetical order and they are then displayed properly on all of the pages.

I tried to reset the number per page back to 10, but I am missing something. I set it to 10 on the tiki-admin_users.php page and hit enter. It changes it on that page but not on the tiki-list_users.php page. and It goes back to 50 when I return. (I tried clearing the cache) How did you set it permenantly?

If you could tell me how to set the default to "name" view and how to set the number per page, I will let this issue rest.

And Maybe, if I get it figured out, Ill write a bit for the documentation. wink

Thank you so much for walking me through this.

Jason

posts: 175 Canada

Hey Jason

Here are a couple of thoughts on your problem.

Your concern about the number of items per page. I think that as the number has been changed by the admin the admin will continue to see the same view on every visit. If this is changed then next visit you would see the new value. Each user would see what they have set the number of items to be. Mind you I am not sure what Rick did so there may be something I am missing.

Also I think the user list is not directly related to the admin user list. So changing the number of items per page at "admin user" will not affect the "user list".

The easy answer is to use a link that will do what you want. So for example you could go with something like this.

User List ascending

[tiki-list_users.php?offset=0&sort_mode=login_asc|User List ascending]

Which would give you this.

User List ascending This does not work here at TW as "This feature is disabled"

You could add other parameters to this link to do things such as show # of items per page or some other sort critera. Such as sort by country ect.

If you are useing the main general menu then you can change the link with admin menus.

The tricky answer is to change the sort order in the files. If you look at the tiki-list_users.php or tiki-list_users.tpl I think you will find the chance to change it.

Hope that helps, James

Oh, I changed the theme on the site. I hope I set it back to the way that it was.

posts: 26

Hi James,

"I think that as the number has been changed by the admin the admin will continue to see the same view on every visit"
I am changing it by the admin and it changes temporarily on that page, but won't keep the change or aply it to the user list.

"Also I think the user list is not directly related to the admin user list. So changing the number of items per page at "admin user" will not affect the "user list"."
Some how rick did it that way.

I will spend some time investigating the ideas about making a new link.

Don't wory about changing the theme, that server is set up for me to experiment on anyway.

Thank you very much for your input.

Jason

posts: 26

That solved itexclaim

I went to admin>menu and changed the URL for "Community" and "User List" to tiki-list_users.php?find=&offset=10&sort_mode=login_asc

Now I don't really need to change the number per page, I can just leave it as a mystery. I can't believe how much time I spent trying to figure that one out.

Thamk you for your helpful guidancesmile

Peace,

Jason

posts: 175 Canada

Hey Jason;

Glad to hear that it worked out. I know what it is like to be pulling out the hair to make TW work.

Now I am courious as to what Rick did to make your list show all. This is why I messed with your themes. I thought that there was a choice for how many users were on each page. Sometimes different themes have different displays. As well sometimes the cookies or catch get in the way of changes.

So HEY RICK, what did you do there to show all the users?

Peace to you as well, James


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting