Search Results for 'test'
-
Search Results
-
I don’t know if this plugin is listed anywhere in the forum (can’t find it), but this is a plugin that will have recent forum posts from bbPress in your WordPress blog. Sidebar or otherwise. I use it and it is a great little plugin:
Recent bbPress Discussion in WP Plugin
As well, if you want to exclude a particular forum from the list, I have a little fix. Reply if that would help you.
Trent
Topic: Error for tags.php
I’ve just installed bbforum to test and play around with, but have hit a niggling problem – I hope people can help.
In the breadcrumb navigation for tags, urls of this forum work:
http://www.learning2goblog.org/bbforum/tags.php?tag=bbpress
but if I click onto the “Tags” link in the breadcrumb navigation (i.e. I open
http://www.learning2goblog.org/bbforum/tags.php), the page does not load, and in Firefox I get the message
The page isn’t redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
* This problem can sometimes be caused by disabling or refusing to accept cookies.
Has anyone else experienced this problem? I’m using the latest version of bbforum, no permalinks.
Thanks for any help you can give.
Topic: Help with a plugin
I wanted a way to let the topics listed under “Latest Discussion” expire after a while (eg., no longer show up if there has been no activity after a week), so I wrote this little plugin which works alright, except it messes up the forums. Each forum, when clicked, shows all posts no matter what forum they’re in.
Any help would be appreciated. This is a simple script, I just copied the $where code from functions.php and added the filter, then added my “expire after 7 days” addition. Any help would be appreciated, I’m probably just not seeing something simple.
function get_where_plugin() {
$forum = (int) $forum;
$where = 'WHERE topic_status = 0';
if ( $forum )
$where .= " AND forum_id = $forum ";
if ( !empty( $exclude ) )
$where .= " AND forum_id NOT IN ('$exclude') ";
if ( is_front() )
$where .= " AND topic_sticky <> 2 AND SUBDATE(NOW(), INTERVAL 7 DAY) < topic_time "; // 2nd part is my addition
elseif ( is_forum() || is_view() )
$where .= " AND topic_sticky = 0 ";
return $where;
}
add_filter ( 'get_latest_topics_where', 'get_where_plugin' );
To see how it’s misbehaving, you can go to http://www.rayd.org/forums/ and just click on either forum (General Chat or New Forum Discussion) and see that both contain the same data. However, it’s working great on the front page.
Topic: Installing to local Mac
I am trying to install bbPress to my local Mac into a subfolder of my test WP installation which has been set up and working for over a year now.
This means my url is not an ‘www.example.com’ address but a 127.0.0.1 (or, in my case, my local network IP which works just as well). So I have set up config.php with this address. and the path as ‘/forum/’.
When then trying to run the install script however, it just takes me to a comletely blank page. (A similar problem was raised here: http://bbpress.org/forums/topic/143?replies=1 but received no reply).
Does anyone have any ideas what this points to?
Topic: Private Forum script
I needed desperately a script that would restrict all access to unregistered users so I wrote one. But I am an absolute beginner so don’t know no nothin’ about elegance or whatnot but I just tested it in my installation and it works.
The thing is naturally bb_press has authentication scripts. but to make all you website protected you need to put this in your header.php. However bb-login.php, which your users need to login also use the header.php, so I had to make sure that this small script runs on all pages EXCEPT the login page.
Here’s the script:
<?php
$login_page = $bb->path . ‘bb-login.php’;
if ($_SERVER != $login_page) {
if ( !bb_is_user_logged_in() ) {
header(‘Location: ‘ . $bb->domain . $bb->path . ‘bb-login.php’);
} else { }
}
else { }
?>
How to Use it:
1. Copy paste the above code to your my-templates/header.php AT THE VERY TOP of the file. Make sure you leave no empty space before the <?php line (use something like TextPad – it’s free). So you header should look like:
<?php
$login_page = $bb->path . ‘bb-login.php’;
if ($_SERVER != $login_page) {
if ( !bb_is_user_logged_in() ) {
header(‘Location: ‘ . $bb->domain . $bb->path . ‘bb-login.php’);
} else { }
}
else { }
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.1//EN” ….
That’s it. Since I use the values you provided in you BBPRESS setup all the paths should be correct.
Like I said I am complete newbie, so use at your own risk. BACKUP your header.php, or if something goes wrong just delete the script you just added.
Hope it works for you,
Caner
Topic: latest reply by admin
even after installing the plugin to get display names showing, the top of any forum topic still says
# Started 1 minute ago by admin
# Latest reply from admin
how can i fix this?
Topic: Post Via URL?
Is there anyway to post via a URL?
I.e.; http://forum.blandname.com/?new=1&topic=1&subject=test&post=”this is a test”
If this is not possible, is there a way to port the WordPress bookmarklet to bbPress?
Is there any way to make a function, say: “get_latest_topic”, or simply limit the “get_latest_topics” function to display only the latest topic, but also include the full post?
If not, there may be some other way that I am missing in order to add the content of the latest post to the frontpage, without going all-out and using Worpress for this view.
Thanks in advance!