Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 10,376 through 10,400 (of 32,504 total)
  • Author
    Search Results
  • #153439
    Robin W
    Moderator

    Presuming you have default permalinks (don’t worry if you have no idea what this means) then it is a known issue with wordpress 4.0 and is in the queue for a fix on the next release.

    in the meantime you can either

    move you child themes up a level

    or (better) change your permalinks to ‘pretty’ ones.

    see https://codex.wordpress.org/Using_Permalinks for explanation of what a permalink is

    go to

    Dashboard>settings>permalinks and set them to ‘postname’

    #153432
    josuawahyudi
    Participant

    Hi all,

    i’m totally not an IT guy, so i don’t know anything about coding. I learn to build website with WP by learning from internet.

    this is my first time i use BBpress to build a forum website.

    this is my web: http://www.buangstres.gratis/
    i use WP version 4.0
    i use theme Skeleton: http://themes.simplethemes.com/skeleton/

    i use these plugins:
    – akismet
    – easy WP smtp
    – simple local avatars
    – simple shortcodes (reccomendation fro the theme)
    – WP-members
    – WP-pagenavi (reccomendation from theme)

    i found that all my Child forums having problem: page not found

    this is what i’ve already done:
    – reset the permalinks
    – deactivate all plugin (include bbpress), activate only bbpress

    all isn’t working

    need the solution desperately… anyone can help me? it will be a huge appreciation from me

    josuawahyudi
    Participant

    hi, i have the same issue, but i already try to deactivate all plugins and the problem is still there…

    this the plugins i use:
    additional information, i use these plugins:
    – akismet
    – easy WP smtp
    – simple local avatars
    – simple shortcodes (reccomendation fro the theme)
    – WP-members
    – WP-pagenavi (reccomendation from theme)

    any suggestion for me? i need help desperately…

    #153430
    Sam Rohn
    Participant

    these anti-spammer and security plugins look interesting too, but i have not tested them myself, they should work fine with bbpress but always test carefully for possible confilicts with other plugins you are using, especially plugins that have similar functionality

    https://wordpress.org/plugins/avh-first-defense-against-spam/

    and wordpress security is a bigger topic than just dealing with spammers, but sorting out the specifics is up to you 🙂

    https://codex.wordpress.org/Hardening_WordPress

    http://premium.wpmudev.org/blog/keeping-wordpress-secure-the-ultimate-guide/

    https://wordpress.org/plugins/bulletproof-security/

    https://wordpress.org/plugins/tags/security

    https://wordpress.org/plugins/tags/wordpress-security

    sam

    Doremdou
    Participant

    Hi everyone,

    I would like to disable completely the mentions feature in forums, even if someone put accidentaly a “@” before a username for exemple “jack” I don’t want the result “@jack” to link to jack profile.

    I’ve got Buddypress and bbPress,

    the code add_filter( 'bp_activity_do_mentions', '__return_false' ); disable BP mentions but not bbPress mentions, how can I do that?

    [Edit] thanks to danbp, here is the solution: add_filter( 'bbp_find_mentions', '__return_false' );

    Thank you very much for your help

    #153422
    JohnnyJonJon
    Participant

    Hi there,

    I’m having a browser issue on a registration form that causes it not to work in safari or IE but it works fine in Chrome.. If you visit this page and without filling anything in, just hit ‘complete sign up’, in Safari nothing happens, but in Chrome the field errors are displayed as expected.. any ideas on this? I’m unable to successfully register in Safari.

    In the code, the errors (e.g. <div class=”error”>This field is required.</div>) are never generated in Safari (to rule out a css issue)..

    http://sapoa.staging.wpengine.com/bbpress-register/

    Thanks, Jon

    #153415
    Robkk
    Moderator

    i added mine by copying loop-topics.php to my child theme and placing it above

    <li class="bbp-header">

    it looks like you want it to be above the header in loop-replies.php though.

    #153412
    Robkk
    Moderator

    @terriswiatekyahoocom you can create a simple href link to go back to the forums thats how ive done it before. i just did this before <a href="example.com/forums"></a>


    @robin-w
    i think you can create a function using <?php echo site_url(); ?> and
    <?php printf (bbp_get_root_slug() ); ?> , i suck at php so i ended up with this sloppy code

    <a href="<?php echo site_url(); ?>/<?php printf (bbp_get_root_slug() ); ?>">Back to Forums</a>

    #153405

    In reply to: Hiding closed subject

    stefansill
    Participant

    css code:

    
    .bbp-topics ul.status-closed {
    display:none;
    }
    #153400
    alipoor.ah
    Participant

    hi
    I am getting this error.

    [16-Oct-2014 11:17:02 UTC] PHP Notice: bbp_setup_current_user تمّ استدعائه بشكل غير صحيح. The current user is being initialized without using $wp->init(). المرجو مراجعة التنقيح في ووردبريس للمزيد من المعلومات. (هذه الرسالة تمّت إضافتها في النسخة 2.3.) in /home/turathal/public_html/wp-includes/functions.php on line 3370

    I am using
    Debug : True
    Wordpress : 4
    bbPress Version 2.5.4

    pleas help mee

    #153393

    In reply to: Size font bbpress

    Ricsca2
    Participant

    I have insert

    
    #bbpress-forums .bbp-topic-content p,
    #bbpress-forums .bbp-reply-content p {
    font-size: 12px;
    }

    in bbpress.css but nothing has changed.

    #153387

    In reply to: Size font bbpress

    Robin W
    Moderator

    you should change it as per the previous post

    bbPress Styling Crib

    No. 5 is what you need to change, and the guide link at the top of the link above tells you how to do it.

    #153383
    msjulian
    Participant

    I have bbpress installed on a WP multisite installation. Everything seems to be working very well except the ← Back to discussions link. It directs to the multisite home page. I have the forum displayed on a page named discussions with the short code. I have the slug in the forum settings set to discussions. I have the permalinks set to post name. I for the life of can’t seem to get the link to work correctly.

    http://onthedyno.com/GM-LS-motor/forums/

    Please help…

    #153371

    In reply to: Size font bbpress

    Robin W
    Moderator
    #153365

    In reply to: "Reply" button

    Robin W
    Moderator

    If I have understood you correctly you want to change the reply form you’ll be looking at

    wp-content/plugins/bbpress/templates/default/bbpress/form-reply.php which sets up the forum and on line 57 calls

    bbp_the_content
    

    this function is in

    wp-content/plugins/bbpress\includes\common\template.php

    line 1706

    you’d probably want to write a filter fro that function

    if you’re familiar with wordpress args parsing, bbpress does it in the same way

    apply_filter (‘xx’ , ‘bbp_before_get_the_content_parse_args’)

    and then write a function xx that adds you initial text to $args[‘before’] should do it

    Don’t; have time to write and test it at the mo, but come back if you need further help

    #153359
    Cariva
    Participant

    Hi there, I want the forum’s topics to be visible to non-registered or logged out users, but not the actual content/text – ie non-logged in people can’t drill further down than the forum level. Is there a plugin/code for this?
    Many thanks in advance 🙂

    #153355

    In reply to: "Reply" button

    AlexSpace
    Participant

    I have seen a lot of forums whith this feature too, but it wasnt bbPress. I even dont know where should I change a code, I cant find this function template. I think that I could write a code for the feature by myself, but I need to find the template.php.

    #153354
    creator2000
    Participant

    Any idea what I did wrong and how to fix it?

    Got it figured out! In the new bbpress.php file I changed line 22 code:

    from this
    <section id="main">

    to this:
    <section id="main" class="col-left">

    All good now!

    #153342
    Peter Kriegel
    Participant

    I post only to confirm that I have a similar issue.

    I have enabled the Crayon Button to Post code over the crayon Popup.
    It inserts allways the pre Tag with a class attribute.
    If I Post as Admin with Crayon Syntax Highlighter in bbPress all is fine.
    If I post as a User the angle brackets of the preliminary pre Tag are geting masked like so:
    & lt; pre class=”lang:arduino decode:true crayon-selected” & gt;

    If I remove the class attribute and put in a simple < pre > all works fine.

    @netweb
    Thank you for your workaround I will Ty it!

    #153341
    naaatasha
    Participant

    Where can I insert this long code? I’m beginner in bbpress 🙁

    #153330

    In reply to: Two forum index pages?

    Robin W
    Moderator

    bbpress has two ways to display the forums – see

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

    You just have a page called chat, whilst the slug is still set to forum, so the latter is what the breadcrumb shows.

    so you need to do two things

    1. change the slug to chat
    2. get bbpress to use your template with a sidebar

    I was trying to fix no. 2 first

    Suggest you refer the issue to you theme provider

    #153328
    Robin W
    Moderator

    so if you wanted to change ‘Create New Topic’ to ‘hello mother’ you would do

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'Create New Topic' ) {
    	$translated_text = 'hello mother';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    
    #153323
    Toby
    Participant

    Not quite sure if I understand exactly what you want, but one of these should help..

    If you want to display a search form at the top of single topics add the following to your functions.php file:

        function my_bbp_topic_search_form(){
            ?>
            <div class="bbp-search-form">
         
                <?php bbp_get_template_part( 'form', 'search' ); ?>
         
            </div>
            <?php
        }
        add_action( 'bbp_template_before_single_topic', 'my_bbp_topic_search_form' );

    If you want a search form at the top of single forums (or sub forums) use the following in your functions.php file:

        function my_bbp_forum_search_form(){
            ?>
            <div class="bbp-search-form">
         
                <?php bbp_get_template_part( 'form', 'search' ); ?>
         
            </div>
            <?php
        }
        add_action( 'bbp_template_before_single_forum', 'my_bbp_forum_search_form' );

    If you want to limit results to the topic or forum in question that will be a little more tricky but the following post will point you in the right direction (it shows you how to limit searching to a single forum – you’ll need to customise further to apply it to a single topic): http://sevenspark.com/tutorials/how-to-search-a-single-forum-with-bbpress.

    Hope that helps.

    #153317

    In reply to: Two forum index pages?

    Robin W
    Moderator

    ok, make a copy of this file and rename it bbpress.php

    put this file in the root of your theme

    ie

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

    where %yourthemename% is the name of your theme!

    Then amend as follows

    change

    // Sidebar
     /////////////////////////////////////////////
     if ($themify->layout != “sidebar-none”): get_sidebar(); endif; ?>
    

    to

    // Sidebar
     /////////////////////////////////////////////
     get_sidebar();  ?>
    

    This will then force bbpress to use a forum with a sidebar

    #153302
    akyboy
    Participant

    Hi Guys,

    I would like to see link to last post in my Forum Widget but i cannot figure out.

    This is the code for widget i use:

    <!-- This file is used to markup the widget for Recent Topics info -->
    <table><!-- AKKI - dodao alajment left AUG 22 2014 -->
        <tr align="left">
        	<th>Topics</th>
        	<th>Posts</th>
        </tr>
    
        <?php while ( $widget_query->have_posts() ) :
                	  $widget_query->the_post();
                      $topic_id    = bbp_get_topic_id( $widget_query->post->ID );
     	?>
        <tr>
        	<td>
                <a class="bbp-forum-title" href="<?php bbp_topic_permalink( $topic_id ); ?>"><?php bbp_topic_title( $topic_id ); ?></a>
            </td>
            <td>
            	<?php echo bbp_get_topic_post_count($topic_id, false);?>
            </td>
        </tr>
        <?php endwhile; ?>
    </table>

    If you can please tell me what should i replace to get link to last post on my forums?

    Thanks

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