Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 14,851 through 14,875 (of 32,581 total)
  • Author
    Search Results
  • #125269
    mindyjoy
    Participant

    Thank you so much for responding, Shane. I couldn’t get this to work but as I was searching for further explanation, I found another fix. I added this code to the functions.php

    add_filter( ‘bbp_get_single_forum_description’, ‘ja_return_blank’ );

    add_filter( ‘bbp_get_single_topic_description’, ‘ja_return_blank’ );

    function ja_return_blank() {

    return ”;

    }

    for anyone else who may have this problem. Thank you for setting me in the right direction!

    #125263
    rossagrant
    Participant

    Just realised, the reason that you see the &#8217 in the URL is JUST THIS FORUM. It’s obviously stripping the second apostrophe JUST IN THIS FORUM.

    Ignore that, it’s in 2 single quotes in my error log, it’s just because I’ve not posted it as code here.

    I’ll try again here, see if it includes the second single quote.

    `[19-Jan-2013 00:40:03 UTC] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘http://www.actonthis.tv/members/hardylane/’ rel=’nofollow’>@hardylane Trish ‘ at line 1 for query SELECT ID FROM wp_posts WHERE post_type = ‘reply’ AND post_status != ‘trash’ AND post_author = 11 AND post_content = ‘No worries! Say hello to Trish from me!

    @hardylane Trish is still at Man Met isn\’t she Annie? I know Niamh has departed now.’ AND post_parent = ‘12436’ LIMIT 1 made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), do_action(‘template_redirect’), call_user_func_array, bbp_template_redirect, do_action(‘bbp_template_redirect’), call_user_func_array, bbp_new_reply_handler, bbp_check_for_duplicate`

    The URL displays fine in the error log, hopefully it will here now too.

    #125258
    Stephen Edgar
    Keymaster

    I can’t see what the cause is straight up so could you paste the entire code in a gist at @GitHub please, also a dump of the relevant DNN database schema would be helpful.

    https://gist.github.com/

    (We will also add this DNN converter to bbPress for others wishing to convert from DNN)

    #125250
    powermaniac
    Participant

    It appears that I have this same issue (only the admin and guests can see the forums). I tried adding this code to the functions.php file, but it doesn’t seem to fix it. I also noticed that I can create a new page and put the forum shortcode in it, and it the main forum page shows up for all users (which is what I need), but once I click on any of the forum links, it gives me a 404.

    Any ideas, or maybe options I should change, or caches and whatnot that I should clear?

    #125242
    flash7dragon
    Participant

    Can someone help me ?
    I tried to add a shortcode to my page but it does nothing…

    Thanks

    #125235
    Sambora5150
    Participant

    Hello everyone, first of all thanks for the great plugin, i´m building a new project community and one important part is the forum… I compared the options and the bbpress integrates perfect with the site and has a very clean code… but there a few features that I need…

    One would be the “range” image for the users… like badges or something personalized

    Another option could be a “award” image for the user implication on the community

    I have been looking for a long time and no way to show those things on my bbpress forum….

     

    can anyone bring me some light?

     

    #125221
    Hansaplastique
    Participant

    I haven’t had any problems on smartphones,… yet … iPhone/Android; they all work fine.
    I’m sure there are other platforms (Windows,BlackBerry) but I do not know anyone who has either to test.

    What problems do you run into?
    I’d be very interested in your feedback on where it goes wrong/misbehaves (so I can adapt my website as well).
    – Does tinyMCE misbehave?
    – Or simply not work (lack of JavaScript)?

    It might be difficult to determine if a visitor uses a phone or a regular computer, specially since the gap between the two is getting more narrow by the day.

    Some examples are discussed here: Stackoverflow.
    There is an example of browser sniffing (not my favorite) and some other techniques.

    However … they all rely on JavaScript (which would be too late for doing something in PHP).

    I did find some PHP code that could do the trick here: php-mobile-detect.
    I have not tested it though.

    If a cellphone is detected call (untested):

    bbp_the_content( array( ‘context’ => ‘reply’, ‘tinymce’ => false ) );

    #125217
    mdroca
    Participant

    Hello all!

    I´m having some similar issue. I´m here reading and reading but nothing help me.
    I did all what Shmoo say here: https://bbpress.org/forums/topic/page-php-as-template/

    My problem is this: I had upload to my root theme this file from Extras: page-front-forums.php, and now I can see well the forum, but when I click on any link in forum WP load a home-template.php.

    I would like to know what code I need to use and which files.

    In the template root I use 2: bbpress.php and page-front-forums.php but I don´t know exactly which bbpress code I need to use..

    Can any help me please? I don´t know if you are able to undestand me, my english, as you can see, is so bad.
    Thanks in advance!

    #125215
    goddess_dix
    Participant

    I’ve seen a lot of talk since the changes in permissions and not being a coder myself, am limited insofar as what I can do to get around the various constraints. I’m also relatively new to bbPress.

    Basically, I need functionality that this plugin provides for older versions of bbPress: http://wordpress.org/extend/plugins/forum-restrict/ – Deciding what users get access to which private forums.

    Are there any good or reasonably reliable solutions anyone can recommend? I have Justin Tadlock’s members, I’ve had the user role editor, but honestly I’m hesitant to try a whole lot with them based on my limited understanding of how the capabilities are done and/or what changes to expect.

    Suggestions very much appreciated.

    #125214

    In reply to: disabling breadcrumbs

    mdroca
    Participant

    function bm_bbp_no_breadcrumb ($param) {

    return true;

    }

    add_filter (‘bbp_no_breadcrumb’, ‘bm_bbp_no_breadcrumb’);

    Could any tell me how do I need to use this code? Thank You!

    #125213

    In reply to: bbPress 2.2.3 Released

    Stephen Edgar
    Keymaster
    #125212
    Stephen Edgar
    Keymaster

    Monica,

    Sorry nothing new to report on a fix yet…

    Btw, I’ve set this as private b/c I didn’t see a way to have people log in, so this would only be available to members. Don’t know if this is part of the issue.

    With that above from your first post in mind, is it important your forums stay private or having them publicly accessible would not be an issue? If public is not a problem, try this:

    If you leave the ‘category’ set as ‘private’ but change the two forums you have under this category from ‘private’ to ‘public’, I just tested this and it appears to be working.
    (You can also change the parent category to public also and it won’t trigger the bug)

    Back to the quote above you can use the `[bbp-login]` shortcode ona page or the login widget in your sidebar.

    #125206
    #125198
    Shane Gowland
    Participant

    You can forums to existing WordPress pages using bbPress various shortcodes.

    #125197
    Shane Gowland
    Participant

    You can hide it with CSS. Try adding the following code to your theme’s style.css file.

    `.bbp-template-notice.info {
    visibility: hidden;
    height: 0px;
    }`

    #125185

    In reply to: Unlimited edit time

    Remi
    Participant

    You can edit the following to your functions.php (for example)

    <code>

    function no_edit_lock($retval, $cur_time, $lock_time, $post_date_gmt){

    return false;

    }

    add_filter( ‘bbp_past_edit_lock’, ‘no_edit_lock’, 1, 4);

    </code>

    This will overwrite the default edit_lock behavior.

    #125176
    Stephen Edgar
    Keymaster

    At this stage I haven’t seen anyone mention anything about converting to BuddyPress ‘Group Forums’

    With some theme customization you could make it appear that you have two lots of forums by putting each into their own ‘parent category’ and using shortcodes to only display each ‘category’ in specific areas of your site.
    https://codex.bbpress.org/shortcodes/

    The other way is to go WordPress Multisite and have a  separate site for your ‘support’ side of things.

    To customize bbPress as a support forum check this great tutorial by @mordauk http://wp.tutsplus.com/tutorials/plugins/using-bbpress-as-a-support-forum/

    #125174

    In reply to: Translation please

    Stephen Edgar
    Keymaster
    #125169
    BenRacicot
    Participant

    I figured it out…. Well the theme dev had to help me out. The theme wasn’t ready for BBP out of the box… Had to remove some code. Far too much to explain here but I would recommend that you talk to your theme’s dev if this happens.

    #125167
    Stephen Edgar
    Keymaster

    Cool….

    bbPress does not create any tables of its own, it uses WordPress custom post types for forums, topics, topic tags and replies.

    I cleaned up the code layout of Example.php in #2134 so it now matches the coding style of the other importers. If you use SVN you can apply that patch directly or download it directly from here.

    I am slowly getting updated and more docs in the codex starting here:
    https://codex.bbpress.org/import-forums/

    To customize the Example.php importer I have started this doc which follows this topic on building a new custom importer for the Mingle forums.

    https://codex.bbpress.org/import-forums/custom-import/

    This is all a work in progress and has a few moving targets so any questions ask away 🙂

    #125165
    JocuriOnline
    Participant

    Hi!

    What I need to do is show all the forums, sub forums and sub-…-sub forums on the same page (main page). I took a look in some of the loop files (loop-forums.php, loop-single-forum.php) and I see that these same files are used to show different levels of forums.

    Also bbp_list_forums() and the shortcode only show level 1 with sublevel 2 forums and then you click on the level 2 forums and you get a list with level 3 forums and so on.

    Hope this makes sense, basically my question is:
    Is there a way to show all existing forums on the first forum page?

    Thanks a lot!

    #125146
    Stephen Edgar
    Keymaster

    This is now in bbPress trac https://bbpress.trac.wordpress.org/ticket/2163

    (All updates will be posted at the above URL from now on i.e. download from trac NOT GitHub)

    The docs will be on the codex at https://codex.bbpress.org/import-forums/mingle/

    #125128
    srjrol
    Participant

    Using the older version was successful, but the new file gives me this error when importing with or without the users box checked.

    `
    WordPress database error: [Table ‘str1210409063589.wp_forums’ doesn’t exist]
    SELECT convert(forums.id USING “utf8”) AS id,convert(forums.parent_id USING “utf8”) AS parent_id,convert(forums.name USING “utf8”) AS name,convert(forums.description USING “utf8”) AS description,convert(forums.sort USING “utf8”) AS sort FROM wp_forums AS forums LIMIT 0, 100
    `

    Before anything appeared on the site I ran a complete repair with all option checked. After this was done and the wp_users table was exported/imported through phpMyAdmin everything is showing up. Before the users were imported it still worked but all except the admin posts were Anonymous.

    Working:

    • All forums that contained posts are present
    • Forum descriptions
    • The timestamps
    • User account links and info (Forum Role,Topics Started, Replies Created)
    • Topic/Voice counts
    • bbcode is working for text formatting
    • Started By and Freshness authors
    • HTML code was imported and is displaying correctly

    Not working:

    • Parent forums are missing (everything was imported under ‘Forum’)
    • There is a blank post by the original author at the start of each topic causing false count
    • Custom Smileys “
    • Closed Topics are open again.
    • Stick Topics are normal topics
    #125127
    Stephen Edgar
    Keymaster

    What’s next? What works and doesn’t work?

    • Is the imported forum hierarchy and order correct?
    • Sticky topics, eg ‘sticky’ and/or ‘global sticky’ topics?
    • Open or closed topics?
    • Does Mingle use BBCodes eg [b]blod[/b] and do we need to convert them from custom HTML to WordPress/bbPress friendly HTML? If so what BBCodes does Mingle use?

    Are there any other forums, topics or replies behaviour that has not been imported?

    #125126
    Stephen Edgar
    Keymaster

    Ahhh… Yes, if you are importing to the existing install of WordPress that Mingle is using you do not need to import the users as the existing users will have the same mappings.

    If you want to import to a separate WordPress install you will need to import the users.

    That was the reason I originally had each field as `’forum_forums’` and I have switched all the fields back to this so now and you should use the table prefix `wp_` on the import settings. I also updated user mappings, I just copied them in from the bbPress1.php importer as this is in the same boat.

    I also added some extra phpdoc’s to the code and cleaned up some whitespace and changed the code layout style to match the other importers.

    You should be able to use the same links above to download and compare the revisions.

Viewing 25 results - 14,851 through 14,875 (of 32,581 total)
Skip to toolbar