Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,401 through 10,425 (of 32,504 total)
  • Author
    Search Results
  • #153284
    NLBlackEagle
    Participant

    I found the way to fix the gray out issue for most people. However this didnt worked for me.

    In this folder: /wp-content/plugins/bbpress/templates/default/css
    Open up bbpress.css and find #bbpress-forums .status-closed,

    I changed color: #ccc; to #000;

    This should have fixed the gray out issue. However it did not worked =/

    This is a paste of the bbpress.css file: I changed line 59

    http://www.hastebin.com/ilehunucay.css

    #153280

    In reply to: Two forum index pages?

    Robin W
    Moderator

    this is probably a theme page issue

    see

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

    depending on your theme, you may need to do some renaming and editing of files – reda the article and then come back if you need further help

    #153277
    Robin W
    Moderator

    Put the following in your functions file

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    you can put in multiple lines eg

    if ( $translated_text == 'old text1' ) {
    	$translated_text = 'new text1';
    	}
    if ( $translated_text == 'old text2' ) {
    	$translated_text = 'new text2';
    	}
    

    Functions files and child themes – explained !

    #153275
    lmcookie62
    Participant

    Hi, i’m getting in a twist trying to sort out my forum index page. It seems like i have 2 versions of it.

    When i setup my forum i created a new page called ‘chat’ and added the [bbp-forum-index]shortcode to it. Everything at first looks to be working great but when i click the index page in my breadcrumbs it takes me to a different index page called ‘forum’ which doesnt have the custom side bar that i set up (which is visible on my ‘chat’ index page and topic pages. One interesting thing is that this ‘forum’ index page picks up my theme styles nicely but my ‘chat’ one loses my theme font.

    I have tried changing my forum slug to ‘chat’ to match my new page and this does resolve the breadcrumb/2 index page issue. BUT i then lose my custom side bar and still dont have the font styling.

    I’m confused on what is going on here so i’m not clear where i need to head to get this sorted out. Should i be making my slug and forum page be named the same or is it that i need to work out why i have two index page? Any advice would be massively appreciated.

    As a note, i used wp tweaks for my custom side bar although i already had SimplePage side bars installed which i use elsewhere on my site. Also, my site uses a custom permalink structure that includes category/post name rather than just the standard postname structure

    I am using wp 4.0, bbpress v2.5.4 and here is a link to my site

    Chat

    Many thanks

    #153273
    xprt007
    Participant

    Hi

    If you mean “3. Creating a forum page”, method 2, I tried that & was able to create this forum using the shortcode => [bbp-forum-index].

    On the Forum settings page & “/wp-admin/post-new.php?post_type=forum” page, it seems this only deals with the forum supposed according to the bbpress default settings to appear at /forums, but consistently wont.

    Does it mean all the forums & subforums have to be created using shortcodes (if so, any link where to find them?).

    This problem is not being experienced on another site sharing the same web hosting account, and has a separate domain. In the root of this particular, problematic site is some web directory. I wonder whether its moved the site to?

    I had a similar issue of consistent failure of accessing /recipes, generated by the recipepress reloaded plugin showing the recipe archive page, even with recommended default settings & permalinks, but just like the bbpress forum at /forums, it had the right url, but content of the site/blog front page. The plugin author, though said it was a bug in the plugin & changes in the code corrected the problem described here. Correct link now here.

    Could there be anything in this root folder .htaccess of the web directory (unrelated to WordPress), which may be causing this & affecting the functioning of bbpress (& not other plugins like Buddypress & co) or WordPress proper & in directory.com/wordpress & even in wordpress.directory.com? I ma not conversant with .htaccess & co. 😉

    So just wondering what to do next.

    Thank you for taking the time to look into this.

    Kind regards

    #153267
    Robin W
    Moderator
    #153255
    janfeng
    Participant

    There codes looks complicated. Can u tell me which capabilities is allow user close their’s topics. @_@

    #153252
    galiulinr
    Participant

    Oh great, Robin. It works for me. Thank you very much!

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

    #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

Viewing 25 results - 10,401 through 10,425 (of 32,504 total)
Skip to toolbar