I have installed bbpress and changed all of the links, etc. in the bbpress admin. I added “bbPress Forum List” and “bbPress latest topics” to my widgets BUT when I drag either the bbPress List or the bbPress Latest widgets to the sidebar, they show on the sidebar until view the site. Then (1) the forums/topics do not show up on the site and (2) when I go back to the Widgets page the bbPress widgets that I had previously drug onto the sidebar are gone! IOW, they don’t “stick” to the sidebar.
??????????????
TIA
A sandbox is a local test platform that is private and have no external access. For example I use xampp for testing.
Thank zaerl, I’m definitely willing to test it out. I don’t know what sandbox is though.
Hi there,
I have written a plugin that is a rework of _ck_ “Hidden Forums”. The features:
1) Forums/Topics can be hidden for a list of users and/or for all those users that have a particular role.
For example you can hide a staff private forum to all users except administrators or a sticky topic for all guests.
2) Forums/Topics can be locked for a list of users and/or for all those users that have a particular role. A locked forum doesn’t accept new topics. A locked topic doesn’t accept new posts/tags.
It is different from a “closed” topic which is locked for everyone. You can use this feature for a news list post.
3) You can specify super users and super roles that aren’t affected by previous rules.
A good choice is admin and administrators respectively.
4) You can specify custom prefixes for administrators if the forum/topic is hidden/locked.
It is useful to keep track of hidden posts.
5) You can specify replacement strings for the forms that aren’t shown on locked topics/forums.
Something like “sorry but you can’t write new topics”.
6) A fancy admin panel is included.
In the panel you have a list of all forums/topics that are affected by the plugin.
Actually I don’t think that my plugin is ready for a real site (but despite this I use it in a real site). I’m testing it in a sandbox but I need to cover cases in which there are thousand of posts.
The question is: are you interested on testing my work in a sandbox (if you have one)? If the answer is “yes” I can upload the beta on the SVN otherwise I will test it by myself a little more.
Try:
if ( $topics = get_latest_topics('exclude=8,7', $page) )
but I’m not sure that this will function.
on index.php get_latest_topics(‘exclude=id_of_the_controversial_forum’);
Ok, so I changed the line to be this:
if ( $topics = get_latest_topics(‘exclude=8’, $page) ) {
How do I make it exclude more than one forum?
Say, don’t want forum game threads showing up, so I’d block 7 also…
Hi gerikg,
I will test it tomorrow on my new server (playground for bbPress, Plugins, Themes) …
Markus
Okay here is the update:
I created discussion.php and put it in root. In the file I put…
<?php
require('./bb-load.php');
bb_repermalink();
$bb_db_override = false;
do_action( 'bb_index.php_pre_db' );
if ( isset($_GET['new']) && '1' == $_GET['new'] ) :
$forums = false;
elseif ( !$bb_db_override ) :
$forums = bb_get_forums(); // Comment to hide forums
if ( $topics = get_latest_topics( false, $page ) ) {
bb_cache_last_posts( $topics );
}
if ( $super_stickies = get_sticky_topics() ) {
bb_cache_last_posts( $super_stickies );
}
endif;
bb_load_template( 'discussion.php', array('bb_db_override', 'super_stickies') );
?>
It’s the same as index.php except for the last line I put discussion.php
Then I created the template file discussion.php. I put in the file:
<?php bb_get_header(); ?>
<?php if ( $forums ) : ?>
<div id="discussions">
<?php if ( $topics || $super_stickies ) : ?>
<h2><?php _e('Latest Discussions'); ?></h2>
<table id="latest">
<tr>
<th><?php _e('Topic'); ?> — <?php bb_new_topic_link(); ?></th>
<th><?php _e('Posts'); ?></th>
<!-- <th><?php _e('Voices'); ?></th> -->
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big><?php topic_page_links(); ?></td>
<td class="num"><?php topic_posts(); ?></td>
<!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; // $super_stickies ?>
<?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?></td>
<td class="num"><?php topic_posts(); ?></td>
<!-- <td class="num"><?php bb_topic_voices(); ?></td> -->
<td class="num"><?php topic_last_poster(); ?></td>
<td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
</tr>
<?php endforeach; endif; // $topics ?>
</table>
<?php bb_latest_topics_pages( array( 'before' => '<div class="nav">', 'after' => '</div>' ) ); ?>
<?php endif; // $topics or $super_stickies ?>
</div>
<?php else : // $forums ?>
<div class="bbcrumb"><a href="<?php bb_uri(); ?>"><?php bb_option('name'); ?></a> » <?php _e('Add New Topic'); ?></div>
<?php post_form(); endif; // $forums ?>
<?php bb_get_footer(); ?>
Now bb_new_topic_link() & topic_class() for sticky does not work.
Any way to do it via plugin folder, functions.php, or theme folder without putting the file in the root? If bbpress upgrades (don’t laugh too hard) I will forget about it.
Hi Chris
It would be the latest version of bbpres – I downloaded 1 April (note that there seems to be nothing in the download that tells you what version you have – this should be remedied. In fact, I cannot find any ‘Read Me’ file either).
I FTPed the files. Ansers to your other questions are –
Red Hat Enterprise Linux Server release 5.4 (Tikanga
Server version: Apache/2.2.11 (Unix)
However, the php version is PHP 5.2.9 (cli) (built: Jun 21 2009 – is this a problem that it is not 5.3.x?
Maybe I should just re-download and re-install?
Look forward to your advice.
Regards
Derek
Hi gerikg,
this post could help you:
https://bbpress.org/forums/topic/create-a-new-custom-page-like-wordpress
1. Make a custom page
create a page discussion.php in the root forum folder
add require_once(‘./bb-load.php’); on the top of the page. and write whatever code you want in the page.. that should create a static page with bbpress functions..
2. Put in the code for the Latest discussions from the main page (?)
or
3. Make your own sql query – https://bbpress.org/forums/topic/create-a-new-custom-page-like-wordpress
Markus
How do I make Latest Discussion on it’s own page?
I suppose you could do the complete noob thing and say:
<?php if (bb_get_forum_is_category()) {
continue;
}
else {
// do something
}
?>
Unless I am completely missing your point and this is some sort of test
And for the time being, there’s no need to create a fork. Just create new tickets, contribute patches and after testing, chrishajer might commit them.
I think I might have broken something when setting up bbPress. I wanted it integrated with my wordpress site. While installing, when it asked for the username for the “Key Master” I put in Murgy, which is my WordPress admin name. Anyway, I went through the rest of the installation, integrations, etc. But now, when I log into WordPress, it logs me out of bbPress, and when I log into bbPress it logs me out of WordPress, so… I’m thinking that naming the initial Key Master the same as my WP admin name maybe wasn’t the smartest idea.
But anyway. Is there any way to fix this, or should I reinstall or something?
A PHP warning should cause the site to not load (it’s just a warning, not an error.)
Is the wp-load.php actually available where you say it is in the include statement?
Also, does including it near the top of bb-config.php change the error at all? (I usually see it near the top, not the bottom.)
Finally, can you use the include_once function to include some other random file in the current directory? Just create a file like test.php with nothing in it other than <?php /* */ ?> and then try to include that to see if the php function is actually working or if there is maybe some server security interfering.
Hi gerikg,
can you post a link to your forum? Evtl. we can test it together.
On my forum i have at first also a blank page – there it was a problem with two plugins (one in bbPress, one in WordPress).
Markus
When I do the deep integration it works find but two people already came to me and said it makes the page blank. How does one troubleshoot this problem? I’m assuming they are using the steps on my website so the steps are the same. They are both pulling wp-load.php. WP 2.6.3 and latest bbp.
Try the Easy Video Embed plugin https://bbpress.org/plugins/topic/easy-video-embed/
It enabled embedding videos like YouTube, Vimeo, Revver and others in bbPress 1.02, the latest version. Works in Firefox and IE. It is a new plugin, you can find it on the main page of the plugins list.
Hi Bradcarters,
i don’t think this is the best solution to fix the original problem. It is just a “dirty” workaround. For me it seems to work.
But you can wait for the test and the answer from gerikg.
Markus
I just committed that patch, so the fix should be evident here within 24 hrs. Please test and report back.
thanks chris.
I’m on a linux server. Like I said before, I’ve tested the problem with a blank template and zero activated plugins it still happened.
it seems like it would be closest to this problem https://trac.bbpress.org/ticket/1090 – although that trac has been marked as a duplicate with 1150, they seem to be separate problems to me. But you never know!
Do you know what the correct url format for a undeleting should be? Is my forum directing me incorrectly, is delete-topic.php failing, or is my server not carrying through the command?