Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,976 through 13,000 (of 32,585 total)
  • Author
    Search Results
  • #141305
    Stephen Edgar
    Keymaster

    Use ‘Private Forums’ for your ‘Registered Users’ as you must be logged in to see these forums and use a ‘Public Forum’ with ‘Anonymous Posting’ enabled for your guests.

    https://codex.bbpress.org/getting-started-with-bbpress/#creating-your-first-forum

    #141302
    Stephen Edgar
    Keymaster

    The subscribe to email notifications was a bug, it is now fixed in bbPress 2.5.3

    I installed that plugin, pulled up a user who was a Participant, and changed “View hidden forums” from “Default” (which was set to “Denied”) to “Allowed.”

    And then boom, the Participant account could then view the forums.

    Here’s the odd part though: we have 3 forums and they are all set to Private, not Hidden. So changing this setting shouldn’t have made any difference. Private forums are visible to Participants by default.

    …

    I realized that one of two things were off: either the participants were NOT allowed to view private forums, or else the forums were NOT private. Had to be one or the other.

    The repair tool “Recalculate private and hidden forums” has a bug in it 🙁

    When that repair tool is run private and hidden forum are assigned both _bbp_private_forums and _bbp_hidden_forums statuses so this is why a user with the Participant role could not read a private forum as after that tool had been run it was also been given the hidden status also.

    The workaround for this is to do exactly what you did by “changing each forum from Private to Public back to Private” as this doesn’t touch the broken repair tool and sets the visibility status correctly.

    https://bbpress.trac.wordpress.org/ticket/2512

    Thanks for your patience here @martyn-chamberlin and your detailed info helped a great deal finding said bug, just need to write a patch for it now. 😉

    #141299
    Stephen Edgar
    Keymaster

    It is an issue with your theme not playing nice with bbPress 😉

    Try making a copy of your themes full width template eg. page.php file (Or page-sidebar.php if you want a sidebar) and rename it to bbPress.php then all your bbPress pages will use this template.

    How’d that go?

    #141298
    Stephen Edgar
    Keymaster

    Try just leaving the page with the default template as this might be confusing things a little.

    (Keep the bbpress.php file with Twenty Fourteens full width page code in it.)

    How’d that work?

    Stephen Edgar
    Keymaster

    This will be an issue for WPTouch Pro 3 Support

    http://www.bravenewcode.com/wptouch/ OR https://wordpress.org/support/plugin/wptouch

    #141295
    Stephen Edgar
    Keymaster

    Firstly looking at https://codex.wordpress.org/WordPress_in_Your_Language#Finnish_-_Suomi_.28fi.29 and https://i18n.svn.wordpress.org/fi/trunk/dist/wp-config-sample.php

    You should be using define ('WPLANG', 'fi'); for WordPress
    You should be using bbpress-fi.po and bbpress-fi.mo for the bbPress filenames.

    Now the Finish translations they are only at 77% translated, 814 translated, 234 untranslated & 48 waiting approval.

    You can add the missing translations using your WordPress.org user/pass via https://translate.wordpress.org/projects/bbpress/dev/fi/default

    Then I’d suggest contacting the Finish translation team via https://fi.wordpress.org/contact/

    There also might be some related translation discussion at https://fi.forums.wordpress.org/

    Let me know if there is anything else I can help out with 🙂

    #141293
    Haz
    Participant

    Hi All, I am a bit confused and I need some advice. I have a bbpress forum and I want to place vimeo video in the topics and replies. Is there a plugin (or plugins) that allow me to use shortcodes. Viper’s does not seem to work.

    I can directly add the vimeo url to the topic and it seems to work. Is that the best way to do it? Shouldn’t I be using shortcodes instead.

    I am running the lastest WP 3.8 and the latest bbpress.

    Thanks in advance for your help.

    #141292
    iambob
    Participant

    Greetings,

    I’ve got a unique request … would like to “remove” the columns which show ‘Topics’, ‘Posts’, and ‘Freshness’ from each Forum list, and likewise ‘Voices’, ‘Posts’ and ‘Freshness’ from the list of each Topic section.

    Not being a coder, I’ve managed to remove the Topic column header titles by commenting out the appropriate lines in the (e.g.) loop-topics.php … and I’m guessing functions.php is where the columns themselves can be ‘stopped’ (?), but many trial-&-error attempts have so far been unsuccessful.

    A little help would be greatly appreciated!
    Bob

    Kris35
    Participant

    This only started yesterday. My members cannot access their profiles or start new threads. They get an error page. I as site admin can start new threads though so Im not sure what it is. I just had a coder go in and spend an hour trying to see what the problem was but he couldn’t do so. I’m not sure why this is suddenly happening as it was working fine before. I need help asap please.

    #141267
    MT
    Participant

    Trying to put forums on a page with full-width-page template–no right sidebar. Reading other Topics here with similar problem, I followed the remedy posted, i.e., I created two php files labeled bbpress.php and buddypress.php with a copy of the full-width-page code in them in my file manager under my theme. Created page for forums and checked the full-width-page.

    The page loaded only in default page template, though sidebar widgets not visible. I deactivated bbpress, reactivated, repeated everything, now shows in the default template only but this time widgets showing.

    WordPress 3.8 running Twenty Fourteen theme. bbPress 2.5.2. http://mtmcclanahan.com/thepainterstongue/.

    Thanks

    #141261
    Spencer Hill
    Participant

    Kay Hagen, a contributor on the WordPress Core, developed this Post by Email Plugin that could be extended, probably extremely easily, to support Custom Post Types. Which it could then be adopted into BBPress to create a support ticket or help desk scenario.

    #141256
    piccart
    Participant

    ok, I’ve figured it out.

    the files which have to be edited are:
    bbpress/templates/default/bbpress/content-single-forum.php
    bbpress/templates/default/bbpress/content-single-topic.php

    in the first one you’ll have to cut off this line in each place it comes:
    <?php bbp_get_template_part( 'form', 'topic' ); ?>

    and substitute with something like this, to make the new-topic link:
    <a href="http://mywebsite.com/form-new-topic/?forum_id=<?php bbp_forum_id(); ?>

    then you create a new template page (which you’ll assign to a page called “Form New Topic”) copying your theme default page, and adding at the top /* Template Name: Form New Topic */ . then you can substitute the function which displays the content, or just add this below it:

    $forum_id = $_GET['forum_id'];
    echo do_shortcode("[bbp-topic-form forum_id=$forum_id]");

    at the same you can edit the second file (the topics list) substituting this:
    <?php bbp_get_template_part( 'form', 'reply' ); ?>

    with something like this:
    <a href="http://mywebsite.com/form-new-reply/?topic_id=<?php bbp_topic_id(); ?>

    and then create a new template called “Form New Reply”, and add a code similar to the other one but using the shortcode to display the reply form. unfortunately the shortcode for the reply form seems to don’t have a topic id attribute, according to this list: https://codex.bbpress.org/shortcodes/

    I’ll make some test to see how it react, the only other solution I see is to make a spoiler with the reply form, so it’s hidden till you click.

    p.s. you can also store the ids into variables, using these functions:

    $forum_id = bbp_get_forum_id();
    $topic_id = bbp_get_topic_id();
    #141246
    ibab
    Participant

    I have WordPress 3.8 installed with the bbPress 2.5.2. The WP is in Finnish so it’s important that the forums are in Finnish as well, so I attempted to add the translation file as told here.
    http://codex.bbpress.org/bbpress-in-your-language/

    I took the latest dev branch Finnish translation, downloaded the .po and .mo files, renamed them to bbpress-pt_FI, even attempted bbpress-fi_FI, uploaded to /wp-content/languages/bbpress/ but no results. The forums are still in English.

    I also checked that the language is set to fi in the wp-config.

    Why is the translation not working?

    #141244
    craftersuniversity
    Participant

    I apologize for this delayed answer, for some reason i never got any email notification that someone had answered this question, even though i ticked then box. At any rate, i tried your solution, but it did not work. I even deleted all cache and web browser cache, and tried the Twenty Eleven theme without my child theme, but still no dice. When i inspect the page code there simply isn’t a “Secondary” part to it, as there should be in order for the sidebar to appear… Any idea what could be wrong?

    #141234
    AJD
    Participant

    I have tried the plugin that is supposed to do this, but it didn’t work. In frustration I edited the core file: includes/core/capabilities.php But sadly nothing has changed, participants still can not delete their own topics. Clearly I’m missing something.

    
    		// Participant/Default
    		case bbp_get_participant_role() :
    		default :
    			$caps = array(
    
    				// Primary caps
    				'spectate'              => true,
    				'participate'           => true,
    
    				// Forum caps
    				'read_private_forums'   => true,
    
    				// Topic caps
    				'publish_topics'        => true,
    				'edit_topics'           => true,
                                    // manually added this
    				'delete_topics'         => true,
    
    				// Reply caps
    				'publish_replies'       => true,
    				'edit_replies'          => true,
                                    // manually added this
    				'delete_replies'        => true,
    
    				// Topic tag caps
    				'assign_topic_tags'     => true,
    			);
    #141230
    Nathan Hawkes
    Participant

    That code doesn’t seem to be working, at least for me. However, a little more delving uncovered the functions bbp_get_user_topic_count_raw and bbp_get_user_reply_count_raw. Since I want a total post count (topics opened plus replied made), I added the two together and injected my get_the_author_meta(‘ID’) into it, and that comes up. I even checked with having the two separate and it does differentiate between the two sets of posts and seems to work as desired.

    Thanks for your assistance!

    #141225
    Robin W
    Moderator

    Suspect that you ID bit isn’t working, hence you’re getting zeros

    I use a count code to put a total count after the avatar using

    function display_counts () 
    {
    		$post_count = bbp_get_user_post_count( bbp_get_reply_author_id( $reply_id )) ;
    		echo "<br>Total posts : " ;
    		echo $post_count ;
    		echo "</br>" ;
    
    		}
    add_action ('bbp_theme_after_reply_author_details', 'display_counts') ;
    
    

    and that works fine.

    If you doing this for the topic, then $reply_id might be worth having a go at, depends on whether the widget is doing this for the topic, or the last reply !

    Otherwise you might need to actually specify an ID (the codex talks about needing to do this if outside the loop, and your widget would not be displayed within the loop eg as in

    get_the_author_meta(‘ID’,$ID)

    where you have set $ID as the topic user probably in the loop bit.

    Don’t know, but worth having a further play

    #141205
    Stephen Edgar
    Keymaster

    I’d suggest taking a look at the bbPress Repair Tool to remap users forums role as it shows pretty much what you are trying to achieve using bbp_set_user_role

    https://bbpress.trac.wordpress.org/browser/trunk/includes/admin/tools.php#L771

    Stephen Edgar
    Keymaster

    That is a little strange, was it only in one particular browser? (IE, Firefox etc)

    Aside from that if you need to have custom templates the best way is to copy the template you need to a subfolder /bbpress of your theme to avoid it being overridden after an update.

    https://codex.bbpress.org/theme-compatibility/

    I’d suggest you copy that form-topic.php template per the above.

    You could also try adding some CSS styling to those labels to make them work better with your theme.

    #141196
    Stephen Edgar
    Keymaster

    Jillianne, glad you found the issue, it might be worthwhile adding a post to the support section on CodeCanyon here http://codecanyon.net/item/pages-by-user-role-for-wordpress/136020/comments

    p.s. I moved your topic is it was a different issue 🙂

    #141187

    In reply to: Forum Page

    Stephen Edgar
    Keymaster

    I just noticed that the permalink is …/forums/forum/… is that normal?

    Yes, the ‘forums’ part is the ‘forum root’ prefix you have set in the settings
    https://codex.bbpress.org/forum-settings/#forum-root-slug

    Then the ‘forum’ is the prefix before a single forum name.
    https://codex.bbpress.org/forum-settings/#single-forum-slugs

    #141186

    In reply to: Forum Page

    Stephen Edgar
    Keymaster

    See if this stops your theme from nuking the forum list. Make a copy of your themes full width template eg. page.php file and rename it to bbPress.php then all your bbPress pages will use this template.

    #141184
    Stephen Edgar
    Keymaster

    There are numerous ways of doing this:

    You can use a conditional to check is_bbpress()

    Make some copies of your templates for example and make a copy of page.php file and rename it to bbpress.php and call a specific sidebar template eg bbpress-sidebar.php from your bbpress.php template.

    #141178
    Stephen Edgar
    Keymaster

    Try installing the plugin I linked below and compare the roles of your users in particular ‘keymaster’ to what the defaults should be in the codex.

    https://github.com/johnjamesjacoby/bbp-capabilities
    (Open a users profile from the Users section in wp-admin and scroll down)

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    Stephen Edgar
    Keymaster

    Make a copy of your themes full width template eg. page.php file and rename it to bbPress.php then all your bbPress pages will use this template.

Viewing 25 results - 12,976 through 13,000 (of 32,585 total)
Skip to toolbar