Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 24,826 through 24,850 (of 32,468 total)
  • Author
    Search Results
  • #73607
    ITguy
    Member

    John, first please enjoy your vacation. As to your question, yes I do use ‘deep integration’. I have deleted the 3 groups I had that would not allow the recreation of the forums via the toggling of the ‘Enable discussion forum’ option. That was my only remaining problem. I was able to recreate the groups from scratch and transferred the topics and posting db entries from my backup. Everything is now working :-)

    I did a quick search through the BuddyPress forums about the issue you mention but have not found it. I will do it again over the weekend. Should I find it I will try any suggested fix by setting up another copy my setup (code and database) saved this morning before I deleted the problem group forums. I have a spare domain I can use just for that purpose. Should you find it please feel free to post the URL here.

    Thanks again for all your help, hopefully I can help you with identifying the issue you referring to for your screen casts.

    #15012
    massbase
    Member

    if you goto the frontpage.php at http://www.massbase.com… on the side bar to the right, (which is the footer.php) there is an extra loop that shows the instant classifed forums (in the black box)…

    however if i click on any topic or any page on the site… that loop stops displaying the topics of that forum..

    how come ?

    this is the code im using for the loops in that black box (which is the same code for all the forums on the frontpage)

    <h3 style="color: red;"><?php forum_name(4); ?></h3>
    <?php
    $count=0;
    if ( $topics )
    {
    foreach ( $topics as $topic)
    {
    if ($topic->forum_id=="4")
    {
    if($count<5)
    $count++;
    else
    break;
    ?>
    <br />- <?php bb_topic_labels(); ?> <a style="font-weight:bold; color: white;line-height: 2.5em;" href="<?php topic_link(); ?>"><?php topic_title(); ?></a><?php topic_page_links(); ?>
    <?php
    }
    }
    }
    ?>
    <br /><br /><a id="sub-link" href="<?php bb_uri(); ?>forum/instant-classified"> View all General Topics</a>

    #73606

    ITguy, are you using deep integration? If so, I think there’s something else that needs to be done before the group forum creation will work.

    I ran into the same issue as you a few months back. Burt’s XMLRPC check would work, but forums wouldn’t get made. If memory serves me right, the XMLRPC was reincluding something that was mucking up the forum creation, but I don’t recall exactly what that is at the moment, but I banged my head against it for a week, and there’s a topic somewhere in the BuddyPress forums to prove it. :)

    I’m packing for a week long vacation tonight, and am flying all day tomorrow. I’ll have my laptop and access to all my code by Wednesday night, and will be back to help support this again. In the meantime I invite you to scour buddypress.org/forums and see if you can find any of my past replies or recent topics. Check from about April or so. Getting this figured out is important to me too, as I’ve got a series of Integration screen casts I’m going to put together and give to the *Press sites to help answer all of the questions everyone has about integration, since it is a very popular topic and many of us spend many hours developing and supporting it.

    Talk soon, and good luck until then.

    #74575
    John Blackbourn
    Participant

    @Michael3185:

    The user profile fields are simply items in a PHP array. You can remove an item from the array to remove the profile field, or add a new item to the array to add a new profile field.

    <?php

    /*
    Plugin Name: My Profile Fields
    Description: My profile fields for my lovely forums
    Version 1.0
    */

    function my_profile_fields( $fields ) {
    /* This removes the Occupation profile field: */
    unset( $fields['occ'] );
    /* This adds a new optional field called Favourite Band: */
    $fields['faveband'] = array(0,'Favourite Band');
    /* This adds a new *required* field called State: */
    $fields['state'] = array(1,'State');
    /* You must return the array at the end of the function: */
    return $fields;
    }

    add_filter( 'get_profile_info_keys', 'my_profile_fields' );

    ?>

    Save the code above as a .php file and upload it to your my-plugins directory (you may need to create this directory in the root of your forums installation) and then activate it from the Plugins menu in the bbPress admin area.

    Edit: Code updated as a complete example of a plugin.

    #74409

    Inching forward.

    When I share tables, the default role of the admin of forums has a subscriber role in capabilities, thats why the admin access is lost.

    Right, but WHY does that happen to you when it doesn’t to everyone else (that I’ve heard of) who sets up bbPress/WordPress the way you described :) It’s weird and I wonder what happened. It’s not the different wp_/bb_ prefixes, I’ve tested that.

    #74408

    Yes! It was pretty weird problem. It didn’t work when I copy pasted the string from my blog post but when I did from console (value from another integrated copy), it did the job.

    They were not messed up. When I share tables, the default role of the admin of forums has a subscriber role in capabilities, thats why the admin access is lost. May be we are again going in circles now :/

    #74574
    michael3185
    Member

    @ghengisyan: “I have been messing with the php files (mostly guessing)” – that’s my methodology too! Seems to be working though, as I’ve managed to do some more than I thought I would, with the help of online PHP tutorials.

    An Extra Profile Fields plugin would be pretty neat. When I was testing Vanilla 1.8, that was one of the things I liked about it. At the bottom of the profile page is an empty ‘name’ field and a matching ‘content’ field. You add what you want, then click a link to add another, etc. It means users can customise the extra information they enter, and I think it feels more personal to them as they get to name the content field. Feeling that it’s more personal is bound to make people stick around I think.

    @johnbillion: I found the filter at line 2201 of functions.php in 0.9.0.5, but have no idea how to use it. If you have a few minutes spare sometime, could you perhaps give us some hints, and a brief snatch of code?

    #74295

    @ashfame I didn’t say they couldn’t, I said they didn’t. I chose that word on purpose :)

    The way that WP-Super-Cache was originally written, logged in users DO NOT get cached pages. Now I understand that Donncha added in a toggle to turn that option on and off recently, but I’ve not used it and I’m not sure exactly what that does.

    As for ‘why’ logged in users don’t get cached pages (historically), well, Donncha says this:

    If you’re logged in or have left a comment you’ll never see a super-cached page. You’ll see plain old regular WP-Cached pages instead. That’s not so bad since a huge majority of your visitors will never leave a comment.

    #74407

    We’re going in circles. And yes, I know it’s working know.

    My question is this: WHY were your xx_capabilities and xx_usermeta messed up in the first place? There’s no reason I can think of that the setup you described (install WP, configure. Install bb, configure. Integrate bb and WP) should have whacked those settings. :) You see why I’m confused?

    #74603

    I found a much more elegant solution by slightly modifying some other code I found here on the forums. I created a plugin like this:

    /* Plugin Name: Filter Today Only Topics */

    function filter_today_only_topics($where){
    $today_only_forums = array ("4"); // The id# of the Today Only forum(s)
    foreach($today_only_forums as $forum) {
    $where .= " AND (forum_id != " . $forum . " OR topic_start_time > CURDATE()) ";
    }
    return $where;
    }

    add_filter( 'get_latest_topics_where', 'filter_today_only_topics');
    add_filter( 'get_latest_posts_where', 'filter_today_only_topics');

    This has the advantage of working in any list of recent posts without modifying the templates. The counts are still wrong in the forum lists, and I can’t find a filter that let’s me change the query for just those, but I’ll just write a template function for that.

    #74406

    Ok. But in my case I was using custom table prefixes, so instead of editing the plugin I directly run a sql query :)

    Problem is solved now!

    Thanks for your help!

    chrishajer
    Participant

    [EDIT – I posted this AFTER atsutane posted, but that reply was in the spam queue erroneously, so this probably looks weird now that atsutane’s reply is visible :-)]

    Did you ask for help on the plugin page?

    https://bbpress.org/plugins/topic/bbcode-buttons/page/5/

    Plugin authors typically see requests there even if they don’t see them here.

    But if I remember correctly, that plugin just provided the buttons. You still need to provide a bbcode plugin for your installation. Something like this? https://bbpress.org/plugins/topic/bbcode-lite/

    The theme and version of bbPress are not causing the problem. Thanks.

    #73603
    chrishajer
    Participant

    @johnjamesjacoby – where does this bit of info come from:

    $bb->bb_xmlrpc_allow_user_switching = true;

    I’ve never installed WMPU or BuddyPress, so maybe it’s in the instructions or a config file already, but I’ve seen it referred to here a couple times and wonder where it comes from. Thanks.

    Atsutane
    Member

    Did you install BBcode lite plugin? https://bbpress.org/plugins/topic/bbcode-lite/

    #74611
    Shagalaga
    Member

    @john well now i’m curious :-D

    Hi Chrishhajer,

    I am using the below plugin of version for bbcode : BBcode Buttons Toolbar 0.0.9

    I am using the below Theme of version:

    Kakumei0.01 theta-beta by Bryan Veloso

    The “revolutionized” new face of bbPress.

    Installed in: Core themes -> kakumei

    I am using this version of BB Press : bbpress-0.9.0.5

    Please let me know if you need more information.

    Thanks,

    -Vikram

    #73602

    Tis true. I usually purge the bb_capabilities and apply the role map once everything is lined up, even though it’s like rinsing the dishes and then washing them in the machine.

    ITguy, couple of things to check RE-buddypress. XML-RPC is turned on in both WP and BBP? Also, don’t forget to put

    $bb->bb_xmlrpc_allow_user_switching = true; somewhere near the end of your bb-config.php file. That will make sure that xmlrpc can switch to your keymaster user to communicate back and forth between the two installs.

    chrishajer
    Participant

    What plugin are you using to provide bbcode, and what version of bbPress are you using, and with what theme?

    Hi

    I have actiavated BBcode Buttons Toolbar and entered text like below and selected Bold.

    ( BB Button is not working when I am trying bold , Itallic, etc ) , but my text after i posted it is not appearing in BOLD and again my text is showing like above with codes () etc. none of the tool bar options are working expect smile symbols.

    Please look into this.

    Thanks,

    -Vikram.

    #15003
    nathan
    Member

    I just upgraded to RC2, and when I try to post anchor tags the quotes get turned into HTML special characters and the leading ‘http’ is stripped. For example if I try something like:

    <a href="http://example.com">Example</a>

    It gets changed to this:

    <a href="//example.com&quot;">Example</a>

    I only have two plugins enabled: bozo and akismet. Any ideas?

    #74573
    John Blackbourn
    Participant

    There is a filter on the function get_profile_info_keys() in bb-includes/functions.bb-core.php which can be used to add and remove profile fields.

    #73599

    ITguy, did you remember to do the user-role mapping in your bbPress WordPress integration after you had everything all lined up? I read through your above steps twice and didn’t see it there except for in step 3 before everything was working, but I did also just wake up from a pretty epic nap. :)

    #74604
    johnhiler
    Member

    There was a recent post with someone in exactly your situation. :-)

    Integration of established WP and BBPress installations

    The key issue is integrating the user database first… then you can do a cookie integration fairly easily, using either ck or superann’s plugins.

    Good luck!

    #73597
    ITguy
    Member

    John,

    I came across your other posting ‘Integrating WPMU trunk and bbPress RC2’ and added the following to bb-press.php:

    // DEEP INTEGRATION AT THE VERY TOP
    // (Sam, I can see you shaking your head right now)
    if ( !defined('ABSPATH') & !defined('XMLRPC_REQUEST') & !defined('BB_IS_ADMIN')) {
    define('WP_USE_THEMES', false);
    include_once( '/absolute/path/to/domain.com/wp-blog-header.php' );
    //unset($wp_object_cache);
    header("HTTP/1.1 200 OK");
    header("Status: 200 All rosy") ;
    }
    '
    and

    '
    // WordPress database integration speedup
    $bb->wp_table_prefix = 'wp_';
    $bb->wordpress_mu_primary_blog_id = 1;
    $bb->user_bbdb_name = '';
    $bb->user_bbdb_user = '';
    $bb->user_bbdb_password = '';
    $bb->user_bbdb_host = '';
    $bb->user_bbdb_charset = '';
    $bb->user_bbdb_collate = '';
    $bb->custom_user_table = '';
    $bb->custom_user_meta_table = '';

    // WordPress cookie integration speedup
    $bb->wp_siteurl = 'http://mydomain.com'; // no trailing slash
    $bb->wp_home = 'http://mydomain.com'; // no trailing slash
    $bb->cookiedomain = '';
    $bb->cookiepath = '/';
    $bb->authcookie = 'wordpress_HASH-FROM-FIREFOX';
    $bb->secure_auth_cookie = 'wordpress_sec_HASH-FROM-FIREFOX';
    $bb->logged_in_cookie = 'wordpress_logged_in_HASH-FROM-FIREFOX';
    $bb->admin_cookie_path = '/SUB-DIRECTORY/bb-admin';
    $bb->core_plugins_cookie_path = '/MY-SUB-DIRECTORY/bb-plugins';
    $bb->user_plugins_cookie_path = '/MY-SUB-DIRECTORY/my-plugins';
    $bb->sitecookiepath = '';
    $bb->wp_admin_cookie_path = '/wp-admin';
    $bb->wp_plugins_cookie_path = '/wp-content/plugins';
    define('WP_AUTH_COOKIE_VERSION', 1);

    The result being the user integration is working, HOWEVER admin no longer is recognized as ‘KEY MASTER’ nor does it know about my second bbPress user I created as administrator to be used as the user in WPMU’s Forum integration. Using the admin as that user did not solve the problem either of being able post or create topics/groups. It seems that I either get partial data integration or user integration but not both. What a mess.

    BTW, I have working without any problem WPMU 2.7.1 and BudyPress 1.0.1. Trying to integrate bbPress 1.0-RC2. I had originally working WPMU 2.7.1, BuddyPress 1.0 and bbPress 1.0-Alpha-6. I should have left things alone.

    #73596
    ITguy
    Member

    John, this were I ended up:

    1. Log in as admin to bbPress and went to admin->settings

    2. Enabled ‘bbPress XML-RPC publishing protocol’ in the ‘Writing pane’

    3. In the ‘WordPress Integration’ pane set WordPress Administrator’ to ‘bbPress Key Master’ role. All others to ‘bbPress meber’ and saved the User Role map.

    4. added:

    define(‘COOKIE_DOMAIN’, ”);

    define(‘COOKIEPATH’, ‘/’);

    define(‘COOKIEHASH’, ‘e6bd245d6e82566f2fdcff73419dd3da’ );

    to both wp-config and bb-config files

    5. Copied the 7 unique authentification keys from the wp-config file to the bb-config file adding ‘BB_’ in from of each variable name.

    6. Added to the end of the bb-config file, just be the closing php code:

    $bb->bb_xmlrpc_allow_user_switching = true;

    Saved bb-config.sys

    7. Moved buddypress-enable.php file to the my-plugins folder under the forums folder and activated it.

    8. In the WPMU admin pane selected the BuddyPress->Forums Setup and enter the forum URL, as well as the WPPU admin name and password.

    9. Logout of BuddyPress and bbPress. Logged in to BuddyPress, changed URL to forum, needed to log in, however changing back and forth between the two now needs no further logging in.

    10. Created a new group on the Buddypress site with ‘Enable discussion forum’ selected. Forum is created and visible on the bbPress site.

    11. Enter a topic and comment, bot show up on both sites.

    END of good news. Here is what is not working:

    1. No user integration, only admin works, any other WPMU user is not recognized on the bbPress site.

    2. Existing group’s discussion are not creating forums when toggling the ‘Enable discussion forum’ option.

    3. Only admin can create topics and comments within the group forums (due to problem #1).

    I have done this now 3 times over, reinstalling bbPress (deleting the forum folder, the bb_ tables and bb_ entries in the wp_usermeta) and following the steps above which is a combination of your ‘Forum Integration: Helpful Hints’ posting and the added steps regarding the cookie integration posted on ‘The Easy Button’ and the ‘UMW Wiki’.

    I not sure what to do next to get this right :-(

Viewing 25 results - 24,826 through 24,850 (of 32,468 total)
Skip to toolbar