Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,326 through 9,350 (of 32,519 total)
  • Author
    Search Results
  • #159234

    In reply to: bbpress ranking

    Robin W
    Moderator

    You cuurentl show the bbpress user roles under the avatar on each topic/reply

    you can either change the display name or add new roles to achieve this

    see

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

    Custom Capabilities

    #159228
    Nicolas Korobochkin
    Participant

    I’ve posted the long article about this question on my blog with source codes, examples and screenshots (on Russian language): https://korobochkin.wordpress.com/2015/02/10/rukovodstvo-po-sozdaniju-stranicy-registracii-v-multisajte/

    #159224
    mattvr
    Participant

    @robin-w I did deactivate the plugins and found out it was Yoast’s breadcrumbs causing this.


    @Robkk
    apologies but where would I put this code? Sorry, I’m a bit new to coding. Found it!

    Thanks for all your help.

    #159217
    Pewit
    Participant

    If I add an image with a caption using the tinyMCE editor it generates the code below which is displayed properly in the WP editor and if I preview the post from outside the forum.

    [caption id="attachment_683" align="alignnone" width="300"]<a href="/wp-content/uploads/2014/08/IMG_0089.jpg"><img class="size-medium wp-image-683" src="/wp-content/uploads/2014/08/IMG_0089-300x225.jpg" alt="An image description" width="300" height="225" /></a>My image caption[/caption]

    However, once the post is added to the forum, I get the image but the caption codes are ignored.

    [caption id="attachment_683" align="alignnone" width="300"]
    <my image here>
    My image caption[/caption]
    

    I have tried switching Themes to Twenty Fiifteen and Twenty Thirteen but the problem persists.

    My site here
    WP Version 4.1.1
    BB Press Version 2.5.4

    #159215
    Robkk
    Moderator

    common issue with yoast breadcrumbs.

    /**
     * Filter to call default bbPress breadcrumbs
     */
    add_filter( 'bbp_get_breadcrumb', 'myfix_bbp_get_breadcrumb', 1, 3 );
    function myfix_bbp_get_breadcrumb($trail, $crumbs, $r){
            // This will remove wordpress-seo filter to disable bbPress breadcrums by default
            remove_all_filters("bbp_get_breadcrumb",10);
            return $trail;
    }

    use this to enable bbPress breadcrumbs

    #159213
    Robin W
    Moderator

    yes you’ll need to enable debugging and have a play to see where the error is

    see

    https://codex.wordpress.org/Debugging_in_WordPress

    #159207

    In reply to: widget side

    Robin W
    Moderator
    #159204
    mattvr
    Participant

    Hi @robin-w

    Thanks for responding, but it’s not really a name change. Kindly see this link
    the breadcrumbs for that is Home | Topics | News & Announcements | Welcome to Nurseslabs and our forums! how come it points to Topics rather than the forum’s homepage?

    #159203
    Robin W
    Moderator

    is this just a name change?

    if so, add this to your functions file

    add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' );
    
    Function change_breadcrumb_text ($trail) {
    $trail = str_replace ('Topics','Forum Index',$trail) ;
    return $trail ;
    }
    Chad R. Schulz
    Participant

    I actually came up with an in-elegant solution using css.

    select#bbp_forum_id, [for="bbp_forum_id"] {display: none;}

    Participants are only able to edit posts for 5 minutes–per the default setting. I just prefer that all the backend stuff remain backend stuff.

    If anyone has a more elegant solution (one that avoids the needless database querying for ALL the exiting forums/categories for every topic edit) please let me know.

    Thanks again, Chad

    Chad R. Schulz
    Participant

    I’m trying to create a discussion board type site. Each forum will be only accessible through a shortcode pasted into a post/page. All the forums will redirect to the appropriate post/page so the users will never be able to access the actual forum hierarchy.

    However, when a participant “edits” their topic they are given the option to move that topic to another forum–giving them backdoor access to the hierarchy that I don’t want them to have.

    I simply don’t know where to go in the code to eliminate that edit option. All I want is for them to be able to edit the content and not the location of that topic. Leave all the topic redistribution up to the moderators and administrators only.

    The site is not yet live, but any help/suggestions would be appreciated.

    Thanks, Chad

    #159164
    Robin W
    Moderator
    #159162
    Robin W
    Moderator
    #159158

    Topic: Pagination

    in forum Installation
    s1r0n
    Participant

    On my site the pagination bar has line breaks make it line up vertically horizontally. On this bbpress site the pagination bar sits horizontally. How do I get rid of those breaks? I’ve looked into the code but can’t seem to find a way to do it.

    you can see my pagination
    1
    2
    3

    on this site

    http://www.thelightningpath.com/forums/

    #159157

    In reply to: forum martinique

    Robin W
    Moderator
    #159141
    Marion Peterson
    Participant

    Unfortunately, deactivating all plugins did not help. I did not test a default theme.

    If I create a child theme and install the bbpress codes, will I still potentially have a problems with this, or will this no longer be an issue then?

    #159132
    Robkk
    Moderator

    @alice-kaye

    i dont know what could have caused that

    you can also hide it with CSS

    .bbp-forum-description,
    .bbp-topic-description {
    display:none;
    }
    #159131
    Alice Kaye
    Participant

    Hey @Robkk,

    That code worked well, with one exception, now the top bar with Topic, Post, Freshness, etc. those have become links, oddly.

    Example: http://screencast.com/t/uDncP5v4

    Any idea?

    I used your code:

    /* Forum Description Removal Begin */
    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 '';
    }
    /* Forum Description Removal End */
    #159129
    Robkk
    Moderator

    the bbcodes notice i think you can turn that off in the plugin your using, i think its gd bbpress tools.

    you can remove the unrestricted html notice with some CSS if you want its only displayed to Admins/Keymasters only, so its not that big of a deal.

    you can use this PHP code to remove the notice above the topics/forums

    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 '';
    }
    #159128
    Alice Kaye
    Participant

    Figured out the avatar issue itself.

    Basically used the following code (though this may not work for everyone – not sure if it’s based on theme):

    #bbpress-forums div.bbp-forum-author img.avatar, #bbpress-forums div.bbp-topic-author img.avatar, #bbpress-forums div.bbp-reply-author img.avatar {
    border: none;
    max-width: 100%;
    padding: 0;
    margin: 12px auto 0 auto;
    float: none;
    }
    
    #bbpress-forums p.bbp-topic-meta img.avatar, #bbpress-forums ul.bbp-reply-revision-log img.avatar, #bbpress-forums ul.bbp-topic-revision-log img.avatar, #bbpress-forums div.bbp-template-notice img.avatar, #bbpress-forums .widget_display_topics img.avatar, #bbpress-forums .widget_display_replies img.avatar {
    float: none;
    margin-bottom: -7px;
    border: 3px double #ddd;
    width: 15px;
    height: 15px;
    }
    #159125
    Robkk
    Moderator

    i creep BuddyPress forums here and there , but yeah i read that topic

    i think someone brought this up awhile ago on the #bbpress slack channel too. Specifically the Pimp your Press forum.

    i don’t think its really a hierarchy issue and more about people not knowing exactly what a forum is for and how they interpret it to be.

    For example one user could think that Pimp your Press could be to “show off your bbPress installation” to another it could be “How could i tweak/design my bbPress installation?”

    i think they should just bring back the descriptions of the forums and place them sort of like they did in 2011 in the link i posted above, so that users know what exactly the forum is for.

    As for bbpress.org changing the forum archive to a different layout, who knows. It does look real nice how it is now and like i said i don’t hierarchy is not really a problem, but if they did change it i think they would because they had the same layout for a couple of years.

    oh and the epicwebs theme hierarchy is not part of core , the developer just did a cool function to use bbPress’s code to look that way. There is i think 2-3 ways to do that type of hierarchy, and the other two ways are in a bbpress trac ticket scheduled to be in a future version of bbPress.

    Alice Kaye
    Participant

    Hi guys!

    I was wondering if it was possible to remove the info boxes from within forums. One of which announces how many topics have been created recently, with an avatar, and the other says “You can use BBCodes to format your content,” etc. etc, though that may be something from a plugin (for all I know).

    Example: http://screencast.com/t/zo2nX63Q

    Any help, especially on the blue box at the top, is so, so appreciated! Thanks!

    #159122
    Robkk
    Moderator

    @atlantis1525

    well i see your forum url links have double slashes in it

    <a href="http://www.nadirkitaplar.net/forums//genel/">Genel</a>

    did you edit the slugs in settings>forums

    #159121
    Robkk
    Moderator

    try this

    @media only screen and (max-width: 480px) {
    #bbpress-forums div.bbp-reply-author img.avatar {
    position: relative;
    width: 60px;
    height: auto;
    }
    }
    #159113

    In reply to: Add Custom User Roles

    Alice Kaye
    Participant

    Yeah, I’ve been using /**/ for all of my commenting, but I really like the // style for one line comments, so I’m going to move everything over to that format.

    I try to label everything both for OCD reasons and simply for the exact reason you mentioned. I don’t want to find myself wondering in the future what the heck the code was placed for! 😛

Viewing 25 results - 9,326 through 9,350 (of 32,519 total)
Skip to toolbar