Search Results for 'test'
-
Search Results
-
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!
Hi,
Well at the main page of the forum you have: Latest Discussions and underneeth it: Forums. My question is about this last part. The main themes are all in each row underneeth each other like:
Forum 1 – bla bla
Forum 2 – bla bla
Farum 3 – bla bla
Is it possible to let these appear in 2 columns like in a news paper? Like:
Forum 1 – bla bla Forum 2 – bla bla
Forum 3 – bla bla
And this goes automaticly ofcourse… I know they work on this with css 3 but it will take years when thats is finished. So how to get this done now?
Thx
Topic: Plugin: Simple Onlinelist
Hi.
I really missed an onlinelist in bbpress, so i made a simple one myself. Dont expect anything special, it just tells who was online over the past 5 minutes.
Download it here.
See a demo here. (Login use: Test / test)
To Display the online list simply add
show_online_users();wherever you want it in your template.Additional Features:
– Last online time on profile page:
profile_last_online();– Current online users as number:
total_online_users();Topic: Avatars in bbpress
So, I just started using bbpress 3 days ago mostly because phpbb is God awful when it comes to spammers (akismet is pretty awesome on my homepage, so I assumed it would also be awesome in forums).
At any rate, I installed a copy as a test and have been playing with it, got kinda sad that avatars weren’t supported (and didn’t want to make people get gravatars just to have an avatar, esp since gravatar service was down the other night). So I wrote my own avatar functions.
I have everything I did on my forums, or you can just go check it out at http://www.rayd.org/forums2/
My question is, can what I did be done in a plug-in? I know I can put my two ground-up functions in a plug-in file, but the one I don’t know how to do is the way I added a spot for a link to an avatar in profile pages. Here’s the link to me describing what I did, and the quote from what I’m talking about:
http://www.rayd.org/forums2/topic/6?replies=1
bb-includes/functions.php line 1388: Added avatar info to the array in function get_profile_info_keys(). Looks like this:
array(‘user_email’ => array(1, __(‘Email’)), ‘user_url’ => array(0, __(‘Website’)), ‘from’ => array(0, __(‘Location’)), ‘occ’ => array(0, __(‘Occupation’)), ‘interest’ => array(0, __(‘Interests’)), ‘avatar_loc’ => array(0,__(‘Avatar URL’)))
As you can see, adding that little avatar stuff at the end of that array definition not only easily added the spot to the page, but put it in the database and allowed me easy access to it in my other functions.
I’d love to make this into a plug-in, I just don’t know how to do that. Any advice would be great
