Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,401 through 27,425 (of 32,517 total)
  • Author
    Search Results
  • #65869
    _ck_
    Participant

    Okay, some bbPress users may be able to get it to work with WordPress 2.6 by adding to your wp-config.php

    @define('ADMIN_COOKIE_PATH', '/blog/wp-admin');

    where “blog” is your blog’s actual path. If it’s in the webroot, just take out “blog” entirely and leave '/wp-admin'

    #65133
    Null
    Member

    Ok (just asking this cause i am working on a plugin myself), but how about the next step. I have this to create a table if it doens’t excist:

    bb_register_activation_hook(__FILE__, 'bbmenu_install_check');

    function bbmenu_install_check() {
    global $bbdb;

    $bbdb->hide_errors();
    $installed = $bbdb->get_results("show tables like ".$bbdb->prefix."bbmenu");

    if ( !$installed ) :
    $bbdb->query(" CREATE TABLE IF NOT EXISTS <code>&quot;.$bbdb->prefix.&quot;bbmenu</code> (
    <code>item_id</code> INT(3) NOT NULL AUTO_INCREMENT,
    <code>item</code> varchar(50) NOT NULL default '',
    <code>set</code> varchar(50) NOT NULL default '',
    <code>page</code> varchar(50) NOT NULL default '',
    <code>location</code> varchar(50) NOT NULL default '',
    <code>order</code> int(9) NOT NULL default '0',
    PRIMARY KEY (<code>item_id</code>)
    )");
    endif;
    $bbdb->show_errors();
    }

    But I also want to put some data in it:

    "INSERT INTO$bbdb->menu` VALUES

    (DEFAULT, ‘Forums’, ‘active’, ‘index.php’, ‘front-page’, 0),

    (DEFAULT, ‘Search’, ‘active’, ‘search.php’, ‘search-page’, 1),

    (DEFAULT, ‘Statistics’, ‘inactive’, ‘statistics.php’, ‘stats-page’, 0);”;`

    How to do this in the same query?

    #65861

    In reply to: Removing Registration

    749549
    Inactive

    I’m not terribly good with code, I was hoping there was a plugin or option I could use rather than editing each page because I’m sure I’ll mess something up! But if that’s how it must be, that’s how it must be…

    #65131
    Null
    Member

    So why not use:

    $bbdb->privatemessages or doesn’t this work anymore?

    #65832
    737705
    Inactive

    Yeah I’ve tried what you’ve tried there with the re-directs and yep, it just dies.

    But no meta-redirects are used in my sites at all. For experimentation I tried the domain with two different domain bindings, multiple domain bindings. But no difference.

    I tried an older version of bbpress, same problem. I installed bbpress fresh into a different domain, same problem.

    I noticed this guy here had a similar prob a while back:

    Forum and topic pages redirects to page 1

    But never said how he solved it, I might join up to his forum and ask him….

    But yes this is driving me crazy…on a plus note when I finally fix it I can fresh install bbpress in about two minutes ;-)

    Any other suggestions from folk greatly appreciated. And thanks for ongoing help Chris.

    #65788
    chrishajer
    Participant

    You’re not using WPMU are you? I just noticed this in the first post:

    mu cache

     

    That’s just a typo though, right? It was ‘my cache and cookies’?

    #65787
    chrishajer
    Participant

    The CSS for .threadauthor looks like this:

    overflow-x: hidden;
    overflow-y: hidden;

     

    The end of a long username will just be hidden, that’s all. It’s not something to be fixed. In FF 2.0.0.15, I see hyperhook but if I resize the font, I can see more or less of the name. It’s just a layout thing. Long usernames would break the narrow layout without the overflow being hidden.

    #65831
    chrishajer
    Participant

    I see :-) So you turn on permalinks to prevent people from viewing anything and putting their request into an infinite loop. Got it.

    I see now that it’s still broken. Are you sure there is nothing causing a meta redirect? The only thing that stops the looping for me is to disable meta redirects in my browser. Other than that, it loops forever.

    #65130
    Detective
    Member

    $bbdb->prefix is a string containing your installation db prefix.

    #65129
    Null
    Member

    HI,

    The installation file contains:

    $bbdb->prefix."privatemessages"

    What does this prefix. do? Or where does it stand for? Is prefix the bb_ in the database? I believe not since $bbdb doest this already, so what is it?

    Thanks

    #50096
    chrishajer
    Participant

    You need to add this to the top of your wp-config.php right after <?php:

    require_once('/path/to/bbpress/bb-config.php');

    I would use the full server path to the bb-config.php file, not a relative path like ./bbpress/bb-config.php (rumor is that full paths work better) and not a URL like http://www.example.com/bbpress/bb-config.php (URLs won’t work at all here).

    That’s it, just one step. Good luck.

    #65826
    chrishajer
    Participant

    What is the equivalent of mod_rewrite on IIS? I mean, what makes the URLs into permalinks rather than just topic.php?id=whatever?

    #65849
    chrishajer
    Participant

    Can you past that code into something like pastebin or pastie? The formatting is lost displaying it here.

    Thanks.

    http://pastebin.com/

    http://pastie.org/

    parthatel
    Member

    ok, so I added require_once('path/to/bbpress/bb-config.php'); to my wp-config.php file. I then added the bbpress discussions code:

    <table id="latest">

    <tr>

    <th><?php _e(‘Movie’); ?> — <?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 bb_topic_labels(); ?> <big>“><?php topic_title(); ?></big></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $super_stickies ?>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <tr<?php topic_class(); ?>>

    <td><?php bb_topic_labels(); ?> “><?php topic_title(); ?></td>

    <td class=”num”><?php topic_posts(); ?></td>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“><?php topic_time(); ?></td>

    </tr>

    <?php endforeach; endif; // $topics ?>

    </table>

    I added that code to my index.php file in my wordpress theme and this is what I get as the output in the browser:

    <table id="latest">

    <tr>

    <th>Movie — Add New »

    </th>

    <th>Posts</th>

    <th>Last Poster</th>

    <th>Freshness</th>

    </tr>

    </table>

    Obviously, there is something wrong. Does anyone know what?

    #65823
    chrishajer
    Participant

    Wow, that most certainly is a problem.

    Two thoughts.

    1. If I disable “meta redirects” in FF with the web developer toolbar, it does not keep redirecting, it just dies. Are you trying to redirect people from the bbPress profile page to the WordPress profile page, and somehow that is typed wrong? Like in journal/messageboard/profile.php there is a redirect that sends the browser to WordPress journal/wp-admin/profile.php and it’s not working for some reason?

    2. There is some weird test cookie stuff being sent, although I doubt it has any effect on this problem. Never know though.

    wordpress_test_cookie
    WP+Cookie+check
    www.louisecooper.com
    /journal/

     

    I suspect it’s something with a refresh bouncing the user back and forth.

    #3615
    744478
    Inactive

    For more than a week I am fighting with bbPress and the latest WordPress version.

    My problem is that user comments don’t appear. Well, I can see them in the Administration area in WP but not in the forum. Users already move away because they think I blocked their comments.

    I actually installed bbpress because I wanted users to discuss on my page but now no one can discuss anymore lol.

    My WP installation is at http://www.webserver.com and I installed bbpress on http://www.mywebserver/forum (example addresses)

    I installed the WP plugin “bbPress Post” and filled out all the details. Also I installed bbSync.

    At least when I write a new post the post title appears in the forum. So one good thing. But that’s all. How do users comment from my blog? I don’t want to put a link on every post “go to the forum and post there”.

    I do have a custom theme by the way.

    Actually I am not an idiot but now I’m just freaking out with bbPress because it’s so complicated and most of the how-to’s don’t work or are just bad explained. Here’s an example:

    “Want a link back to the blog post? ” it days in the bbSync settings.

    Well, what can I do there? There’s a field. Do I have to write YES or a special tag? :| Absolutely no explaination.

    #3614
    parthatel
    Member

    I managed to add the WordPress functions to bbPress, but I now need to know how I can add the bbPress functions to WordPress. I want to include the exact “Discussions” code in “front-page.php” of bbPress to the “index.php” in WordPress. I know there is a plugin for this, but it wasn’t what I wanted.

    I used this code to integrate WordPress into bbPress (added to the top of bb_config.php)

    define('WP_BB', true);

    if ( !defined('DB_NAME') ) {

    require_once( dirname(__FILE__) . '/../wp-config.php');

    if ( !defined(‘BB_PATH’) )

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

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

    I think all I need to do is require bb-config.php and then the bb-settings.php. Anyone know how to do this (following the php example above)?

    *I only wish I know php.

    #3612

    Topic: Where is

    in forum Troubleshooting
    724719
    Inactive

    how do i change the log out link to use the log out of file of wordpress instead of bbpress, which isnt working for some reason.

    im lookin in ‘kakumei’ logged-in.php file and it shows:

    <p class="login">
    <?php printf(__('Welcome, %1$s!'), bb_get_profile_link(bb_get_current_user_info( 'name' )));?>
    <?php bb_admin_link( 'before= | ' );?>
    | <?php bb_logout_link(); ?>
    </p>

    question is where is bb_logout_link(); so i can change the actual link? which file is that function located in.

    thanks

    #65838
    738576
    Inactive

    I found the answer here:

    https://bbpress.org/documentation/integration-with-wordpress/

    I guess that’ll learn me to read before posting. :)

    #65767
    724719
    Inactive

    my site is http://www.picbi.com, so do I add to wp-config and bb-config: –

    define('COOKIE_DOMAIN', 'http://www.picbi.com');
    define('COOKIEPATH', '/');

    sorry im not that familiar with cookies and how to work them

    ????????

    #65778
    chrishajer
    Participant

    swaymedia: the full path should not be a URL but a filesystem path, something like:

    /home/picbico/public_html/wp-blog-header.php

    I tried on my forum and a relative path works there, so I’m not sure that’s the issue.

    Be sure that’s the second line of bb-config.php – the first line should be <?php:

    <?php
    require_once('/home/picbico/public_html/wp-blog-header.php');

     

    PHP doesn’t think the file is where you say it is. Can you take a screenshot of the directory listing in an FTP program or command line, and post that? Something does not make sense.

    #65777
    724719
    Inactive

    i just read a post on another thread, and saw this checklist:-

    1. You are running latest versions of WordPress (2.5.1) and bbPress (0.9.0.2)

    ME – yeahs I am !

    2. You have matched SECRET_KEY in wp-config.php with BB_SECRET_KEY in bb-config.php

    ME – yeahs I have !

    3. You have matched WordPress "secret" database option with bbPress "secret" database setting

    ME – yeahs I have!

    4. You have setup compatible cookie domains and paths in config files (see instructions in bbPress admin)

    ME – I take its these two things i have to add to wp-config.php file: – define(‘COOKIE_DOMAIN’, ”); define(‘COOKIEPATH’, ‘/’);

    if so what do I change those parameters to, or do i leave them blank … im not that familiar with cookies .. :/ (my site is http://www.picbi.com and the forum is http://www.picbi.com/forum )

    5. You are successfully sharing user tables from WordPress with bbPress

    Me – Yeahs I am

    #65772
    chrishajer
    Participant

    WordPress functions are defined and available to WordPress.

    https://codex.wordpress.org/Function_Reference

    If you don’t need to use those functions, then don’t include WordPress. You don’t need to include WordPress like that to have integrated users.

    #65763
    724613
    Inactive

    I’m having the same problem! After integrating, I see how the “test user” I created shows up in both admin consoles. However, whether I login to wordpress or bbpress first, the login does not carry over to the other when navigating, which forces me to login twice. I followed all the steps, which also inlcuded adding the following to the wp-config.php file…

    define(‘COOKIE_DOMAIN’, ‘*******’);

    define(‘COOKIEPATH’, ‘/’);

    The only thing that comes to mind is a “minor error” that I received after walking through the “successful install” of bbPress…

    Duplicate key name ‘user_nicename’

    >>> User tables will already exist when performing a database integrated installation.

    I’m wondering if this is the problem. If so, I’m not sure how to fix it. : Can someone help?

    #65812

    In reply to: No user found

    725450
    Inactive

    “The only people who can fix the problem won’t be able to see it, as moderator or keymaster. :D

    Hehe. I can start to cry now right? :P

Viewing 25 results - 27,401 through 27,425 (of 32,517 total)
Skip to toolbar