Blank screen when using the users function
Posted: 05 May 2008 11:44 PM   [ Ignore ]
Newbie
Rank
Total Posts:  18
Joined  2006-10-23

I’m using your example for displaying the list of users and all I get is a blank page. If I remove the users tag and just leave the form tag, I can see it. I’m running the EE 1.6.3 and User 1.3.2. Any suggestions?

Profile
 
 
Posted: 05 May 2008 11:45 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  18
Joined  2006-10-23

This is the code I’m using and getting a blank screen:

<form method="post" action="{path="user/users"}"
  
<
select name="user_orderby"
<
option value="username">Username</option
<
option value="screen_name">Screen Name</option
<
option value="join_date">Join Date</option
</
select
  
<
select name="user_sort"
<
option value="asc">Ascending</option
<
option value="desc">Descending</option
</
select
  
<
input type="submit" value="Sort" /> 
  
</
form
  
{exp:user:users orderby="total_entries" sort="desc" dynamic_parameters="yes"
  
<p>Screen Name{screen_name}</p
<
p>Total Entries{total_entries}</p
<
p>Join Date{join_date format="%m %d, %Y"}</p
<
p>Email{email}</p
<
br /><br /> 
  
{/exp:user:users}

Profile
 
 
Posted: 06 May 2008 06:47 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

What happens when you just try to display this:

{exp:user:users orderby="total_entries" sort="desc"
  
<p>Screen Name{screen_name}</p
<
p>Total Entries{total_entries}</p
<
p>Join Date{join_date format="%m %d, %Y"}</p
<
p>Email{email}</p
<
br /><br /> 
  
{/exp:user:users}

 Signature 
Profile
 
 
Posted: 06 May 2008 09:13 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  18
Joined  2006-10-23

I get the same blank screen.

Profile
 
 
Posted: 06 May 2008 10:30 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

karim,

Do any of the other User loops work?

Where are you displaying this? Within other code, or on a seperate template all by itself? smile

 Signature 
Profile
 
 
Posted: 06 May 2008 10:42 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  18
Joined  2006-10-23

I haven’t tried any other user loops. Which one should I try? This code is on a separate template by itself right now until I can get it to work smile

Profile
 
 
Posted: 06 May 2008 10:50 AM   [ Ignore ]   [ # 6 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

karim,

Paste this code on a seperate template called “user”:

{exp:user:stats} 
{all} 
{label}
{value}<br /> 
{/all} 
{
/exp:user:stats}

Then, visit that template… let me know if anything shows up smile

Also,

1) Do you have any members (besides you)?
2) Do you have the correct permissions set for display your Member groups in a Member list? smile

CP Home › Admin › Members and Groups › Member Groups › Edit Member Group › Members

Include Members in Site’s Member List?  Yes

 Signature 
Profile
 
 
Posted: 06 May 2008 11:02 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  18
Joined  2006-10-23

OK, I pasted the code into a new template called ‘users’ and it works!

1) We have hundreds of users in different groups. The user list I was trying to display was only for one of those member groups.
2) I changed the permissions for this one group and changed it to say “Yes” to include members in site’s member list.

Anything else?

Karim

Profile
 
 
Posted: 06 May 2008 11:04 AM   [ Ignore ]   [ # 8 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2261
Joined  2006-10-18

Hmmm, definately strange…

May I have a look in your CP?

Thank you smile

 Signature 
Profile
 
 
Posted: 06 May 2008 11:12 AM   [ Ignore ]   [ # 9 ]
Newbie
Rank
Total Posts:  18
Joined  2006-10-23

Before I do that...are there any other settings or preferences I need to check?

Profile