Forum Replies Created
-
In reply to: An old config.php file has been detected…
bbPress looks in its folder and the folder directly above it for a config file. If you move bbPress out of the phpBB folder or move bbPress into something like [phpBB folder]/bbpress/test/[bbPress folder], it should work. Don’t modify the phpBB config file.
In reply to: username function<?php
$user = bb_get_user( get_post_author_id() );
echo $user->user_login;
?>In reply to: Display a list of recent topicschandersbs: In that case, try
date( strtotime( $result->topic_start_time ) < floor( current_time( 'timestamp' ) / 86400 ) * 86400 ? 'F j' : 'H.i', bb_offset_time( strtotime( $result->topic_start_time ) ) )
In reply to: Display a list of recent topicsInstead of
$result->topic_start_time
, you wantdate( strtotime( $result->topic_start_time ) < time() - 86400 ? 'F j' : 'H.i', bb_offset_time( strtotime( $result->topic_start_time ) ) )
That should fix the date offset problem and give you the date formats you want.
In reply to: I have decided to write my own WordPress PluginThis is the bbPress forum, so I’m assuming you got your words mixed up – The bbPress function documentation I always use is at http://phpxref.ftwr.co.uk/bbpress/
(If you really meant WordPress, look at http://phpxref.ftwr.co.uk/wordpress/ )
In reply to: trunk or 0.9?You can always upgrade. Trunk to 1.1 will be as simple as uploading the new files.
In reply to: Topics-in-tag count incorrectBurning Tags modifies the number to be the number of recent topics with the tag, not the total number of topics with the tag.
In reply to: [resolved] Error on PHP 5.3It’s already in the code – http://phpxref.ftwr.co.uk/bbpress/bb-load.php.source.html#l153
You should really update to the latest version – it has multiple security fixes over your version.
(And btw, config.php is deprecated – bb-config.php is where it’s at!)
In reply to: BBPress Login to protect my own pages?Oh, typo. Here’s the correct one:
<?php require_once 'path/to/bb-load.php'; bb_auth( 'logged_in' ); ?>
In reply to: BBPress Login to protect my own pages?<?php require_once 'path/to/bb-load.php'; bb_auth( 'logged-in' ); ?>
In reply to: Cant log in – error messageAdding it to the bb-config.php also works, but it will prevent you from changing it in the admin.
In reply to: Cant log in – error messageWith PHPMyAdmin, change the uri in the bb_meta table to the actual one.
In reply to: Display All TagsI misunderstood your question. I thought you wanted the unfiltered list of tags, but you actually meant you wanted every tag on your forum.
Anyway, here’s the code:
<?php bb_tag_heat_map( array( 'limit' => '' ) ); ?>
For the URL problem, go into PHPMyAdmin and use the SQL tab to query for
SELECT * FROM bb_meta WHERE meta_key = 'uri' AND object_type = 'bb_option'
. Then, you can click the edit button and fix that part.As for the other problem, there’s no real way to figure it out until you fix the URL one.
In reply to: Who can shed some light here?Where on the page does it show up?
In reply to: Redirecting non-www to www versionAdd
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]to your .htaccess (right under RewriteEngine On)
In reply to: bbPM Private MessagesThe folder called
bbpm
should be in my-plugins.https://bbpress.org/plugins/topic/automated-forum-moderation/automated-forum-moderation.zip
https://plugins-svn.bbpress.org/automated-forum-moderation/trunk/screenshot-1.png
Your post is looking a little skimpy! The forum requires you to have at least 3 words, but you only have 1.
Push the back button in your browser.
How’s that?
In reply to: Deprecated???I don’t suggest using the development version on a live site because it isn’t as “tried and true” as the released versions.
The snippet is fine to use on a live site.
In reply to: Deprecated???Somewhere around line 25 of bb-load.php there should be a line that starts with
error_reporting(
. Change it toerror_reporting(E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING);
(This has been fixed in the development version, but I don’t suggest using it on a live site)
In reply to: Bozos, voices, views… (i18n questions)Bozo is used to describe spammers.
Voices is the number of individual members of the forum that have posted on a thread.
A view is a list of topics that fit into a category, like topics with no replies and topics with no tags.
“Halting installation!” is used when an error is encountered and is (as far as I know) the last thing that shows up in the log.
The REQUEST_URI and PATH_INFO don’t look like they should be translated, but they are used in a debug message.
In reply to: Problems after intergrationYou set WordPress Administrator to bbPress Administrator instead of bbPress Key Master.
Run this on your database:
DELETE FROM bb_meta WHERE meta_key='wp_table_prefix'
That should allow you to log in with your bbPress account and fix the setting.
In reply to: Where can I download Human Test for bbpress?I can get to https://bbpress.org/plugins/topic/human-test/human-test.zip just fine.
In reply to: Loading bbPress Signatures lastOpen up BBcode-buttons.js and change the occurrences of “load” on lines 2 and 3 to “DOMContentLoaded”. That should make the BBcode buttons toolbar load without waiting for all of the images on the page to load first.