Search Results for 'code'
-
Search Results
-
Topic: Databose functions
Ok, i have a mysql database and i added a karma section to users but no matter what i try i can’t get it to print. i do $karma = $bbdb -> get_results(then the tested normally sql select code here) then i put echo $karma->karma. but it prints nothing
I have to integrate some sort of forum in a WPMU 2.6.5 website that will be going live in 20 days. I’d love to use bbPress but not sure which version I should use. the stable .9 release (which as far as I can tell does not integrate well) or the 1.0 alpha and hope for the best. any advice would be apprecated. It is essential for us to have unified login, other features are less important. thanks in advance
Hi, I am new to wordpress and do not know why when I try to go to my website: http://www.lifeonholdmusic.com, all of the sudden this error message:
Fatal error: Call to undefined function: get_header() in /home/content/l/i/f/lifeonhold/html/index.php on line 7
appears! I don’t believe I made any changes and I suddenly got this error and don’t know what to do! any help would be greatly appreciated
I know this is a question geared more towards the WordPress.org forums, but because it also could be a bbPress integration question, I figured I’d post it here.
Case:
1.) When you are within the Blog area of the site, that the Blog tab always displays a “current” class.
2.) When you are within the bbPress/Forum area of the site, the “Forums” tab also always shows “current.”
To my understanding, the WordPress page function isn’t powerful enough to understand the parent/sub relationship. Curious if anyone knows of a way within WordPress to make this act in a similar fashion apart from hard-coding it. I don’t believe the WordPress.org site is hard-coded that way, but of course I could be wrong.
I’m a not-quite-noob on WP/WPmu, and a total noob here on bbPress. I’m attempting my first integrated install, from scratch. WPmu latest (2.7 trunk as of a couple weeks ago) and bb 1.0 alpha 6. I thought I’d share a new-user experience… knowing that this kind of stuff is hard to remember later.
I’m wanting integration of users and logins, and went through the install with that in mind.
Anomalies, strangeness and bugs found:
1) It asks for both the site URL and blog URL. WPmu doesn’t have both items, so that’s confusing. Should mention that the same value can be copied in.
2) It doesn’t suggest the URL needs “http://” attached until after you save settings and get an error.
3) [suggestion] why not ask for the location of the WP/WPmu install, and pull the keys etc from wp-config.php??? That would save a ton of typing and confusion.
4) Once I got everything entered, it let me login ok… HOWEVER:
5) It quickly LOST all my settings and the database appeared broken. Here’s how:
* I clicked on “Admin” to go to the admin panel
* Went to Settings->WordPress Integration
* Set up role mappings and saved
* Either at that point, or with one more click (Save in User Integration), I was suddenly locked out and getting mysql connect errors in the header.
* Examining the page I was on showed the “advanced database settings” had defaulted to different info: apparently it used my admin login (user admin) rather than the WP db user/pass I had provided.
* It was impossible to reset this info on that page due to the DB connect error. [suggestion: maintain ‘admin’ login/pw in a bb_* table for emergency admin use of the WP connection breaks!]
* Confusingly, the DB info in bb-config.php is correct and I could not find the (wrong) wp DB info in any text file. Presumably it is stored in the bb-* database?!
My workaround, which is now in use: hand code the settings (
$bb->user_bbdb_useretc) intobb-config.php. That works.Bottom line: either the integrated installation process, or perhaps the settings->Integration page, is busted.
Hope that helps!
[PS: I’m the author of the wptuner performance analysis/debugging plugin for WP/WPmu. Would a BB version be helpful?]



hello. i just want to check something… before i go and do it and mess everything up.
askimet has caughts loads of spam comments on my forum, which is great, but they are still in the database. i would like to remove them completely.
i reckon that this is the correct entry, but does anyone know for sure?
delete from bb_posts where post_status = '2';