Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 376 through 400 (of 32,294 total)
  • Author
    Search Results
  • #237080

    In reply to: Several questions

    Robin W
    Moderator

    no problem.

    on no. 3 there is a bbpress profile and a wordpress profile. Other plugins may also add their own profile pages.

    If it is not the bbpress profile page you want it to go to, then do come back, I can probably give you some code.

    #237078

    In reply to: Several questions

    eefkedigibitch
    Participant

    Hi Robin,
    Thanks again for your help!

    On. no 4
    Yes, it got rid of the home / Yes the page is .com/forum and yesy it’s set with the shortcode.
    I tried a totally different URL like facebook, but it keeps directing me to .com/forumS with the extra s on the end.
    I also tried to set the Forum Root slug to forum instead of forums, but that didn’t work the first time. Now I did that again and it does work! So it’s fixed now.
    Conclusion; the root slug needs to be the same as the page name. Actually kinda logical, hihi…

    On no. 3
    Never mind I’ll find my way I got confused I think.

    So again, Robin you’re the best!
    Thanks for helping me!

    #237073

    In reply to: Several questions

    Robin W
    Moderator

    on no. 4

    So style pack got rid of the home – yes ? that shows that it is doing something.

    So you have a page with a permalink of forum? yes?
    With presumably the [bbp-forum-index] shirtcode in it – yes ?

    and you have set the breadcrumb root to …com/forum. As a test can you try setting this to

    https://www.facebook.com/

    and see if it takes you to facebook

    This will tell us if style pack is executing the link, but something else in your site is redirecting.

    #237066

    In reply to: Forum default

    newtech1
    Participant

    Thank you for the clarification of the analogy. Yes, that certainly makes sense, and I certainly would like to just use the car. BUT no one has been able to help me make ACF plugin to work on the frontend. ACF has me going to bbpress and bbpress has me going to ACF. (The code that is working great on the backend I have not been able to work on the front end. Spent hours upon hours trying to this.

    What I do not understand is why an admin/moderator would ever want a topic to fall under the category of no forum. If nothing else I will figure out a way to just make it so the first option has no words so the poster sees it looks strange, and/or find a way to add additional text below it to tell them to choose the Fishing Report Forum. (I will be giving each new user an instruction pages but I can see many topics going into la la land.

    Thanks for what you do at the kitchen table. I will deal with the train. 🙂

    #237065

    In reply to: Forum default

    Robin W
    Moderator

    because I am feeling in a good mood, I did a bit of searching.

    There is a way, but you have to edit a bbpress file.

    so go to

    \bbpress\includes\admin\metaboxes.php

    and remove line 445 which says

    'show_none' => esc_html__( '— No forum —', 'bbpress' ),

    and save it back

    You will need to do this again if bbpress issues an update, but those are few and far between.

    #237062

    In reply to: Forum default

    Robin W
    Moderator

    the car/train analogy was you using the backend for frontend tasks 🙂 The backend is designed for admins not users.

    Any code can be changed, but I’m just a guy sat in his kitchen trying to help others and only so much I can do, and spending several hours working out how to achieve this is beyond my current resources – sorry.

    #237059

    In reply to: Forum default

    newtech1
    Participant

    I only have one forum. It is called Fishing Report Forum. It makes no sense to me when you go into Topic Attributes why there is even an option for __ No forum ___ under Forum:

    If you are creating a topic in a bulletin board/forum why would it not go into a forum instead of no forum.

    There is no way in code to remove the ___No forum___ option under Topic Attributes?

    My car has always been Fishing Report Forum and never No forum, so want to stick with my Fishing Report Forum car, not go to a train. 🙂

    #237056

    In reply to: Problem adding table

    Robin W
    Moderator

    Ok, I tried to look, but cannot see any obvious fix for this, I’m not sure how the code is working that sends this – sorry I’m not able to help further.

    #237052
    Robin W
    Moderator

    it can be combinations, so yes, I want to eliminate that.

    Given that at the moment I have the problem as :

    On registration:

    worpdress has no role
    bbpress has participant role

    so you need subscriber role to be set

    then I am struggling to see how bbpress is ‘unsetting’ the subscriber role.

    #237031
    Robin W
    Moderator

    Now I have to edit the file

    ok so you have already put :

    function rkk_widgets_init() {
     
        register_sidebar( array(
            'name' => __( 'bbPress Sidebar', 'rkk' ),
            'id' => 'bbp-sidebar',
            'description' => __( 'A sidebar that only appears on bbPress pages', 'rkk' ),
            'before_widget' => '<aside id="%1$s" class="widget %2$s">',
            'after_widget' => '</aside>',
            'before_title' => '<h3 class="widget-title">',
            'after_title' => '</h3>',
        ) );
        }
     
    add_action( 'widgets_init', 'rkk_widgets_init' );

    into your child theme functions file – yes ?

    and then did this

    I chose the left-sidebar-page.php of my theme, copied it into my child theme and replaced <?php get_sidebar(); ?> with <?php dynamic_sidebar( ‘bbp-sidebar’); ?>. Because I read this in another topic of a theme salient user.

    which replaces the second part of 26, as you have chosen the left-sidebar rather than just sidebar

    yes ?

    so what exactly are you stuck on?

    #237025
    eefkedigibitch
    Participant

    Hi there,

    I’m trying to create a specific sidebar in my website. I’ve been reading about it in this forum and I’m following step 26 of the article ‘Layout and functionality – Examples you can use’.
    What I did so far;
    1. I added the code to register the sidebar in my functions.php of my child theme.
    2. I chose the left-sidebar-page.php of my theme, copied it into my child theme and replaced <?php get_sidebar(); ?> with <?php dynamic_sidebar( ‘bbp-sidebar’); ?>. Because I read this in another topic of a theme salient user.
    Now I have to edit the file like the example that’s mentioned in the article, but I don’t understand it. So this is where I get stuck.

    Can someone please help me?! I’d really appreciate it!

    Kind regards,
    Eve

    Ps. My website has a shop and LearnDash courses. The forum is meanly for the course participants and should be connected to the specific LearnDash courses. The theme I’m working with is Salient. The only other sidebar I have is the woocommerce sidebar.

    #237008
    juanm777
    Participant

    Hi,

    I am using the WP mail SMTP – Plugin, and bbpress is not sending emails (notifications) through this plugin.

    After searching on the web, I found a similar issue on BuddyPress,

    Buddypress registration ignoring WP Mail SMTP

    They solved it with this code:

    add_filter(‘bp_email_use_wp_mail’, ‘__return_true’);

    Is there a similar procedure for bbpress?

    Thanks

    Juan

    #237005
    newtech1
    Participant

    I understand completely. Makes sense.
    I will have to find a plugin that makes it so I can limit permissions and capabilities per user role.
    There is Permissions Pro and Capabilities Pro plugins that give me all that I need but sadly they do not support ‘topic’ posts. Do you know of any other plugins?

    BTW
    I have ACF to work great for me in the backend. All I need to do is put this code in content-single.php Maybe this will help somebody else who is using ACF with BBPress
    `?>
    YOU CHOOSE HOW MUCH INFORMATION YOU ENTER<br>
    Catch Date & Time: <?php the_field( ‘catch_date_time’ ) ; ?><br>
    Anglers: <?php the_field( ‘anglers’ ) ; ?><br>
    Weather: <?php the_field( ‘weather’ ) ; ?><br>
    Fish Caught: <?php the_field( ‘fish_caught’ ) ; ?><br>
    Kept or Released: <?php the_field( ‘kept_or_released’ ) ; ?><br>
    Lake Point Marker: <?php the_field( ‘lake_point_marker’ ) ; ?><br>
    Water_Features: <?php the_field( ‘water_features’ ) ; ?><br>
    Speed: <?php the_field( ‘speed’ ) ; ?><br>
    Fish Depth: <?php the_field( ‘fish_depth’ ) ; ?><br>
    Lake Depth: <?php the_field( ‘lake_depth’ ) ; ?><br>
    Method Used: <?php the_field( ‘method_used’ ) ; ?><br>
    Lure & Color: <?php the_field( ‘lure_color’ ) ; ?><br>

    Image:
    <?php
    $image = get_field(‘image’);
    if( !empty( $image ) ): ?>
    ” alt=”<?php echo esc_attr($image[‘alt’]); ?>” />
    <?php endif; ?> <br>

    <br>
    <br>
    Fishing Location: <?php the_field( ‘location’ ) ; ?><br>
    <?php
    $location = get_field(‘location’);
    if( $location ): ?>
    <div class=”acf-map” data-zoom=”13″>
    <div class=”marker” data-lat=”<?php echo esc_attr($location[‘lat’]); ?>” data-lng=”<?php echo esc_attr($location[‘lng’]); ?>”></div>
    </div>
    <?php endif; ?>

    <style type=”text/css”>
    .acf-map {
    width: 100%;
    height: 400px;
    border: #ccc solid 1px;
    margin: 20px 0;
    }

    If there was a way to make this code or another code to work in the frontend posting topics I would be thrilled to death. BUT ACF will not help me for BBPress and BBPress will not help me for ACF. If I knew code more I am sure I could figure it out. It cannot be that hard.

    #237001
    newtech1
    Participant

    My forum is set up so that a forum user can only post in the backend/dashboard of my wordpress site because I never was able to get ACH plugin to work on the forum frontend. On the backend the ACF is working fantastic when a user posts a new topic.

    However, the new issue is that the only way a forum user can see the topic link in the dashboard is if they are a moderator or higher. My users will not be moderators but participates. Is there a way via code to make it so participants can log into the dashboard and see the topic link.
    http://www.thedoverfamily.com/images/topics_link.jpg

    #236992
    waprothero
    Participant

    Robin:
    Following your simple instructions for a snippet, I just wanted to check to make sure I’m making the test you suggested (thanks, btw):

    Snippet Content, using wpCode snippet plugin:

    add-action(‘plugins_loaded’,’rew_remove_bbp_role’);
    function rew_remove_bb_role'(){
    remove_action( ‘bbp_user_register’,’bbp_user_add_role_on_register’,10,1);
    }

    Snippet location: Universal Snippet

    Is this correct?

    #236982

    In reply to: Hide posts number

    newtech1
    Participant

    Update:
    I put the following code in the customized css for one website and it removed the Voices column, but on another website it did not remove the voices column. Yes, I cleared all cache and used GeoPeeker to make sure it was not a cache issue.
    `li.bbp-topic-voice-count {
    display: none !important;
    }

#236981
newtech1
Participant

I thought another solution was to just put the shortcodes in the wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php file but the shortcodes do not work.

#236980
newtech1
Participant

I am wanting my bbpress tags and bbpress search input form to display on my forum main page just below the bread crumbs.
This is what I understand to do.
A. Copy my page.php template from by theme folder. (..//wp-content/themes/fishingclub)
B. Rename it bbpress.php and upload to the theme folder.
(I do this and the forum main page displays properly.)
Here is the page,php code:

<?php
/**
 * The template for displaying all single pages
 *
 * @package WordPress
 * @subpackage FISHING_CLUB
 * @since FISHING_CLUB 1.0
 */

get_header();

while ( have_posts() ) { the_post();

	get_template_part( 'content', 'page' );

	// If comments are open or we have at least one comment, load up the comment template.
	if ( !is_front_page() && ( comments_open() || get_comments_number() ) ) {
		comments_template();
	}
}
get_footer();
?>

C. Since I want to display bbpress tags and bbpress I need to put these shortcodes in the bbpress.php template: [bbp-topic-tags] and [bbp-search], BUT the page crashes no matter where I put the shortcode.
D. I assume I must put some kind of coding before and after the shortcode. No idea what I need to do.

#236979
newtech1
Participant

I have removed the column titled ‘voices’ by this code in custom css:

li.bbp-topic-voice-count {
    display: none !important;
}

I want to hide the column with the title ‘Posts’. Is there a way to do this also via custom css?

#236976
Robin W
Moderator

ok, for the moment, I’d suggest you add the code snippets plugin, that gives you an area to put it in.

That will let us test to get to a problem definition.

Once we know if this (or something else) is the solution, then we can get it into the right place, but I would prefer to be sure that the code is functioning so code snippets gives that certainty

#236975
waprothero
Participant

Robin, thanks for your response. I’m out of town until Monday and will try out your suggestions then. Some quick question tho. I’m an experienced programmer, but not with wordpress. I’m unclear where to insert these code items. So….
_———-here’s your suggestion
so use this code

—where do I add this this.. To the bbPress functions file?
add_action (‘plugins_loaded’ , ‘rew_remove_bbp_role’) ;

function rew_remove_bbp_role () {
remove_action( ‘bbp_user_register’, ‘bbp_user_add_role_on_register’, 10, 1 );
}

Put this in your child theme’s function file –
I am guessing this goes in wp initiation file.

ie wp-content/themes/%your-theme-name%/functions.php

where %your-theme-name% is the name of your theme

#236974
Robin W
Moderator

as a test, let’s stop it adding the forum role on registration to see if that is interfering.

so use this code

add_action ('plugins_loaded' , 'rew_remove_bbp_role') ;

function rew_remove_bbp_role () {
	remove_action( 'bbp_user_register',   'bbp_user_add_role_on_register', 10, 1 );
}

Put this in your child theme’s function file –

ie wp-content/themes/%your-theme-name%/functions.php

where %your-theme-name% is the name of your theme

or use

Code Snippets

and then let me know if this makes a difference

#236973
Robin W
Moderator

ok, but it is the equivalent of asking me to diagnose the strange sound of your car by sending me a photo of the engine. A link lets me see what code is being sent to the browser.

Topics are typically greyed when they are closed – what state is this topic, and have you tried creating others to see if it is juts this one, or all topics are doing it?

#236957

In reply to: Prevent topic replies

Robin W
Moderator

and with this one try

content-single-topic.php

and remove the line

<?php bbp_get_template_part( 'form', 'reply' ); ?>

#236956
Robin W
Moderator

ok, not quite sure why, but in that case

find
wp-content/plugins/bbpress/templates/default/bbpress/content-single-forum.php

transfer this to your pc and edit

take out the line

<?php bbp_get_template_part( 'form', 'topic' ); ?>

which is in twice, so remove 2 times

and save

create a directory on your theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpress

where %your-theme-name% is the name of your theme

Then transfer the file you saved above and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/content-single-forum.php

bbPress will now use this template instead of the original

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