Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,701 through 25,725 (of 32,468 total)
  • Author
    Search Results
  • #59104
    lasthero
    Member

    I have done all the above directions but still can’t seem to get anything to work. It is not detecting the cookie and having be already logged in to bbpress after wordpress login. I have been working on this for some time.

    I have the exact same scenario that schmitt has at the beginning of this thread.

    Please help me out here, I have posted several thread but no one has helped me or taken a look at my config files.

    Here they are:

    bb-config.php

    <?php

    // ** MySQL settings ** //
    removed for security

    define('BBDB_CHARSET', ''); // If you are *upgrading*, and your old bb-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 BB_SECRET_KEY to a unique phrase. You won't have to remember it later,
    // so make it long and complicated. You can visit https://www.grc.com/passwords.htm
    // to get a phrase generated for you, or just make something up.
    // If you are integrating logins with WordPress, you will need to match the value
    // of the "SECRET_KEY" in the WordPress file wp-config.php
    define('BB_AUTH_KEY', '7k67k67k76'); // Change this to a unique phrase.
    define('BB_SECURE_AUTH_KEY', '67k67k76k67k76'); // Change this to a unique phrase.
    define('BB_LOGGED_IN_KEY', '67k76'); // Change this to a unique phrase.
    define('BB_SECRET_KEY', 'thisisone{crazy}sectret9084biugfhKey'); // Change this to a unique phrase.

    // If you are running multiple bbPress installations in a single database,
    // you will probably want to change this.
    $bb_table_prefix = 'bb_'; // Only letters, numbers and underscores please!

    // 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 BB_LANG to 'de'
    // to enable German language support.
    define('BB_LANG', '');

    /* Stop editing */

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

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

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

    $bb->usercookie = 'wordpress_logged_in_my has here';
    $bb->passcookie = 'wordpress_logged_in_my has here';
    $bb->cookiedomain = 'fabuso.com';
    $bb->cookiepath = '/';

    ?>

    wp-config.php

    <?php
    // ** MySQL settings ** //
    removed for security

    // Change each KEY to a different unique phrase. You won't have to remember the phrases later,
    // so make them long and complicated. You can visit https://api.wordpress.org/secret-key/1.1/
    // to get keys generated for you, or just make something up. Each key should have a different phrase.
    define('AUTH_KEY', '7k67k67k76'); // Change this to a unique phrase.
    define('SECURE_AUTH_KEY', '67k67k76k67k76'); // Change this to a unique phrase.
    define('LOGGED_IN_KEY', '67k76'); // Change this to a unique phrase.
    define('SECRET_KEY', 'thisisone{crazy}sectret9084biugfhKey');
    define('COOKIE_DOMAIN', 'fabuso.com');
    define('COOKIEPATH', '/');

    $wp->cookiepath = '/';
    $wp->sitecookiepath = '/';
    define('SITECOOKIEPATH', '/');

    // You can have multiple installations in one database if you give each a unique prefix
    $table_prefix = 'wp_econome_'; // Only numbers, letters, and underscores please!

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

    /* That's all, stop editing! Happy blogging. */

    if ( !defined('ABSPATH') )
    define('ABSPATH', dirname(__FILE__) . '/');
    require_once(ABSPATH . 'wp-settings.php');
    ?>

    #4843
    tfab69fr
    Member

    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

    #71754

    Go to bb-admin/options-wordpress.php

    Scroll down to Manual bbPress config file settings

    Copy that stuff into your bb-config.php

    #4840
    rossmcd
    Member

    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

    #4838
    Dwenaus
    Participant

    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 :)

    #4810
    ginelle816
    Member

    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 :)

    #63390
    mikeumus
    Member

    chrishajer, are you aware of the code in bbPress which takes the _wp table(required upon WordPress and bbPress integration) and somehow uses it in integration? If so, that might be a solution.

    I found a a program which takes two MySql tables and makes a table consisting of those two tables contents. Here it’s description:

    MySQL Join Two Tables Software 7.0 – Download

    Combine (horizontally) two MySQL tables into one based on a common column of data from each table. The original two tables are not altered but a new table is created with the results.

    Download here. Secure-order personal license for product here.

    Check out other software at http://www.sobolsoft.com

    _________________________________________________________________________________________

    I don’t think this will work however because of the multiple references to wp_users, and bb_users.

    I just thought of something, would it work if I changed apltest’s users table to be called wp_users(or bb_users)(along with changes all references to the users table in the APL code to wp_users)?

    Thanks for your input.

    8D

    #70328
    firstangel
    Member

    It all went well until…

    I can log into both as admin fine using the same username and password, so integration worked well, BUT, if I log into the forum I have to then log into the WP too, and vice versa, it doesnt do both at once.

    I try and go to the post thats there to read it and it takes me to my WP 404 page.

    The intial welcoming message that comes with BBPress is at http://1stangel.co.uk/art/friends/topic/your-first-topic

    My WP is http://1stangel.co.uk/art and the BBPress is at http://1stangel.co.uk/art/friends

    I followed the video really carefully :(

    So two problems. One pretty major lol

    #63389
    mikeumus
    Member

    Here are two links to the whole apltest database(2.jpg starts off down the table list where 1.jpg left off):

    http://i177.photobucket.com/albums/w220/mikeumus/2.jpg

    #63388
    chrishajer
    Participant

    Can you take a screenshot of the listing of tables in the two databases, or at least the database you want to integrate with?

    #63387
    mikeumus
    Member

    So I logged into phpMyAdmin and did not see anything that looked like table prefixes, but I’m new to this. I saw two databases and this is what one of their structures looked like:

    Table Action Records1 Type Collation Size Overhead

    benchmarks 6 MyISAM utf8_general_ci 2.3 KiB –

    _____________________________________________________________________________________________

    All I need to do is make it so that users don’t have to create two accounts to access the Tournaments section of the site.

    #63386
    chrishajer
    Participant

    If your _config.php does not have a table prefix specified, that means it’s hard coded in the software, or there is none. (oscommerce is like that: no table prefix.) Can you look at the database with something like phpMyAdmin and see if there are tables with no prefix, or if there are some for this software all with the same prefix?

    #63385
    mikeumus
    Member

    And how would you get that relationship?

    More direction please. 8)

    I’m trying to link my wonderful WordPress blog and bbPress Forum(live @ http://www.l4dt.com/) with some wonderful tournament management code(testing, but live @ http://www.a-mnow.com) and have already quite shyed away and scared myself at the thought of trying to connect any two databases, so direction at all would be great.

    Here’s what the tournament management _config.php file consists of:

    _config.php

    _______________________________________________________________________________________

    <?php

    //This is the new config file, almost all settings have been moved to the database.

    //You no longer need to edit this file,

    //unless the installer is not able to edit this file because of permissions.

    //Just run the installer at /install/install.php

    //Database server connection settings

    $database = ‘mysql’;

    $database = ‘apltest’;

    $database = ‘?????????????????’;

    $database = ‘apltest’;

    $database = ‘p50mysql71.secureserver.net’;

    //Do not change strict_mode, unless you know what you are doing

    $database = -1;

    ?>

    _______________________________________________________________________________________

    ^ There is no table specification!? wtf, but that’s not how you link databases, by giving them the same table prefix, right? But does it have to do with the table(s)?(I’d think so, but that’s all I can fathom)

    _______________________________________________________________________________________

    Here is the link to the site which gave me the tournament management code, “Autonomous LAN Party”:

    http://www.nerdclub.net/alp/

    _______________________________________________________________________________________

    Any hint at making that relationship would be most excellent.

    Thank you for your time and input.

    8D

    #4829
    stevedrum
    Member

    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';

    #71832

    Hey!

    I just need a CMS and forum functionality with possible solution for added accounts where they can have access to certain content like download links and I want the login credentials to be same throughout the site. This way I will make everybody a account and they will then need to login into the account even for posting comments.

    Either I use some plugin (if it exists) or write my own code that can use the same username and password from the WP or bbPress database. I think that is pretty much feasible but I am concern about the security as I am not an advanced user.

    Please guide in some direction.

    #71570
    Malice
    Member

    Obviously I’m not sure, I’m just wondering :)

    #71698
    Malice
    Member

    That sounds like very good news!

    Always found the url.com/forum/forum/ a bit wicked :)

    #71697

    It would be nice if the /forum/ could be totally removed :)

    …and to be given the option to be changed to be the name of the forum you are viewing when viewing a topic, similar to WordPress…

    #71696
    ganzua
    Member

    The main difference that is coming is the ability to change the directory names, e.g…

    http://example.org/forum/first-forum

    Can potentially be…

    http://example.org/fora/first-forum

    It would be nice if the /forum/ could be totally removed :)

    #71826
    chrishajer
    Participant

    I disagree on the WordPress page function not being powerful enough to understand parent/child. It always seems to work for me. For example, check this page:

    http://www.woods-metal-shaping.com/machine-shop/machining/risers/

    Those are WordPress pages, grandparent is machine-shop, parent machining, child risers. Check the left nav for the current page highlighted, and check the top tabs for the grandparent highlighted. So, it’s certainly possible to do whatever you want with the current class in WordPress.

    On this site, when you are on the blog page, they are probably just using the WordPress current_page_item class to highlight (home, about, documentation, blog, download.) When you click forum, you go to bbpress. So, in your bbPress template, you hard code that nav item as current. I’m not certain how the extend section works, if it’s bbPress or WordPress.) But, basically, you hard code current for the forum/forums/bbpress tab since once you click it, you’re outside WordPress.

    Now, with integration, and including the WordPress nav, I have no idea how it would work. I always thought if you had a Page called “forums” and then you installed bbPress in a directory called “forums” that the directory will override the WordPress Page, so the forum is shown, but I don’t know what happens in the nav, i.e. if WordPress still thinks you’re on a Page called “forums”.

    HTH

    #4815

    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.

    #71229

    johnhiler, you are awesome. that is exactly what he is asking. =)

    #71812

    Oops! My bad :) When you said

    Would a BB version be helpful?

    I didn’t re-read the whole thing.

    #71695
    Sam Bauers
    Participant

    Well, for what it’s worth it doesn’t look like I’ll be changing any filenames. The main difference that is coming is the ability to change the directory names, e.g…

    http://example.org/forum/first-forum

    Can potentially be…

    http://example.org/fora/first-forum

    Or some other langauge. Also there are going to be a few additional permalink styles like…

    http://example.org/post/27/edit
    http://example.org/new

    And I’m experimenting with URL driven intersections, so…

    http://example.org/tag/ice-cream/tag/chocolate
    http://example.org/forum/support/tag/alpha/search/release+date

    …might be something we see in the future.

    The newer styles are very hard to detect with existing functions which are available to plugin devs, but I am trying to supply the tools required for easy detection and interaction with the new setup.

    #70087
    Stephanie Leary
    Participant

    I’m having the same problem with a new 0.9.0.4 installation. In addition, I have an error message in my Latest Activity box on the Dashboard:

    bbPress database error: [Unknown column 't.topic_id' in 'on clause']

    SELECT p.* FROM bb_posts AS p JOIN bb_topics as t ON ( t.topic_id = p.topic_id ) WHERE p.post_status != '0' AND t.topic_status = '0' ORDER BY p.post_time DESC LIMIT 5

Viewing 25 results - 25,701 through 25,725 (of 32,468 total)
Skip to toolbar