Rayd Forums » New Forums Discussion
List of projects for forums
(83 posts)-
Posted 3 years ago #
-
Well there was more than one piece of white meat. But I ate it when you weren't looking. And it was good.
Posted 3 years ago # -
Oh hey, is there a max size for avatars? Do we have to resize large pictures into little ones before using them as an avatar? I tried using a pic that was big (thinking it would resize itself) but instead I got the big red X.
Posted 3 years ago # -
it's optimized for 150x150 px, but it shouldn't red x ones that are too big... it should just cut them off.
Posted 3 years ago # -
Member List has been moved to "In Progress." I have it doing what it's supposed to, now I just need to know what else you guys think needs to be on it. Here's my list of things left to do on this plugin:
Link back to main forum (done)
Limit 20 users per page, and add ability to cycle through pages
User ability to reorder memberlist as they want (eg., join date, user name, post count) (done)And beyond that, I need a better place to put the link on the front page. For now I just stuck it above "Latest Discussions"
Posted 3 years ago # -
it'd probably be tough, but it'd be nice to delete users from that page when logged in as admin.
Posted 3 years ago # -
lol, I actually thought of that too earlier. I can probably do it... just gotta figure out how to detect if the current logged in user is an admin or not.
Posted 3 years ago # -
but then add checkboxes and a delete button
Posted 3 years ago # -
I would probably just make it a button that calls whatever admin function normally does it. That way you get the "Are you sure?" popup and everything.
Posted 3 years ago # -
but then if spam users get bad, it's a click-per-deletion. i added a plugin to phpbb a while ago that let me mass-delete users with the checkbox+delete button, it was nice
Posted 3 years ago # -
That's a good point.. I'll see if I can figure it out. It might be another plugin to write.
Posted 3 years ago # -
oh yah, memberlist looks good
now if we could only delete users
Posted 3 years ago # -
Got the link back done, and you can now order the list by user name and register date. I don't think I'm going to make it so that you can order it by Post Count since that isn't a db entry, therefore a lot more difficult to do
Now I need to come up with a way to make it so you can order descending or ascending when you click on the link multiple times or some kinda way.
Posted 3 years ago # -
Ok, it will now sort ascending and descending when you click on the links more than once. (score!)
Posted 3 years ago # -
My two cents on hottags: they are lame. Could you make them go away?
Posted 3 years ago # -
It's one little function call... and if I took it out, Tim would bitch and bitch til I put it back in.
Maybe we should call a rayd vote on them, lol
Posted 3 years ago # -
I got the delete user function working for memberlist (although, only Tim and I can see that functionality, sorry to tantalize the rest of you with it).
I think I'll work on getting it to span multiple pages in the next release of that plugin. I'm going to work out a few minor things and then call it finished.
Posted 3 years ago # -
Memberlist is done for now. I'll add the ability to spread user list out over multiple pages some other time.
Posted 3 years ago # -
Another project on the Completion list - Private Messages
I think Tim is getting close with the emoticons. I won't tackle anymore projects for at least a week: I have 2 finals next week.
Posted 3 years ago # -
something else that I noticed.
On the main forum page it would be cool if the link to the forum thread showed the number of pages in that thread. That way you can click on page "2" and go directly there instead of the first page every time.Posted 3 years ago # -
Huhu, i need a anomymous post plugin, the new anonymous posts should be marked as deleted so that the admin can moderate it, sorry for my bad english
Posted 3 years ago # -
Josh, I'd like to request a simple modification to the member list: Could you include a member total count somewhere on the page?
Posted 3 years ago # -
Updated Avatar plugin so that it no longer requires a core file change. This is invisible to users.
Posted 3 years ago # -
Playing with Memberlist plugin today, sorry if it looks or acts weird in the next few hours.
EDIT: Added Joe's request for the memberlist
Posted 3 years ago # -
Finished updating memberlist plugin. It now supports pages (as well as a couple other things that don't really matter to rayd).
Posted 3 years ago # -
no sort by post # yet? :wtf:
Posted 3 years ago # -
As soon as the creator adds post count into the database, then I'll do it
Posted 3 years ago # -
You might not have to wait. Using some SQL magic, you should be able to generate a memberlist table that is sorted by post count:
SELECT
user_login, COUNT( * ) ASposts
FROMbbpress_posts,bbpress_users
WHEREposter_id=ID
GROUP BYuser_login
ORDER BYpostsDESCIf you want post count to be sorted ascending, use ASC instead of DESC on that last line.
So, inside of bb-memberlist.php, within the get_memberlist() function, you can change the two get_results lines from:
if ( $bb->wp_table_prefix )
$result = $bbdb->get_results("SELECT * FROM ".$bb->wp_table_prefix."users WHERE user_status = 0 ORDER BY $order LIMIT $page, 10");
else
$result = $bbdb->get_results("SELECT * FROM $bbdb->users WHERE user_status = 0 ORDER BY $order LIMIT $page, 10");to
if ( $bb->wp_table_prefix )
$result = $bbdb->get_results("SELECT ID, user_login, user_pass, user_nickname, user_email, user_url, user_registered, user_status, display_name, COUNT(*) AS num_posts FROM ".$bb->wp_table_prefix."users, ".$bb->wp_table_prefix."posts WHERE user_status = 0 AND ID = poster_id GROUP BY user_login ORDER BY num_posts $order LIMIT $page, 10");
else
$result = $bbdb->get_results("SELECT ID, user_login, user_pass, user_nickname, user_email, user_url, user_registered, user_status, display_name, COUNT(*) AS num_posts FROM $bbdb->users, $bbdb->posts WHERE user_status = 0 AND ID = poster_id GROUP BY user_login ORDER BY num_posts $order LIMIT $page, 10");.... (take a deep breath now) ... THEN ...
in memberlist.php line 26 change the following from:
<td><center><?php echo get_post_count($member->ID); ?></center></td>
to
<td><center><?php echo $member->num_posts; ?></center></td>
For now, that should list everyone in descending order of number of posts made. We'll have to work on creating a link for the "Posts" column header so that the number of posts can be sorted in either descending or ascending order. That's a job for someone else on some other day.
I'm tired. Going to bed...
Posted 3 years ago # -
Nice idea, I'll try that tomorrow.
Posted 3 years ago # -
I edited my last post since you last saw it. I gave u a little more insight as to what needs to be changed.
Posted 3 years ago #
Topic Closed
This topic has been closed to new replies.