Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 9,226 through 9,250 (of 32,505 total)
  • Author
    Search Results
  • #159706
    VojtaSvoboda
    Participant

    When I put

    <div id="bbpress-forums" data-topic-id="<?=bbp_get_topic_id()?>">

    to the template, it prints me: data-topic-id=”0″.

    #159701

    Topic: Forum Headers

    in forum Troubleshooting
    lhughes16
    Participant

    Hi, I have searched high and low for anything on putting in a header for each forum on my site’s board. For instance, I have different forums for the various groups within my organization. I’d like for when a member of a certain group clicks on the group forum, a header or a banner specifically made for that group will be displayed for their section of the board. Anyone have any ideas? Keep in mind I don’t know a lick of code and not really comfortable with manipulating code so if you have any ideas a step by step would be much appreciated. Thanks!

    nolimit966
    Participant

    Hi,

    I had this issue since i very first installed BBpress along with the plugin – WP User Avatar.

    The avatars are not showing in the forum at all. Its a completely bespoke WordPress theme with nothing in the functions.php to be doing any filtering or stripping out extensions of any type.
    Ive also disabled every single plugin except bbpress & the avatars plugin & i still get the problem.

    broken avatars with no extension

    Can anyone please help me overcome this problem?

    I did notice that in the bbpress / filters.php the line which says : add_filter( ‘bbp_get_reply_author_link’, ‘stripslashes’ ); had to be commented out because it was removing the backslashes from the avatar URL making things even worse.

    I dont like the fact ive had to manipulate core code to do this. Surely there has to be a better was to get avatars working.

    Thank you 🙂

    #159685
    Robkk
    Moderator

    last patch says 19months so i wouldnt touch it.

    maybe using a custom last edit log using the two template tags below would work

    https://codex.wordpress.org/Function_Reference/the_modified_date
    https://codex.wordpress.org/Function_Reference/the_modified_author

    #159678
    Robkk
    Moderator

    @dimplefacect

    glad you found the information you needed , the links i should have gave you either of these two

    this one is cut to the chase

    https://codex.bbpress.org/getting-started-with-bbpress/

    and this one is more explanatory and has more steps to help improve your forum.

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

    if you need anymore guides for bbPress the codex is a great place to look.

    #159677
    butterzeugs
    Participant

    i did it just like you sayed but still no effect 🙁

    maybe some other plugin i have to change the code ?

    #159674
    Robin W
    Moderator

    That code works exactly as described.

    please check that you have exited and re-entered your browser to clear
    that you aren’t running any caching software
    That you have only changed ’40’ to ’80’ and saved and uploaded the change

    #159671
    dimplefaceCT
    Participant

    Thanks @robkk. I think I need more hand-holding. I did go to https://codex.bbpress.org/ and still couldn’t figure the steps to taking the forum I built under the forum tab and moving it onto a page. Any idea on a tutorial for that step?

    #159663
    butterzeugs
    Participant

    thx but how can i change the size of it ?

    i cant find some code where i can change it

    #159662
    Robin W
    Moderator

    The avatar size is hard coded into the login widget.

    see

    bbpress/includes/common/widgets.php

    around line 141

    You can change it directly in here, but keep a note of it, as it will be overwritten by upgrades. or if you have the skill, you could copy and create a new widget within your child theme

    #159659

    In reply to: Background Colors

    Robin W
    Moderator

    if that doesn’t work, then out it in your theme’s style.css, but tag it as !important

    #bbpress-forums, #buddypress {
     clear: both !important;
     margin-bottom: 20px !important;
     overflow: hidden !important;
     font-size: 12px !important;
     padding:20px !important;
     background:rgb(10, 9, 9) !important;
    }
    #159651
    Robkk
    Moderator

    There is a ticket for a future release.

    https://bbpress.trac.wordpress.org/ticket/1989

    you can hide them all with CSS

    #bbpress-forums .bbp-topic-content ul.bbp-topic-revision-log, 
    #bbpress-forums .bbp-reply-content ul.bbp-topic-revision-log, 
    #bbpress-forums .bbp-reply-content ul.bbp-reply-revision-log {
      display: none;
    }

    if you want to delete the old revisions use a plugin like WP-Sweep

    https://wordpress.org/plugins/wp-sweep/

    #159650
    MarionetteX
    Participant

    I am running Bbpress 4.1.1. If you have the revision log turned on, every saved edit will be displayed under the post. I’m a frequent post editor, so I wind up with 10+ logs if I don’t remember to uncheck the box, and there’s no easy way to delete them.

    I am looking for a way to make each topic and post only show the latest edit. There should only ever be one edit note per post. Is this possible, via plugin or code or some option I haven’t found yet?

    #159646
    Robkk
    Moderator

    well step by step its pretty much this

    copy page.php using FTP or your hosts file manager

    rename to bbpress.php using FTP or your hosts file manager

    remove unwanted code from bbpress.php using an editor like notepad++ through FTP or your hosts file manager.

    TIPS:

    make sure that the bbpress.php is in the root of your child theme.

    remove unwanted code like comments code , something like this <?php comments_template(); ?>

    #159645
    Robkk
    Moderator

    ^^ that is if you want forums on pages.


    @findmyrep

    follow the getting started guides by following this link.

    Codex

    #159643
    Robkk
    Moderator

    use the bbPress shortcodes

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

    [bbp-single-forum id=$forum_id] – Display a single forums topics. eg. [bbp-single-forum id=32]

    this plugin will help you out find any posts ID

    https://wordpress.org/plugins/reveal-ids-for-wp-admin-25/

    go to forums>all forums and you should see the ids

    #159632
    butterzeugs
    Participant

    i tryed to change the size of the sindbar login avatar img.

    i put in the theme (hueman theme) funcion.php this:

    add_filter('sidebar_login_widget_avatar_size','new_login_avatar_size');
    function new_login_avatar_size(){
        return 80;
    }

    i also tryed this code:

    add_filter('sidebar_login_widget_avatar_size', 80);

    but it is still the size of 38 pix and not 80 pix ?

    what did i do wrong ?

    #159631
    Robin W
    Moderator

    If your site is public, please put a url/link to an example page. What is to you an obvious written description is frequently not clear to us, and the ability to see is much better. We are also able to fix many display issues by loading your site and seeing what it is sending the browser in the background, so a link rather than a picture is really useful.

    If you are setting up, please see the Getting Started section of the codex first.

    Getting Started

    Please see this page for any frequently asked questions we may already have an answer for you.

    Frequently Asked Questions

    Please also see these pages for help troubleshooting possible issues in bbPress. PLEASE tell us you have done the tests before when posting.

    Troubleshooting

    #159627

    In reply to: topics not in forums

    Robin W
    Moderator

    ow !

    Hopefully the company have restored the database to back beyond your attempts to optimise it?

    If so it should have no errors. So if it has, they probably need to go back to an older version if they have one – many hosters don’t.

    Is it just forums entries that are missing???

    if so you could try

    dashboard>tools>forums>repair forums

    and when you do get it going again, PLEASE PLEASE PLEASE don’t do stuff to a live site again.

    1. a few hours invested in a test site

    https://codex.bbpress.org/creating-a-test-site/

    and you would not have lost your live site, and

    2. REGULARLY back your main site (the above tells you how) and you could have just restored that – hosting companies rarely keep much, and an issue found after a week can be fatal !

    Do come back for further help if needed.

    #159617

    In reply to: topics not in forums

    RitaNow
    Participant

    I was working on optimizing the site using a tutorial from http://code.tutsplus.com/tutorials/the-ultimate-quickstart-guide-to-speeding-up-your-wordpress-site–wp-23846

    When I got to the part on using the plugin “WP-DBmanager”, I backed up the database. I then repaired it. When I did the optimize part, that’s when I got the 500 error. I called the hosting company and not sure what they did. Eventually, they did a database restore from a weekly file. The error logs from that restore showed lots of errors. When I finally got the site back, the final result was the topics were there with no forums.

    #159590
    Robkk
    Moderator

    to create a forum go to forums>new forum in the wordpress backend

    I don’t see how I customize it or set up topics or set up so only certain people can subscribe to it

    for certain people to subscribe to it might be custom development post a job at http://jobs.wordpress.net/

    Is there a video I can watch on how to start?

    there is guides in the bbPress codex , but no videos

    Codex

    you can search youtube for a tutorial, make sure its at least in the past 2 years, anything older than that might be for the old versions of standalone bbPress.

    #159588
    mvaneijgen
    Participant

    ‘Normal’ users get the message “You cannot create new topics.” when you add echo do_shortcode ('[bbp-topic-form]');

    This is a similar topic to this message created almost three years ago, has anyone a solution for the current (latest) version of bbpress and wordpress.

    wpgerd
    Participant

    Hello,


    @clarasebeste

    Thanks for you answer, but as you can see on the screenshot, bbpress has already a breadcrumb.


    @robin-w

    Thanks for this interessting Plugin. I test it with my Test-WP and identify this code for placing the subscription-toggle in the right:

    .subscription-toggle {
    float:right;
    }

    Add this in my childtheme/css/bbpress.css and it works. Thanks.

    Found also in the extras a nice looking loop-forums.php for displaying the complete forum 😉

    Gerd

    nolimit966
    Participant

    Hi,

    Im using a bespoke WordPress theme for my site which ive created myself.

    Ive fully customized BBpress & put the theme inside my WP theme too.

    So far so good, it looks great & works fine too. But one problem is that the Breadcrumbs at the top of my page throughout the website only display:

    Home / Forum / HatWorks Forum

    If i then go into the GENERAL DISCUSSION SUB FORUM / TOPIC I get the following:

    Home / Forum / General Discussion

    Instead i should be getting:

    Home / Forum / HatWorks Forum / General Discussion

    If i then go to click a topic in general discussion I get:

    Home / Forum / Hello all forum members, what do you prefer?

    instead of

    Home / Forum / HatWorks Forum / General Discussion / Hello all forum members, what do you prefer?

    The current code I have written in my functions.php for the breadcrumbs is:

    <?php
    function the_breadcrumb() {
        global $post;
        $post_type = $post->post_type;
        echo '<ul id="breadcrumbs">';
    	if(get_post_type() == 'forum' OR get_post_type() == 'topic' OR get_post_type() == 'reply') {
    		
    	  echo '<li><a href="';
            echo get_option('home');
            echo '">';
            echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home';
            echo '</a></li><li class="separator"> / </li>';
    		echo '<a href="https://hub.driveworks.co.uk/forums/forum/">Forum</a>';
    		echo ' &nbsp;/&nbsp; ';
    		echo  the_title();
    
    	}
    
        elseif (!is_home()) {
            echo '<li><a href="';
            echo get_option('home');
            echo '">';
            echo '<i class="ts-awesome-home" style="font-size:14px;letter-spacing: 2px;"></i> Home';
            echo '</a></li><li class="separator"> / </li>';
            if (is_category() || is_single()) {
                echo '<li>';
                the_category(' </li><li class="separator"> / </li><li> ');
                if (is_single()) {
                    echo '</li><li class="separator"> / </li><li>';
                    the_title();
                    echo '</li>';
                }
            } 
    		
    		elseif (is_page()) {
                if($post->post_parent){
                    $anc = get_post_ancestors( $post->ID );
                    $title = get_the_title();
                    foreach ( $anc as $ancestor ) {
                        $output = '<li><a href="'.get_permalink($ancestor).'" title="'.get_the_title($ancestor).'">'.get_the_title($ancestor).'</a></li> <li class="separator">/</li>'.$output;
                    }
                    echo $output;
                    echo '<span title="'.$title.'"> '.$title.'</span>';
                } else {
                    echo '<li><span> '.get_the_title().'</span></li>';
                }
            }
    		
        }
       
    }
    
    ?>

    Any anyone help with the child navigation of this please?

    Thank you

    #159552

    In reply to: jump to last reply

    Robkk
    Moderator

    i think this should do it

    you would probably need to add more code around it.

    <?php bbp_last_topic_reply_permalink ?>

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