Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,401 through 27,425 (of 32,522 total)
  • Author
    Search Results
  • #65870
    750331
    Inactive

    My installation seems to work with just that slash “/” on it own, but at least it working. I added the below into my wp-config.php file

    @define('ADMIN_COOKIE_PATH', '/');

    I have tried it with '/blog/wp-admin' and that didn’t seem to work, at all.

    #55245
    chrishajer
    Participant

    parthatel can you post your code here?

    What function are you using to check if the user is logged in? Does it error out or does it just not display any content (if it does not error, then the function is probably a valid function.)

    And showing one content for logged in members and other content for other members is pretty basic PHP:

    <?php
    if (bb_is_user_logged_in() ) {
    echo "You are logged in.n";
    }
    else {
    echo "You are not logged in.n";
    }
    ?>

     

    I’m 99% certain that is the proper function name, and the code will work.

    #65792
    chrishajer
    Participant

    There is a table bb_usermeta (or whatever table prefix you used) that will have a record bb_capabilities and a meta_value of a:1:{s:9:"keymaster";b:1;}. You need to find the account that has that value; that’s your keymaster account.

    With an integrated installation, I think the table will be wp_usermeta. To figure out what account it is first, look in the wp_users table and find the keymaster account, and then take the ID from there and check the wp_usermeta table for the proper capabilities.

    I think with the proper ID, if it’s not 1, you can change the id in the “Fix Admin Access” to this ID and try the plugin again.

    #55244
    parthatel
    Member

    That doesn’t work when I add that to my WordPress (it has integrated functions). Nothing appears when I added the code. Also, what is the code to display content if user is logged in, else (if not logged in) display some other content.

    #65862

    In reply to: Removing Registration

    724719
    Inactive

    it usually goes as follows:-

    `blahblah.com/forum/bb-templates/kakumei/login-form.php

    note: – “kakumei is the theme name, you could try replacing it with the title of your theme your using”

    find this snippet of code:-

    <?php printf(__('<a href="%1$s">Register</a> or log in'), bb_get_option('uri').'register.php') ?&gt

    and replace it with

    <?//php printf(__('<a href="%1$s">Register</a> or log in'), bb_get_option('uri').'register.php') ?>

    all you doing here is blocking out this code by putting the blocks “//” which means the code (link) to the registration page is will no longer be there.

    Good luck

    sway

    http://www.swaymedia.com

    http://www.picbi.com/forum

    #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

    ????????

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