Hey guys – is this file somewhere else for grabs?…the links seem to be gone.
Can you link us to it?
The login functions that logs you into bb redirect you to the forums. It may be possible to change that behaviour but I’m not immediately sure how – probably using an action or filter, possibly the action bb_user_login
.
http://uk3.php.net/manual/en/function.date.php
Don’t have access to the code right now so not sure where in bbPress you need to edit.
Thanks fel64, that did it, sort of… I inserted the line at the end of my wp-config.php file and that allows me to call the login_form() PHP function from bbPress from within WP. The page loads fine except I do get an error message at the bottom of my browser (using IE 7) that says, “Done, but with errors on page”. I think this means there’s a javascript error somewhere? No idea where to start looking for this. Any thoughts?
Also, it doesn’t quite work as desired since when you do anything with the login form it redirects you to the forums which makes sense but not the behavior I want. I think I may forego any further modifications for now but I like the idea of the deeper integration between WP and bbPress. If I can figure out the error I may be able to dabble more later as I learn more PHP.
Thanks!
RatherBeBiking,
I’m using a chopped up version of Kakumei. If you want I can zip up the theme for you.
Hi,
I would like to integrate bbpress user favorites to wordpress profile page. Is there any hook I could use?
I search the forum but I couldn’t find anything relevant.
thanks
A really neat trick would be not to have a physical template at all but pass it data. My entire template just consists of
<? bb_get_header();bb_list_plugins();bb_get_footer(); ?>
Which seems silly to have a physical file.
I guess I could try to hook it after the init and bypass the bb_load_template entirely.
I’m pretty sure you can call any file using the bb_load_template()
function, so you can keep your files all neatly bundled up in your plugin directory.
There are various was you can work out where your plugin is located, and if your template file has a predictable location relative to that, it should be easy to refer to it in the bb_load_template()
function.
Here is a how-to on the integrated live search for bbpress and wordpress
http://www.adityanaik.com/integratepress-part-ii-live-search/
This plugin causes an error when I try to delete users. I get the following message:
Warning: Cannot modify header information – headers already sent by (output started at /home/jkuno/public_html/seattlecondoreport/forums/my-plugins/bbpress-adsense.php:43) in /home/jkuno/public_html/seattlecondoreport/forums/bb-includes/pluggable.php on line 168
Any ideas?
Yup! Solved it… and a nice way too…
To have a custom template attached to a view, ie.
/forums/view/listplugins
function view_listplugins($view) {
if ($view=="listplugins") {bb_load_template( 'list-plugins.php'); exit();}
} add_action( 'bb_custom_view', 'view_listplugins' );
function view_listplugins_filter( $views ) {
global $views;
$views['listplugins'] = "List Plugins Used";
return $views;
} add_filter('bb_views', 'view_listplugins_filter');
Now the question is, will this work in the trunk since they completely changed how views are done…
THE ANSWER IS YES! WOOHOO!
http://bbpress.nfshost.com/forums/view/list-plugins
So we have a way to attach any custom page to bbpress.
The only catch is it will show up in the views list.
But you can filter the views list for admin/mods, etc.
I think I can make my “my-views” plugin work with the trunk with this “feature”.
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…
Indeed I don’t believe there is a method for doing so. I was wondering the same thing and couldn’t find anything, especially since the files accessed in root are all actual files and none of them virtual. Would be good to have such a thing, so yay trac ticket.
this is what i think can be done.. very hacky and very primitive
create a plugin which filters ‘bb_template’ for template ‘front-page.php’. check for $_GET == listplugins. if so return list-plugins.php
that will load list-plugins.php is the user goes to
go to <bbinstall>/index.php?action=listplugins
here is the plugin
add_filter(‘bb_template’,’my_plugin_change_template’);
function my_plugin_change_template($template) {
return ( ‘listplugins’ == $_GET ) ? ‘list-plugins.php’ : $template;
}
kapish?
I don’t know that you can… most of the internal pages also have a page in the root (topic.php, forum.php, etc)
The memberlist plugin did it the same way you did.
From within a plugin I wanted to attach a new template/page name within the bbpress structure but I cannot figure out how to do it?
For example:
Let’s say I want to have a custom page called “list-plugins”
http://bbpress.nfshost.com/forums/list-plugins
The only way I was able to do this was to create new file in the bbpress root like this and save it as list-plugins.php
<?
require('./bb-load.php');
$bb_db_override = false;
do_action( 'bb_index.php_pre_db', '' );
do_action( 'bb_index.php', '' );
bb_load_template( 'list-plugins.php');
?>
Then that would load list-plugins.php in my template folder.
But can’t I attach a fake template name to bbpress via it’s rewrite system without having a physical file?
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.
It does indeed require a deeper level of integration. You want to load bb when you load wp, so open wp’s wp-config.php
and add the following line:
require_once('./bbpress/bb-load.php');
where /bbpress/
should be the subdirectory of wordpress that bb is in. If that works you should now be able to call any bb function from wp.
We can’t help you get it into fantastico, but we can help you install. What problem are you having?
I don’t know if this is exactly what you’re looking for but bbSync unifies commenting and when an old topic is synchronised the comments are transferred – albeit as if they had just been posted, with a little message saying they haven’t.
if this were done, I’m hoping it would be a fully integrated system in wordpress and bbpress. it would be nice of both applications “realize” they’re both there in the same website and perform integrated functions themselves by means of one plugin in each wp and bbp.
right now i tried to upload and run bbpress but no sucess i dont know how to do it.
please can the bbpress people give fantastico install on bbpress on hostmonster as they have wordpress
the hostmonster suport has told me to ask help in bbpress
I’d think it would work out much better to use something other than blockquote… that’s the whole idea behind the
Quote:
tag… it should be accepted by bbpress perfectly fine, and not used for any other reason.
There’s no reason to have full bbcode support if you don’t need it, all we need is the
One of the problems with using blockquote is that somebody might already use blockquote in their posts. It would also make any old posts using blockquote completely incompatible with the new plugin.
Otherwise you could use another tag, but then you have to modify the bbpress allowed tags list.
And the issue here is that we are trying to indicate to the system that we are quoting something, not just trying to format the display. It’s this that gives us the ability to filter out the first quote in a multiple-quote scenario that probably happens very often.
Oh wait, there’s a plugin that does this already, though it needs to be seriously enhanced:
https://bbpress.org/plugins/topic/38?replies=17
And they came to the same conclusions that I did, you have to place the “quote” link and insert the quoted text the exact way I described.