Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,551 through 13,575 (of 32,521 total)
  • Author
    Search Results
  • #138323
    koendb
    Participant

    Could try this:

    add to template: <?php bbp_forum_id(); ?>
    This way you’ll see the ID-number of a forum when you display it.
    Say, forum 1 has number xxx, 2 yyy, 3 zzz.
    Remove the line above from your template.

    Add this to the sidebar:
    <?php
    $forum = bbp_get_forum_id();
    if ($forum == xxx) {
    echo ‘code forum 1’;
    } else if ($forum == yyy) {
    echo ‘code forum 2’;
    } else if ($forum == zzz) {
    echo ‘code forum 3’;
    }
    ?>

    If you want to add a shortcode, you can do it this way in php.
    echo do_shortcode(‘[shortcode]’);

    Hope this will work 🙂

    #138319
    koendb
    Participant

    Hi R,

    Removing the search bar is easy; it’s a bbpress option. I don’t know the exact option description, cause my bbpress is in dutch, but should state something like this:
    [forum options] –> [allow to search through all of the forum]

    To remove the forums link the ‘ugly’ way, just add this to your .css file:
    article.forum h2.entry-title a { display: none; }

    I heavily edited all of my templates (both wp and bbpress), so don’t know how to remove the HTML, but I guess you’ll find your code in a content(-xxx).php file.

    The text ‘Forums’ is probably echo’d by the_title()

    #138310
    elitetester
    Participant

    I have been building a site but have encountered a problem…

    I have created several forums. I use the shortcode to embed the required forum into the required page.
    For page1 I have included shortcode for forum1. To the left I have sidebarmenu1.
    For page2 I have included shortcode for forum2. To the left I have sidebarmenu2.
    For page3 I have included shortcode for forum3. To the left I have sidebarmenu3.
    etc

    The forums, pages and menus display fine UNTIL I post a topic. And I think the reason is because the url name is generic (/forums/topic…).
    The question is – How do I keep sidebarmenu3 visible when posting a topic within page3/forum3? (so sidebarmenu1 and 2 is hidden) etc?

    Or am I using bbpress in completely the wrong way?

    #138303
    FreeWPress
    Participant

    Hi, this is a css conflict issue… find it in your css:

    .reply a {
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        bottom: -2px;
        display: inline-block;
        font-family: 'BebasNeueRegular',sans-serif;
        font-size: 0.875rem;
        font-style: normal;
        height: 20px;
        padding: 6px 10px 2px;
        position: absolute;
        right: 0;
    }

    Now you try to remove: position: absoloute…

    And they appear in correct position.. You must to change your css style.. If you search in this forum have other person wich your same problem…

    #138302
    himali
    Participant

    I also do that but no change. i face same problem

    Note: I am displaying forum on page(in wordpress)and use code
    [bbp-forum-index]. Am i using right?

    #138299
    radleycollector
    Participant

    Thank you for that link.
    In all honesty it doesnt make much sense to me as im not very good with coding etc.

    I was hoping ti was a simple , find this file delete this code.

    But thank you

    #138298

    In reply to: Sort posts in a thread

    Stephen Edgar
    Keymaster

    That seems odd, can you refresh your permalinks and also run the repair tools on your forums and let me know the results.

    https://codex.bbpress.org/repair-forums/

    This could be an issue with your rewrite rules. To fix this try resetting your permalinks. In your WordPress Administration Screens navigate to Settings > Permalinks, select a different permalink structure and save. Then select your preferred permalink structure and save again.

    #138296
    Stephen Edgar
    Keymaster

    You will want to take a look at modifying some templates for your theme, details on getting started with this are here: https://codex.bbpress.org/theme-compatibility/

    #138295
    Stephen Edgar
    Keymaster

    Trying to reproduce your issue and I cannot reproduce it accurately, if I search for a password protected topic I actually see both the topic and the reply in the search results, you should also see both.

    I presume you are creating these (or protecting them after the fact) in the backend?
    (/wp-admin/edit.php?post_type=topic), what I assume should be the case is that if you are manually protecting the topic you should manually protect the replies (/wp-admin/edit.php?post_type=reply) also.

    In short bbPress doesn’t support password protected forums, topics & replies officially, yet. There is ‘some’ support in the backend and partially in some of the templates but we haven’t got ‘all of it’ in bbPress yet.

    You will also have issues when browsing the topics via eg http://example.com/topics/ and not see the actual topics list. There are probably a few more places where this will break also.

    Create a ticket on trac to remind us to look at this for a future bbPress release.
    (It will also act as a subtle reminder to keep it in mind whilst other code is written)

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

    #138294
    radleycollector
    Participant

    Hello, I am trying to remove the Header 2 that says forums , please see the attached picture and the search box. I dont know much about code, but I do the inspect and can delete it but I dont know the actual files to remove this.

    Can anyone help please.

    what i need to remove: HERE here

    What i need as end result : HERE Here

    #138287

    In reply to: Change URL

    Stephen Edgar
    Keymaster

    You can set your forum slugs based on these docs https://codex.bbpress.org/forum-settings/#forum-root-slug

    #138281
    Stephen Edgar
    Keymaster

    @antonyc You can change the ‘Forum Root’ in bbPress settings

    See the docs here for the hows and where https://codex.bbpress.org/forum-settings/#forum-root-slug

    #138275

    In reply to: SMF Import to bbPress

    manuxel
    Participant

    And @ricov4 if you have SSH acces try
    netstat -anp | grep -i mysql

    #138272
    tatiana_k
    Participant

    @freewpress,
    1. copy file loop-search-reply.php to your theme folder
    2. Open it and find <?php bbp_reply_content(); ?> in line 57 or near it.
    Change it with

    <?php if ( !post_password_required(bbp_get_reply_topic_id()) ) {  bbp_reply_content();  }
    else {
    ?>
    <span class="your_message_class">Sorry, you can't read this reply.</span>
    <?php } ?>

    Anyway, I hope the plugin authors check this issue.

    #138269
    aukesch
    Participant

    OK, now I would like to change something in the template of the shortcode. Does anybody know where I can find these?

    #138265
    aukesch
    Participant

    AFter 1 hour searching i found it 1 minute after posting this question….
    <?php echo do_shortcode(‘[bbp-topic-index]‘); ?>

    thanks anyway

    #138264
    aukesch
    Participant

    Does anybody know how I can use a shortcode outisde a page or post?
    Im not that much of a code reader…

    I need a some code to add to the shortcode or the “sourcecode”.
    (to add a forumpart to a .php file)

    Thanks!

    #138261

    In reply to: bbPress 2.4.1

    7esmla
    Participant

    Hi Jhon james.. I just followed your video tutor bbpress on youtube, maybe I have missing html if possible check my setting plss http://new3dline.com/forums/ how resolve the code?
    Thk you

    #138257
    niuserre
    Participant

    To just change the text you can use a function.

    It is a good idea to create a child theme of Twenty Eleven first so that you can use automatic updates without losing your work (there are instructions on how to create a Child Theme on the WordPress codex).

    In your child theme folder, create a functions.php file and add this function: http://pastebin.com/CBaZjNCq

    #138254
    tatiana_k
    Participant

    I don’t know whether this is a common problem or just mine. But if you use password protected topics you better check your forums to be sure your secret discussions aren’t read by everyone.

    When a person enters the password protected topic name in the Search field, it shows the list of replies without any restrictions. While the title says that the topic is protected, the content of the reply is not hidden at all, and anyone can read it.

    I fixed it with adding post_password_required check to the loop-search-reply.php file, but I think this should be double rechecked somewhere in the plugin code.

    I tried a few themes including twentythirteen, looks like the problem doesn’t depend on a theme.

    #138247
    Holly
    Participant

    Was sent here from MySiteMyWay (my theme) so see if you could tell me how to change the path in the plugin referenced in the quote below:

    If you use these templates, http://mysitemyway.com/docs/index.php/BbPress, then you can add CSS within them to hide that.

    <style type = “text/css”>#intro { display: none !important; }</style>

    Okay, I actually tried those, but removed them.

    The issue with them is that I cannot use /forum/ as my forum root. Doing so throws my students out to the public main page. I have to have my forum root as /classrooms/htts-boot-camp-forum/ to allow them to get back to class from the forum pages.

    So is there code I can use in the plugin to allow me to use that forum root?

    If I can change my forum root within the plugins linked above to /classrooms/htts-boot-camp-forum/ (and get BOTH of those elements of the path to show within bbPress) I’ll be able to remove the doubled headers from all of my bbPress pages.

    Hoping there’s a string I can insert within the plugin to make this work.

    Thanks for any help you can offer.

    #138246

    In reply to: bbPress 2.4.1

    Unit9
    Participant

    Hi guys, 😀

    Thanks for all the incredible work you do on BBPress!

    I’m using WordPress 3.6.1, BuddyPress 1.8.1 and BBPress 2.4.1

    The page titles for wordpress and buddypress have been fixed.

    However, BBPress has completely stopped interacting with Buddypress. By this I mean no new topics, posts, mentions or any action made by my members in BBPress are showing in their profile activity or in the ‘Notifications’ section of the WP admin bar.

    I’ve also added this code to a base ‘Forum’ page:

    <?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>
    
    <?php bbp_get_template_part( 'bbpress/form', 'topic' ); ?>

    And in the topic section the ‘Forum’ select field has ‘No forum’ as the default selection. Rather than taking the first forum as the default as in BBPress 2.3.2.

    Thanks!

    #138244

    In reply to: SMF Import to bbPress

    Remco Beugels
    Participant

    @manuxel
    For the smileys I think that it is a better idea to replace ::) with 🙄 (: roll :).

    #138240
    Anonymous User 9588477
    Inactive

    @stephen, thanks for your comment! I have solved the problem! I have doenlaod the translations .po and .mo from the /dev branch and upload those 2 files to wp-content/bbpress/languages/ and rename the files to bbpress-nl_NL.po & bbpress-nl_NL.mo

    #138230
    Robin W
    Moderator

    Can’t see anything wrong with your code is_bbpress()works on my conditional statements

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