Search Results for 'code'
-
Search Results
-
Topic: Adsense for BBpress
Looking for a plugin to put Adsense Code in between forum posts. Is the Adsense for BBpress plugin working?
Last night and this morning and the whole day, I’ve been busy trying to figure out where new users where going.
After the integration I noticed that all users where showing ‘anonymous’, I did some reading and I discovered that it was possible that it wasn’t reading the appropiate database.
But I checked and checked, and I know that it IS reading the appropiate database, since the admin account is ONLY available in the wp_users table. I have been able to login with it, in both my bbpress area and my wp area.
My existing accounts, I couldn’t login with that. I kept getting User does not exist.
I created new accounts to see where those went. I couldn’t find them.
I just realized that the new accounts, they replaced random old accounts. But just the USER_NICENAME in the forum, if I check my database, I still the original name corresponding the account ID.
To summarize it:
Integrated wp + bbpress. It was an existing bbpress website.
Integrating went kind of OK. after the integration, I noticed its not reading the users, hence the ‘user does not exist’, all users are showing anonymous.
I really really would love it, if someone could help me out

Anyone?
Topic: Parsing Torrent File Content
I had problems with the “search in forum” feature. The “select” input control is displayed, but it seems as if the value i choose isn’t used by the code.
When I press submit, this is he URL that is sent to the web server:
http://my.hostname.com/forum/search.php?search=nisse&forum-id=2
In this example, the forum restriction does not take effect.
However,
if i manually change the URL to:
http://my.hostname.com/forum/search.php?search=nisse&forum_id=2 (note the underscore; forum_id)
then it works!
I can track it down to the file:
/bb-includes/class.bb-query.php
and this code:
if ( $forum ) {
$r .= "t<div><label for="forum-id">" . __('Forum') . "</label>n";
$r .= "tt<div>" . bb_get_forum_dropdown( array( 'selected' => $q_forum_id, 'none' => __('Any'), 'id' => 'forum-id
' ) ) . "</div>n";
$r .= "t</div>nn";
}
Changing forum-id to forum_id here fixes the problem, but I would prefer not to tamper with core files.
Topic: bbPress INCLUDE in template
is there the ability to use the WP type INCLUDE in bbPress in order to include an custom php file? What I want to do is take the repeating “sidebar” code into a separate file so I don’t have to update all the files that include the sidebar code

