Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 20,501 through 20,525 (of 32,517 total)
  • Author
    Search Results
  • #91449

    In your bb-config.php file put this code:

    define( 'COOKIE_DOMAIN', '.your-domain-name.com' );
    define( 'SITECOOKIEPATH', '/' );
    define( 'COOKIEPATH', '/' );

    If you’re using WordPress, make sure you put the same in the wp-config.php too.

    Now, I know this isn’t supported or well-liked or even neccessary these days (was it ever), but I still put this legacy code into my bb-config

    $bb->wp_siteurl = 'http://www.my-wordpress-url.com';
    $bb->wp_home = 'http://www.my-wordpress-url.com';
    $bb->wp_table_prefix = 'wp_';
    $bb->user_bbdb_name = 'my-database-name';
    $bb->user_bbdb_user = 'my-database-username';
    $bb->user_bbdb_password = 'my-password';
    $bb->user_bbdb_host = 'localhost';
    $bb->custom_user_table = '';
    $bb->custom_user_meta_table = '';
    $bb->authcookie = 'wordpress_';
    $bb->cookiedomain = '';
    $bb->cookiepath = '/';
    $bb->sitecookiepath = '';
    $bb->wp_table_prefix = 'wp_';

    Does it make any difference? I doubt it. But with all the integration stuff over the years, I’ve become a big fan of covering the bases.

    #91541

    In reply to: Plugin alternatives?

    zaerl
    Participant

    zaerl Editor just add a <a> tag which is the standard way of doing things (nothing more). It seems that bb-open_in_new_window just scan the DOM searching for a elements and append a _blank. So I don’t see a reason why it should not function with my plugin.

    Checkbox for e-mail subscription

    Here we have the trunk version of bbPress (1.1 or 1.0.3, we don’t know how to name it and this is a great problem, really) which introduce anonymous posting and subscribe to topics.

    If you want a plugin that transform links the way you want I can send you the version 0.2 of my plugin “zaerl URL preview” which I have not uploaded to bbpress.org for several reasons (here there is only 0.1).

    za AT zaerl.com

    #34749

    Hi everybody,

    I searched for the themes for my bbforum like this : http://wordpress.org/support/ but I found one theme that it named mimic, i guess. but the style and the color is not the same. :( I need it ( this theme : http://wordpress.org/support/ ) for the Persian WordPress Supporting ( fa-wp.com ) …. Please Help Me … Please :((

    #91446
    _ck_
    Participant

    You don’t even need a plugin for this.

    You just need to fix your cookie settings and it will work instantly.

    Set all cookie paths to the root /

    and make sure they are all using the same key/hash which is likely the problem.

    You didn’t say which version of bbPress you are using, it appears to be 1.0.2

    I don’t think I’ve ever bothered to figure out all the new variable names under 1.x which is why you can’t find them around here.

    _ck_
    Participant

    Yes, there are already sites using it that way.

    In fact if they are all using the same domain “example.com” then you don’t even need an extra plugin to do it.

    Set all the cookie paths to the domain root. /

    Point all the user tables to the same db.

    Setup the same cookie keys/hash and done.

    This wasn’t really a question for Matt unless in general people want to know how a bbpress plugin would handle multiple installs. As far as I could guess, you’d have to install multiple copies of WP.

    #91381

    Hello.

    Exactly what I wanted: <?php post_author_avatar(); ?>

    I had some problems with my permissions for the avatar folder in the root forum. It’s set to 755 now.

    Thank you.

    Regards,

    Bob

    #91054
    Joe Gibson
    Member

    Z – Thanks, the ‘s’ did it. Very appreciated.

    The one last thing that would really make this editor the cat’s ass would be opening links in a new window. Is there a PHP version of “Target=_blank” we can slip into the code?

    Joe

    #91380
    Ben L.
    Member

    What you want is <?php post_author_avatar_link(); ?> or <?php post_author_avatar(); ?>, depending on whether you want it to be a link to the user’s website or not.

    #85435
    nickaster
    Member

    So.. i guess this is a bump. How do i do the last step? “integrate a facebook connect button”? What’s the code for that? Do I just slap it onto my bbpress template?

    #34768

    Hello.

    I am using Bavatars 0.4.1 plugin in bbpress 1.0.2.

    Now, I am trying to get my avatar (or every user’s avatar for that matter) shown next to every post that I (or they) make.

    I have tried using something of the <?php avatarupload_display(get_post_author_id()); ?>kind in my template’s post.php page, specifically in <div class="threadauthor"> section, but I don’t know the exact function that I am supposed to call there. I got the idea from another plugin (Avatar Upload), where it seemed to be working fine.

    This is the function in Avatar Upload plugin <?php echo avatarupload_display($user->ID, $force_db); if ($config->use_thumbnail == 1) { echo " &nbsp; " . avatarupload_displaythumb($user->ID, $force_db) . "</p>";}?> defined in avatar.php (from Avatar Upload plugin).

    Now, if I was to define the exact function in bavatars.php and call it in post.php, I guess it would work, but I cannot find my way round the Bavatars plugin.

    Any ideas?

    Thank you.

    Regards,

    Bob

    #91348

    Hello.

    What I wanted was to allow only certain users to post images. And following your advice, this is what I did.

    function allow_images_allowed_tags( $tags ) {

    if (bb_current_user_can('moderate'))

    {

    $tags = array('src' => array(), 'title' => array(), 'alt' => array());

    }

    return $tags;

    }

    add_filter( 'bb_allowed_tags', 'allow_images_allowed_tags' );

    ?>

    <?php

    Worked just fine.

    Thank you once again.

    Regards,

    Bob

    Brian Duffy
    Member

    I installed wordpress using simplescripts. I installed bbpress manually.

    Everything works fine until I add the following line to bb-config.php

    require_once(dirname(__FILE__) . ‘/../wp-load.php’);

    After adding the above code I can no longer login to bbpress.

    Instead I get the below error:

    Fatal error: Cannot redeclare class PasswordHash in /home7/brianduf/public_html/wordpress/forum/bb-includes/backpress/class.passwordhash.php on line 38

    If anyone could help to throw some light on this for me I would be over the moon : )

    #91208
    _ck_
    Participant

    Yeah I suspected as much. Thanks for switching it on Otto!

    Sam did some work and then a great deal was copied over for bbpress.org 2.0

    I noticed the xml generator was there and the flash element was on bbpress.org too.

    Now if we could just get DD32 (Dion) to document the darn API for it as I have no clue how to use it and can’t find anything via google (other than downloading the ENTIRE dataset). https://api.wordpress.org/plugins/info/1.0/

    Oh wait, here’s something http://wordpress.pastebin.com/raw.php?i=7Ji8rD2P

    bingo – docs: http://comox.textdrive.com/pipermail/wp-hackers/2009-January/023505.html

    Doesn’t seem to be on the bbPress side anyway after all that, oh well.

    ps. I don’t suppose you can get tags working again in the plugin section – they are not being imported from the readme.txt file anymore. Is it because of the tag api name changes from bbpress 0.9 -> 1.0 ?

    ie. add_topic_tags became bb_add_topic_tags

    but that’s in the deprecated support, so not sure what else it might be

    yetanotherlogin
    Participant

    Thansk Kevin for the link.

    I followed the whole procedure down to “3. Deep Integration > 8. Log into WP Dashboard”… but now, I can no longer log on (/wordpress/wp-login.php) :-/

    FWIW, it doesn’t say that the password is incorrect, but it loops back to Username/Password.

    Tried Chrome and Firefox, same result. I did empty the browser cache, as asked in the procedure, same result.

    FWIW2, I can still log on to bbPress as admin.

    Any idea why I can no longer log on to WP?

    BTW, when is “deep integration” needed? I’d simply like a link to the underlying bbPress forum to be displayed in the WordPress main UI.

    Thank you.

    #91207

    Strangely enough, the code was all there to do stats, it just needed to be turned on and modified ever so slightly to make the graph work.

    Works flawlessly now. Great thanks for that neat plugin and for the support. I am also in favor of keeping lightweight standalone bbPress :)

    #91261
    citizenkeith
    Participant

    All this, while striving to be as light as possible

    I liked reading that! :-)

    You guys are starting to win over this bbPress 0.9 user. See what communication can do for a community? ;)

    _ck_
    Participant

    Once you get that settled, I’ll point out how year-long-cookies never executes, even though you have it installed. So just delete that old plugin.

    So to make longer cookies when “remember me” is set, you’d have to edit the freshly-baked-cookies plugin, search for the number 1209600 and change it to 31536000 which is a year. Optionally you could set it smaller like 111600 which is 31 days.

    I should really consider learning how to use subversion :) I’ll try that and post the result shortly.

    #34780
    _KB_
    Participant

    So, here exactly What I want,

    Suppose I’ve planned to run multiple discussion boards, and I’m using

    http://zptest.info/ ( WordPress )

    http://zptest.info/students/ [bbpress 1]

    http://zptest.info/teachers/ [bbpress 2]

    http://zptest.info/management/ [bbpress 3]

    I’ve done:

    -1: Shared User Integration ( Works )

    -2: Shared Database Integration ( Works )

    -3: Shared Cookies Integration (Not Works, that’s what I want)

    I’ve followed all instruction from bbpress Integration tutorial

    Now cookies not works, you can test it at zptest.info

    user: test

    pass: test

    (I can send also admin’s or ftp detail, if anyone really interested)

    cookies are conflicting, sometimes not logout from other boards.

    Suggestion:

    I’m hopping there should be a plugin, just for set cookies for multiple boards in same domain.

    People just do, user integration, and database integration.

    then install ( cookies plugin ), that’s all,

    Come on, _ck_, you can do it, :-)

    Thanks

    KB

    phpinfo() tells me that PHP is Version 5.2.13

    Now, pretend I am crazy and tripple check the settings at the top

    LOGGED_IN_KEY

    LOGGED_IN_SALT

    The two keys and salts are the same. Keys I get from wp-config.php and salts from wp-admin/options.php.

    take a REALLY good look at the cookie data – it changes between bbPress and WP but really only two parts should change, the expire date and the hash. So between the last | in the data

    How the hash forms is still not quite clear to me, but obviously that’s where the issue lies. I notice that it’s different every time I log in (no matter from which side). I if log in/out of WP 10 times I get 10 different hashes. But maybe that’s the normal way.

    Other things to note:

    * I am using year long cookies plugin on the bbPress side

    * bbPress has a trailing slash in these settings:

    $bb->wp_siteurl = 'http://dev.example.net/';
    $bb->wp_home = 'http://dev.example.net/';

    whereas WP has them without the slash:

    define('WP_HOME', 'http://dev.example.net');
    define('WP_SITEURL', 'http://dev.example.net');

    * as you can see I am doing this on a dev subdomain and not on the live site. Even though I did test it on the live site(with the main domain) too and the result was the same

    * the lines you mentioned in the plugin did not match: I had that code on lines 70 and 83

    * define('AUTH_COOKIE_VERSION', 2 ); should be added at the top of _freshly-baked-cookies.php, right? I did not exist there in the plugin download, so I added it before starting the tests

    Thanks a lot for helping out

    #91440
    Gautam Gupta
    Participant

    When editing a reply, the “Notify me of followup posts via e-mail” text appears twice (once below the “Allowed markup” and once above.)

    I think this is related to theme, I didn’t happen on my installation with Kakumei.

    This means that the theme here doesn’t contain edit-form.php and is using Kakumei’s. In the patch I posted, the action (to add the checkbox) is removed in functions.php and is instead added at a custom location in Kakumei’s edit-form.php, and as functions of Kakumei aren’t loaded here, the default action isn’t removed and the checkbox is displayed twice. This doesn’t happen with post-form.php as it is present here.

    #91500

    I’d strongly recommend this: http://wpbbpthemes.org/integration/

    It covers installation in more than 8 steps, and should help a fair bit :)

    ZKuJoe
    Member

    I originally used WordPress for my blog but now I use bbPress for my blog. I have no plans on ever installing WordPress again since bbPress acts as my blog while functioning like a forum. :D

    If bbPress was formed into a plugin instead of a standalone script, I will continue using it and do me and my team will do our own coding/bug fixes.

    Erlend
    Participant

    But you certainly are not going to get anyone who is NOT using WordPress to install WordPress just to create a forum. There are far better options out there.

    You’re probably right. Yet allow me to give an example of how major plugins like bbPress and BuddyPress complement WordPress in a way that greatly adds to its appeal (i.e. grows the customer base beyond those interested in WordPress)

    Much like WordPress, our project (jMonkeyEngine) is a continuation of someone else’s work. When we picked up the reins of the jmonkeyengine.com website, we were stuck with three separate content systems (SMF, DokuWiki, WordPress) and a mess of custom code. We looked at several options, like:

    – Extend SMF (no doubt the heart of our community activities) into a full-scale CMS

    – Tie all systems together with a solution like Atlassian’s Crowd

    – Replace our custom front page with Joomla! and use JFusion to tie all four tightly together.

    – Replace everything with a widely extended Joomla!

    We practically tried all of those options and more in practice, either in testing environments or on our live site. Meanwhile I’d been looking at complete ‘community solutions’, like Elgg, OpenWack, JomSocial, BuddyPress…

    (I definitely looked at Drupal as well, but they just didn’t seem to have anything near as simple as say JomSocial that just goes ‘boom, now you can start build your community).

    Then bbPress came to BuddyPress, and I made a decision. I proposed an overhaul and we got moving:

    http://www.jmonkeyengine.com/forum/index.php?topic=13934.0

    The only reason we’re not spamming press-boards with ‘look at us!’ links yet is because we made the decision to move everything over at once, and that includes the risky decision of adopting the BuddyPress-Wiki plugin (every other essential has been covered by core features) to replace our DokuWiki. With D.P. Cartwright’s dedicated help we’re just about there though.

    Erm, point ahoy!

    So the point I’m trying to make is, we never stopped to consider WordPress as a CMS, until BuddyPress arrived as the major complement to fulfill our every need in one package, as opposed to 20+ plugins. Having used WordPress for my own portfolio page and general sandbox play I already knew how intuitive (extremely so when compared to Joomla!) and easy to extend it is. When the last remaining piece of the puzzle arrived, the choice was a no-brainer. I imagine many will come to the same realization with bbPress.

    I know I did not prove you wrong; I just figured people might find this brief case study interesting.

Viewing 25 results - 20,501 through 20,525 (of 32,517 total)
Skip to toolbar