Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,851 through 9,875 (of 32,505 total)
  • Author
    Search Results
  • medousa
    Participant

    Hi and thanks for your reply but I have a parent theme and can not create a child theme.
    Can I paste this code into a parent theme and if yes, at what function file?
    There are plenty into the dashboard.There is bbpress-functions, there is theme functions, functionsbu.php. Can you pls specify? I would deeply appreciate this!

    #156166
    yarashicr
    Participant

    It worked Robin. The problem was with the stylish single quotes in the shortcode on the link, I copied it as it is in the site. I changed it to normal single quotes and it started working. Thank you so much for your help and for such an awesome plugin.

    #156164
    HighRollerUSA
    Participant

    I just installed bbpress 2.5.4 on WordPress 4.1, on two different websites.

    On my test site, everything is working as expected, but on my live site (which has SSL) every time I try to access the default https://mysite.com/forums/ I get the following error:

    Fatal error: ob_end_flush(): Cannot use output buffering in output buffering display handlers in /homepages/wordpress/wp-includes/functions.php on line 3269

    I can create a new page with a different name than “forums” and use the shortcode successfully, but the breadcrumbs have a direct link to the “/forums” and it gives the same error.

    Any idea what may be going on?

    Thanks!

    #156162
    Piani
    Participant

    Thanks for the tip! Problem solved 🙂

    I also found this code to put in my custom functions.php to to solve this withouth the extra plugin.

    
    function fix_auto_subscribe( $checked, $topic_subscribed  ) {
    
        if( $topic_subscribed == 0 )
            $topic_subscribed = true;
    
        return checked( $topic_subscribed, true, false );
    }
    add_filter( 'bbp_get_form_topic_subscribed', 'fix_auto_subscribe', 10, 2 );
    
    #156155
    yarashicr
    Participant

    And I also want to know whether these shortcodes work on a wordpress widget.

    #156154
    yarashicr
    Participant

    Thanks a lot Robin. I tried the shortcodes as mentioned in the above page after installing and activating the plugin. It did not work for me. I used putting respective forum ID as well. Can you kindly help me on this. I am stuck fixing this for a long time now.

    #156145
    siddardha
    Participant

    Thanks for the info robin.
    I have a small doubt, pls clarify.
    So I will create a new page and paste the required short code and select the parent page, right? That’s all?
    Thank you once more.

    #156137
    Zemi12
    Participant

    Thank you, I solved it.

    #bbpress-forums div.odd,
    #bbpress-forums ul.odd {
    font-size:12px;
    margin-top:0;
    }
    
    #bbpress-forums div.even,
    #bbpress-forums ul.even {
    font-size:12px;
    margin-top:0;
    }
    #156135
    Robin W
    Moderator

    Like many plugins the documentation is not great, and as a humble user I have added to it as I have learnt, a good deal of the documentation is mine.

    bbpress is a complex plugin, and I sympathise that it is not great to grasp.

    With templates, all functions are written to allow you to filter what is there, this is a standard wordpress/php process, so you’re sort of expected to know about it as part of wordpress! I did try to explain it in

    Step by step guide to setting up a bbPress forum – part 5

    you can filter many bbpress functions using ‘parse args’ capability – a standard wordpress technique or just filter the whole function, you’ll see a return apply_filters in all template functions and this is the hook that you use.

    so for you you could us the code in your other post

    Display the last topic updated in the forums loop

    If you’d like to help with documentation, just find where something is poor and write what you think it needs changing to, it is newcomers like you that can really help improve what is there

    #156134
    Robin W
    Moderator
    #156133
    Robin W
    Moderator

    just use shortcodes

    https://codex.bbpress.org/shortcodes/

    in particular

    [bbp-single-forum id=$forum_id]
    
    Robin W
    Moderator

    put this in your functions file

    function rw_custom_freshness_link( $forum_id = 0 ) {
    		$forum_id  = bbp_get_forum_id( $forum_id );
    		$active_id = bbp_get_forum_last_active_id( $forum_id );
    		$link_url  = $title = '';
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_reply_id( $forum_id );
    
    		if ( empty( $active_id ) )
    			$active_id = bbp_get_forum_last_topic_id( $forum_id );
    
    		if ( bbp_is_topic( $active_id ) ) {
    			$link_url = bbp_get_forum_last_topic_permalink( $forum_id );
    			$title    = bbp_get_forum_last_topic_title( $forum_id );
    		} elseif ( bbp_is_reply( $active_id ) ) {
    			$link_url = bbp_get_forum_last_reply_url( $forum_id );
    			$title    = bbp_get_forum_last_reply_title( $forum_id );
    		}
    
    		$time_since = bbp_get_forum_last_active_time( $forum_id );
    
    		if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_attr( $title ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'rw_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );
    	}
    	
    	add_filter('bbp_get_forum_freshness_link', 'rw_custom_freshness_link' );

    Functions files and child themes – explained !

    #156116
    Piani
    Participant

    I have tested bbpress forums in diffrent themes. In Techism and Colorway the “Latest post” and “Latest threads” display the users avatar in the widgets.

    But now I am testing twenty twelve and there is no avatar showing in these widgets.

    Please advice where to activate avatars in the widgets or where the CSS code for this is found.

    #156115
    Divine_Apex
    Participant

    Hi! So I’ve created a New Topic page using the shortcode but I can’t seem to figure out the code or where to place the code to add a New Topic button within the forums. I have stumbled across a plugin, but it costs a bit of money and I’d rather not pay for something that should come with the forum in the first place. Any chance someone could give me semi-detailed instructions of where to put a code, and what code to use? I’ve done some searching but can’t really figure it out.

    Thanks

    http://the-divine.net

    #156114
    Divine_Apex
    Participant

    It seems a few of my users when trying to log in or register an account are directed to a white screen that says “Blocked”. It seems to go away eventually, but this has been an on-going issue. I notice it happens when they try using the short-code pages I’ve made, but not so much on the meta links. I don’t seem to get this issue but I am getting many complaints. Also, it seems like this may be related to plugins as I removed certain ones after a complaint and it seemed to fix this issue for a bit, but now it’s back.

    Any idea what’s going on?

    My site: http://the-divine.net

    #156112
    Robkk
    Moderator

    @geekserve

    did it work??

    ill add it to the docs in a minute if it did

    listing this kind of code and putting examples like this is a whole lot easier than talking about spam/security/seo in a doc article.

    #156110

    In reply to: Avatar padding issue

    Robkk
    Moderator

    try this CSS

    #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: 130px;
    padding: 0 0 10px 0;
    margin: 12px auto 0 auto;
    float: none;
    }
    #156108
    Jake Hall
    Participant

    Why has this not been documented anywhere?

    That is probably my biggest problem with bbPress right now, documentation is non-existant. You’ve got to crawl through the plugin code to find what you’re after.

    #156107
    Robkk
    Moderator

    i had this kind of layout one day messing around with bbPress templates in my child theme.

    i think its close to this but i havent tested it to make sure.

    its without the permalinks though , i had permalinks before but right now i just breezing through the templates and trying to find them.

    for the forum loop

    <a href"<?php bbp_forum_last_topic_permalink(); ?>"><?php bbp_forum_last_topic_title(); ?></a>

    for the topic loop

    <a href"<?php bbp_topic_last_reply_permalink(); ?>"><?php bbp_topic_last_reply_title(); ?></a>

    EDIT: added permalinks

    #156101
    Jake Hall
    Participant

    Can I just say, whilst bbPress is a great SSO solution for those wanting to hook up their WordPress with a forum, it is very difficult to get it going how you like it. There is virtually no decent documentation going over anything except the basics.

    I am trying to achieve something relatively simple, however have had to resort to editing the actual plugin itself in an attempt to get it working how I’d like it to be.

    What I am trying to do, is edit the freshness part of bbPress. What do I mean by that? Well, I am trying to edit the following:

    null

    So what I wanted it to do, was display the actual Topic Title. It makes sense, because as default – what has updated? What thread was last updated without having to drill into the forum?

    I also found it bizarre that the title was added within the title tag of the freshness, really? Can we just have some sort of option to allow us to change how things are layed out, or at least create some documentation on how to actually change this without editing the bbPress plugin files (which is what I have had to resort to…)

    My question is, how can I change what is displayed there? Surely there’s a better way around it that doesn’t involve hacking my way through the plugin files.

    Which bbPress file actually changes this? Like I say, absolutely no documentation on what each file does – it is just guesswork………………

    If I am missing something I apologise, but after looking for countless hours I just decided to edit the plugin source to achieve half of what I wanted – still doesn’t help as I would like to change the location of the author picture and time edited and I am not editing the plugin for those.

    Am I being stupid?

    If anyone would like the most recent topic name within the forum to display on the index, you can edit the Plugin source code directly like so:

    if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $time_since ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );

    Find that chunk of code within bbpress/includes/forums/template.php and change to the following:

    if ( !empty( $time_since ) && !empty( $link_url ) )
    			$anchor = '<a href="' . esc_url( $link_url ) . '" title="' . esc_attr( $title ) . '">' . esc_html( $title ) . '</a>';
    		else
    			$anchor = esc_html__( 'No Topics', 'bbpress' );
    
    		return apply_filters( 'bbp_get_forum_freshness_link', $anchor, $forum_id, $time_since, $link_url, $title, $active_id );

    All we have done here is changed the $time_since to $title. Now you need to re-add the $time_since variable in there somewhere, which is a pain because you may not want it right after the thread title (like myself…)

    #156089

    Topic: Avatar padding issue

    in forum Themes
    Divine_Apex
    Participant

    Hello! I am new to bbpress. I have just made a new site for my clan and I decided to try out WordPress for the first time. Anyway, I’m going to try and keep this short for you guys. So, I have uploaded a theme and right off the bat there was an issue with the padding between the user’s avatar and username display.

    Example:

    View post on imgur.com

    I have plenty of experience with CSS and I’ve been looking through my FTP files to figure out where this issue is occurring but I can’t seem to find it. I would love to get some direction, or possibly a code to add somewhere in my CSS to fix this. Thanks!

    #156085

    In reply to: No spacing in posts.

    Yolle
    Participant

    Hi!

    Thank you for the quick reply. It still does not work. I hope I am applying the correction right – I put the code into bbpress.css and then disabled my CDN and caching so it wouldn’t interfere.

    The link to one of the posts is: http://www.lolabuland.com/forums/topic/madde-lucy-bc-6-month-sweden-participant/#post-24022 (post 24022). The forum is for subscribed users only however. Can you please let me know your email so I can send you the login info? Thanks.

    #156083

    In reply to: No spacing in posts.

    Robkk
    Moderator

    @yolle

    try adding !important to the end.

    like this

    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
    margin-bottom:10px!important;

    if it still doesnt work post a link to a topic or reply post that should have line breaks.

    #156081
    IbrahimC
    Participant

    Hi all!

    I’ve just completed setting up my forums using the shortcode method (implementing shortcode of forum index on a page). I did this because whenever I tried to access the forum index, I would get a blank page.
    Now that I’m finished the development of the forum, I want to use the original index.

    At the moment, thegamingrpt.com/forums works fine thanks to the shortcode. However, thegamingrpt.com/tgrforums only loads a blank page. I used the ‘tgrforums’ root so that I could implement the shortcode on a page called ‘Forums’.

    Basically, I want the original back because my breadcrumb is showing the original forum root and because my theme has a dedicated sidebar to bbPress.

    Hope all this makes sense.
    Thanks.

    #156080

    In reply to: No spacing in posts.

    Yolle
    Participant

    I have the exact same problem.
    Has anybody found a working solution?
    I tried this code :

    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
    margin-bottom:10px;

    but it doesn’t work.
    Thanks

Viewing 25 results - 9,851 through 9,875 (of 32,505 total)
Skip to toolbar