Search Results for 'code'
-
Search Results
-
Topic: My first plugin (post count)
It’s a simple one.
It returns the post count of the user.
You can see it in action at http://www.rayd.org/forums2/ (you have to look at an actual topic)
You can download it from http://faq.rayd.org/bbpress_postcount/ (link is instructions how to use it, link at bottom instructions)
Is this something I can submit to bbpress? Or is me mentioning it here the equivalent of submitting it?
Topic: Plugin: Simple Onlinelist
Hi.
I really missed an onlinelist in bbpress, so i made a simple one myself. Dont expect anything special, it just tells who was online over the past 5 minutes.
Download it here.
See a demo here. (Login use: Test / test)
To Display the online list simply add
show_online_users();
wherever you want it in your template.Additional Features:
– Last online time on profile page:
profile_last_online();
– Current online users as number:
total_online_users();
Topic: Avatars in bbpress
So, I just started using bbpress 3 days ago mostly because phpbb is God awful when it comes to spammers (akismet is pretty awesome on my homepage, so I assumed it would also be awesome in forums).
At any rate, I installed a copy as a test and have been playing with it, got kinda sad that avatars weren’t supported (and didn’t want to make people get gravatars just to have an avatar, esp since gravatar service was down the other night). So I wrote my own avatar functions.
I have everything I did on my forums, or you can just go check it out at http://www.rayd.org/forums2/
My question is, can what I did be done in a plug-in? I know I can put my two ground-up functions in a plug-in file, but the one I don’t know how to do is the way I added a spot for a link to an avatar in profile pages. Here’s the link to me describing what I did, and the quote from what I’m talking about:
http://www.rayd.org/forums2/topic/6?replies=1
bb-includes/functions.php line 1388: Added avatar info to the array in function get_profile_info_keys(). Looks like this:
array(‘user_email’ => array(1, __(‘Email’)), ‘user_url’ => array(0, __(‘Website’)), ‘from’ => array(0, __(‘Location’)), ‘occ’ => array(0, __(‘Occupation’)), ‘interest’ => array(0, __(‘Interests’)), ‘avatar_loc’ => array(0,__(‘Avatar URL’)))
As you can see, adding that little avatar stuff at the end of that array definition not only easily added the spot to the page, but put it in the database and allowed me easy access to it in my other functions.
I’d love to make this into a plug-in, I just don’t know how to do that. Any advice would be great