Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 10,526 through 10,550 (of 11,549 total)
  • Author
    Search Results
  • #56053
    diniscorreia
    Participant

    Ah, great! I’ve been translating bbPress to portuguese to use on my WPMU+bbPress project and when I try to set the language I get the error as well….

    Anyways, I guess I’ll have to try merging the two PO files.

    @ganzua, I don’t think you really need to define BBLANGDIR – it works because you have already defined the .mo file in WP config file. You get the error *if* you try to define BBLANG. However, if you leave BBLANG as ”, you won’t get the error.

    I actually haven’t tried yet, but I think it make sense.

    #61622

    In reply to: bbPress on localhost

    chrishajer
    Participant

    I think you were bitten by an error that has been fixed in the latest trac release, but still exists in the production release. Take a look through the threads tagged 745:

    https://bbpress.org/forums/tags/745

    745 is the trac ticket where this was discussed. There are lots of workarounds listed in the forums and on trac.

    https://trac.bbpress.org/ticket/745

    Good luck.

    #61531
    joeby
    Member

    That was a good lead, but I downloaded the plugin, and although it shows up (unlike the display-name plugin) activating it has no impact on old registrations.

    I also tried to register a new account “Test User” — the confirmation screen says, “Your registration as TestUser was successful.” No space.

    Although in a wacky twist of fate, the registration did also carry through to WP. And assigned the correct role once the user logged in, albeit with a changed username as indicated above.

    #61503

    In reply to: get some trouble …

    antman313
    Member

    so – tested a lot.

    my blog has now an error:

    WordPress database error: [Table ‘summerdb.wp_post2cat’ doesn’t exist]

    SELECT p2c.category_id AS cat_id, COUNT(p2c.rel_id) AS numposts, UNIX_TIMESTAMP(max(posts.post_date_gmt)) + ‘1’ AS last_post_date, UNIX_TIMESTAMP(max(posts.post_date_gmt)) AS last_post_date_gmt FROM wp_post2cat p2c INNER JOIN wp_posts posts ON p2c.post_id=posts.id WHERE 1 = 1 AND posts.post_type = ‘post’ AND posts.post_status = ‘publish’ AND posts.post_date_gmt <= ‘2007-11-18 15:26:18’ GROUP BY p2c.category_id ORDER BY numposts DESC

    if i try to login in bb-admin like: http://www.summer-breeze-fanatics.de/forum/bb-admin/admin-base.php

    i was redirectet to http://www.summer-breeze-fanatics.de/forum/

    i can login with all my users from wordpress into bbpress.

    i have all things done that was sayed in zhe docu and in this forum.

    in my config.php under bbpress and in the wp-config.php.

    but it doesn’t work very well and i don’t know how to figure out what i do wrong.

    anyone has a tip or a little workaround?

    thanks

    Andy

    #61525
    joeby
    Member

    OK… Here’s the latest. You should know, I’m one step above clueless and very dangerous because of it…

    went to myadmin to play with the database. I searched for capabilities and it returned all my user listings… Since I was nervous about deleting anything, I created a second account and gave it admin access.

    I deleted the entry for the capabilities admin… and it deleted my admin access to wp. It changed that username (admin) to ‘no role on this system’ or something similar. (so I logged in with the other admin account and went back to give the original access again).

    So the net result of that is that I still can’t get at a dashboard with either admin accounts in bb.

    The other file issue was corrected when I changed prettylinks to false. Now I can read posts, edit profile etc. although as mentioned above, still no dashboard access.

    Oh, yeah… Still confused about what I need to edit in the wp plugin to make it work correctly… Unless it IS working correctly since all my wp users could in theory log in and use the bb.

    One other new thing that I didn’t realize was happening… WP usernames with spaces (test user) are not able to log into bb, however WP names without spaces (testuser) are able to log in without difficulties.

    Thanks for the help… Perhaps someone can help me figure out where I went wrong?

    #61477
    mrflowerpot
    Member

    tested again.

    The new post will appear on the main page, but can’t view.

    #2603
    antman313
    Member

    Hi all,

    i’ve installed bbforum (latest version).

    i use WP Version 2.3.1 DE-Edition.

    now – i don’t know how to integrate my bbpress with my wordpress.

    i can’t login into the admin page to crate a now forum topic.

    i don’t know how to set up bbpress into my wordpress.

    i want a link to integrate bbpress.

    can anyone help me?

    how i can set up a new forum topic, integrate it with my wordpress?

    thanks.

    (info.: wordpress Version 2.3.1 DE-Edition

    bbpress: latest.

    www: http://www.summer-breeze-fanatics.de/

    forum: http://www.summer-breeze-fanatics.de/forum/)

    Andy

    #61480
    chrishajer
    Participant

    I didn’t think you could put bbPress and WordPress in the same folder.

    $bb->uri = ‘http://www.areamom.com/test&#8217;;

    $bb->wp_home = ‘http://www.areamom.com/test&#8217;;

    $bb->wp_siteurl = ‘http://www.areamom.com/test&#8217;;

    And http://areamom.com/test/ points to a WordPress installation. So, where’s the bbPress? I did find this:

    http://areamom.com/test/bbpress/ which results in this error:

    Parse error: syntax error, unexpected T_VARIABLE in /home/areamomc/public_html/test/bbpress/config.php on line 29

    That’s right after the mod_rewrite line in the config. Maybe you have an extra single quote there or you forgot the semi-colon in your config? Oh yeah, check this:

    $bb->mod_rewrite = false <– no semi-colon.

    That means this you should add the semicolon to the mod_rewrite line line and then this line should be changed:

    `$bb->uri = ‘http://www.areamom.com/test/bbpress&#8217;;

    #2596
    spacecat4
    Member

    Hi,

    I am running a WP site and trying to install BBpress, but when I run the install.php file, I keep getting the “already installed” error.

    Here are some things I’ve already tried:

    I created a new test directory and installed a fresh WP out of box, and then tried installing BB press–same error

    I checked my databases–the only two I have are my two Word Press DB’s none of which seem to have any “bb_” references to them.

    Any other suggestions? Thanks in advanced!

    Here is a copy of my config.php file that I am using in my test directory:

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘areamomc_wrdp2’); // The name of the database

    define(‘BBDB_USER’, ‘areamomc_wrdp2’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘**************’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change these last few

    define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old config.php does

    define(‘BBDB_COLLATE’, ”); // not have these two contstants in them, DO NOT define them

    // If you are installing for the first time, leave them here

    // Change the prefix if you want to have multiple forums in a single database.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // The full URL of your bbPress install

    $bb->uri = ‘http://www.areamom.com/test&#8217;;

    // What are you going to call me?

    $bb->name = ‘Area Mom Forums’;

    // This must be set before you run the install script.

    $bb->admin_email = ‘*********’;

    // Set to true if you want pretty permalinks, set to ‘slugs’ if you want to use slug based pretty permalinks.

    $bb->mod_rewrite = false

    // The number of topics that show on each page.

    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.

    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.

    $bb->gmt_offset = -5;

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BBLANG to ‘de’

    // to enable German language support.

    define(‘BBLANG’, ”);

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage

    // of Akismet’s powerful spam blocking, you’ll need one. You can get an Akismet key at

    // http://wordpress.com/api-keys/

    $bb->akismet_key = ‘********’; // Example: ‘0123456789ab’

    // The rest is only useful if you are integrating bbPress with WordPress.

    // If you’re not, just leave it as it is.

    $bb->wp_table_prefix = ‘wp_’; // WordPress table prefix. Example: ‘wp_’;

    $bb->wp_home = ‘http://www.areamom.com/test&#8217;; // WordPress – Options->General: Blog address (URL) // Example: ‘http://example.com&#8217;

    $bb->wp_siteurl = ‘http://www.areamom.com/test&#8217;; // WordPress – Options->General: WordPress address (URL) // Example: ‘http://example.com&#8217;

    /* Stop editing */

    if ( !defined(‘BBPATH’) )

    define(‘BBPATH’, dirname(__FILE__) . ‘/’ );

    require_once( BBPATH . ‘bb-settings.php’ );

    require_once(‘/public_html/test/wp-blog-header.php’)

    ?>

    #61418
    pwdrskier4
    Member

    You may use my site Snownation. However, it is only a week old and does not have a lot of traffic yet. It is the latest wordpress integrated with the latest bbpress. Let me know if you have any questions.

    #58699
    cyrillsneer
    Member

    I am not exactly proficient at php, I managed to get this working after about 11 attempts more guesstimating more than anything else.

    However the opening of front-page.php just doesn’t look right I have what looks like a statement about topics and stickies opening and closing without anything contained, which makes me think I have done something wrong.

    It would be great if someone could show exactly which lines to move so it is displayed like on http://cutline.tubetorial.com/forums/

    Anyway here is the text….

    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id=”hottags”>

    <h2><?php _e(‘Hot Tags’); ?></h2>

    <p class=”frontpageheatmap”><?php bb_tag_heat_map(); ?></p>

    </div>

    <div id=”discussions”>

    <?php if ( $topics || $super_stickies ) : ?>

    <?php endif; // $topics or $super_stickies ?>

    <?php if ( bb_forums() ) : ?>

    <h2><?php _e(‘Forums’); ?></h2>

    <table id=”forumlist”>

    #58186

    In reply to: bbSync

    fel64
    Member

    Yo Dreamstruck. When you say that you also have bbPress Post 0.41 installed, I hope you realise that bbsync (intentionally) kills its functioning? If it didn’t, you would get duplicate topics.

    I recommend pressing that Migrate button in the bbsync admin, as it will mean that bbsync will work on all topics previously synced with bbPress Post. It would, however, also stop bbPress Post working with that old data, so if you’re (understandably; I am :P) hesitant about bbsync you probably wouldn’t want to do that.

    Cheers muchly, if you hadn’t pointed that out I would have had that error for all time – I entirely forgot to test if the topic was synced before replacing comments. I’ll upload .91 in a few minutes.

    There is unfortunately no way to bulk sync old topics (unless they were done using bbPress Post), as topics can only be posted at the current time (while still using the API) (so you could sync them, but it would flood the forum with out-of-date stuff). But maybe that can be made to work; not in the immediate future, but it’s something that I would also like for my setup so I’ll give it a shot at least.

    Custom fields don’t show up right now, but I could come some functionality to do it for sures. What specifically would you want to happen?

    #58184

    In reply to: bbSync

    dreamstruck
    Member

    I really like this plugin, but I am getting an error on all of my older WP posts. I’m using bbSync 0.9 and bbPress Post .041 with WP 2.2.3.

    What’s happening is that all of my old WP posts have this error showing up right above the comment section:

    Warning: Invalid argument supplied for foreach() in /home/public_html/test/wp-content/plugins/
    bbsync.php on line 465

    All new posts that I make to WP are posting fine to bbPress and this error message doesn’t show up for these new posts. I have about 500 old posts that existed in WP before I installed bbSync or bbPress Post and the error message is showing up on all of these old posts. Is there a way for me to bulk add all of these old post to my bbPress forum? It seems that this error is showing up because these old posts don’t exist in bbPress.

    Thanks…

    #2571
    mikeygyse
    Member

    I’m using the latest version of bbpress, the ‘SuperBold’ theme and I have a problem! The forums all appear on the same line… no indentation separates the ‘containers’ from the forums. From what I can see with FireBug there is NO difference between the containers and forums no difference in terms of CSS at any rate. However with the Kakumei theme it works.

    #60519
    Jaithn
    Member

    i call it like this:

    if ( !defined('BBDB_NAME') )
    require_once(ABSPATH.'forum/bb-load.php');

    the problem started after the integration of wordpress and bbpress…so i don’t know what the problem ist.

    mdawaffe do you have a idea how i can fix this?

    i have one more problem…i can’t add links to my posts…when i post a link in the entry it shows only <a>test</a>…any idea?

    jaithn

    i’m running now bbpress.83 and wpmu 1.3…

    #60556

    In reply to: sub-sub forums

    warmechoco
    Member

    Hi! thanks alot for the help,

    only 1 problem.. my pages don’t have that kind of structure..

    forum.php

    <?php bb_get_header(); ?>

    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>"><?php bb_option('name'); ?></a> &raquo; <?php forum_name(); ?></h3>

    <?php if ( $topics || $stickies ) : ?>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $stickies ) : foreach ( $stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <a href="<?php forum_rss_link(); ?>"><?php _e('RSS feed for this forum'); ?></a>

    <div class="nav">
    <?php forum_pages(); ?>
    </div>
    <?php endif; ?>
    <?php post_form(); ?>

    <?php bb_get_footer(); ?>

    front-page.php

    <?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="discussions">
    <h2>

    <?php _e('Forums'); ?>
    </h2>
    <table id="forumlist">
    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php foreach ( $forums as $forum ) : ?>
    <tr<?php alt_class('forum'); ?>>
    <td><a href="<?php forum_link(); ?>">
    <?php forum_name(); ?>
    </a> — <small>
    <?php forum_description(); ?>
    </small></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endforeach; ?>
    </table>
    <?php if ( bb_is_user_logged_in() ) : ?>
    <?php endif; else : // $forums ?>
    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>">
    <?php bb_option('name'); ?>
    </a></h3>
    <?php post_form(); endif; ?>

    <?php if ( $topics || $super_stickies ) : ?>

    <h2><?php _e('Latest Discussions'); ?></h2>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <?php endif; ?>
    </div>

    <?php bb_get_footer(); ?><?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="discussions">
    <h2>

    <?php _e('Forums'); ?>
    </h2>
    <table id="forumlist">
    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php foreach ( $forums as $forum ) : ?>
    <tr<?php alt_class('forum'); ?>>
    <td><a href="<?php forum_link(); ?>">
    <?php forum_name(); ?>
    </a> — <small>
    <?php forum_description(); ?>
    </small></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endforeach; ?>
    </table>
    <?php if ( bb_is_user_logged_in() ) : ?>
    <?php endif; else : // $forums ?>
    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>">
    <?php bb_option('name'); ?>
    </a></h3>
    <?php post_form(); endif; ?>

    <?php if ( $topics || $super_stickies ) : ?>

    <h2><?php _e('Latest Discussions'); ?></h2>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <?php endif; ?>
    </div>

    <?php bb_get_footer(); ?><?php bb_get_header(); ?>

    <?php if ( $forums ) : ?>

    <div id="discussions">
    <h2>

    <?php _e('Forums'); ?>
    </h2>
    <table id="forumlist">
    <tr>
    <th><?php _e('Main Theme'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>
    </tr>
    <?php foreach ( $forums as $forum ) : ?>
    <tr<?php alt_class('forum'); ?>>
    <td><a href="<?php forum_link(); ?>">
    <?php forum_name(); ?>
    </a> — <small>
    <?php forum_description(); ?>
    </small></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php endforeach; ?>
    </table>
    <?php if ( bb_is_user_logged_in() ) : ?>
    <?php endif; else : // $forums ?>
    <h3 class="bbcrumb"><a href="<?php bb_option('uri'); ?>">
    <?php bb_option('name'); ?>
    </a></h3>
    <?php post_form(); endif; ?>

    <?php if ( $topics || $super_stickies ) : ?>

    <h2><?php _e('Latest Discussions'); ?></h2>

    <table id="latest">
    <tr>
    <th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
    <th><?php _e('Posts'); ?></th>
    <th><?php _e('Last Poster'); ?></th>
    <th><?php _e('Freshness'); ?></th>
    </tr>

    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php _e('Sticky:'); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; ?>
    </table>
    <?php endif; ?>
    </div>

    <?php bb_get_footer(); ?>

    #61252
    livibetter
    Member

    There are two if blocks in front-page.php, one for $super_stickies, another for $topics. Remove first one(about 8 lines) and replace second with

    <?php
    $stickyIdx = 0; $topicIdx = 0;
    while ($stickyIdx < count($super_stickies) && $topicIdx < count($topics)) {
    if ($super_stickies[$stickyIdx]->topic_time > $topics[$topicIdx]->topic_time)
    array_splice($topics, $topicIdx, 0, array($super_stickies[$stickyIdx++]));
    $topicIdx++;
    }
    if ($stickyIdx < count($super_stickies))
    array_splice($topics, count($topics), 0, array_slice($super_stickies, $stickyIdx));

    if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; // $topics ?>

    Actually, the replacement is equivalent to inserting 8 lines of code.

    #2543

    I’d like my sticky threads to act exactly like regular threads on the front page “Latest Discussions” section, instead of always being at the top of the list. That is, they’d still appear on the list, but in the order of last posting – the same as all the usual threads.

    Is there any easy fix?

    #61291
    ericakadisco
    Member

    Thanks for the response.

    Okay, I tried to patch all the files with the changes in that ticket and I seem to get the same error.

    Here is my config.php:

    <?php

    // ** MySQL settings ** //
    define('BBDB_NAME', 'approachanxiety_com_bbpress'); // The name of the database
    define('BBDB_USER', 'disco'); // Your MySQL username
    define('BBDB_PASSWORD', 'xxxx'); // ...and password
    define('BBDB_HOST', 'localhost'); // 99% chance you won't need to change these last few

    define('BBDB_CHARSET', 'utf8'); // If you are *upgrading*, and your old config.php does
    define('BBDB_COLLATE', ''); // not have these two contstants in them, DO NOT define them
    // If you are installing for the first time, leave them here

    // Change the prefix if you want to have multiple forums in a single database.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    // The full URL of your bbPress install
    $bb->uri = 'http://approachanxiety.com/bbpress/';

    // What are you going to call me?
    $bb->name = 'New bbPress Site';

    // This must be set before you run the install script.
    $bb->admin_email = 'ericmonse@yahoo.com';

    // Set to true if you want pretty permalinks, set to 'slugs' if you want to use slug based pretty permalinks.
    $bb->mod_rewrite = false;

    // The number of topics that show on each page.
    $bb->page_topics = 30;

    // A user can edit a post for this many minutes after submitting.
    $bb->edit_lock = 60;

    // Your timezone offset. Example: -7 for Pacific Daylight Time.
    $bb->gmt_offset = 0;

    // Change this to localize bbPress. A corresponding MO file for the
    // chosen language must be installed to bb-includes/languages.
    // For example, install de.mo to bb-includes/languages and set BBLANG to 'de'
    // to enable German language support.
    define('BBLANG', '');

    // Your Akismet Key. You do not need a key to run bbPress, but if you want to take advantage
    // of Akismet's powerful spam blocking, you'll need one. You can get an Akismet key at
    // http://wordpress.com/api-keys/
    $bb->akismet_key = ''; // Example: '0123456789ab'

    // The rest is only useful if you are integrating bbPress with WordPress.
    // If you're not, just leave it as it is.

    $bb->wp_table_prefix = ''; // WordPress table prefix. Example: 'wp_';
    $bb->wp_home = ''; // WordPress - Options->General: Blog address (URL) // Example: 'http://example.com'
    $bb->wp_siteurl = ''; // WordPress - Options->General: WordPress address (URL) // Example: 'http://example.com'

    /* Stop editing */

    if ( !defined('BBPATH') )
    define('BBPATH', dirname(__FILE__) . '/' );
    require_once( BBPATH . 'bb-settings.php' );

    ?>

    When I run the testdb.php I get

    Connection Results

    Connection: Successful!

    Database Selection: Successful!

    Enter Your MySQL Information

    MySQL Hostname localhost

    MySQL Username disco

    MySQL Password xxxx

    MySQL Database approachanxiety_com_bbpress

    Here is the text php file that connects to the database and works:

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>MySQL Test Script</title>
    <style>
    body { font-family: Verdana; font-size: 10pt; }
    td { font-size: 10pt; }
    th { font-size: 8pt; }
    </style>
    </head>
    <body>

    <?php

    if ( isset ( $_POST['submit'] ) ) {
    ?>
    <table border="1" summary="" cellpadding="2" cellspacing="0" style="border-collapse: collapse;">
    <tr>
    <th bgcolor="#F2F2F2" colspan="2"><center><b>Connection Results</b></center></td>
    </tr>
    <?

    if (!$link = @mysql_connect($_POST['mysql_hostname'], $_POST['mysql_username'], $_POST['mysql_password'])) {
    ?>
    <tr>
    <td>Connection:</td>
    <td bgcolor="red"><font color="white"><?php echo mysql_error(); ?></font></td>
    </tr>
    <?
    } else {
    ?>
    <tr>
    <td>Connection:</td>
    <td bgcolor="green"><font color="white">Successful!</font></td>
    </tr>
    <?
    }

    if (!$dblink = @mysql_select_db($_POST['mysql_database'], $link)) {
    ?>
    <tr>
    <td>Database Selection:</td>
    <td bgcolor="red"><font color="white"><?php echo mysql_error(); ?></font></td>
    </tr>
    <?
    } else {
    ?>
    <tr>
    <td>Database Selection:</td>
    <td bgcolor="green"><font color="white">Successful!</font></td>
    </tr>
    <?
    }

    @mysql_close($link);
    ?>
    </table>
    <?
    }

    ?>

    <form method="post">

    <table border="1" summary="" cellpadding="2" cellspacing="0" style="border-collapse: collapse;">
    <tr>
    <th bgcolor="#F2F2F2" colspan="2"><center><b>Enter Your MySQL Information</b></center></td>
    </tr>
    <tr>
    <td>MySQL Hostname</td>
    <td><input type="text" name="mysql_hostname" size="40" value="<?php echo $_POST['mysql_hostname']; ?>"></td>
    </tr>
    <tr>
    <td>MySQL Username</td>
    <td><input type="text" name="mysql_username" size="40" value="<?php echo $_POST['mysql_username']; ?>"></td>
    </tr>
    <tr>
    <td>MySQL Password</td>
    <td><input type="text" name="mysql_password" size="40" value="<?php echo $_POST['mysql_password']; ?>"></td>
    </tr>
    <tr>
    <td>MySQL Database</td>
    <td><input type="text" name="mysql_database" size="40" value="<?php echo $_POST['mysql_database']; ?>"></td>
    </tr>
    <tr>
    <td colspan="2"><center><input type="submit" name="submit" value="Submit"> <input type="reset" name="reset" value="Reset"></center></td>
    </tr>
    </table>
    </form>

    </body>
    </html>

    #61290
    chrishajer
    Participant

    I think if you post the config.php and the test script with connection details, someone will be able to help. Seems like a simple connection issue, assuming you followed the instructions in the other post you found.

    Rather than replacing db-mysqli.php with db.php, did you try to apply the patch attached to this ticket?

    https://trac.bbpress.org/ticket/745

    #2558
    matt123
    Member

    I’ve been searching, every file in my kakumei theme and cannot find the file that is messing up how the add new page is displaying. I know its a div issue but can’t seem to find that extra div.

    What file displays the add new option in the latest discussion section?

    Does it display within another file? Which one?

    #61289
    ericakadisco
    Member

    Also, using a test script, I entered the same database information that’s in my bbpress config.php file and I can successfully connect to my database. The user, Disco, is the default user and is database administrator so there’s no reason why I should get access denied.

    #61249
    Null
    Member

    Euuh ok, still not sure how to use this.

    Let’s say I want to ad a tabel in the db called ‘test’, but only if it doesn’t excist.

    So on plugin activation:

    1- check if the table ‘test’ excists

    2- if not, insert the tabel ‘test’

    3- else die

    #61245
    livibetter
    Member

    Could you paste your test.php?

    #61284
    lookfab
    Member

    Thanks livibetter. I just realized that the profile field doesn’t show any fields that are not populated, so in my case there was no information to show until I added the website a few minutes ago.

    Not my brightest moment :-|

Viewing 25 results - 10,526 through 10,550 (of 11,549 total)
Skip to toolbar