Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,551 through 10,575 (of 32,504 total)
  • Author
    Search Results
  • #152526

    Topic: CSS questions

    in forum Themes
    EzYRiDaH
    Participant

    Hi there,
    I use the Genesis framework. In the Genesis theme there is a CSS part that sets the global margins.

    .entry {
    	margin-bottom: 40px;
    	padding: 50px 60px;
    }

    I managed to change a lot of the CSS by learning trial and error. I managed to change lot of the CSS of bbPress, but I don’t now how to change specific global things only affecting the bbPress forum.

    How can I change only the margings and the font type of the forum, without affecting the rest of the site (Genesis CSS).

    Your help is highly appreciated 🙂

    #152512
    Robin W
    Moderator

    The normal behaviour is to allow anyone to see profiles.

    You can limit this to only logged in users by adding some code to a couple of files.

    If you have c-panel or ftp access and know how to transfer files, come back and I’ll help you with the changes.

    #152510

    In reply to: Online Magazine Theme

    Robin W
    Moderator

    ok, save this file as bbpress.php into the root of your theme

    ie

    wp-content/themes/%yourthemename%/bbpress.php

    where %yourthemename% is the name of your theme !! 🙂

    Then add a line above the last, so that it now reads

    <? get_sidebar(); ?>
    <?php get_footer(); ?>

    bbpress will now use that page as the one for bbpress, and should display a sidebar.

    ‘tweaks’ should tghen sue this fro your forum sidebar.

    Come back if any of that doesn’t work, or you need more explanation

    #152506

    In reply to: Online Magazine Theme

    Topknotch
    Participant

    Thanks Robin

    <?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(); ?>
    #152504

    In reply to: Online Magazine Theme

    Robin W
    Moderator

    can you post the code for the full width one here please

    #152495
    sdunning
    Participant

    I wish to show the description of each forum in the forum list as seen here:
    http://forum.unified-automation.com/

    If someone could point me towards the file and/or function I need to add/amend, I’d be eternally grateful.

    I have it laid out with the child forums listed as shown by following this example but when I last tried to show the description along side it, I got the WSOD (my php sucks).

    Thanks to any and all!

    WP version 4.0
    bbPress version 2.5.4

    #152485
    STG
    Participant

    Ok, I found it.

    I had a plug-in called Landing Page.

    It wasn`t enough to deactivate it. I deleted it and everything seems to work fine.
    Don`t ask how or why, it just worked.

    Thanks for your help.

    Loni
    Participant

    @nightcoder You Rock! I was having this same problem where the “s” was missing from our noreply address. I followed your instruction and modified bbpress/includes/common/functions.php and it works perfectly! Thank you very much. 🙂

    #152480
    Zane
    Participant

    Hey Stephen,

    Up until earlier today when I adjusted forum settings I believe it would just say “PRIVATE: Forumname”. Now I see “PRIVATE: PRIVATE Forumname”. Not sure what I changed to make that start happen.

    Is there a reason why you would want to say “PRIVATE: PRIVATE: Forumname”?

    I added the code you provided to the bottom of functions.php and no wordpress page would load.

    https://gist.github.com/ntwb/8662354

    I also tried saving ntwb_remove_protected_private_titles.php to my plugins directory with no luck. I guess I need a little more direction.

    Thanks!

    #152478
    coskel22
    Participant

    I am trying to help users and want to use the code backticks to display the BBCodes they need to use.

    It won’t display the actual code, it renders the code out instead when placed in backticks using the code/code buttons.

    Using a default theme, WP 4.0 and 2.5.4 bbpress

    #152475
    Stephen Edgar
    Keymaster

    I just moved your topic as it really has nothing to do with the other topic.

    You shouldn’t need a plugin to do that, simply browse to http://example.com/topics and you’ll have a list of the most recent topics or topics with replies sorted by freshness.

    As for colours, that will depend upon the theme, if the theme includes customised templates for bbPress then typically yes, if it does not you’ll end up with the some default colors bbPress sets for you in this case.

    There are lots of docs here to browse also https://codex.bbpress.org/

    #152467
    Robin W
    Moderator

    images are doable, but you’d need code that is beyond the free help on here

    #152466

    In reply to: Online Magazine Theme

    Robin W
    Moderator

    yes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme

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

    #152459

    In reply to: disable Sidebar

    Robin W
    Moderator

    yes, you will need to rename one of your theme pages (the one that has only one sidebar) to bbpress.php and put it into your theme

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

    #152448
    Robin W
    Moderator

    Yes, each of your

    ['my_custom_role']

    needs to be different, otherwise it’s just overwriting each time, which is why only the last one shows
    eg my_custom_role1 my_custom_role2

    giving

    $bbp_roles['my_custom_role1>'] = array( 
        'name' => 'Recruit',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
      $bbp_roles['my_custom_role2'] = array( 
        'name' => 'Corporal',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
    
    
    #152445

    In reply to: Add forum roles

    arno8
    Participant

    I used this code, and added a few new ones but when i try assignem them it only shows 1

    #152444
    arno8
    Participant

    Hi everyone, i was wondering what i’m doing wrong here..
    I added 13 new roles in my themes functions.php, but when i try to assign them to my users it obly shows a few of them..

    img

    functions.php code

    function add_custom_role( $bbp_roles ) {
      $bbp_roles['my_custom_role'] = array( 
        'name' => 'Recruit',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
      $bbp_roles['my_custom_role'] = array( 
        'name' => 'Corporal',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Sergeant',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Lieutenant',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Captain',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'General',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Admin',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Organiser',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Coordinator',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Overseer',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Deputy Owner',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
      
       $bbp_roles['my_custom_role'] = array( 
        'name' => 'Owner',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
      
        $bbp_roles['my_custom_role'] = array( 
        'name' => 'Clan Wars Leader',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() ) // i just want them to have the same capabilities as participants
    
      );
      
      
      return $bbp_roles;
    }   
    add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );

    Anyone has an idea?

    also how can i add images in front of the names? small icons like this: img

    #152434

    In reply to: Topic Icon plugin

    Robkk
    Moderator

    for just topic thumbnails you can use this https://wordpress.org/plugins/bbpress-topic-thumbnails/

    the functionality of that site might be something similar to this plugin https://wordpress.org/plugins/bbpress-unread-posts/

    for any other plugins you want just do a quick search

    Plugins

    https://wordpress.org/plugins/

    http://codecanyon.net/category/wordpress

    #152428
    Zane
    Participant

    Trying to run a conversion to fix the Anonymous posts. Ran it all day and came home and it was stuck again. I did the same thing I did before where I looked at the last row created in bbpress and found the same post in phpbb by comparing content, then deleted the next one. When I do this the import continues. I would think that since I did this and complete the import this second run of the conversion would run error free but that is not the case. It is near the end and appears to be hung again. I suspect it is no coincidence that it hung twice, just like before. Guess I am not deleting the corrupt posts. Not sure why it keeps going after I delete them. If I delete another random post it still hangs until I delete the right one.

    If I wanted to have it print more debug information where would I need to edit? The only information I need is the bbpress post ID and wordpress post id about to be queried and a confirmation right after the query completes. This should let me find the corrupt post.

    In the instructions on https://codex.bbpress.org/import-forums/import-troubleshooting/ I am not sure how to take the information printed on the screen now and map it to the database.

    Now drop all the rows in the database that are not in the range of rows that failed during import

    I am not sure how the “Range of rows” maps to the database tables.

    I will include a request to include a debug option for conversions.

    Thanks again for your help.

    #152427

    In reply to: change forum sidebar

    martinperreault
    Participant

    I just wanted to take this opportunity to thank you ROBIN W for suggesting the plugin “widget logic”. I too am having the same sidebar problem as described above, and the Tweaks Plugin simply didn’t work for me. I even tried creating a forum.php in my theme-child, and was able to remove the sidebar by removing the call to the sidebar, but when I made a call to a specific sidebar, it simply wouldn’t work: it always reverted back to the main theme sidebar no matter what I tried.

    “widget logic” solved this issue. In the Main Sidebar, I can now add a LOGIC code, such as the ones you posted, and now the widgets either display or don’t dislay on the bbpress forum pages. Case closed!

    So, thanks again!

    #152418
    #152414
    ThemeTon
    Participant

    This is very close to my need.

    function abc_register_custom_views() {
        bbp_register_view( 'open', __( 'Open Topics' ), array( 'post_status' => 'publish' ), false ); 
    }
    add_action( 'bbp_register_views', 'abc_register_custom_views' );

    But I need to extend with user filter. Is here anybody have to help me with this small issue?

    #152411

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @pooledge Oh! That is not good and would most likely be the cause 🙁

    I just created a user Вук Стефановић Караџић (WikiPedia: Vuk Stefanović Karadžić) and indeed the user was not imported.

    A quick look around and all we need to do is sanitize the username, I’ll look to add this to bbPress Core in a future release, probably quite a few bits of testing for other language scripts.

    For now though install and activate @SergeyBiryukov‘s Allow Cyrillic Usernames WordPress plugin and these will import perfectly. 🙂

    Also added this to our codex https://codex.bbpress.org/import-forums/import-troubleshooting/#cyrillic-usernames

    Cloudup 3du0ztz2hyh

    хаве а нице даи 🙂

    Edit: This plugin is a slightly improved version allowing with better support for Cyrillic and Arabic usernames in WordPress.

    #152375
    ThemeTon
    Participant

    I’m using bbpress as a support forum. I know we can get all unanswered topics with [bbp-single-view id="no-replies"] shortcode.
    But I need to get list of all topics those answered by customer (subscriber) in the end.

    We want to be have all topics closed or replied by moderator then access quickly to the topics which answered by customers finally. Any help and suggestion would be appreciated.

    #152366

    In reply to: SMF Import to bbPress

    Stephen Edgar
    Keymaster

    @mlduclos See https://codex.bbpress.org/import-forums/import-troubleshooting/ for troubleshooting rows not imported, I haven’t ever tested a ‘Non English” import but I expect it should work just fine 🙂


    @pooledge
    Thanks and that is weird, do any of the imported user names have a prefix imported_ e.g. imported_pooledge? If so you’ll need to make sure you also delete any existing imported users before you try reimporting again otherwise the user ID’s will not match the imported posts.

    If they don’t have the imported_ prefix is there any common reason as to why some usernames are not imported? Do the users that are not imported have special characters, hyphens, whitespace in their username or anything else in common with each other, maybe they were all moderators or a different role on your SMF forum.

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