Search Results for 'code'
-
Search Results
-
Hi,
I would like to work with subforums and sub-sub forums,
but obviously that takes a lot of room on my front page..
Does anyone have the same problem and has a solution for that?
I suggest doing something like this:
Forum
– Subforum1
–Subsubforum1, Subsubforum2, Subsubforum3, Subsubforum4
-Subforum2
–Subsubforum1,Subsubforum2
does anyone know how to?
thx!
Line 78 in db-mysqli.php looks like this:
$this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, $server->port );
I thought the order of the parameters was important, and should be:
host, user, pass, dbname, port, socket
From looking at line 78, it would seem that the dbname is set to null, and the socket is not used since it’s just not there. Is that intentional? Maybe the database name is set someplace else and is not needed here for this connection? Just asking because it seemed weird to me.
Thanks.
Hi!
I am trying to install bbpress with WP 2.3.
In the config-file for bbpress I have written EXACTLY the same databasename, username and password as in the config-file for WP.
Still, when I run the install.php for bbpress I get several lines of “warnings”/error messages before the installation text “Welcome to…”
Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user ‘nicuuorg’@’localhost’ (using password: NO) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php on line 80
Anyone understanding what’s going on.
The WP runs without any problems.
Could it be related to that the username is not correctly read from the config.php-file. The username is
nicuuorg_stefanj
, but access is denied for'nicuuorg'@'localhost'
according to the warning above.Topic: Display avatar in header
At my site http://www.doublepeace.se , when you log in, I’d like to have the users forum avatar displayed in the header. I tried just pasting <?php post_avatar(); ?> up there, and that didn’t work
I have both the My Views and Support Forums plugins installed. They work well together except for 1 thing. Both plugins add a new filter to bb_views.
If both plugins are running the new views from My Views are the only ones to show up. The Support Forums views are not listed. After poking through the code I was able to fix it by making sure that the Support Forums bb_views filter was added AFTER the My Views bb_views filter. To do so edit support-forum.php .
Replace line 432
add_filter('bb_views', array(&$this, 'addViews'));
With
add_filter('bb_views', array(&$this, 'addViews'), 200);
You should now be able to see the views from both plugins.
I’m no expert, but it seems like when My Views is adding my_views_init to the bb_views filter its overwriting whatever Support Forums has already added to the filter. Just a guess. I’m sure ck, so1o, mdawaffe, or SamBauers will know exactly what is going on.
Enjoy!
bbPress is installed in /forums and WPMU is installed in /blogs .
The cookie and database integration works fine.
I am able to access bbPress functions from within WPMU by adding this to the end of /blogs/wp-config.php
// Include bbPress functions in WPMU
define('WP_BB', true); // Avoid duplicate function declarations
require_once( ABSPATH . '../forums/bb-load.php');
I’m trying to add WPMU functions to bbPress. I’ve tried adding this to the beginning of /forums/config.php . I’ve also tried putting this in the beginning of the file.
require_once( dirname(__FILE__) . '/../blogs/wp-blog-header.php')
When I go to /forums/ I’m redirected to the WPMU sign up page (/blogs/wp-signup.php?new=%2F).
I’ve also created a simple file ( /test.php ) and tried to integrate it with wpmu. It it also redirected to the WPMU sign up page.
Test Start
<?php
require_once( dirname(__FILE__) . '/blogs/wp-blog-header.php');
?>
Test End
Do I need to create a WPMU rewrite rule in the wp_1_options rewrite rulerecord? There shouldn’t be any need for an .htaccess rewrite rule since /forums and /blogs are not in subfolders of either.
Any ideas how to make this work?