Search Results for 'code'
-
Search Results
-
Hello.
Installed wp2.7 in root dir, and bbpress alpha 6 in sub-dir. Enabled permalinks, added code to htaccess in sub-dir.
Test 1. Logging in to wordpress admin.
Navigate to comments: shows logged in as admin user
Navigate to forum: not logged in
Navigate to forum admin: not logged in
Test 2. Logging in to bbpress admin.
Navigate to comments: does not show as logged in as admin user
Navigate to wp admin: logged in as admin
Is this how it’s supposed to work?
More info:
After adding the following lines of code to the wp-config file:
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ‘/’);
This does not change anything except, if I am logged in to the WP Admin, I can not log out. Clicking Log Out presents:
“You are attempting to log out of The Site
Please try again.”
Am I missing something with the code above? Should I be adding the domain name somewhere?
I appreciate your help.
$warnings = $bbdb->get_results("SELECT user_id, meta_value FROM $bbdb->usermeta WHERE meta_key='bbmodsuite_warnings'");Okay, so now I have all of the warnings from every user with them. That was easy, just one query. However, I don’t know any good way to go back to the database, once I loop through them all, since I will need to delete some of the usermeta entries, update the others, and update a second set of usermeta keys designed to lower database traffic. Thank goodness this is only on cron.
How do I update hundreds (or even thousands) of database entries all at once?
Topic: BB_User deprecated in V1?
Specifically regarding the Approve User Rrgistration plugin.
Fatal error: Class ‘BB_User’ not found in …/bb-plugins/approve-user-registration/approve-user-registration.php on line 58
I’ve seen in some other plugins compatible with 1.0 the use of ‘WP_User’ and ‘BP_User’. I’ve tried using these and there is no error, but the plugin doesn’t work…
Anyone know how to fix this? I really need the features of this plugin – it would be really good if it was a standard option in bbPress.
In my WordPress functions.php file, I am queuing up jQuery for some interface objects I’m using.
wp_enqueue_script('jquery');It seems this messes with bbPress’s javascript inclusion, causing none of the JS from bbPress ever to get loaded.
Because I am using jQuery also in bbPress, is there a way around this that anyone can think of?
I’ve started coding my first bbPress plugin and I’m now pretty familiar with most of the actions and filters and some of the inner workings of bbPress but I’m stuck.
The idea of my plugin is to insert AdSense code block in every topic at post X where X is either random or defined by the admin. I’ve been messing around with the post_text filter which allows me to change the text of any given post and insert an AdSense block. I can mess around with the author name and stuff too. The problem is that by doing this I replace the current post with the AdSense block instead of simply inserting it before or after the post, thus the post I replace isn’t visible.
To get around this I tried to first display the AdSense post then include the post.php file in the currently selected theme. But this crashes, I think due to an infinite loop. I then noticed the pre_post filter which looked promising but I couldn’t find where it’s defined or how it’s used.
In short, I need an alternative approach or solution to create a custom (and theme-independent) post.
My code, so far, is visible here: http://pastebin.com/m1cbf6b24
Cheers
I only have one forum, so there is no point in BBPress giving me a seperate front page and Latest Disussions list. Is there an elegant way for me to integrate the sidebar into the forum listings page? I tried chopping up the templates but I can’t seem to get the code right.

..