Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 15,101 through 15,125 (of 32,503 total)
  • Author
    Search Results
  • #120682
    sambedingfield
    Participant

    Not be the most elegant solution, but it’ll have to do for now:


    //redirect user profile topic permalinks to fix pagination, as we have topics embedded on profiles
    function rats_redirect_user_pagination( $pagination ) {
    // Get bbPress
    $bbp = bbpress();
    if (bbp_is_single_user() && is_array($pagination) && isset($pagination['base']) ) {
    //if topics has not been included in the url yet
    $check_topic = strpos($pagination['base'], '/topics/page/');
    if($check_topic === false) {
    $pagination['base'] = str_replace('/page/','/topics/page/', $pagination['base']);
    }
    }
    //return pagination array
    return $pagination;
    }
    add_action('bbp_topic_pagination', 'rats_redirect_user_pagination', 99, 1 );

    #120678

    In reply to: RSS feeds broken

    Steve
    Participant

    Sorry, I lost sight of this… there’s another bug – you use

    get_option( 'rss_language' );

    which no longer works…. it needs to be changed to:

    bloginfo_rss( 'language' )

    I can raise another trac ticket when I get home if you like

    Steve

    #120667
    Stephen Edgar
    Keymaster

    Make sure you select ‘phpBB’ with the ‘import forums tool’ option ‘Select Platform’

    Check out the brief docs here https://codex.bbpress.org/import-forums/

    The import works pretty well for the base of phpBB migration for users, forums, topics & replies.

    #120659
    #120655

    In reply to: How to rollback

    SK
    Participant

    Thanks @labsecrets, but that may not work for us because when I view source the code is not there. e.g. when on forums home I view code, I can’t find the forum names (except in the forum list widget)

    #120652

    In reply to: bbPress 2.2.2 released

    LabSecrets
    Participant

    Between 2.2.1 and 2.2.2, we found that the profile pages suddenly “vanished” (but the code was still there). It was a CSS issue.

    For our clients and personal sites, the fix was on line 78 of the default css:

    We changed “clear:none” to “clear:both”


    #bbpress-forums #bbp-user-wrapper ul.bbp-lead-topic, #bbpress-forums #bbp-user-wrapper ul.bbp-topics, #bbpress-forums #bbp-user-wrapper ul.bbp-forums, #bbpress-forums #bbp-user-wrapper ul.bbp-replies, #bbpress-forums #bbp-user-wrapper fieldset.bbp-form {   clear: both; }

    Pierre-Luc Auclair
    Participant

    I’m trying to understand if/how it is possible to call BuddyPress functions outside the forum (in a regular WP page). The Codex isn’t of much help…

    I am trying to create a latest topics list and a forums list on regular WP pages (home.php, index.php), etc.

    Thanks for the help !

    #120647

    It’s a bit difficult to wrap your head around at first, but the reason theme compatibility exists, is because you should not modify code/templates that come with plugins or themes. When using a plugin like bbPress, and a theme that isn’t yours, you need some other way to introduce code into WordPress.

    You can use either a plugin, or a child theme to do this.

    You’ll want to research both methods, and figure out which one suits your situation and needs.

    #120646

    Yep!

    • bbp_get_forum_content( $forum_id ); to return
    • bbp_forum_content( $forum_id ); to echo
    #120645
    nickzee
    Participant

    Dear community.

    I have spent the last few (5) hours reading the various posts, trying to get bbpress to integrate with my custom WP theme. Unfortunately, I don’t have the knowledge (or enough) to figure out how to make the two work together.

    Info
    Wordpress: 3.4.2
    Site link: http://www.restorationcoach.com/restoration_coach/forums/
    Using this theme: http://www.templatemonster.com/wordpress-themes/39849.html
    bbpress: 2.2

    My main issue seams to be css related. I think bbpress is and the theme are sharing css files, causing a funky appearance. Overall forum function seems to be working fine.

    So far I’ve done the following.

    Completely removed bbpress and installed new 2.2 version.
    Read: http://codex.bbpress.org/theme-compatibility/ (this is for customizing the bbpress theme, if you want? And if you don’t, then leave the install as is?)
    Watched: http://www.youtube.com/watch?v=lB2Oodx2GJw (not sure if this applies with 2.2)
    Switched to Twentyeleven: Looks better, side bar is missing, and footer contact form, map and links are over top one another.

    I can see in firebug where both style.css and bbpress.css are being used to style the forum. Most specifically #page-content ul li. This, I believe, is causing the issues but not quite sure how to fix it.

    Thank you in advance for the assistance.

    #120642
    Kevin Behrens
    Participant

    Capabilities are saved in the database, per user, per site, and they bubble based on the role they are granted. If you use any plugin that modifies editable roles or capabilities in the database, what you’re doing is changing the individual capabilities for every user that gets that role going forward, but not necessarily every user that had that role in the past.

    I think the type-specific dynamic roles are a nice addition to the WP permissions layer. No doubt a significant minority of users will continue to find value and convenience in the ability to customize stored role definitions. Once WP moves to disregard the wp_user_roles array, role editing plugins will just be forced to store the rolecaps array externally and apply them through the filters you provide.

    I won’t argue the philosophy of how much customization to fence off for safety/liability, but your writeup exaggerates some of the existing hazards. The “existing users unaffected by role edit” scenario only occurs if custom user capabilities were explicitly assigned. Otherwise, under stock code:

    Granting a role stores the role name into the user’s usermeta capabilities array. So editing a stored role definition does affect current members of that role (not just future members).

    Granting a role does not store a copy of all currently defined rolecaps into the usermeta capabilities array.

    Put this in mu-plugins, or make a plugin out of it, or put it in your functions.php file of your theme. Probably will want to rename “foo” though.

    function foo( $args = array() ) {
        $args['teeny'] = false;
        return $args;
    }
    add_filter( 'bbp_after_get_the_content_parse_args', 'foo' );

    That’s not a great solution, because you’re missing out on all the other things that hook to the_content otherwise.

    Are you using query_posts() anywhere? Are you not using wp_reset_query(); when your WP_Query’s are done?

    htz77
    Participant

    I found a solution: if my template uses get_the_content() instead of the_content(), then I can apply the normal content filters — wpautop() and wptexturize() — directly to the raw content, untouched by bbPress.
    $raw_content = get_the_content();
    echo wptexturize(wpautop($raw_content));

    padekan
    Participant

    I updated to bbPress 2.2.1 last night and had the same problem with Ultimate TinyMCE plugin. The plugin sued to work beautifully with bbPress, now I get the default fancy editor. I’m not a PHP guru so I’ve been trying to avoid messing around in the code as Michael suggests. Is there any other option to get that editor enabled (it does show up in the dashboard versions of new Topic and I miss the table drawer)

    regards, Paul

    #120626

    In reply to: Filter name

    Changed to bbp_single_user_details_avatar_size in the branch, will be 2.2.3, which has no date set yet. You can safely modify that code in your file if you’d like, any future update will include it.

    #120620

    Topic: Filter name

    in forum Troubleshooting
    Sami Keijonen
    Participant

    There is filter called twentyten_author_bio_avatar_size in user-details.php. Is this intentional, or should it be like bbpress_author_bio_avatar_size?

    htz77
    Participant

    Hey JJJ, thanks for helping out again.

    Hmm. When I comment out line 633 in bbpress/includes/core/theme-compat.php,
    //bbp_remove_all_filters( 'the_content' );
    the problem is fixed — the custom WP_Query’s all have the correct paragraph breaks. So it still seems related to me somehow. But of course I don’t want to just keep it commented out. I’m sure it’s there for a reason, and I don’t want to edit core files.

    Also, I just added is_main_query() and in_the_loop() to the templates that do my custom WP_Query queries. And even those show is_main_query = TRUE, which seems weird, huh. Though in_the_loop = False, as it should be, so I’m not sure why that wouldn’t prevent the problem.

    Any further insight much appreciated!

    #120594
    bbuser12345
    Participant

    I’m confident you’ll figure it out.

    I wish I was as confident…

    It’s fine to be frustrated, but your tone towards the volunteers trying to help you is pretty crappy.

    My tone is one of exasperation (maybe desperation). I have been using BBPress for 5 years, and stuck with it through “the dark years”. I have read all the help pages, and I know my way around a command line, yet this converter, built ostensibly to help non-experts, does not work and I cannot find help. I have a message board that is falling apart, and being overrun by spam, and I have spent countless hours trying to migrate the database using the converter. Which is just the first step in migrating the forum.

    If you don’t like the documentation, change it. It’s a WordPress site where everyone is an Editor, and you can be part of the solution just like every other volunteer, or you can be upset because the amazing free software you’re using isn’t as polished as we all know it could be. If only we had more volunteers… Paradox.

    I am not sure whether to laugh or cry. If I knew what was wrong with the documentation, I would change it. Of course if I knew what was wrong with the documentation I would likely not have a problem in the first place and would never have sought out the documentation. There is your paradox. People who seek out documentation are by definition having trouble and are likely not expert users. They are the last people who are qualified to improve the documentation.

    We brought the old bbConverter into bbPress in 2.1. bbConverter development stopped, and I took it over and brought it into bbPress core along with several much needed fixes. Trying to use software that you know is abandoned and others have not succeeded with is generally a bad idea.

    Thats great information!! Why does it not appear either on the bbconverter plug-in page or on the https://codex.bbpress.org/import-forums/ page?

    I should note that I don’t see any way for me to add this information to the documentation of either the old deprecated plug-in (which gets downloaded and installed many times a day apparently) or on the codex page for the converter.

    The connection failure doesn’t provide the feedback you’re wishing for. There is no “your password was incorrect but the username is okay” level of feedback, so you’re on your own. Based on how capable and experienced you are, let’s assume it’s correct anyway.

    Wait! You said connection failure… how do you know it is a connection failure? Is there something in the message (or that is not in the message) that tells you that? If so why does the console not report:

    “You have failed to connect to the server. At least one of these three things is wrong: The Old Database’s Server Name, The Database’s User Name or the old Database’s User Password. Unfortunately, this converter cannot tell you which one or more of these things is wrong”

    Instead the error I get is one I would expect if I had the name of a table in my database wrong in a query.

    Look, I know that you cannot pass on information to the user that the server does not report. But when I access mySQL databases and servers the wrong way with a mySQL client or R or python or myPHP I get error messages with error codes. Things like “#1045 Cannot log in to the MySQL server”. This lets me know what I have screwed up so I can fix it. Is it a missing table or the wrong database name? Or am I not even connecting to the server at all? Again if for some reason you are not getting these messages then I guess I am “on my own”.

    So… you’ll have the best luck if your bbPress 1.1 tables are in the same database as your current WordPress installation. Maybe try exporting those tables out of the other database, and importing them into the current one, and give it another shot.

    Even more good information! Thank you. I would edit the documentation to let others know about this, but every time I try to log in to the codex site for BBpress, I get taken to the buddypress site.

    =======================================================================
    For what it is worth:

    My tone is also one of frustration. BBPress is an awesome bit of code and you guys have spent a great deal of time making it do really awesome things, but as is the case with many opensource projects, no one seems to care if anyone can actually use the awesome product.

    I am a part of a pretty big opensource community, and bad documentation is a systematic problem. People make amazing things then fail to help users actually use the code. I write lots of code that I end up releasing to that community. I spend a good bit of time making my documentation work for people who are newbies to using the program. I assume they picked up the program just to use my package/functionality and I write my help with that in mind. Why?, because I want them to use my code, I want them to learn about the program, and I eventually hope they will become a part of the community and contribute.

    #120580

    In reply to: Custom login Page

    Keikabile Lesego
    Participant

    Hello, Stephen.  Looking at the were things are, accoding to my little experience since i  started using wordpress, I know the is no how wp-login.php page can look this way without editing the core css Because wp-login.php file is not located in a child theme root so its a lil difficult, to call css style from a child theme that will edit the apparence of page that is not in the child theme… Unless The web-owner used a plugin to replace the core, still as i mentioned above it looks the same as other pages because there is no page header, though it was made to suit the site appearance… What if you want to call the header, for those who have a different websites with a header.  Maybe i dont know something does removing a link that you dont want or any code in wp-login.php called hacking core? If it is then there was core hacking on the link you just shared. In royaltweet.com i just called the header,  edited css style and removed the links that i didnt like, eg login title and everything became great.

    #120579
    bbuser12345
    Participant

    Fair enough. If I have to pay someone more than $20 to use the provided migration wizard I will. (FWIW, on oDesk people are free to bid whatever they are willing to bid to do the project.) I have been trying this conversion on and off myself for about 6 months, I’d pay $100 if someone who knew what they were doing would help me out. (Why it would take anything like 20-40 hours for someone to figure out what I need to fill in on a web form in order to get the wizard to work is beyond me.)

    This should be simple right? I have a BBpress standalone and I want to convert the database to be used by the plug-in. This is the simplest case. I know how to set everything up all I need to know is what set of magical things to put in the form fields to get the converter to actually work.

    I know how to back up my database, and I use mySQL all the time in my daily work. I write programs for a living that access and analyze massive data bases. If I knew what needed to be done to the data base to make it work with the plug-in (that is what the wizard is doing under the hood) I could do the migration myself with an R script or something similar. However, there is no place where it is documented what needs to be done to convert the database.

    The statement that: “Once you have the right tools and become relatively proficient, it’s actually pretty easy.” is tautological. However, it is the sentiment one gets when trying to follow the BBpress’ documentation: “If you already knew how to do this, here is how you would do this”.

    Here are a few of the issues:

    Half of the replies in the forums say to follow this plan:
    https://codex.bbpress.org/import-forums/

    The other replies say to use the plugin:
    https://wordpress.org/extend/plugins/bbconverter/

    Which is it? Why are there two different ways? Is one applicable to one situation and the other to another?

    Of course neither will work for me (and many others apparently). The support page at http://bbconverter.com is dead and so there is no information there. The other page contains very sparse information about what one should put in the form fields.

    ***Here is the biggest issue. The console on the wizard does not give any information that would help you diagnose what step in the process has failed.

    For example I just get:

    ==========================================
    Please don’t forget to update your counters HERE

    WordPress database error: [Table ‘databasebbpress.forums’ doesn’t exist]
    SELECT convert(forums.forum_id USING “utf8”) AS forum_id,convert(forums.forum_parent USING “utf8”) AS forum_parent,convert(forums.forum_name USING “utf8”) AS forum_name,convert(forums.forum_slug USING “utf8”) AS forum_slug,convert(forums.forum_desc USING “utf8”) AS forum_desc,convert(forums.forum_order USING “utf8”) AS forum_order FROM forums AS forums LIMIT 0, 100

    No forums to convert-
    Not clearing default passwords-

    Not Converting users Selected-

    No data to clean-

    Starting Conversion…

    ==============================

    I am left to wonder, is the problem logging in to the server?
    If so:
    Is the problem the server name?
    Is the problem my password?
    Is the problem my username?

    Is the problem connecting to the database?
    If so:
    Is the problem the database name?
    Is the problem a permission?
    Is the problem my password?
    Is the problem my username?

    I am just told that the database does not exist. Well it does, I can log-in using myPhp and there it is.

    I will continue to search for “the right tools” and to become more “proficient”. In the meantime I will continue to try to find someone who know enough about the guts of BBpress and WordPress to tell me why my database that does exist, does not exist in the eyes of the converter.

    #120576
    Stephen Edgar
    Keymaster

    Profile Shortcode? No such thing? https://codex.bbpress.org/shortcodes/ Maybe there should be?

    #120572
    Pippin Williamson
    Participant

    Ok now I see the issue with the profile page. If you create a new (regular) page and place the profile short code on it, does it work?

    #120571
    Stephen Edgar
    Keymaster

    @radi_v Take a look at this https://github.com/nosecreek/Posts-to-bbPress

    It is doing ‘Converts WordPress posts and comments to bbPress topics and replies.’

    I haven’t looked closely at the code yet (possibility including this to the bbPress core ‘import tool’) though you may be able to tweak it to only do ‘comments’ to ‘replies’.

    #120567
    Stephen Edgar
    Keymaster

    – Backup your site and all your databases often during all these steps in case any step along the way you can revert back to a working site
    – Upgrade your bbPress 1.1alpha to the final 1.1 release https://bbpress.org/download/legacy/ https://codex.bbpress.org/legacy/updating/
    – Install bbPress 2.2x plugin to WordPress https://wordpress.org/extend/plugins/bbpress/
    – Run the bbPress 2.x Tool ‘Import Forums’ to import your old forums https://codex.bbpress.org/import-forums/

Viewing 25 results - 15,101 through 15,125 (of 32,503 total)
Skip to toolbar