Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 8,501 through 8,525 (of 32,519 total)
  • Author
    Search Results
  • #163411
    project_subdomain
    Participant

    got it to work with some messy beginners’ change of content-single-user.php right after <div id="bbp-user-wrapper"> with:

    <?php if ( bbp_is_single_user_profile()       ) bbp_get_template_part( 'user', 'details');  ?>
    <?php if ( bbp_is_single_user_profile()       ) bbp_get_template_part('user', 'profile'); ?>
    
    <?php bbp_get_template_part( 'user'); ?>
    
    		<div id="bbp-user-body">
    			<?php if ( bbp_is_favorites()                 ) bbp_get_template_part( 'user', 'favorites'       ); ?>
    			<?php if ( bbp_is_subscriptions()             ) bbp_get_template_part( 'user', 'subscriptions'   ); ?>
    			<?php if ( bbp_is_single_user_topics()        ) bbp_get_template_part( 'user', 'topics-created'  ); ?>
    			<?php if ( bbp_is_single_user_replies()       ) bbp_get_template_part( 'user', 'replies-created' ); ?>
    			<?php if ( bbp_is_single_user_edit()          ) bbp_get_template_part( 'form', 'user-edit'       ); ?>
    			
    		</div>
    	</div>
    </div>

    may need new css-styling.

    Could anyone tell me, how to improve the coding part to avoid the repetition of
    <?php if ( bbp_is_single_user_profile() ) bbp_get_template_part('user', ' ?

    #163407

    In reply to: Plugin v. built-in

    mycon
    Participant

    Thanks @Robkk

    I have a couple more regarding registration and login. In both instances, how can I control the page the user goes to after successful login?

    I am using WordPress 4.2.2 running Jupiter theme and using bbpress login shortcode on a page.
    (currently it stays on same login page with a successful login message)

    Any assistance is greatly appreciated.

    Thanks

    #163406
    Robkk
    Moderator

    Twenty Fifteen had something similar to that issue.

    The resolution to the issue in Twenty Fifteen was to follow to copy all the bbPress templates from the plugin to your child theme in a folder called bbpress.

    https://codex.bbpress.org/theme-compatibility/

    #163401
    mycon
    Participant

    I have these exact questions, so thank you Robin!

    I have a couple more regarding registration and login. In both instances, how can I control the page the user goes to after successful login?

    I am using WordPress 4.2.2 running Jupiter theme and using bbpress login shortcode on a page.
    (currently it stays on same login page with a successful login message)

    Any assistance is greatly appreciated.

    Thanks

    #163389
    daniel84uk
    Participant

    Using latest version of all plugins.

    So i am wanted to disable all forum notifications, as i get endless new reply notifications.

    I have removed all code from the file

    /bbpress/includes/extend/buddypress/notifications.php

    leaving only <?php

    Which after testing seems to do what i want.

    I realise this isnt the correct method, can anyone point advise me on the proper way to do this, do i use a series of remove_actions ?

    Thank you 🙂

    #163382
    Robkk
    Moderator

    try these troubleshooting steps.

    Troubleshooting

    #163379
    Robkk
    Moderator

    I see you are using something different from the default bbPress registration shortcode.

    Did your own issue??

    #163378
    Robkk
    Moderator

    In some themes this may be just tossing the bbPress templates in a folder called bbpress in a child theme to fix this.

    https://codex.bbpress.org/theme-compatibility/

    You might also have to modify the main bbPress template .

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #163372
    Robkk
    Moderator

    This is a common issue

    Your theme may think that the bbPress forum pages are a blog post and displays it in excerpt form.

    This guide usually helps users fix this.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    Need any help with this reply back.

    If you can think of any improvement for the guide, then tell me some suggestions on how to improve it.

    #163370

    In reply to: Plugin v. built-in

    Robkk
    Moderator

    If you want to develop it manually you can use any of these conditional tags for bbPress and WordPress.

    bbPress Conditional Tags


    https://codex.wordpress.org/Conditional_Tags

    or you can use a plugin like

    • Restrict Widgets
    • Widget Logic
    #163369
    Robkk
    Moderator

    Well there might be other ways , but it would be more complicated.

    The guide just says

    Find the file bbPress is using (use What the File)
    Copy and rename the file to bbpress.php (use FTP)
    Edit the file to your liking. (use a code editor like notepad++)

    The edit the file part may seem complicated but it is really quite easy , and I would help you out on this part.

    If you want find the file bbPress is using and copy the content in the file to a gist.

    https://gist.github.com/

    After that I will post a link to a gist to help you out.

    #163368

    In reply to: Something Wrong

    Robkk
    Moderator

    That guide was for earlier version of bbPress ,it might be archived later for a new guide to take its place.

    The following is written for version 2.2 of the bbPress WordPress plugin. Information in this tutorial may not be applicable to earlier or subsequent versions of the plugin.

    See if the creating a theme section would help you.

    Right now there is really just some placeholder links and text that I just wrote up real quick , so this guide might be improved in some later days.

    It should help you create a child theme, understand what is usually in a theme. and how to customize it to your needs.

    Customizing

    #163360
    Robkk
    Moderator

    It should do this by default , if you haven’t already try these troubleshooting steps especially the plugin issue steps.

    Troubleshooting

    If nothing works contact your theme author

    #163353
    BBIndikator
    Participant

    It’s really strange. After the post is submitted (and as long as status is pending), the topic is included in the users subscriptions: (var_dump on wp_footer)

    bbp_get_user_subscribed_topic_ids( $reply_author_id );

    bbPress Moderation uses the hook “pending_to_publish” to send an Info to all subscribed users that this new reply is published:

    function pending_to_publish( $post )
    {
       ...
       bbp_notify_topic_subscribers( $reply_id, $topic_id, $forum_id );
    }

    If I add this:

    bbp_get_user_subscribed_topic_ids( $reply_author_id );

    into this function before or below “bbp_notify_topic_subscribers” and write a var_dump to a separate file, the topic-id is still inside the topic-id-array during the publish process ( {old}_to_{new} ).

    But if I var_dump this array directly afterwards (frontpage: page reload –> wp_footer ), the id isn’t still in there (email fails if I post with another user).

    It seems that anything erase this specific topic-id for this specific reply-author between publish and the next page load. All other topic-ids are still in this array..?

    To add it manually to the hook ‘publish_reply’ with this bbp-function doesn’t work:

    bbp_add_user_topic_subscription( $reply_author_id, $topic_id );

    Has anybody an idea why this can happen?

    As long as the reply isn’t publish, everything works right with the subscription. It’s also possible to manually add this user to this specific topic after the reply is published. But if this user send a new post for this topic, the topic-id is erased inside the subscription array after publishing..

    No caching is active…

    #163350
    Robkk
    Moderator

    Enable Visual Editor

    TinyMCE Advanced allows you to include alignment buttons.

    You might need this code, because bbPress does not support all html for participant users that TinyMCE Advanced may use for its buttons.

    https://gist.github.com/robkk/788f75d47466c74e5340

    Robkk
    Moderator

    trying to get the feature image funtionality on front end so user can have the option to upload image about the Topic

    This sounds like custom development , you might need a developer to do this type of thing.

    get the feature image on Widget “Forum list” Default widget of BbPress plugin

    You would need to create a new “Forums list” widget mostly based off the original bbPress default widget.

    Then use get_the_post_thumbnail to render your featured images

    https://codex.wordpress.org/Function_Reference/get_the_post_thumbnail
    https://codex.wordpress.org/Post_Thumbnails

    #163342
    Robkk
    Moderator

    This is a common issue. Your theme is just rendering bbPress as a blog post

    You need to create a bbpress.php for your site to fix this.

    https://codex.bbpress.org/theme-compatibility/getting-started-in-modifying-the-main-bbpress-template/

    #163341
    Prabin
    Participant

    Hi there,

    I am using both bbPress and buddyPress plugins in my site and I want this feature:

    any logged in user can vote to the topics/replies and using shortcode or any trick, I want them
    to show-up in certain page. I looked up most of the plugins in wordpress but couldn’t find my match.

    Any help ?

    ashu2106
    Participant

    i m trying to get the thumbnail of topic to show on Widget “Forum list”
    what i m trying to achieve are

    1. trying to get the feature image funtionality on front end so user can have the option to upload image about the Topic
    2. get the feature image on Widget “Forum list” Default widget of BbPress plugin

    i m not developer, as i have feature image in admin using some code found here.
    Please provide some suggestions

    looking for quick reply, as i have to use this feature in website.
    thanks

    #163335
    Robin W
    Moderator

    the code should still work.

    Try

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

    there is a setting in forum display that should do the same function

    #163332
    sanjaynakate
    Participant

    Finally i have got the answer.
    Bellow are the step.
    1) Get user current user id.

    <?php $user_id = get_current_user_id(); ?>

    2)set new user forum role you wish to change

    <?php $new_role_forum_role="bbp_participant"; ?>

    3)fire function.

    <?php bbp_set_user_role( $user_id, $new_role_forum_role );?>

    now check your user in back end and see forum user role.

    Full snippet code

    <?php
    $user_id = get_current_user_id();
    $new_role_forum_role=”bbp_participant”;
    bbp_set_user_role( $user_id, $new_role_forum_role );
    ?>

    #163329
    u_Oi
    Participant

    Hi People!

    Please, some help to solve this:

    1. I would like to have the code to center text, images, and things in the editor of bbpress. Any idea? (If i write <center></center> in the editor the text after the code change their size :/ ).

    2. Simple, how can i add a double space to text in the editor? (if i tap a double enter, it should show a double space)

    Wordpress 4.2.2
    Bbpress 2.5.7

    Thank You!

    #163320
    subz
    Participant

    What is the shortcode for listing all topics belonging to two or more forums (multiple forum ids)??

    #163318
    lisigef
    Participant

    I copied the code in https://codex.bbpress.org/layout-and-functionality-examples-you-can-use/#16-adding-description-to-forum-pages but there seems to be a problem with it and I’m just getting a blank page when I try to view the forum (When I comment out the code, the page shows up again, but of course without the description).

    I added the code to functions.php – is it supposed to go somewhere else? IS there some update needed to this code, given that it is a year later?

    Thanks in advance!

    #163310
    nap14hockey
    Participant

    When I use the bbpress index shortcode, it shows only the first 3.5 forums (notice I said 3.5 because the 4th one only the title is shown. I have 7 forums, and I need them to display on the forums page?

    Thanks
    Nap14hockey

Viewing 25 results - 8,501 through 8,525 (of 32,519 total)
Skip to toolbar