Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 26,801 through 26,825 (of 32,481 total)
  • Author
    Search Results
  • #4065
    eschen
    Member

    I installed bbPress 0.9.0.2 and tried to integrate with WP 2.5 site. The two are at http://www.my-site/forum and http://www.mysite/blog under the root directory. I have two issues:

    First is with permalinks set to the default (/forum.php?id=1), no problem, I can view profiles and posts within bbPress. However if I use either of the other settings for a permalink, when I click on any profile or post topic within admin control panel or site view, I only get a blank page, no error. Example: the post should be at “forum/post-name”, which is exactly where the link takes me but a blank page exists. However I can view the user profiles registered at bbPress within the WP admin area, so I believe the two are at least partially integrated.

    The host is GoDaddy and there are no problems with WP permalinks. I have tried the using the following htaccess code with the /forum directory:

    # BEGIN bbPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /forum/

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /forum/index.php [L]

    </IfModule>

    Also just having one line:

    Options +MultiViews

    Also the exact code generated at bb-admin/rewrite-rules.php

    Second issue is after login to bbPress, a simple link to the WP admin requests me to login again. Does this take more than a simple link to “…/blog/wp-admin/”? I have checked the cookies and both look identical.

    Thanks for any help

    #4049
    #66102
    blankpoint
    Member

    I’m having some trouble and am smacking my head against the wall… I hope someone can help me.

    I’ve got WordPress 2.6.2 installed at http://www.blahblah.com/

    and bbPress 1.0 alpha at http://www.blahblah.com/forum

    They are in two databases sharing the user tables.

    My problem is that the user must Log OUT from the site that he/she logged IN from. If they logged in at the bbPress login form, then they will be logged in properly on the wordpress site, but if they try to logout there, they will get kicked back to the main page, but STILL BE LOGGED IN. They will only be able to properly log out from bbPress. And the same is true in reverse — if they login from wordpress, they will be logged to the bbPress too, but they will have to log out from wordpress.

    A second, less severe problem, but maybe it will help point to the reason for the above problem, is that if i sign in on wordpress, I will not be able to access the admin panel on the bbpress. I will be logged in as admin, and can perform admin functions on the site, but I cannot go to /bb-admin — I get kicked back out. However, if I sign in on bbPress, I CAN access my wordpress admin section.

    Any ideas? My wp-config and bb-config files have the definitions for SECRET_KEY, AUTH_KEY, SECURE_AUTH_KEY, LOGGED_IN_KEY (with BB_ prefixed for the bb-config ones).

    They also both have

    define('COOKIE_DOMAIN', '.blahblah.com');

    define('COOKIEPATH', '/');

    Is this correct? It should be the same for both?

    One thing that might be the root of the problem, or at least I was not sure about, is the setting for “WordPress “secure auth” cookie salt ” in the WordPress integration settings in bbPress. I have left this blank because I have no such entry on my options.php page in WordPress. I did fill in the other two “salt” items, though. I confess that I don’t really understand what this salt stuff is for, but any advice would be appreciated.

    I’m on 1&1 hosting, if that makes any difference.

    #4054
    vadi
    Member

    How can a user change their avatar on a new bbPress installation?

    I failed to find options for this :-/

    #3965
    thion
    Member

    I haven’t found such topic, and I think it might be useful (if no, please throw me into oblivion heh). Do you need some additional functionality but you can’t find a plugin and you can’t code? Post ideas here, maybe someone will “code your idea”.

    #67268
    Sam Bauers
    Participant

    You have too much code. You have duplicated the function by the looks of things. Filters don’t work that way.

    Try this documentation on the plugin API for more info:

    https://codex.wordpress.org/Plugin_API

    #67267
    meitershaker
    Member

    up :(

    #66743

    In reply to: Sitemap generator

    martin2008
    Member

    Warning: Cannot modify header information – headers already sent by (output started at /www/htdocs/w009804c/gruenderstipendium/bb-plugins/bbpress-sitemap-generator/bbpress_sitemap.php:1) in /www/htdocs/w009804c/gruenderstipendium/bb-includes/pluggable.php on line 228

    :(

    after open new topic

    #67479

    In reply to: Accents in username

    meitershaker
    Member

    it works! =p thanks ;)

    #67775

    In reply to: replacing page title

    Sam Bauers
    Participant

    The problem with your code was that you were adding a filter to bb_title via an action run when the title was already written to the browser. You should have added the filter at bb_init or just left it on it’s own in the plugin.

    Also, I don’t think there is particularly a need to remove the existing filter on bb_title in your case.

    #67879
    Sam Bauers
    Participant

    This works fine for me using trunk, but it does depend on your email client as well (I was using mail.app on Mac OS X).

    There are lots of places that character encoding could fail along the way, PHP could be the culprit, so could the email server that the message is first sent through. Perhaps the mail client you are looking at it in doesn’t support or isn’t setup to view utf-8.

    We have replaced the email sending code in Trunk, and that might be the difference too.

    It would be good to see exactly what’s happening, can you post a link to your forum so we can try signing up to see what happens?

    #67876
    Sam Bauers
    Participant

    They are doing it somehow over at edublogs.org but I think that is a highly customised bit of code where they are sharing one bbPress install amongst multiple blogs in WPMU.

    bbPress doesn’t offer this out of the box, no.

    #67829

    In reply to: Get Current Forum ID?

    Sam Bauers
    Participant

    Untested and YMMV:

    $current_forum_id = get_forum_id();

    while ( bb_forum() ) {
    $class = '';
    if ($current_forum_id == get_forum_id()) {
    $class = 'on';
    }
    }

    #67478

    In reply to: Accents in username

    Sam Bauers
    Participant

    @ meitershaker

    There was a bug in the display name implementation. First, update to the very latest trunk. There is a chance that you might have a user meta item for some users called ‘display_name’. This will be stomping on the real setting in the user table. Use this SQL query to clear out the bad data.

    DELETE FROM bb_usermeta WHERE meta_key = 'display_name';

    Once you’ve updated to the latest trunk and done that, you should be able to use any UTF-8 character in display names.

    #67899
    chrishajer
    Participant

    If you have a tool like phpMyAdmin, I think you should be able to log in there and change the site URL.

    You used to be able to define the site URL in the bb-config.php as well. This is what used to be in that file:

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

     

    Maybe if you put that second line in your bb-config.php maybe that will override the database settings? (Actually, I’m fairly certain that will work. Then you can update the settings in the admin.)

    #67883
    chrishajer
    Participant

    It’s hard to tell if there’s an error in an edited bb-config.php. I have seen where the secret keys are not properly escaped, and that creates a PHP problem. As you’ve posted it (edited) it works fine.

    I just did an svn checkout of r1736 and that included backpress r153, which is what’s available at the URL you posted.

    Mine installed cleanly. I did not integrate with WordPress. You can see a one minute video of the installation here:

    http://www.chrishajer.com/bbpress/1736/

    I suspect a problem with the secret keys in the bb-config.php. Or some other syntax problem with the bb-config.php. If you have a command line with php you can run

    php -l bb-config.php

    to check that file for syntax errors. That’s “php dash el”, l for Lint.

    #67882
    cabal79
    Member

    Well I used yesterdays Trunk Release (1736) and the Backpress folder from here: http://svn.automattic.com/backpress/trunk/includes/

    Is there anything else I’d have to add to the Trunk that I possibly missed?

    I don’t really think that the bb-config syntax is wrong because it’s working with the Alpha just fine.

    Anyways, the code for what it’s worse:

    <?php
    // ** MySQL settings ** //
    define('BBDB_NAME', 'xxxxx'); // The name of the database
    define('BBDB_USER', 'xxxxx'); // Your MySQL username
    define('BBDB_PASSWORD', 'xxxxx'); // ...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 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 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://www.grc.com/passwords.htm
    // to get phrases generated for you, or just make something up. Each key should have a different phrase.
    // If you are integrating logins with WordPress, you will need to match each key to
    // the value of their equivalent keys in the WordPress file wp-config.php
    define('BB_AUTH_KEY', 'xxxxx'); // Change this to a unique phrase.
    define('BB_SECURE_AUTH_KEY', 'xxxxx'); // Change this to a unique phrase.
    define('BB_LOGGED_IN_KEY', 'xxxxx'); // 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', '');

    ?>

    Thanks for helping out!

    Rob

    sowmithrii
    Member

    no.. its not a wp blog. it’s my own site completed coded by me…

    is there any way??

    or if can i know about the type of encryption wordpress is using for encrypting the password. I am having the wordpress software , but unable to debug all the pages……

    sowmithrii
    Member

    Hi, Am new to this site and hope am posting this query in right place.

    I recently downloaded bbpress forum software . The integration was successfull with wordpress . But I want the users in my website to access the forum without need of registering in it again.

    I dint find any means of achieving this. Can anyone help…

    I tried changing the forum code., but i think it is not a good idea.

    CHeeRS,

    sowmithrii

    #67771

    In reply to: replacing page title

    Olaf Lederer
    Participant

    Hi Thanks for helping.

    it doesn’t work :(

    this is the function I use (stripped the other code)

    function my_title($title) {
    return 'PHP Scripts Development Forum';
    }

    function create_meta() {
    if (is_front()) {
    remove_filter('bb_title', 'bb_get_title');
    add_filter('bb_get_title', 'my_title');
    // code to create the meta data
    } else {
    // do something else
    }
    }
    add_action('bb_head','create_meta');

    maybe it doesn’t work because I add the filter within that “action”?

    #4044
    M.K. Safi
    Member

    I think I’m asking for theme integration.

    I have seen other WordPress forums where you create a page, insert a one line HTML(?) code, and the forum will appear in that page. I was wondering if something similar can be done with bbPress, so that I can make it appear within my theme, here. Thanks,

    keress
    Member

    Another note, the Internal Server Error yesterday was fixed by correcting the .htaccess file.

    At present it reads:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    #67828

    In reply to: Get Current Forum ID?

    iuxc
    Member

    Thanks for the suggestion. It didn’t fix what I am trying to do.

    Basically, while the php is executing the while ( bb_forum() ) : loop, I need to check the current forum against the forum it is writing to the menu.

    If there are 4 forums in the while loop, I need it to check the current forum id against each forum id as it is writing it to html. If the current forum id matches the forum id it’s writing, then it would add the class="on" attribute to the li tag.

    #4041

    Topic: Get Current Forum ID?

    in forum Plugins
    iuxc
    Member

    I’m attempting to create a side nav of all the forums on my site. When a user is viewing a certain forum, I want that “tab” to be highlighted using CSS.

    All I need is to assign a class=”on” attribute to the forum [li] [/li] tag if it is the current forum being viewed. Anyone know how I can check the current forum against the forum id?

    Here’s the code for my menu creation:

    <?php if ( bb_forums() ) : ?>
    <h3><?php _e('Forums'); ?></h3>
    <ul>
    <li <?php if ( is_front() ) : ?>class="on"<?php endif; ?>><a>">Overview</a>
    <?php while ( bb_forum() ) : ?>
    <li><a>"><?php forum_name(); ?></a></li>
    <?php endwhile; ?>
    </ul>
    <?php endif; // bb_forums() ?>

    #67476

    In reply to: Accents in username

    myu
    Member

    Thanks for reply.

    Me, I personally don’t mind using alphabet for username, but have to think of target audience. Got me worried a bit. :)

    I hope in the future version there’s some sort of conversion mechanism for people that’s already registered using utf-8 encoded username. (pretty please..)

Viewing 25 results - 26,801 through 26,825 (of 32,481 total)
Skip to toolbar