Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,126 through 28,150 (of 32,493 total)
  • Author
    Search Results
  • #63283
    howtogeek
    Member

    You have to make sure that it’s listed in the my-views.php plugin file in this line:

    $my_views['prefered_order']=array(      // force views to list in the order that you desire
    "latest-discussions","no-replies","untagged","my-topics","my-posts","most-views","most-posts","least-views","least-p
    osts",

    Usually the link is something like /forum/view/latest-discussions, for instance mine is here:

    http://www.howtogeek.com/forum/view/latest-discussions

    If you wanted to link directly to the second page, it would be something like this:

    http://www.howtogeek.com/forum/view/latest-discussions/page/2

    horrorshow
    Member

    _ck_, I cleared all the cookies for this domain when doing the test. I also closed all open pages, and started fresh.

    The three cookies that I see generated when doing this test on both BBPress and WPMU are:

    wordpressuser

    wordpresspass

    wordpress_test_cookie

    I’ll look at the code for logging out of wpmu, and also see if anything gets changed in the database. I’ll then compare that to how BBPress logs out and see if it makes any changes in the database too.

    Thanks for the link, but he basically added:

    $bb->usercookie = ‘wordpressuser’;

    $bb->passcookie = ‘wordpresspass’;

    And I’ve already done that.

    #2974
    kernpunt
    Member

    Hopefully you folks can help me. I have a few questions about integration and bbPress. What I have right now is a custom built populated member database with passwords, usernames, emails, etc.

    What I would like to do is get bbPress to “hook” into this database instead of having to have two member/user tables to keep synchronized. Is there a certain way you’d go about doing this, that perhaps isn’t too messy? Or will it require rewriting a lot of code?

    I’ve found a lot of WordPress integration help here, but really not much on integrating with other types of websites (aside from template editing). So any help would be great, even if you just give me a little push in the right direction. Thanks. :)

    horrorshow
    Member

    Hi,

    I don’t mean to post twice, but I realized that I replied this to a thread that had already been resolved.. so I am posting a new topic.

    I am trying to integrate bbpress(0.8.3.1) with wordpress mu (1.3.3), and I am having some issues with cookies for login/logout.

    I’ve tried setting this: (“MD5hash” replaced with my MD5)

    $bb->usercookie = 'wordpressuser_MD5hash';
    $bb->passcookie = 'wordpresspass_MD5hash';

    However, that didn’t seem to allow single sign-on login(meaning, if I am log into wp, go to bbpress and find myself already logged and vice versa)

    Watching the cookies during the login/out process on WP MU, I found that the cookie names that WP MU uses are: “wordpresspass” and “wordpressuser”

    So in config.php for bbpress, I used:

    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';

    This works somewhat, let me explain:

    This scenario works:

    Log into WPMU, refresh bbpress page, I find myself already logged into bbpress.

    Log out of WPMU, refresh bbpress page, I find myself logged out of bbpress.

    Log into BBpress, refresh WPMU, I find myself logged into WPMU

    This doesn’t work:

    Log into BBpress, refresh WPMU (I find myself logged into WPMU) AND THEN when I try to log out from WPMU, I can’t log out.

    I refresh BBpress page, and I am not logged out either.

    If I log out from BBpress at this point, then I am logged out of WPMU as well.

    I have a feeling it might be something with WPMU, but I thought I’d post here first since this is where I found all the information about the integration. Thanks for your help. I am appending my config.php relevant to the integration part.

    $bb->wp_table_prefix = 'wp_';
    $bb->wp_home = 'http://achillesblog.com';
    $bb->wp_siteurl = 'http://achillesblog.com';
    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';
    $bb->cookiepath = '/';

    thanks for your help.

    #63331

    In reply to: Fatal Error?

    chrishajer
    Participant

    No need – just glad it’s working. We’ll call it virtual coffee money :)

    #59100
    horrorshow
    Member

    Hi,

    I am trying to integrate bbpress(0.8.3.1) with wordpress mu (1.3.3), and I am having some issues with cookies for login/logout.

    I’ve tried setting this: (“MD5hash” replaced with my MD5)

    $bb->usercookie = 'wordpressuser_MD5hash';
    $bb->passcookie = 'wordpresspass_MD5hash';

    However, that didn’t seem to synchronize login(meaning, if I am log into wp, go to bbpress and find myself already logged and vice versa)

    Watching the cookies during the login/out process on WP MU, I found that the cookie names that WP MU uses are: “wordpresspass” and “wordpressuser”

    So in config.php for bbpress, I used:

    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';

    This works somewhat, let me explain:

    This scenario works:

    Log into WPMU, refresh bbpress page, I find myself already logged into bbpress.

    Log out of WPMU, refresh bbpress page, I find myself logged out of bbpress.

    Log into BBpress, refresh WPMU, I find myself logged into WPMU

    This doesn’t work:

    Log into BBpress, refresh WPMU (I find myself logged into WPMU) AND THEN when I try to log out from WPMU, I can’t log out.

    I refresh BBpress page, and I am not logged out either.

    If I log out from BBpress at this point, then I am logged out of WPMU as well.

    I have a feeling it might be something with WPMU, but I thought I’d post here first since this is where I found all the information about the integration. Thanks for your help. I am appending my config.php relevant to the integration part.

    $bb->wp_table_prefix = 'wp_';
    $bb->wp_home = 'http://achillesblog.com';
    $bb->wp_siteurl = 'http://achillesblog.com';
    $bb->usercookie = 'wordpressuser';
    $bb->passcookie = 'wordpresspass';
    $bb->cookiepath = '/';

    thanks for your help.

    #63328

    In reply to: Fatal Error?

    chrishajer
    Participant

    Now it’s up to two coffees :)

    #63327

    In reply to: Fatal Error?

    chrishajer
    Participant

    You have the wrong URI in your config.php. You have this (I think):

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

    and it should be

    $bb->uri = 'http://ironboundforum.com/';

    bbPress doesn’t care if it’s in a folder or not, just like it doesn’t know that it’s in your webroot of /kunden/homepages/46/d93680635/htdocs/ironbound/, so that ‘forums’ portion does not need to be in the config.php for your URI.

    See this after I applied the proper stylesheet:

    http://www.chrishajer.com/bbpress/Ironbound.png

    #63334
    Trent Adams
    Member

    I am not sure _ck_ but Sambauers wrote the plugin to take the password hash back to the old method. I am testing it with 2.3.3 and WPMU tomorrow and will let you know if it works or not :)

    Trent

    #63325

    In reply to: Fatal Error?

    chrishajer
    Participant

    You can make that change in your 1&1 control panel. Administration > Domains > click the domain name, click the Destination [Edit] button, then select the /forums/ directory from the “Existing directory” select box. That directs all traffic destined for mysite.com to whatever website you have installed in the forums directory (which is bbPress in this case.)

    That works fine if you want your bbPress installation to be the whole website mysite.com and everything is in the ‘forums’ directory. It’s the most direct way to do it, since you have the option to do it this way. It basically hides the fact that things are in a ‘forums’ directory, just like all the rest of the web server path is hidden. My full path is something like /kunden/homepages/46/d93680635/htdocs, and then each website has a subfolder there.

    /kunden/homepages/46/d93680635/htdocs/chrishajer/

    /kunden/homepages/46/d93680635/htdocs/forums/

    /kunden/homepages/46/d93680635/htdocs/somesite/forums/

    Your subfolder will be called “forums”, but people visiting your site will never know.

    Coffee – black :)

    #63316

    In reply to: Themes in FireFox

    chrishajer
    Participant

    Sounds like it wasn’t working at some point, and that information is cached. CTRL-SHIFT-R in Firefox will do a hard refresh. The source to the stylesheet is fine in both IE and Firefox, so it it probably something in your browser.

    Here’s the path to the stylesheet from the HTML source:

    http://thelifelesstraveled.com/forums/bb-templates/kakumei/style.css

    #63298
    chrishajer
    Participant

    Wait, what’s this:

    Warning: version_compare() has been disabled for security reasons in d:hostingarock1rockline_forumbbpressbb-includesdb-base.php on line 479
    Cannot select DB.

    You didn’t post the first part of that message which I received when trying to access your forum.

    Do you know what version MySQL is installed? You could probably work around that. The fact that you still have a “Cannot select DB” error after the warning means there is probably still a problem with your four connection details.

    #63258
    _ck_
    Participant

    Wow I can’t believe bbPress doesn’t do that.

    I’ve whipped up a function to do it, should be in the plugin browser soon or try this:

    <?php
    /*
    Plugin Name: New User Notification Email
    */
    add_action('bb_new_user', 'new_user_notification');

    function new_user_notification($user_id=0) {
    if (!$user_id) {$user_id=bb_get_current_user_info( 'id' );}
    $user=bb_get_user($user_id);

    $message = sprintf(__('New user registration on %s:'), bb_get_option('name')) . "rnrn";
    $message .= sprintf(__('Username: %s'), stripslashes($user->user_login)) . "rnrn";
    $message .= sprintf(__('E-mail: %s'), stripslashes($user->user_email)) . "rnrn";

    $message .= sprintf(__('Agent: %s'), substr(stripslashes($_SERVER["HTTP_USER_AGENT"]),0,80)) . "rnrn";
    $message .= sprintf(__('IP: %s'), $_SERVER['REMOTE_ADDR']) . "rnrn";

    $message .= sprintf(__('Profile: %s'), get_user_profile_link($user_id)) . "rnrn";

    @bb_mail(bb_get_option('admin_email') , sprintf(__('[%s] New User Registration'), bb_get_option('name')), $message, '' );
    }
    ?>

    #63270
    Sam Bauers
    Participant

    That plugin is old and won’t work with 0.8.4 (and maybe not with 0.8.3.1)

    Once 0.8.4 is released this should work as a plugin for both WordPress and bbPress:

    <?php
    /*
    Plugin Name: Lax user names
    Plugin URI:
    Description: Makes all user name sanitisation non-strict
    Author: Sam Bauers
    Version: 0.0.1
    Author URI: http://unlettered.org/
    */

    function i18n_sanitize_user($username, $raw_username = false, $strict = false) {
    if ($strict) {
    return sanitize_user($raw_username);
    } else {
    return $username;
    }
    }

    add_filter('sanitize_user', 'i18n_sanitize_user');
    ?>

    #63238

    In reply to: Integration questions

    harryworld
    Member

    zappoman,

    Thanks for your sharing. I am exactly looking for the features. Could I help somehow to make this work? (Even I’m quite new to bbPress :P)

    You may send me an email at harryworld(at)gmail(dot)com

    #56773

    In reply to: Plugin: Avatar Upload

    thierryyyyyyy
    Participant

    Thank you a lot.

    You are right : I updated badly my files, I forgot to uptdate the root directory “avatar-upload.php”.

    Now, it works far better :)

    if I could allow myself to a small advice : it would be far better if the installation where just “put 1 directory in the my-plugins directory”.

    anyway, the readme.txt was clear enougth, it my fault.

    and the plugin is very nice.

    #63318

    In reply to: Pages aren’t working

    chrishajer
    Participant

    Sounds like the rewrite rules are not working. Start by disabling permalinks in your config.php like this:

    $bb->mod_rewrite = false;

    If that change allows things to work, then you know it’s a problem with permalinks on your host.

    #63265

    In reply to: PHP Error

    chrishajer
    Participant

    OK – I still don’t see those actual line numbers in that release (in fact bb_settings.php has only 209 lines.) So, can you open up /home/www/web316/html/ps-t/bb-settings.php and post line 294 (maybe a couple before and after as well) and /home/www/web316/html/ps-t/bb-includes/pluggable.php and post lines 193 and 231. The code on those lines will help point the way to solving these problems.

    My hunch is this is related to the glob issue and there being no underscore plugins in a bb-plugins directory. Because there are no plugins that begin with an underscore, and due to problems with the way the glob function is tested for, an error like this can occur.

    You can try installing this plugin to see if it fixes your error, even though the line numbers and messages really don’t match up:

    https://bbpress.org/plugins/topic/bb-benchmark/

    I think you can also just create a bb-plugins directory in your installation root, then in it create a file called something like _nothing.php – I think that also causes this block of code to NOT fail, so you wouldn’t see these warnings.

    #63310
    chrishajer
    Participant

    Put it here:

    /home/"mywordpressblogsname"/public_html/bbpress/

    Then in config.php set bb->uri:

    $bb->uri = 'http://"mywordpressblogsname"/bbpress/';

    (assuming your blog is visible at http://”mywordpressblogsname”/ not http://”mywordpressblogsname”/public_html)

    You can name the bbpress folder whatever you want. Sometimes people call it forums. Just be sure to change it to the same thing in config.php.

    #63263

    In reply to: PHP Error

    chrishajer
    Participant

    Was that a trunk release or the 0.8.3.1 release?

    Also, can you look at those two files in your installation and post the code from those lines here? Maybe we can find the source of the problem even without matching up the errors in a current download by using your actual installation.

    #2962
    Göran
    Member

    My name is Göran but when I test bbPress and use my name as username I am called Gran and when I try to use Göran to get around the problem I get Goumlran as my name. How can I solve this? I want users to be able to use their real names including all Swedish letters.

    #56768

    In reply to: Plugin: Avatar Upload

    chrishajer
    Participant

    Is it possible the extension was in all caps? I think the plugin expects to see one of a specific list of extensions, and they’re all lower case.

    'file_extns' => array("gif", "jpg", "jpeg", "png")

    If it wasn’t one of those extensions, I think you would get an error.

    #2956
    lucaiz
    Member

    hello,

    I’m working on a two column template.

    in the front-page.php it’s possible to have the forum list in a table.

    I’d like to have this list also in other pages, that is, for instance, in the forum.php or in the topic.php.

    if I try to run this list in other pages than front-page.php I obtain this error:

    Warning: Invalid argument supplied for foreach() in [my template path]forum.php on line 23

    (the line number is not relevant because I modified the code).

    it seem that the variable $Forums in this foreach is not loaded with the needed data.

    foreach ( $forums as $forum ) { ...

    I’ve tried to find out where it is that is loaded, so that I can load it also in forum.php etc., but I was not able to find out.

    someone can tell me where it is that is loaded, and other suggestion on how to have the list of forums in all pages?

    thanks.

    #63013
    zappoman
    Member

    by the way, an even better way to implement this is to use the args of bb_forums() properly… namely if you change your theme to call bb_forums(“depth=1”) you will only get 1 level of forums on the page.

    This change can be made to the front-page or forum of your theme. If your theme calls bb_forums($forum_id) then it is asking for the child forums of the existing forum and you need to change the code to something like this… bb_forums(“depth=1&child_of=$forum_id”)

    #63237

    In reply to: Integration questions

    triipriit
    Member

    That’d be great!

    I’ll be waiting :)

    my e-mail is triipriit at gmail dot com, just in case

Viewing 25 results - 28,126 through 28,150 (of 32,493 total)
Skip to toolbar