Search Results for 'code'
-
Search Results
-
Hi, this is a newbie to bbPress. Thanks for the great work.
Just want to ask before deploying the code into a semi-production environment.
It’s great to hear that deleted posts can be undeleted.
But, how am I going to clean up posts that I’m sure I no longer need anymore?
I pay for web hosting and don’t have a very large database.
Thanks a lot. Take care.
–acefinale5
Topic: Search no longer finds users
When I upgraded from .73 to .80, the search stopped finding users. In the templates folder, search.php, this code exists:
<?php if ( $users ) : ?>
<h2><?php _e('Users')?></h2>
<ol>
<?php foreach ( $users as $user ) : ?>which makes me THINK it should display users, and it used to display users, but it doesn’t any more. There were quite a few changes in that file between versions. Does anyone else have this problem? Try searching your forum for an exact username and see if you find any users. It also used to match part of a username, so searching for “river” would return “riverside” and “riverfront” if those were valid users.
Anyone?
Today I am integreating wordpress and bbpress, it’s works fine, but after I set BBLANG to my language(zh_TW), this message below shows up.
“Fatal error: Cannot redeclare class streamreader in /path/to/bbpress/bb-includes/streams.php on line 26”
Coz StreamReader class has been declared in wordpress, but bbpress will declare it again in ‘bb-settings.php’, this coz the error.
here is the code in ‘bb-settings.php’
Code:include_once(BBPATH . BBINC . ‘streams.php’);
include_once(BBPATH . BBINC . ‘gettext.php’);I use class_exists to avoid these two files, ‘streams.php’ and ‘gettext.php’ to be include twice.
the code came into these:
Code:if (!class_exists(‘StreamReader’))
include_once(BBPATH . BBINC . ‘streams.php’);if (!class_exists(‘gettext_reader’))
include_once(BBPATH . BBINC . ‘gettext.php’);then it works! bbpress came back to normal, but my language file seems not to be loaded.
After all, I find out, that bbpress uses wordpress function after integrate, so I place my .mo file into /path/to/wordpress/wp-includes/languages/ , then, my language file finally loaded. but ….. here is another problem, the .po of wordpress and bbpress will mess up into one file. but I want my wordpress not to be translated. ><
Topic: Automatic login in bbpress
Hi,
I want to automate login in bbpress and start bbpress session. How can i do that? I have my portal setup with list of users who come there for additional functionalities, I want to extend it by adding bbpress forum.
Basically in that way…
I need to do 1. Register users in bbpress database 2. login in bbpress whenever user logs in to my site and 3. logs out whenever user logs out from my site.
Are there any interfaces available which i can use in my code? My code is also in php and I am willing to modify some core files if required.
Please let me know. I will really appreciate your help.
/[^/]+|i', '', get_settings('home') . '/' ) );
here’s a recap of what I did: