I wanted to see if there is any interest in this plugin idea before I start coding it. I may just make it part of the “My Views” plugin.
Many (busy) forums have the smart idea of a front page that consists of moderator promoted threads (topics) instead of just the “latest discussions”. But of course some will prefer just the automated “latest discussions” if they don’t have enough moderators or the traffic to maintain a hand selected list.
So I could make a plugin that let’s moderators promote a topic to the front page. And then in your template you could replace or suppliment the “latest discussions” with the list. Then “latest discussions” would just become an optional view in the views list.
Anyone interested?
I’m kinda surprised that they didn’t just port the wordpress plugin.
It has more features and given how Matt wanted to make bbpress so “light”, virtually everything should be optional.
I guess they figured forums would be a huge target without any kind of captcha or turing test for signup.
Sweet! Going to test shortly…
It’s just a proof of concept for play. I wanted a list and “borrowing” your dataset seemed like the fastest way.
If you changed how your class functions work it would break but I can make the source available to whomever wants.
hmmm nice, i miss a download button
(in the plugin list to download the latest files)
here is the hacked code.. this will show the favorites on profile page in the admin section of wordpress. I haven’t tested it but this is the basic idea.
please note that the wordpress must be integrated both ways before you can do this. visit this for more
add_action('show_user_profile',
'my_plugin_show_favorites');
function my_plugin_show_favorites() {
$topics = get_user_favorites( $user->ID, true );
?>
<br clear="all" />
<table width="99%" border="0"
cellspacing="2" cellpadding="3">
<tr>
<th><?php _e('Topic'); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Freshness'); ?></th>
<th><?php _e('Remove'); ?></th>
</tr>
<?php foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><a href="<?php topic_link(); ?>">
<?php topic_title(); ?></a></td>
<td class="num"><?php
topic_posts();
?></td>
<td class="num"><small><?php
topic_time();
?></small></td>
<td class="num">[<?php
user_favorites_link(
'',
array('mid'=>'x'),
$user_id
);
?>]</td>
</tr>
<?php endforeach; ?>
</table>
<div class="nav">
<?php favorites_pages(); ?>
</div>
<?php
}
s010, that’s very clever.
Unfortunately it doesn’t work.
Not certain if slugs would translate either,
ie. /action/listplugins
I think the shortest shortcut is a universal loader could be made for all future extensions, ie.
/forums/option/listplugins
where option is really option.php in the bbpress root and it just passes to the template listplugins.php
This would have to be made in the the bbpress core of course.
ooooh I just had an idea… where is the hook for bbpress’s internal 404…
er, no i guess that won’t work either…. BUT
take a look at view.php in the bbpress root
you can hook bb_custom_view
basically since there will not be any view name, it won’t do the mysql call, then after you catch it on the do_action(‘bb_custom_view you can exit() after your own custom page load.
ie. /forums/view/listplugins
Let me try to code something working…
I decided last night after seeing some bug reports from people testing my plugins that I needed a more conventional bbpress install that I could test my plugins as well as other people’s.
So I started this little site:
http://bbpress.nfshost.com/forums/
I purposedly used low end (slow) hosting since my other sites are on high end setups. This way I can get a feel if anything is slowing bbpress down.
On the site you can preview my
bbPress Signatures and bbPress Polls plugins
by making a test account.
I’ve also activated “My Views” (which only works on 0.8.2.x for now)
The goal was to stay as close to bbpress’s default template as possible but after a few hours the bright white was burning my eyes so I had to tone it down. I’ll probably have to revisit that and work on the colours a bit, it’s far too flat right now, sorry.
Since this host has no web compression options, I’ll be releasing another mini plugin today after some more testing: bbpress gzip. It will let you compress bbpress pages via php and save on bandwidth, even if your host doesn’t have mod_gzip or other options available.
Yeah you should always create a non-moderator test user to see how other things interact compared to mod/admin. It’s important to see what’s hidden from regular members and sometimes admin can do things we take for granted that regular members cannot (ie. like my admin-can-post-anything plugin)
No wait I think what is wrong here.
I am also testing a highly alpha new cool plugin here, that why I have edited post.php. I think it’s in conflict with your hook. Brb uploading original post.php
Edit:
Lol that fixed it…. darn that fixed all bugs I’ve had version 0.24 is fine
Now how to prevent this in the future when I am going to release my plugin hmmmmmmm
ps. You see the bbmenu tabs? i dont see them :S
No, I have a special test site for this stuff: http://www.sourceskins.com/bbpress go take a look if you have it there too…
I also run the latest stable release, no trunk versions
Null, I am testing using opera 9 on windows.
I am using 0.24 of the plugin on the bbpress trunk.
I am able to create a new poll & vote with no alerts.
There is no problem with the css layout.
Make sure you create a NEW poll for testing with 0.24
Wait I just thought of something.
Are you using a personal firewall like Norton?
They sometimes filter javascript in bad ways.
I am also starting to think that php 5 is doing something weird with the data escaping since you say you get it in all browsers. Unfortunately I do not have a php 5 server to test on.
Can anyone else reproduce what Null is reporting or does it work?
ps. you can turn off ajax if you want to test it normally by changing the “use_ajax” option near the top of the code. Set it to “false”.
pps. Null, is this off the site in your profile?
Can you create a poll for me to see off one of the pages so I can see the bug in action?
Ah I think I see the problem.
Unlike all the other browsers, Opera has taken it upon itself to cache the javascript request instead of actually fetching it each time (this is one way it cheats for speed).
Will add some code for a unique URL to force it to work.
okay, here you go, v0.24
http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v024
should fix the issues with opera (and anything else caching)
I’ve also now added hidden near the top of the code a “test_mode”
If you change “test_mode” to “true” it will allow you do keep voting on any poll for testing purposes. You can switch back and forth to view/vote etc. Obviously change it back on a live site with members or people will be able to stuff the ballot box.
Keep in mind that previous poll data may have been made invalid by the bug in opera so start with a fresh poll. Do not keep re-using the old polls for testing with v0.24. I have not changed data structures but if the data got inserted wrong, it could be invalid for that topic.
(I’ll make a “delete poll” option soon for administrators.
The space it takes is trivial, so don’t worry about that)
Null, so that is v0.21?
What OS are you on windows/mac
What version of opera is that?
Can you do a quick test in IE / Firefox for me and see if it does the same?
Yes I was thinking the same about the cancel button, will add shortly in future version. Working on the ajax-ish voting right now.
ps. all the button text, actually ALL the text is completely editable at the top
I’m using php 5.1.6 on my test system, which is where I was using it.
Please try again with v0.21
https://ckon.files.wordpress.com/2007/08/bb-polls.txt?v021
Many little bug fixes.
mysql_real_escape_string requires php >= 4.3.0
is this a problem for anyone?
php prior to 4.3 has lots of security issues
v0.21 looks/works fine in my opera 9.0
Many thanks for all the beta testing, I think we’re stable now in all modern browsers…
Whoops, I finally considered testing it in internet explorer and I can see it has a few issues – sorry about that. Working on the bugs now…
Ohhhhh
My test site has nothing but posts from me, no wonder I didn’t see it 
And to answer your question at the very top of this thread, I’m trying to use bbPress for a serious forum… I just opened my forum a little over a week ago. Not as much traffic as I’d like, of course, but decent.
I’ve tested this now up to the bbpress trunk and it seems to work fine.
Try the latest:
https://bbpress.org/plugins/download/report-post.zip
Make sure you are editing post.php in your bb-templates or my-templates?
Unfortunately there is no hook for me to place it automatically in post.php on that info line. Wish there was.
I am pleased to announce that v0.19 now supports ajax-ishâ„¢ behaviours on all actions except form submits (saving data). The view poll results actually happens with a real update, if votes happen while you are waiting to vote and you go check, they will increase. I might even add an auto-refresh to it (every 30 seconds?) to freak people out.
http://ckon.wordpress.com/files/2007/08/bb-polls.txt?v020
You can also turn off ajax entirely in the settings and if there’s no proper javascript support it falls back to regular actions of course.
I’ve only tested on firefox out of exhaustion right now, so I’ll need feedback from other browsers. Ajax on submits will take quite a bit more research for me, never done it before and I’ve heard it’s problematic on different browsers.
@mazdakam, sorry about the float:left – I used it to try to make it behave with some other templates I was testing. I realise now how that would messup your configuration…
Testing working in the latest 912 trunk.
Yeah I don’t have the default template running anywhere to configure it, lol!
Working right now but will build a test account and do a trunk install tonight so I will be able to change it.
If you have better css, please post.
Make sure you are using v0.11 and then post a new test topic.
The default setting is polls can be added to topics no more than three hours old (adjustable).
You must be logged in as a moderator or higher to see the poll options or poll results for the beta. This is to prevent other members from seeing your testing & configuring.