Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 1,776 through 1,800 (of 32,446 total)
  • Author
    Search Results
  • #219249

    In reply to: BBP_Forums_Widget bug

    Robin W
    Moderator

    interesting..it looks ok on my test site, but I can see it doesn’t on yours.

    I should state that I am just a bbpress user who helps out here, not the plugin author.

    2 choices

    1. amend the actual widget file – yes that is said by many to be bad practice, but bbpress does not do frequent releases, and if it is your site and you know what you changed, is probably the quickest and easiest answer

    2. clone the widget to your theme’s child functions file. so take the whole function that starts

    class BBP_Forums_Widget extends WP_Widget {

    Now you’ll need to rename it, so change BBP_Forums_Widget wherever quoted to something unique, and change names/title in these lines

    
    public function __construct() {
    		$widget_ops = apply_filters( 'bbp_forums_widget_options', array(
    			'classname'                   => 'widget_display_forums',
    			'description'                 => esc_html__( 'A list of forums with an option to set the parent.', 'bbpress' ),
    			'customize_selective_refresh' => true
    		) );
    
    		parent::__construct( false, esc_html__( '(bbPress) Forums List', 'bbpress' ), $widget_ops );
    	}
    
    	/**
    	 * Register the widget
    	 *
    	 * @since 2.0.0 bbPress (r3389)
    	 */
    	public static function register_widget() {
    		register_widget( 'BBP_Forums_Widget' );
    	}

    you can then amend the offending line.

    #219233
    mtissington
    Participant

    In the main forum/topic view the css is updated with status-closed.

    However the Forum and Topic widgets do not update the status.
    I would like to change this.

    Where does the existing code set status-closed for both Forums and Topics.

    Hopefully you can see what I’m wanting to show here

    #219230
    mtissington
    Participant

    The html <a> link for the list of forums is wrong – it include white space in the front.
    If you don’t think it’s a bug, then where do I place a modified widgets.php in my theme to fix the issue?

    this is from BBP_Forums_Widget

    				<a class="bbp-forum-title" href="<?php bbp_forum_permalink( $widget_query->post->ID ); ?>">
    						<?php bbp_forum_title( $widget_query->post->ID ); ?>
    					</a>
    

    and this is from BBP_Topics_Widget which displays correctly with no leading white space.

    					<a class="bbp-forum-title" href="<?php bbp_topic_permalink( $topic_id ); ?>"><?php bbp_topic_title( $topic_id ); ?></a>
    
    #219229
    patdunn
    Participant

    The bbPress codex explains that when bbPress is installed it creates three new menu items in the WordPress backend. These are Forums, Topics and Replies.

    I do not have the Forums topic. Is there some way that I can add it in?

    force73
    Participant

    Hi guys,

    i have found the file “class-bp-core-login-widget.php” and I need to add an additional link to the users direct messages “https://url/username/messages&#8221; right under the users name within the widget (after a user is logged it).

    I am able to do in the code but this is not a correct way (break on update), so please help me, is there a way to add this simple link to the widget?

    Thanks,
    Christian

    #219193

    In reply to: Remove profile field

    apr0424
    Participant

    Well, if i click on help it directs met here: https://codex.buddypress.org/administrator-guide/extended-profiles/

    #219180

    In reply to: List Of Shortcodes

    flamuren
    Participant

    Thank you Robin 😊

    About the notes. Would you recommend a excel file logging everything I do with any code; for example which files (path) and which line/lines etc?

    I have done some changes when reading some easy codes that I understood how to add etc. But dont remember them by now šŸ˜…

    #219175
    jessesansevieria
    Participant

    Were you ever able to resolve this problem with UnCode? I’m having the same issue where the breadbrumbs are being displayed, and there’s a huge dummy div taking up a lot of space above user profile pages (perhaps others I haven’t looked at yet). I asked UnCode Support and they directed me to check with Buddy Press. When I use the CSS provided above it hides other elements on the site like images on the WooCommerce store front.

    I’ve tried both “Methods” of deploying the forums with the same result.

    https://staging.sansevieria-international.org/forums/users/admin

    #219171
    Robin W
    Moderator

    first thing I would do is break this into separate functions

    add_filter( 'generate_smooth_scroll_elements', 'th_scroll' ) ;
    
    function th_scroll ( $elements ) {
      $elements[] = 'a[href*="#"]:not(.wp-show-posts-read-more)';
      return $elements;
    }
    elliesatt
    Participant

    I’ve implemented a smooth-scrolling snippet from GeneratePress as documented here: https://docs.generatepress.com/article/generate_smooth_scroll_elements/

    The exact snippet code I use is this:

    add_filter( 'generate_smooth_scroll_elements', function( $elements ) {
      $elements[] = 'a[href*="#"]:not(.wp-show-posts-read-more)';
      
      return $elements;
    } );

    This works for everything on my main site (blog) but does not seem to work for my bbpress forum. I’ve reached out to GeneratePress and got this response:

    Hmm I’m not sure why that’s not working unfortunately.

    You will need to check with bbPress’ support to see if there is anything from their plugin that’s blocking the code from being executed.

    Do you have any ideas on how to solve this? Many thanks in advance!

    An example URL: https://300hours.com/forum/cfa/level-2/

    #219134

    In reply to: Forums Not WOrking

    bodcandidate
    Participant

    New Information:

    The forum page is viewable using the shortcode [bbp-forum-index].

    When I click on main forum page I can see forums listed as before. When I click on a forum title link as bfore I get this message:

    Oops! That page can’t be found.
    It looks like nothing was found at this location. Maybe try a search?

    Search for:
    Search …

    #219131

    Topic: contact Form

    in forum Installation
    stevendrew
    Participant

    Hi, still setting things up here…

    I was just wondering if there was a shortcode or something to add a contact for to my forum?

    My site just has a contact page already created, with the text: [contact-form-7 id=ā€4″ title=ā€Contact Formā€]. But I don’t see that plugin installed.

    I would prefer to add a contact form / widget natively if possible. If not, is contact form 7 plugin the way to go?

    Thanks guys!

    #219073
    raja123a
    Participant

    @egyptimhotep
    Forum title remains numeric

    Below is the code in single.php

    <?php if ( have_posts() ) : ?>
    	<?php while ( have_posts() ) : the_post(); ?>    
    	
    		<div class="article">
    			<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>			
    			<?php the_content(); ?>	
    			<h2>Forum: <?php echo basename(get_permalink()); ?></h2>
    			<?php 
    			$post = get_post(get_the_ID());
    			$mypost = get_page_by_title(get_the_ID(),OBJECT,'forum');
    			echo do_shortcode( '[bbp-single-forum id='.$mypost->ID.']' ); ?>
    		</div>
    
    	<?php endwhile; ?>
    <?php endif; ?>

    It would be great if you could help me find, where i made a mistake šŸ™‚

    #219027

    In reply to: Topics not showing

    Robin W
    Moderator

    ok, several ways to go about it, these are in no particular order

    a ) as it is a paid theme with presumably support – ask the theme provider – most will say it is out of scope, but occasionally you get lucky.

    b) see this link – item 8

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

    c) this plugin is old but still works, and lets you try different theme templates to see if they work better

    bbPress WP Tweaks

    #219007
    tw2021
    Participant

    Hi Robin,

    Would you be able to assist with this. I have got the code that i would like to change the min height so that the option in the drop down box fits nicely.

    on the Topic Type and Topic Status drop down box, the font of the drop down selection is way too big and it looks cut off.I want to make sure the selection eg. ā€œNormalā€, ā€œStickyā€ etc fits nicely in the drop down box

    #bbpress-forums fieldset.bbp-form input[type=text], #bbpress-forums fieldset.bbp-form select
    {
    min-height: 35px;}

    I tried with ! important and it doesnt fix the formatting. Not sure why. I inserted this in the css section in bbstyle pack.
    Thanks

    #218996
    juventino199
    Participant

    Hi, Robin thank you for your reply,

    is there a way to add in a background refresher then? Maybe the form of an external plugin etc? Or some code that will automatically refresh the page without the user knowing?

    If not then don’t worry but if there is a way, (and it’s not free work) I am happy to pay!

    #218992
    Robin W
    Moderator
    #218943
    kaanair
    Participant

    I would like change avatar style for media….480px responsive design which I attached screenshots.I use custom theme on my local server.I tried some of code in stylesheet but didn’t worked.
    Default code about avatar and author section

    #bbpress-forums li.bbp-body div.hentry {
        display: block;
      }
      #bbpress-forums li.bbp-body div.bbp-topic-author,
      #bbpress-forums li.bbp-body div.bbp-reply-author {
        -ms-flex-align: start;
            align-items: flex-start;
        width: 100%;
        margin: 0 0 16px;
        padding: 0 0 16px;
        border-bottom: 1px solid var(--color-divider);
        box-sizing: border-box;
      }
      .vikinger-forum-reply-author {
        -ms-flex-align: start;
            align-items: flex-start;
            
      }
    }

    #218941
    Robin W
    Moderator

    ok, this raises a number of questions, but let’s start with

    You talk about a sidebar, but I cannot see this in the code sent to the screen. How are you adding the sidebar to your forums page?

    I’d suggest that instead of rendering a register form on the sidebar, you have the login widget which has a register link on it, which you can direct to a register page with the register shortcode on it.

    #218920
    Robin W
    Moderator

    hmmm…

    Titles are not put in that part as default – bbpress uses the theme/page to do that, so I would not expect to see an <h2> tag after the <div id="bbpress-forums" class="bbpress-wrapper">

    do you have a theme or plugin that is altering bbpress display?

    Themes

    As a test switch to a default theme such as twentytwenty, and see if this fixes.

    Plugins

    If that doesn’t work, also deactivate all plugins apart from bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    If you cannot do this to your site (say because it is live) then use the ‘troubleshooting’ features of this plugin to let you test without affecting other users

    Health Check & Troubleshooting

    Then come back

    #218915
    r083r7
    Participant

    I wish I could but the way that bbPress has implemented the CSS there is no middle.

    Please review the screenshots I took

    Index page with forum title
    https://monosnap.com/file/tKb4Y6GEkWf2GUMB88ghljeprh37Nt

    Topic page with topic question
    https://monosnap.com/file/M3hhJhX7wW4on9Ym2s4ecMcFqmjHOj

    This is the code that bbPress outputs for both the index page and topic page title

    <div id="bbpress-forums" class="bbpress-wrapper">
    <h2>main forum topipc</h2>

    If I get rid of one I get rid of the other one šŸ™

    Still searching for a solution.

    #218913
    neon67
    Participant

    write the css selector #bbpress-forums ???? h2 more precisely – there will be a difference

    #218912
    neon67
    Participant

    in the menu (after installing bbpress) Nothing will appear – you must create and customize the menu yourself.
    Or use bbpress shortcodes for home page.

    Robin W
    Moderator

    untested but this should do it

    add_filter ('bbp_current_user_can_publish_topics' , 'rew_disallow_anon') ;
    
    function rew_disallow_anon ($retval) {
    	if ( ! is_user_logged_in() ) $retval=false ;
    return $retval ;
    }
    neon67
    Participant

    How to allow unauthorized users to post replies in threads only, but disallow new topics?
    There is a check-box in the forums tab – “Allow unauthorized users to create replies in topics.”
    But when I turn on, anonymous can create both: replies and new topics also ((

    How to split this permission? maybe code in functions.php…

    Thanks šŸ™

Viewing 25 results - 1,776 through 1,800 (of 32,446 total)
Skip to toolbar