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.
Topic: Step 4: Installation failed!
I’ve tried to install bbPress in a several different locations, but i always get an errormessage at Step4:
Installation failed! The database failed to install. You may need to replace bbPress with a fresh copy and start again. Referrer is OK, beginning installation…
Step 1 – Creating database tables
>>> Database installation failed!!!
>>>>>> Halting installation!
I cleared the database tables also and retried to install. But with no success. We use PHP 5+ and MySQL 4.1 on Suse Linux. I also tried to chmod some directories. No success.
As i took a closer look at the code, i can report that the errors is thrown from class-install.php on line 1513: $alterations = bb_install(); after doing a print_r on the alterations array, i can see it has now values.
EDIT:
further debugging shows the following errors:
Key master could not be created!
Forum could not be created!
So it seems, that the forum couldn be created. If i create it manually. The frontend works. but when i try to login to the admin panel, i always get redirected to the frontend without an error.
maybe this could help…
kind regrads from germany
michael

..