Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,426 through 10,450 (of 32,521 total)
  • Author
    Search Results
  • #153251
    Robin W
    Moderator

    you won’t be changing subscriber – that is a wordpress role – bbpress has it’s own roles, and probably that is participant.

    I’m sure you can , but haven’t tried so don’t have code offhand.

    Suggest you just create a new custom role, and then set your bbpress user to it.

    #153249
    Robin W
    Moderator

    ok, well without spending hours recreating your issue, I’d suggest you try

    <?php
     $idbbp = get_post_meta($post->ID, 'idbbp', true);
     $forum_id = bbpress()->current_forum_id = $idbbp;
    $x='[bbp-single-forum id forum id ="'.$forum_id.'"]‘ ;
     echo do_shortcode( $x);
    
    
    #153247
    galiulinr
    Participant

    I installed the plugin Easy digital downloads that creates custom record types post_type = download. I edited single.php file removed <? Php comments_template ();?> And I want to insert the code to show the theme of the forum bbpress renamed to the new file single-download.php
    In the custom field on the product page I insert ID Forum.

    #153244
    Robin W
    Moderator

    see

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

    and you’ll see a capability for a user to close their own topics.

    you need to either amend the participant role, or create a new role with this capability

    see https://codex.bbpress.org/custom-capabilities/

    #153242
    Robin W
    Moderator

    sorry but what is the ‘page comment form ‘, where on ‘each page’ are you putting the code, and what is ‘each page’

    I am trying to hep you, but you do need to do a detailed response so that I can help.

    For instance

    ” I go into dashboard and select forums and then edit the xx forum and change the content from … to….”

    or

    ‘I edit the page.php file and in line xxx I add YYY’

    #153236
    galiulinr
    Participant

    Hi, Robin!
    I want to replace on the page comment form on the relevant topic in the forum. To do this, on each page I create a custom field in which prescribe ID created threads.
    echo do_shortcode( ‘[bbp-single-forum id forum id =”custom_field”]‘ );
    does not work.

    Robin W
    Moderator

    i have created custom role’s (parent and teacher)

    How have you done this – using a plugin or by coding?

    set dynamic role for bbpress forum itself

    Layout and functionality – Examples you can use

    #153231
    Robin W
    Moderator

    Possibly lots of things.

    I appreciate that you English may not be good, but can you explain in more detail what you are trying to do?

    Also

    1. php won’t work in a page without a plugin
    2. there is no shortcode display_forum
    2. normally you’d use

    [bbp-single-forum id=$forum_id]

    in a page and in php you’d use

    echo do_shortcode( ‘[bbp-single-forum id forum id =”5”]‘ );

    #153230

    In reply to: Hueman theme issue

    Robin W
    Moderator
    #153228
    Robin W
    Moderator

    ok, some themes don’t like this way to display.

    so I try

    Step by step guide to setting up a bbPress forum – Part 1

    look at item 3 and try method 2.

    If that doesn’t work then come back

    #153223
    Stephen Edgar
    Keymaster

    As noted in your other topic, your replies here were marked as spam, I’ve unmarked them all as spam and deleted the duplicates.

    Testing that same BBCode you have in your reply above (the one I left published) it does look like there is an error/conflict, I’ll take a look at this during the week and get back to you.

    Again, apologies for your replies being caught by our spam filter. 🙂

    #153215
    Robkk
    Moderator

    im busy trying to overhaul the design of my site, change to a better ssd hosting, and some other stuff thats making me quite busy.

    the layout that im going to share is quite different than the one im going to use on my site.

    the layout im going to share will not have the profile dropdown menu, forum color coordination, and topic stats inside of the actual topic post, reply upvoting , reply and topic sharing,

    forum color coordination will basically be a modified version of this plugin https://github.com/master5o1/bbPress-Forum-Colours

    topic stats inside of the actual topic is easy its bascially just putting code thats already in bbpress and just styling around it. i just want to leave that out of the layout.

    reply upvoting is just a modified plugin i found , i think it was this https://wordpress.org/plugins/like-dislike-counter-for-posts-pages-and-comments/
    im am not a fan really of reply upvoting anymore because all i see it as is just a number.
    i would like an upvoting plugin that sort of works like reddit that bumps up the topic, or sorts topics by popularity which i think you can do if you do a custom view in bbpress, or like how wordpress.com likes work or like buddypress favorites but i havent learned enough to know to do this myself.

    reply sharing i thought was kind of useless in my opinion too, because i want people to just share the topic and bring them in the topic than to see a certain reply of the topic.

    topic sharing i didnt add because i just used jetpacks sharing and people hate on jetpack alot so i cant just leave that there for them, i will leave a comment in the templates on where to put some sharing plugins template tag code though.

    the shortened edit log is basically the modified time template tag that wordpress supplies.
    https://codex.wordpress.org/Function_Reference/the_modified_time
    with the revision count, i used something custom til i looked into the templates of bbpress to find that they have a template tag for reply/topic revision count so im using that now in the layout.

    topic/reply admin links will have icons but instead it will be genericons or dashicons then the fontawesome icons i am using.

    the overall layout will stay the same with big avatars in the topics loop, removing small avatar, yeah the rest of the layout.

    and also there are many ways i found of created a better mobile layout, so i might share those later too.

    #153209
    galiulinr
    Participant

    How to make a page conclusion shortcode bbp-single-forum using custom fields?
    I created a custom field ‘idbbp’, found ID single topic.
    On the page posted the following code:

    
    <?php 
        $idbbp = get_post_meta($post->ID, 'idbbp', true);
        $forum_id = bbpress()->current_forum_id = $idbbp;
        echo( bbpress()->shortcodes->display_forum($forum_id));
    ?>
    

    but it does not work for me. Tell me please what I did wrong.

    m1000
    Participant

    Hello,

    I upgrated bbpress from 2.3 to 2.5.4 and the CODE tag doesn’t work. It execute code instead display. I have mess on each page when user pasted code wrapped by CODE tag.

    #153178
    Robin W
    Moderator

    something has changed !

    Have you added any functions, or might be a plugin

    bbPress is tested with wordpress default themes. It maybe a conflict – you need to check plugins and themes

    It could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Otherwise try adding this at the bottom of your functions file

    function change_reply_order() {
    $args['order'] = 'ASC';
     return $args;
    }
    add_filter('bbp_before_has_replies_parse_args', 'change_reply_order');
    
    #153177

    In reply to:

    my3drenderings12
    Participant

    Dear Sir,

    My Name Is Tahir Malek As Professional SEO Analysis.Your site map xml Question Very Useful.

    If You Add site Map Xml Code Your Site Benefit your site in SEO And MArketing.

    I Have Add my Site http://www.3d-architectural-rendering.com XML Site Map.

    Tahir Malek

    #153170

    In reply to: disable Sidebar

    Robin W
    Moderator

    i managed to have the index full width by making my own page with the forum shortcode and page set using full width layout. but once i click anywhere on the forum (go to a section, thread) the sidebar re appears.

    That’s because it’s going back to the bbpress.php which isn’t working for you.

    try replacing

    if (have_posts()) : while (have_posts()) : the_post();
    
                    /**
    
                     * Find the post formatting for the pages in the post-page.php file
    
                     */
    
                    get_template_part('post', 'page');
    
                    
    
                    if(comments_open( get_the_ID() ))  {
    
                        comments_template('', true); 
    
                    }
    
                endwhile;
    

    with

    
    
    while( have_posts() ): the_post(); 
    
    	 the_content(); 
    
     endwhile; 
    
    

    in your bbpress.php file

    #153157

    In reply to: Tough migration

    Stephen Edgar
    Keymaster

    I just tested the topic tag import and everything appears fine for me.

    * I created a WordPress post tag topic
    * I created a WordPress post category topic
    * I created a WordPress post and added the tag topic and category topic to the post
    * Imported from bbPress 1.2 with topics including the topic tag topic

    All results appear fine for me, I have posts/topics correctly associated with each taxonomy:
    * http://example.com/tag/topic/
    * http://example.com/category/topic/
    * http://example.com/forums/topic-tag/topic/

    #153156

    In reply to: disable Sidebar

    docpariolo
    Participant

    hello,

    im having issues with this.

    ive taken page-template-full.php from wp-content/themes/Rox

    <?php
    
    /**
    
     * Template Name: Full Width, no sidebar(s)
    
    */
    
    get_header(); ?>
    
        <div id="main-fullwidth">
    
            
    
            <?php 
    
                if (have_posts()) : while (have_posts()) : the_post();
    
                    /**
    
                     * Find the post formatting for the pages in the post-page.php file
    
                     */
    
                    get_template_part('post', 'page');
    
                    
    
                    if(comments_open( get_the_ID() ))  {
    
                        comments_template('', true); 
    
                    }
    
                endwhile;
    
                
    
                else :
    
                    get_template_part('post', 'noresults');
    
                endif; 
    
            ?>
    
            
    
        </div><!-- #main-fullwidth -->
    
        
    
    <?php get_footer(); ?>

    and copy pasted as bbpress.php in the same location, and it does nothing.

    i managed to have the index full width by making my own page with the forum shortcode and page set using full width layout. but once i click anywhere on the forum (go to a section, thread) the sidebar re appears.

    its driving me crazy.

    #153151

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @bestru Thanks, there is a minor bug in the SMF, it has been fixed for the next release.

    If you take a look at this https://bbpress.trac.wordpress.org/changeset/5332 and change that mistaken <tt> for <br> in the SMF.php file things should work just fine.

    Let me know how that goes for you 🙂

    #153148

    In reply to: Custom Query Loop

    Robin W
    Moderator

    check out this reference (bbp_has_topics passes the info to wp_query)

    https://codex.wordpress.org/Class_Reference/WP_Query

    about two thirds of the way down (and it’s a long way down!) you’ll find date parameters and examples

    #153140

    In reply to: New to bbPress

    Robin W
    Moderator

    look at the step by step guides in the documentation

    Codex

    #153134
    Cariva
    Participant

    Hi everyone, I’ve seen several questions kind of like this one but not exactly, so forgive me if it’s been answered and I’ve missed it!

    Wordpress 4.0, bbPress 2.5.4.

    What I need is a forum that only a specific group of people (several hundred, increasing annually) can view and use. Because of the numbers involved it’s not practical to manually add them to an allowed list for the forum.

    Solution idea 1:
    A Forum page which shows you just a Login form, plus a Sign Up form. The Sign Up form has an additional field for a specific code, which we will distribute to our members via a Mailchimp list.

    Solution idea 2:
    The Sign Up form automatically cross-references with the Mailchimp list, so that only people who are already on the list are able to sign up for the forum.

    Your help enormously appreciated!

    Cariva

    #153133
    arno8
    Participant

    go to user>all users search for all your sites keymasters.

    then click edit by each users avatar

    after that you are in the edit profile page for that particular user and in the url it says
    user_id=(number)

    get all the user id numbers and then you can stack them using commas in a css code like this

    .type-reply.user-id-1,.type-reply.user-id-2,.type-reply.user-id-3 { background: yellow; }

    #153129
    xprt007
    Participant

    Hi

    I am having quite a strange problem with a test site leading to a re-direction to what appears to be the front page [In firefox, up the browser in page title section, you see “Posts – Site Name”], considering the content, if I try to go to the recommended & set abc/forums main page. Furthermore, if I try to VIEW any created, “published” forum, I get a page not found error.

    This site is in a folder /abc. The site in the root folder has no problem with accessing site-in-rootfolder.com/forums. So i assume it is not a server-settings issue.

    Other plugins, including 2 or so requiring “post name” permalink settings have no problem with the link settings, except one, “RecipePress reloaded”, whose author also recommends “post name” permalinks. With this, one should be able to access the main recipe page at mysite.com/abc/recipes. Instead, like in the bbforum case, although the url appears correctly, the content is clearly that of the blog front page!
    Resetting the permalinks, like he recommends, changes nothing.
    After explaining the problem to him, he said it was a bug in the plugin & the code he gave me to try out, partly corrected the problem, because mysite.com/abc/recipes this time correctly showed the main recipes page. The only problem is, it seems to affect other links leading to page not found errors until I either remove the code or disable the recipe plugin.
    That code was just for testing, so I guess he is going to improve on it.

    Since the bbforum plugin (& this recipepress reloaded), unlike ALL other plugins which are all OK & their respective content can be found in its rightful place, I guess there is an issue also with bbforum.

    I have tried to unistall & re-install bbforum/buddy press, deactivated the rest of the plugins, etc to no avail.
    This is the .htaccess I have, or get whenever I reset the permalinks:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /abc/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /abc/index.php [L]
    </IfModule>
    
    # END WordPress

    For buddypress, the links to members, groups, etc are all OK.

    I hope with the description of the problem, the source of & solution to the issue can be identified & suggested.

    I am using the latest version of WordPress & all modules.
    Same problem when using twentythirteen theme.

    Link

    PS: in case a helper finds the conditions on site different from those described, it might be code from the author of recipress reloaded plugin, which has a similar issue is being tested or implemented.

    Thank you in advance.

Viewing 25 results - 10,426 through 10,450 (of 32,521 total)
Skip to toolbar