I hacked up this little plugin that lets you change the size of the tag cloud without hacking any core files. (And, yeah, that’s all it does.)
It does, however, require you to change some code in your template to call the function.
(I took the code from template-functions.php line 1150 or so, the tag_heat_map.)
See it here or download it here.
You can comment about it on my site if you wish. My Release Annoncement.
Keeping on the original topic at hand here, and no rush of course.. But, will, or could someone eventually make a “delete forum” plugin for bbpress, or maybe even add it into the core?
Just was curious, IMHO..I think it would be a great asset! Especially for those that *are not* experienced with the database/phpMyAdmin.. Again, just was wondering..
spencerp
By the way, I do know my way around the database and such, but.. it still would be *alot* easier to hit the “delete” button by a forum, then going into a database.. LoL!
Has anyone got bbpress to integrate either with WP or WPMU off a second database? Yes, I read the documentation, which isn’t clear as to what I’m supposed to do. I tried many different things, resulting in different errors each time, none of which actually used the wp_users table in bbpress. The last change almost did it, but it somehow horked my WPMU install when I went to add a user to see which db it plunked it in (neither, as it turns out – it seems to be in limbo).
To start, I had a local copy of MU working, and I got an install of bbpress working as well. It’s just getting the two of them hooked up is where I run into issues.
Any ideas? Tips? Step by step instructions?
Hey all,
Not really sure if this is the right area, sorry if not.
I’m thinking of using bbPress on a new site. Theres a couple of things I’d like to figure out first:
– Is there any way of dictating a ‘banned words’ list?
– I want to include a tag cloud type thing but instead of using tags, using post titles.
Any info/ideas much appreciated
Cheers,
-Mark
Ok, now I am beginning to understand. I assume from looking around that I need to add that code (such as ‘<?php get_header(); ?>’) into the bbpress/index.php file.
Naturally bbpress won’t know to look in the /blog/ folder (bbpress is in the /blog/bbpress/ folder) so how do I set the path?
Would that be another require( etc code?
Thanks for all the help, I am learning so much!
You might want to follow this thread maybe?
https://bbpress.org/forums/topic/3?replies=6
spencerp
Thanks, I’ve done most of it now and my forum is working. The site is just going up (i.e. not ready), but the forum skin can be seen at http://www.retrographer.com/forum/
The software is most excellent
I think it’s a bug with your style sheet, but if you visit you might notice the hot tags go past the main window bottom. This is because the hot tags are a float and so have no content. It either needs a clear:both or a overflow:hidden at the end of the floated tags.
In future versions of bbPress, you will be able to do this with a short plugin.
As for the [Closed] issue, you can solve that be removing the filter and adding your own (or using custom templates).
remove_filter('topic_title', 'closed_title', 30);
Hello,
The title says it all really. Is there an option to do this? I couldn’t find one. Sometimes it’s useful to limit who can post to what.
This is what I did, I don’t know if it’s right:
1. added a column ‘closedforpost’ to the bb_forums column
2. updated bb-includestemplate-functions.php:86: with the code
function post_form( $h2 = '' ) {
global $bb_current_user, $bb, $page, $topic, $forum;
if($forum->closedforpost==1) return;
3. updated bb-includestemplate-functions.php:756:
function new_topic( $text = false ) {
global $bb_current_user, $bb, $page, $topic, $forum;
if($forum->closedforpost==1) return;
While I was there, it seemed wrong to put in big writing [Closed] before every topic and forum that was flagged as closed when all I wanted to do was lock it, but there was no nice code to do this so I resorted to simply changing the closed_title() function to simply not show anything! I guess this is a suggestion rather than a plea for help.
Thanks.
Finally I use:
require_once(dirname(dirname(__FILE__)) . '/wp-blog-header.php');
because some functions don’t work properly with ´/wp-config.php´
.
Thanks anyway.
Found the bug …. I’ve editted the config for using a language file like define ('WPLANG', 'nl_NL');
after deleting the line I can change the user type again.
I tried that and it threw back a serious error. I might be a noob, but is there more defining that needs to be done? Inserting the code towards the bottom didn’t work. My installation works ok, but it doesn’t load wordpress at all, and if I uncomment the wp_bb line, it errors up as well.
Help!
The plugins are loaded everytime bbPress is loaded.
If you’re don’t want any code from your plugin to execute unless you’re in the admin, you could put something like this hack at the top of your “admin-only” plugins:
if ( false === strpos($_SERVER['REQUEST_URI'], '/bb-admin/') )
return;
But just loading the plugin file shouldn’t add too much overhead. You could do something a little nicer, if you weren’t worried about loading your plugin file:
function my_admin_only() {
if ( false === strpos($_SERVER['REQUEST_URI'], '/bb-admin/') )
return;
else load_my_plugin_stuff();
}
add_action( 'init', 'my_admin_only' );
Create a directory called my-plugins/
in bbPress’ root directory.
Into that add a new file called mod-write-topics.php
with the following code.
<?php
function mod_write_topics() {
global $bb_roles;
$bb_roles->role_objects['member']->remove_cap( 'write_topics' );
}
add_action( 'bb_got_roles', 'mod_write_topics' );
?>
I think that will work, but I haven’t tested it.
I’ve created a couple of plugins for the admin side, are those loaded with each request that hits the bb-load.php?
I fear it is and have *ugly code ahead* hijacked the admin.php and added a require-instruction there for my adminplugins since I don’t want them to drain resources on the front-end so to speak.
Is this at all a relevant fear or is the reading and attaching to the event-loop so minimal in resource demand that it really doesn’t matter if it’s loaded each time?
err now i can’t login with the admin u/p bbpress gave me
bb-emotions plugin
A friend of mine, Japanese bbPress user enjoy hacking plugin WP Grins port to bbPress.
So, he wants to add this bb-emotion here, but he’s not good at english, then I translate he says.
= = = =
ziped code:
http://prdownloads.sourceforge.jp/wppluginsj/22267/bbEmoticons-0.72.zip
- put
bb-emotions.php
to /my-plugins/
;
- put
smilies folder
into /bb-images/
;
- add
<?php bb_do_action('bb_grins'); ?>
to above the textarea in the each theme (edit-form.php, post-form.php);
That’s all, and does work!
I’m so happy if this will be your help
= = = = =
Thank you.
GOT IT, i had to copy my .httaccess file to bb-template/ as well. worked like a charm. LOOKS NICE!
garymill,
Login problem:
wp_home
and wp_siturl
will only work if the url for your forums is a “subdirectory” of the url for your WordPress blog. If that is not the case, you’ll need the more fine-grained control mentioned in the Cookie integration with WordPress Documentation
Installation problem:
on Installation, bbPress looks to see if there are any keymasters in the User Tables already. You’ll need to go to your usermeta table and delete the entry:
meta_key = $bb_table_prefix . ‘capabilities’ (example: ‘bb_capablities’)
meta_value = a:1:{s:9:”keymaster”;b:1;}
This part of the installation will have to change in the next version for several reasons. The difficulties you’re seeing is one of them.
No – WP_BB
only tells bbPress that you will be loading WordPress so that it knows not to try to load thingsn which will conflict with WordPress.
If bbPress is installed in a subdirectory of WordPress, put this in bbPress’ config,php
require_once(dirname(dirname(__FILE__)) . '/wp-config.php');
i would guess that we need to:
1: Add a little code snippit inside of wp-post.php that creates a new forum SOMEHOW identified by the post ID.
2: in your wp-single.php include that forum instead of your comments.
3: SOmehow replicate/redirect comments/forum for RSS reasons and other ones that i do not understand! sloppy i know!
evelardiez,
bbPress comes with such a script. Download the software, fill in the details of you database connection in config.php
, and when you first browse to your forum’s URL, you’ll be taken through the installation procedure.
See https://bbpress.org/documentation/installation/
Yea, I agree with lstelie.
WP use subversion to manage each localized file:
https://codex.wordpress.org/WordPress_in_Your_Language
http://svn.automattic.com/wordpress-i18n/
How do bbPress’ developers think about managing localized file?