Search Results for 'code'
-
Search Results
-
Hi all
After upgrading:
WP2.5 -> 2.7
BBPress 0.9.4 -> 1.0 alpha 6
WP is running badly.
In order to get access to functions of BBPress, I have these lines at the end of wp-config.php:
if ( !defined('BBDB_NAME') )
require_once(ABSPATH.'forum/bb-load.php');
Into the index.php of my WP theme, I wish to display the last topics of the forums, by doing:
<?php
$forums = get_forums();
$topics = get_latest_topics();
$super_stickies = get_sticky_topics();
for ($i=0;$i<3;$i++){
$topic = $topics[$i];
?>
" title="See the message of <?php topic_author();?>"><?php topic_title();
<?php } ?>
The display of the latest messages was working well and still working well after the upgrade, BUT WORDPRESS GETS INTO TROUBLE:
– the css style for the back admin of WP is not working
– the hooks into the plugins are not called anymore (add_action(‘wp_head’, ‘init_js’); where init_js() is never run)
– custom query vars are not detected into the url
Well, when I remove the require_once into the wp-config.php (see below), the trouble disappear.
//if ( !defined('BBDB_NAME') )
//require_once(ABSPATH.'forum/bb-load.php');
How to get it working with the bbpress function without trouble in WP ?
I think this is a very important point for the BBPress integration in WordPress
Thanks
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.
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';