Err. No-one here’s obliged to look through threads. People often do, though, but there’s just no guarantee that someone will have the time and will to help people *and* that they then know what to do or have _anything_ useful to say. I’m sorry if you haven’t been helped.
There’s a plugin that adds a view count. It’s not in the core. Maybe it should be. Why don’t you request it on trac?
I think you add fields to the table by editing the template file. W3Schools has a good guide to table HTML, and you can use PHP to fill it with a template tag or whatever. http://www.w3schools.com/html/html_tables.asp
It’s not a plugin. Add this to the top of the file, after the <?php:
/*
Plugin Name: Nerr
*/
How are you installing the plugin? Are you downloading it directly or are you using the ‘Plugin browser for bbPress’ plugin? If the latter, then I think it’s not downloading properly, you need to do it manually by downloading the current ZIP file, unzipping it and follow the instructions in the readme.txt file.
Here is the Avatar Upload plugin in the bbPRess Plugin Browser, the newest version of the code is always to be found on that page:
https://bbpress.org/plugins/topic/46
Click on the link “Download latest version” — or just click the following download link for now:
https://bbpress.org/plugins/download/avatar-upload.0.7.zip
I’ve been struggling with trying to get information regarding a problem with xml-rpc in WP… more posts that I should have made, probably, but it just boggles my mind that apparently not one single person the WP community gives a rodent’s fundament about xml-rpc (or if such is given, lacks either knowledge or helpfulness). In the course of this effort, it became clear to me that what was (IS) really frustrating about it is that I have no idea whether people are even LOOKING at any of the questions, so in a brief discussion it seemed like a good idea to make it a feature request for bbpress – that is, to have an (at least optional) views count for each thread, so one can find out if anyone’s even taking a peek at it… which provides some feedback (is my Topic Title not good enough to get people to look at it? or are people looking and shaking their heads?).
Having just installed (only partially successfully, so far) bbpress, I don’t (yet) know where to look for the obvious place to add a field to the table and update it before displaying the thread… but I’ll bet someone knows, eh?
yeah that’ll work for now, thanks.
i am using 0.8.2.1 i upload the files but in plugins list in admin area it didnt appear!! any one know the reason?
That’s the maxlength property of input fields.
You can still edit the HTML, though, and submit your crazy username. A serverside check is best.
Yes just edit the textfield (where you have to enter your username) and just let it except like 5 characters or less…
I have never coded sql, but i agree for some unknown reason that i don’t think it’s difficult to code. I’m just curious as to why noone ever did so before. In my opinion, this is the only obstacle in bbPress.
If anyone should decide to give this a go and try to make the plugin, i just have one (more?) request.. and that is that the plugin also indicates a new topic in the forums part, and not only in the latest discussions. The Indicate New Posts plugin fails to do this.
Who do i have to sleep with to get this plugin?
> update: actually this is not directly your fault, though you are trying to use a bb-admin function that was meant for local file access to do remote file access?
If you check the short “to do” list at the top of the plugin you’ll see that I plan to address that issue in the future. I might just copy and paste the code from that internal function and then hack in my own curl/fopen alternative function.
> If I am not mistaken, you just found a bbpress security loophole.
Explain your concerns, how do you think this would be exploited? If it can be we should patch it up.
> ps. any concerns about eventually 2,000-20,000 bbpress users hammering the svn with so many file downloads to examine all the plugin headers?
36 downloads so far, let’s start worrying at 1,000
try this if you want to change the number on the front page:
https://bbpress.org/plugins/topic/3
Right now bbpress appears to default to 15 post per topic before being paged. Where is the variable to reset this to another value?
What are the advantages of doing it this way?
Is there a way to either modify the “Indicate New Posts” plugin, or inspire someone to make a plugin, so that i can add something like this in my theme:
<?php if ($newpost) : ?>
NEW
<?php else : ?>
OLD
<?php endif; ?>
I have looked all over google – and on this site – for a plugin that allowed me to see new posts/topics when i visit my forum, but so far the only one i could find is the “Indicate…”. In all honesty, i can’t use bold marked topics for much.. i need something more CSS like, something not only affecting the topic.
I’ve coded themes for phpBB for years, but i recently found bbPress and i just love how simple and easy it is to code themes here. With a plugin to display new posts/topics (which in my own humble opinion SHOULD be standard in bbPress), i could gladly help spreading the word of a (relatively) new BB, by making some new themes.
If i could decide the function entirely, it should work in such way that both new topics as well as new posts would be affected, and they would continue to show as unread until i actually read them. Also, it should be database driven, so that i could log in to my account on another computer, and still see the posts/topics that would be new for me.
Please don’t make me go back to phpBB…
Actually, I just realized there is a cheat way to do zero extra mysql queries and link to the profile.
<td class="num"><a href="/forums/profile.php?id=<? echo $topic->topic_last_poster; ?>"><?php topic_last_poster(); ?></a></td>
untested but should work in theory
This will just use the stored last posted id # instead of forcing bbpress to lookup all their meta data and profile link in the database.
If your forum uses permalinks, it will just rewrite the url on display.
Mistainu, by “breadcrumb structure” do you mean that the family tree of a sub-forum should be displayed? That’s high on my wishlist.
In other words, right now a subforum’s breadcrumbs look like:
Food Forums – winesaps
When I wish they looked like:
Food Forums – fruit – apples – winesaps
I’m reluctant to use subforums at all if I can’t give the user good feedback about where they are in the forum structure.
So: does your breadcrumb code address this problem? And if so, is it coherent enough that I can glue it into place myself without being an expert about bbPress internals? (I do know enough PHP to be dangerous.)
is there a way to limit the maximum number of characters for a username?
I’ll link it. And it’s the same userid over at WP as here att bbpress.
Turning of/setting WP permalinks to default fixes it at my site.
May be worth linking that thread over to this one (I don’t have a WP forum account just now), as it does affect both systems (working together).
If I turn off permalinks on bbpress it seems to work though, same with you?
I have used MultiViews as well as the more in depth htaccess and it didn’t change anything.
fel,
Using a forum name instead of a number in the Write Post screen while the default is left blank also results in no post to the forum.
Anything I put in bbsync ~ forum box in the Write Post screen is overridden by what is in the default screen.
So a summary; no posts if default is empty on config screen; posts only if the default screen is filled in and then posts only to that forum, overriding anything in the Write screen.
BTW, I have two additional integration plugins running: in BBPress, I have WordPress Integration 0.7 by Michael D Adams; in WP I have bbPress Integration 0.74 also by Michael D Adams.
Here’s a hacked workaround, though I am not sure it’s a good idea to tap into the user_cache directly. I’d otherwise suggest nicely using bb_get_user() as it checks the cache first but the problem with that is it fetches ALL the data if not in the cache which is overkill. Too bad there isn’t a bb_get_user_meta($id,’metaname’) but oh well – for now replace this top section of code:
The user _must_ be in the cache at this point if his details are being displayed next to the post, right? Implying that bb_get_user would never need to use a single query.
There _is_ a bb_get_usermeta() already: https://trac.bbpress.org/ticket/691. It’s in the latest.
I’ve now come up with an extremely easy/fast way to grab and display the views per forum in the forum list on the front page (or forums with sub-forums.
Here’s the plugin:
function forums_views_append($forums) {
global $bbdb; $sum_meta_value="SUM(meta_value)";
$forums_views = $bbdb->get_results(" SELECT $sum_meta_value,forum_id FROM $bbdb->topicmeta LEFT JOIN $bbdb->topics ON $bbdb->topicmeta.topic_id = $bbdb->topics.topic_id WHERE $bbdb->topicmeta.meta_key='views' GROUP BY $bbdb->topics.forum_id");
foreach ($forums_views as $forum_views) {$forums[$forum_views->forum_id]->views=$forum_views->$sum_meta_value; }
return $forums;
}
add_filter('get_forums','forums_views_append');
To display the views, edit your front-page.php template and insert a views header and views column like so:
<th><?php _e('Views'); ?></th>
<th><?php _e('Topics'); ?></th>
<th><?php _e('Posts'); ?></th>
.
<td><?php echo $forum->views; ?></td>
<td><?php forum_topics(); ?></td>
<td><?php forum_posts(); ?></td>
Since there is no clean way to store forum meta data right now in bbpress (apparently an oversight) this will run on every time the forums list is displayed. Maybe not such a good idea for very busy forums, even though it’s a single mysql query (nifty eh?).
Eventually I’ll figure out a nice way to store this and only update upon new posts or new topics to reduce overhead (or a cron job perhaps).
Would it be possible for you to properly use fsockopen or curl instead of “file()” for remote files? Like many hosts, I disable file() for remote urls for security vulnerability reasons which cripples your plugin. You’re likely to get many complaints that “nothing happens”
Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/example/public_html/forums/bb-admin/admin-functions.php on line 798
.
update: actually this is not directly your fault, though you are trying to use a bb-admin function that was meant for local file access to do remote file access?
If I am not mistaken, you just found a bbpress security loophole.
ps. any concerns about eventually 2,000-20,000 bbpress users hammering the svn with so many file downloads to examine all the plugin headers?
Having the very same issue here. Main wordpress site is at / bbpress at /forum/ and although all appears fine the headers returned are 404 not found.
If anyone can shed any light on this weirdness that would be much appreciated.
I attempted moving the htaccess content into a vhost file on my server and put them in <Directory> sections, to see if that made any difference. No surprise really it didn’t.
I’m not an htaccess ot http expert and this seems just weird to me.