Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,351 through 5,375 (of 32,522 total)
  • Author
    Search Results
  • #183126
    guybrushpixelwood
    Participant

    If somebody stumble upon the same problem here is a solution to get Wp PostRatings Plugin Stars into bbpress topics:

    wp-content/plugins/bbress/templates/default/bbpress/loop-single-reply.php <–

    Search for the line

    <?php bbp_reply_admin_links(); ?>

    and place this under it:

    <span class="bbp-admin-links">
    		<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
     </span>

    πŸ˜€

    #183113
    manuel@palachuk.com
    Participant

    Hello all,

    I ma trying to change just the page title for the Forums archive but not finding anything that is current and works.

    Is there possibly a modern day version of @lynq ‘s code that works with WP 4.7.3 and bbpress 2.5.12?
    Or am I doing something wrong?

    I’ve tried it and other variations gleaned from other posts like these:

    functions.php
    add_filter( ‘bbp_get_forum_archive_title’, ‘ddw_bbpress_change_forum_archive_title’ );
    function ddw_bbpress_change_forum_archive_title() {
    return ‘Your Forums Archive Title Here’;

    and

    single.php
    <?php if ( is_front_page() ) { ?>
    <h1 class=”entry-title”></h1>
    <?php } else if (get_post_type() == ‘forum’) { ?>
    <h1 class=”entry-title”>Forum Title</h1>
    <?php } else { ?>
    <h1 class=”entry-title”><?php the_title(); ?></h1>
    <?php } ?>

    The functions.php breaks WP and the single.php or forums.php does nothing.

    Any pointers would be great,

    Thanks

    #183103
    vitalinfo
    Participant
    #183102
    vitalinfo
    Participant

    WordPress 4.7.3 running Lana Blog theme.
    BBpress Version 2.5.12
    Link: bcompetitive.in

    I am unable to make the sidebar work on my forum pages. It works if I use short-codes for forums, but you know it is not practical. I tried editing page.php with code if_bbpress. That gives me a sidebar below the forum.
    I tried bbpress wp tweaks and nothing happened.
    I copied pagewith sidebar template from the theme and renamed it as bbpress.php, nothing happened.
    Can anyone help?
    I am absolutely new to coding.
    I wish to have same sidebar as that of blog.

    #183089

    In reply to: bbp_reply_admin_links

    theredeclipse
    Participant

    Oh, code located in /includes/replies/template.php, line 1241

    #183086

    In reply to: How make full width

    clegg100
    Participant

    I added some custom CSS to my theme which did the trick.

    .bbpress #sidebar {
    	display:none;
    }
    
    body.bbpress div#content{
    	width:100%;
    }

    Might help you.

    #183078

    In reply to: bbp_reply_admin_links

    Robin W
    Moderator

    where does that source code sit – file and line please

    #183075

    In reply to: bbp_reply_admin_links

    theredeclipse
    Participant

    Tho still trying to figure out how to replace default classes.

    Code in BBpress:

    			// Link class
    			$link_class = ' class="bbp-author-' . esc_attr( $r['type'] ) . '"';
    
    			// Add links if not anonymous and existing user
    			if ( empty( $anonymous ) && bbp_user_has_profile( bbp_get_reply_author_id( $reply_id ) ) ) {
    
    				// Assemble the links
    				foreach ( $author_links as $link => $link_text ) {
    					$link_class = ' class="bbp-author-' . $link . '"';
    					$author_link[] = sprintf( '<a href="%1$s"%2$s%3$s>%4$s</a>', esc_url( $author_url ), $link_title, $link_class, $link_text );
    				}

    Hook:

    function hw_get_reply_author_link($link_class) {  
      $link_class = preg_replace('/ class="bbp-author-"/','/ class="myclass" /',$link_class);  
      return $link_class;  
    }  
    add_filter('bbp_get_reply_author_link','hw_get_reply_author_link'); 

    Cant make this work. Well output itself works as should, but it doesn’t replace bbp-author- to myclass. Can you tell me what’s wrong with it?

    #183064
    cocreationcoaching
    Participant

    In BBPress if no role is found, it defaults to Member. I found that much in the code.

    I solved it though. It wasn’t working as long as my code was in my theme’s functions.php. I had to actually add it to a custom plugin for it to work. Not sure why this was.

    cocreationcoaching
    Participant

    Hello,

    I added a function in functions.php to add some user roles.

    They are now available, but when I set them on a user, their user title on posts only says β€œMember”, instead of the name I set.

    Here’s my code:

    function add_custom_role( $bbp_roles ) {
      $bbp_roles['neophyte'] = array( 
        'name' => 'Neophyte I&deg;',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
      );
      $bbp_roles['adept'] = array( 
        'name' => 'Adept II&deg;',
        'capabilities' => bbp_get_caps_for_role( bbp_get_participant_role() )
      );
    
      return $bbp_roles;
    }   
    add_filter( 'bbp_get_dynamic_roles', 'add_custom_role', 1 );

    How can I get the desired names to actually show up underneath those users?

    #183055
    Pascal Casier
    Moderator
    #183053
    Pascal Casier
    Moderator

    Hi,
    You might be better off asking in the support forum of that plugin (https://wordpress.org/support/plugin/addquicktag), but you will have to specify what does not work…
    – Do you see the custom type ‘topic’ and ‘reply’ in the settings of the plugin ?
    – Do you see the quicktags when you are adding a topic/reply ?
    – When you click on the button or in the dropdown, does some code show ?

    Because just a ‘it does not seem to work’ is very hard to give the correct support.
    Pascal.

    Pascal Casier
    Moderator

    Goede middag Jos,

    The translation is done centrally and changing it would change it for everybody in the (Dutch speaking) world. If you think it should be changed, feel free to join the #polyglots channel on the Dutch local slack that you can find on https://make.wordpress.org/polyglots/handbook/about/teams/local-slacks/

    If you want to change it only for your own website, I would just change the width adding some extra CSS like:

    .bbp-login-form label {
        width: 150px;
    }

    (you might need the !important to make it work)

    Pascal.

    #183011
    Alex Stine
    Participant

    Hello,

    I would like to include the following under a custom coded section of a forum topic. I would like to include all Moderators or Keymasters that have participated via a reply in a topic. I’m terrible with SQL and couldn’t find another way to do this. Any suggestions?

    Thanks.

    #182997
    Saravanan
    Participant

    One Month. Still i did not get solution. Any MyBB Intelligent is there ? Help me Please

    Repair any missing information: ContinueConversion CompleteNo threaded replies to convertNo anonymous reply authors to convertNo replies to convertNo favorites to convertNo topic subscriptions to convertNo topic tags to convertNo closed topics to closeNo super stickies to stickNo stickies to stickNo anonymous topic authors to convertNo topics to convertNo forum subscriptions to convertNo forum parents to convertNo forums to convertNo passwords to clearNo users to convertStarting ConversionRepair any missing information: Continue
    WordPress database error: [Specified key was too long; max key length is 1000 bytes]
    CREATE TABLE wp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
    No data to cleanStarting ConversionRepair any missing information: Continue
    WordPress database error: [Specified key was too long; max key length is 1000 bytes]
    CREATE TABLE wp_bbp_converter_translator ( meta_id mediumint(8) unsigned not null auto_increment, value_type varchar(25) null, value_id bigint(20) unsigned not null default ‘0’, meta_key varchar(255) null, meta_value varchar(255) null, PRIMARY KEY (meta_id), KEY value_id (value_id), KEY meta_join (meta_key(191), meta_value(191)) ) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci
    No data to cleanStarting ConversionRepair any missing information: ContinueConversion CompleteNo threaded replies to convertNo anonymous reply authors to convertNo replies to convertNo favorites to convertNo topic subscriptions to convertNo topic tags to convertNo closed topics to closeNo super stickies to stickNo stickies to stickNo anonymous topic authors to convertNo topics to convertNo forum subscriptions to convertNo forum parents to convertNo forums to convertStarting Conversio

    #182991
    u_Oi
    Participant

    It happens because you are creating two pages with the same url… I mean, bbpress has a root and also shortcodes, so you can create an index forum or main page forum using shortcodes but they always going to the root (/forums) and you also have a page called (/forums). You can see what I said if you try breadcrumbs from the topic to the root…

    #182982
    LP9086
    Participant

    Hello,

    I created a custom page for my bbpress forum index.

    I called it “/forums” (“forums” also my forums root slug).

    However, I can’t seem to customize the page in anyway with my sites page template.

    If I change the page’s permalink to something else (ex: “/forums2”), I’m able to customize it.

    What am I doing wrong here?

    #182980

    Topic: Copyright

    davidnator
    Participant

    Hi, I have a question about copyright. Is the code in the support forums free to use on my commercial site? Is there a license for this code?

    Also, is the code on this page free to use as well for my commercial site as I am not completely sure? Page: https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/

    Thanks,
    David

    #182965
    Kristian Yngve
    Participant

    Okay, so i noticed it’s to do with the shortcode missing.

    The issue now is editing that page, which is being treated as an internal plugin page that cannot be edited.

    #182932
    ddevries
    Participant

    My search results don’t show the topic name…

    When the keyword is found in a topic, the search result shows the forum name and the topic description (no topic name).

    When the keyword is found in a reply, the search result shows just the reply and who wrote it. No forum, no topic. So, there’s no context. You can link via topic # in the upper right corner, but that’s not very user-friendly.

    Is this wacky display because of my theme? I’m using Razor. I have the latest bbPress. Can I change the code to display the search results similar to how you do it here on this support site, where it says “in reply to <topic name>”? If so, where can I do that?

    Thank you in advance for your help. πŸ™‚

    Darlene

    #182919

    In reply to: Responsive Issue

    arusli
    Participant

    i believe your theme css bypass responsive setting. find your theme css that especially control responsive css. could be in responsive.css. then find setting for:

    @media screen and (max-width: 480px) {
      .my {
         display:inline-block
      }
    }

    and replace to:

    @media screen and (max-width: 480px) {
      .my {
         display: block;
      }
    }
    #182914

    In reply to: Responsive Issue

    PrancingHorse
    Participant

    Does anyone know if this code still works? Also where do I post this to test it?

    Thank you! πŸ™‚

    #182912
    Mary
    Participant

    Sorry. I’ve been looking for this for hours now.
    And right after posting this I found solution.

     <?php the_widget( 'BBP_Forums_Widget'); ?> 
    

    And names for ready useable widgets can be found in bbpress/includes/common/widgets.php

    πŸ™‚

    #182911
    Mary
    Participant

    Hi
    I’d like to list all forums like widget does (nice looking list), but I’d rather do that in template. So how I should do it? Seems like there’s not suitable shortcode for that.
    Widget also recodnize user priviledges, so all users is not seeing all forums in list. That code or shortcode should also do that. Any advice?
    Regards, Mary

    oise73
    Participant

    Hi there,

    1. We have a parent forum with a bunch of child forums. I did check the “Allow forum wide search” box. On the main forum page, which is a regular WP page using the forum shortcode, the search bar is there. Screenshot: https://www.screencast.com/t/Rv4EB6POOG But on all of the actual forums, including the parent forum, the search bar is not there. Screenshot: https://www.screencast.com/t/byZD2Ua8h How do I make them show up?

    I did deactivate all plugins but bbpress, but the issue was the same.

    2. In each topic, there is the word “by”. Screenshot: https://www.screencast.com/t/XVRBrBIiz
    How do I make that go away? I am hesitant to do a display:none; in the CSS, because other parts of the site need that .entry-meta tag.

    Your help would be greatly appreciated!

    thanks!

Viewing 25 results - 5,351 through 5,375 (of 32,522 total)
Skip to toolbar