Wow, that worked, thanks a lot.
Until a plugin is made, I think you’d have to pseudo-hardcode it. I was able to limit what admins and regular users could see in my memberlist by adding the following code:
<?php if (bb_current_user_can('edit_users')) : ?>
*some code here*
<?php endif; ?>
There are other options you can test on, that’s just the one I found to use.
For you, in the *some code here* part, you’ll need to find a way to pull out what forums you got, and put an if statement to say only to show the Announcements one to admins.
Looking at the files, I found a function called “forum_dropdown” in template functions. If you go there and within the foreach section, below the $selection part, put the following:
if ( $forum->forum_name == 'Announcements' && !bb_current_user_can('edit_users') ) { }
else
That will do nothing when it gets to listing your “Announcements” section unless the user is an admin. The else is for the echo line below where I told you to put the previous line.
Of course, this is a change to a core file, but sometimes that’s just what you gotta do until a plugin is made
Furthermore, there is no filter to be added there, so writing a plugin would mean rewriting that function, dropping it in a plugin file, and calling the replacement function from post-form.php
If you have no forums … then this will be displayed instead. (Try removing all forums and i think you’ll see it.)
Well this is the line near the bottom of front-page.php:
<h3 class="bbcrumb"><a href="<?php option('uri'); ?>"><?php option('name'); ?></a></h3>
But what does it do? Deleting this line doesn’t change anything….
I hope there is a solution/workaround soon…
My server is in Dallas, I am in London right now, and my users are all over Asia in 3 different time zones
peiqinglong means a “folder” in your forum’s root directory, called: my-plugins

spencerp
Fixed it. For some reason putting
$forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,$number_of_topics")
in index.php gives the error, but placing it into front-page.php fixes it, no errors and it works…
When I was a wee HTML coder in the 90s at the beginning of the .COM boom in Australia, most of the clients I built sites for wanted counters at the bottom of their pages. This was something I enjoyed placing at the footer of my web pages because I could go back and visit some of my sites and see 37 people had viewed my webpage! We would feed this back to the clients to measure our success.
Back then, there wasn’t much in the way of stats packages like urchin. There was no google either.
At the work Christmas Party we joked that about 50% of the time we were tripping the counters ourselves. They weren’t very reliable.
This trend faded with the advent of stats packages and the disappearance of the blink tag (and MC hammer).
Anyway I’ve created my own for nostalgic purposes. Maybe it’s a mid life crisis. See the bottom of this page! I started at zero, honest! At the time of this post it’s got to 12. That would have been me.
If you want to download it for your bbPress forum it’s here. I would appreciate it if you posted about this in your forum! http://www.freelancewebdeveloper.net.au/topic.php?id=49
Just unpack the ye-olde-counter.zip and upload the counterinstall.php file to your root folder and then browse to it. This creates a table for your counter in your MySQL database. Delete this file after you run it.
Then upload the ye-olde-counter.php file to your my-plugins directory. You may need to create this.
Place the code <div id="counter"><?php ye_olde_counter(); ?></div> somewhere in in the footer div tag of your ‘bb-tempaltes/footer.php’ file and place these in your stylesheet
#counter{text-align: center;padding-top: 20px;}
.counter_number {color: red;}
Enjoy! and please let me know how you go.
you may wish to edit those styles.
Nothing is up yet, but maybe post something over at the following link because it might be just adding a little code to add a forum list to the code in this topic. Might be quick for someone. I would like this as well!
https://bbpress.org/forums/topic/347?replies=24
Trent
Temporary fix (REQUIRES CORE HACK).
Go to bb-admin/admin-functions.php and edit line 288 from:
function display( $show_search = true, $show_email = false ) {
to
function display( $show_search = true, $show_email = true ) {
That will get it showing the the admin area under users. There might be an easier way or a setting to change without this core hack, but the functionality was already built in.
Trent
Thanks again-
I know I had problems with permalinks in WP and had to hardcode some setting to make them work….
anyway, I appreciate your help!
do something like this:
$result = get_profile_info_keys();
foreach ($result as $key => $label ) {
if ( $key == 'user_email' )
echo $label;
}
That needs to have some way to pull in the user you’re trying to get though… hmm. It should be close though.
What I would try is getting bbpress site 2 using the WP 1 users directly. Try using the cookie information from the docs:
If bbPress is not installed in a subdirectory of your WordPress install, you’ll probably need to adjust both bbPress’ and WordPress’ cookies to meet your specific requirements. Below is a brief outline of the variables and constants that control the cookie behavior in the two programs.
PHP bbPress WordPress
name $bb->usercookie USER_COOKIE
name $bb->passcookie PASS_COOKIE
path $bb->cookiepath COOKIEPATH
path $bb->sitecookiepath SITECOOKIEPATH
domain $bb->cookiedomain COOKIE_DOMAIN
Trent
bbpress with plugins such as this is really coming along – great stuff.
Now if only there was a forum subscribe version, which would send out an email indicating there is a new post on a forum you’ve subscribed too (and better still, could be set to send out only one email or one for each new forum post). Of course probably asking for too much at this stage of development
Awesome!! Done!.. You’re the greatest, whee!! 
http://spencerp.net/forums/mlist
spencerp
glad it works 
And spencer, since you have my post count plugin also, you can uncomment those lines in memberlist.php
Yup, it works for me if I have pretty permalinks, and no pretty permalinks set. I did exactly as said on here:
https://bbpress.org/documentation/faq/#pretty-permalinks
And she’s working.. see it in action here:
http://spencerp.net/forums/
http://spencerp.net/forums/mlist
YAY!! Thanks again!!

spencerp
Hi,
I am stuck again. I wanted to split the code to the php part and the template part. I did this:
In index.php I’ve added (right after require('./bb-load.php') ;:
$forum_id = 1;
$number_of_topics = 10;
$forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id ORDER BY topic_time DESC LIMIT 0,$number_of_topics")
In front-page.php I’ve added:
<?php
foreach($forum_one_topics as $topic) :
$forum_one_topic_posts = get_thread( $topic->topic_id); ?>
<a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
<?php echo $topic->topic_last_poster_name; ?><br/>
<?php echo $forum_one_topic_posts[0]->post_text;
endforeach;
?>
But this results in errors on the index.php file:
parse error, unexpected T_STRING on the first line after the code I’ve put in the index.php file.
What am I doing wrong?
spencer, I have permalinks enabled and it works for me, trent doesn’t and it works for him now too (and you too), so I think that bug is fixed.
Trent, I know what you mean… that’s why that deletion part of the plugin is so cool
I can delete all spam users in literally a few seconds.
Hi guys, sorry.. was offline for a bit there. I didn’t have pretty permalinks enabled, and still don’t. But, after uploading those new files of your’s. It seems to be working fine now..
http://spencerp.net/forums/
Would you like me to try with pretty permalinks enabled then too, or..? Please let me know ok, I’ll test it.

spencerp
I thought about that, but there’s two things: 1. post count is another plugin altogether… not too big of a deal, making a function that is commented out by default is easy to do. 2. Post count isn’t a db entry, so to do it I’d have to sort results after I got them (whereas now I do it all with SQL queries).
I do hope to add it in at a later time, I just gotta figure out the best way to do it first
There’s some commented out code in memberlist.php in your templates folder. Just take out the comments (I wrote some words in there too)
Trent, you have my post count plugin installed, you should enable post counts on the member list page
Any progress about:
“Would be nice to add total guests too”
– Good idea … i’ll give it a try 
“Great plugin, if you made this one AJAXED it would be even greater!”
– Thought about it, but this would be easer to realize with next version of bbpress (current version only loads bb_head() when topic is displayed)
??