Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 5,551 through 5,575 (of 32,518 total)
  • Author
    Search Results
  • #180815

    In reply to: Font-Size

    figoo
    Participant

    The code you wrote didn’t work, but your plugin does. Almost exzellent šŸ˜€

    I have a different question, and I know many post becouse of this issue exist.
    But none of them got me to a resolution.

    How can I use the full width for my forums? At the homepage of my forumsite it works nice, but as soon as I click on a Forum the disgusting sidebar comes from the right. I tried copying the page.php an rename it to bbPress.php and remove all things that have to do with sidebars. That didn’t work.

    Here is the code:

    <?php
    /**
     * The template for displaying all pages.
     *
     * This is the template that displays all pages by default.
     * Please note that this is the WordPress construct of pages
     * and that other 'pages' on your WordPress site will use a
     * different template.
     *
     * @package Sydney
     */
    
    get_header(); ?>
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', 'page' ); ?>
    
    				<?php
    					// If comments are open or we have at least one comment, load up the comment template
    					if ( comments_open() || get_comments_number() ) :
    						comments_template();
    					endif;
    				?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</main><!-- #main -->
    	</div><!-- #primary -->
    
    <?php get_footer(); ?>
    #180810

    My guess is the cookie hashes probably changed.

    Make sure that all of your cookie settings in wp-config.php actually match what you want/need for them to be. If you need to share cookies across many subdomains, you’ll need a . at the beginning of them.

    // Domain & Hash
    define( 'COOKIE_DOMAIN', '.domain.com'        );
    define( 'COOKIEHASH',    md5( COOKIE_DOMAIN ) );
    
    #180804
    TheDream18
    Participant

    I used both of theme.
    I used this code work. I think you help correct this code will be perfect.

    Issue 1:
    First load edit page complete, after that 2 second, reload direct to example.com

    add_action( ā€˜bbp_user_edit_before’, ā€˜pb_custom_bbpress_edit_profile’ );
    function pb_custom_bbpress_edit_profile(){
    echo ā€˜<meta http-equiv=ā€Refreshā€ content=ā€0;url=http://example.comā€ />’;
    }

    #180799
    TheDream18
    Participant

    I added code to function.php child-theme. But no work. When click on edit profile still linked correct edit page

    #180797
    Robin W
    Moderator

    add_filter( 'bbp_get_user_edit_profile_url', 'http://example.com');

    should do it

    #180793
    TheDream18
    Participant

    Can you give me complete code please? I’m not developer, i just collect code somewhere and posted and try on. ^^

    #180792
    Robin W
    Moderator

    probably the easiest is to filter the edit profile call

    bbp_get_user_edit_profile_url

    held in

    includes/users/template.php

    it has

    return apply_filters( 'bbp_get_user_edit_profile_url', $url, $user_id, $user_nicename );

    so an ‘add_filter’ on that should work nicely

    #180788

    In reply to: Font-Size

    Robin W
    Moderator

    it may be that your theme is overwriting it (or it could be lots of other reasons !)

    try

    
    #bbpress-forums {
    font-size: 16px !important ;
    }

    or use my style pack, which will let you style fonts and much more

    https://wordpress.org/plugins/bbp-style-pack/

    #180775

    Topic: Font-Size

    in forum Installation
    figoo
    Participant

    bbPress version: 2.5.11
    My Site: http://figoocraft.de/forum-3/
    Theme: Sydney

    Hello everyone,
    I am trying to change the size of my font in bbPress.I tried editing the bbpress.css file in: content/plugins/bbpress/templates/default/css
    First I edited the Size of the bar that holds the topics, that worked perfectly.

    Then I tried to edit the overall size of all fonts, so I changed:

    #bbpress-forums {
    font-size: 12px;
    }
    

    To:

    #bbpress-forums {
    font-size: 16px;
    }

    That didn’t change anything, so I tried to copy the bbpress.css to my themes directory as that’s what’s mentioned in the documentation. That neither changed anything, so now Im wondering what am I doing wrong?

    #180774
    mth75
    Participant

    @johnjamesjacoby

    In the meantime I migrated the second beta to my live site, http://www.starry-night.nl

    I noticed (after the migration) that trashing a topic WITHOUT replies leads to my WP: Not Found page. So the handling could be improved there (or a bug entered the code).

    When trashing a topic with replies BBPress jumps to what looks my first topic (BBPress) entries.

    All and all, very nice upgrade, I can’t say the BBPress runs real faster (yet).

    #180771
    TheDream18
    Participant

    Can anyone help with correct code? I want complete user click edit profile will direct 100% go to custom page like normal without any issue

    Issue 1:
    First load edit page complete, after that 2 second, reload custom page

    add_action( ‘bbp_user_edit_before’, ‘pb_custom_bbpress_edit_profile’ );
    function pb_custom_bbpress_edit_profile(){
    echo ‘<meta http-equiv=”Refresh” content=”0;url=http://example.com” />’;
    }

    Issue 2:
    No work

    add_filter( ‘bbp_pre_get_user_profile_url’, function() {
    return get_bloginfo(‘example.com’).’/profile’;
    });

    Issue 3:
    Still load edit profile link without load custom like. But given blank page, no error no warning, just empty link page

    add_action( ‘bbp_user_edit_before’, ‘pb_custom_bbpress_edit_profile’ );
    function pb_custom_bbpress_edit_profile(){
    echo ‘‘;
    }

    ==============
    Also change the default url for favorites and subscriptions by doing this:
    How can i correct it?

    // Replace the default link for the favorites
    add_filter( ‘bbp_get_favorites_permalink’, function() {
    return get_bloginfo(‘example.com’).’/profile/forum-favorites’;
    });

    // Replace the default link for subscriptions
    add_filter( ‘bbp_get_subscriptions_permalink’, function() {
    return get_bloginfo(‘example.com’).’/profile/forum-subscriptions’;
    });

    =============
    Thanks

    #180765
    Robin W
    Moderator
    #180759
    mth75
    Participant

    It seems that the shortcode: [bbp-topic-index] (which I use as the landing page on my forum and in a few navigation tabs) isn’t working in my 2 test environment installs. Could this be confirmed?

    Confirming the Permalinks (settings) solves the issue in both env.

    #180752

    We use that short code here, too, so it’s working OK for us. I’ll need to look into the links. Possible they moved to an action, or a different template part at some point.


    @senatorman
    – do your database backup first, then swap from alpha to beta, then run the bottom three upgrade tools, for favorites and subscriptions (I forgot about forum subscriptions.)

    #180750
    mth75
    Participant

    @johnjamesjacoby

    @netweb

    He Guys,

    It seems that the shortcode: [bbp-topic-index] (which I use as the landing page on my forum and in a few navigation tabs) isn’t working in my 2 test environment installs. Could this be confirmed?

    Best regards,

    Marc

    #180748
    mth75
    Participant

    @johnjamesjacoby

    After hours of adjusting my bbpress child theme templates, and troubleshooting I found that the favourites and subscription items where still missing … after some more digging I found that:

    <?php bbp_topic_subscription_link(); ?>
    <?php bbp_user_favorites_link(); ?>

    is missing in the loop-replies.php template file. I think this is a oversight? Adding the above two function calls to loop-replies.php make both options appear.

    #180741

    In reply to: Form to forum

    Barry
    Participant

    Notifications would normally be dispatched when the bbp_new_topic action fires.

    In this case, you’d either have to trigger that manually or else call bbp_notify_forum_subscribers() directly (or else craft a manual solution of your own).

    #180737
    TheDream18
    Participant

    Hi my website used bbpress like this box writting here. When i hover the icon appear mixed black+green, i tried to firebug here but i cannot find the correct code hover this website used for this icon.

    Do you have any idea?

    #180723
    TheDream18
    Participant

    Thanks. I used border instead of shadow for now.
    Can you help with button when hover?
    I tried this code. But no work

    #wp-bbp_topic_content-editor-container .mce-container-body .mce-toolbar-grp .mce-container .mce-container-body .mce-container div .mce-widget button:hover
    {color: red !important;}

    #180717
    Barry
    Participant

    On the box-shadow front, you might find a specifier like:

    #wp-bbp_topic_content-editor-container .wp-editor-area

    Provides the specificity you need to apply a box shadow from a custom stylesheet (or custom CSS plugin).

    #180716
    TheDream18
    Participant

    Hi Thank all of you.
    Robin. Code work at middle load, then complete load, it dont work. I leaved it, I used border for simple.
    As Barry said, there is deal with box-shadow in wp-includes/css/editor.css which is not good to direct core change.
    —————-
    I would like to change color icon when hover. Current when hover and none hover icon. fontownsome have black color, but i would like hover change blue color example. Can you please help?

    #180698

    @reedy I’m here if you need help. Can also use the #bbpress channel in WordPress’s Slack instance.

    #180691
    Barry
    Participant

    The WP Codex is a great starting point for learning how to do things like register a custom taxonomy … it comes to mind you might also want to explore plugins like Posts 2 Posts (which would offer an alternative way to go about this task).

    #180680

    In reply to: New topics

    Barry
    Participant

    Something like this ought to do the trick:

    function bbp_add_recent_activity_view() {
    	bbp_register_view(
    		'active',
    		'Active topics',
    		array(
    			'meta_key'      => '_bbp_last_active_time',
    			'meta_type'     => 'DATETIME',
    			'meta_compare'  => '>=',
    			'meta_value'    => date_i18n( 'Y-m-d H:i:s', strtotime( '-1 day' ) ),
    			'max_num_pages' => 1,
    			'orderby'       => 'meta_value_num',
    			'show_stickies' => false
    		) 
    	);
    }
    
    add_action( 'bbp_register_views', 'bbp_add_recent_activity_view' );

    With this in place you should then be able to access a list of ‘active’ topics at:

    example.com/forums/view/active

    In terms of where to add this sort of code, there are a few options. One would be to create a new PHP file (starting with a <?php opening tag) at:

    wp-content/mu-plugins/bbpress-tweaks.php

    #180678
    Barry
    Participant

    Just to add to Robin’s note, the textarea’s box-shadow is set to none by wp-includes/css/editor.css (which uses the same selector as you were using), so getting more specific with your rule is a good way to go here.

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