Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 7,776 through 7,800 (of 32,505 total)
  • Author
    Search Results
  • #167035

    In reply to: Sidebar Help

    Robkk
    Moderator

    Do you want full width forums and just the sidebar placed under the forums??

    If you do remove this part of the CSS code.

    .bbpress .sidebar {
      width: 0;
      display: none;
    }

    i can tell you are also using a full width template from your theme, and of course that will hide the sidebar.

    #167033
    Robkk
    Moderator

    Right after this in the code.

    <?php echo do_shortcode("[bbp-login]"); ?>

    Just add any additional forms you want using similar code like this. Or just add any html links to the pages.

    <?php echo do_shortcode("[bbp-register]"); ?>

    If you need to style them better add a custom class around them.

    #167032
    mica123
    Participant

    Thank you so much both of you – that’s very helpful indeed. I will now have to try and position it on one line. I hope I’ll manage it although it is not easy at all – @dannyfoo you seem to have managed it. Is there any way to add Register and Lost password to the code? Many thanks – I was getting really desperate.

    #167031
    Robkk
    Moderator

    It is in loop-single-topic.php and loop-single-forum.php.

    In the files you will see something similar to this. In this example I am editing the loop-single-topic.php file.

    <span class="bbp-topic-freshness-author">
        <?php bbp_author_link( array( 'post_id' => bbp_get_topic_last_active_id(), 'size' => 14 ) ); ?></span>

    Change it to something like this. You see I just added the extra attribute. 'type' => 'avatar'

    <span class="bbp-topic-freshness-author">
    	<?php bbp_author_link( array( 
                    'post_id' => bbp_get_topic_last_active_id(), 
                    'size' => 14 , 
                    'type' => 'avatar'
                    ) );
           ?>
    </span>

    bbp_author_link

    #167030
    Robkk
    Moderator

    You can create a bbpress.php file in your theme to avoid issues like that.

    Getting Started in Modifying the Main bbPress Template

    #167029
    Robkk
    Moderator

    Place something like this in content-forum-archive.php if you copied it into your child theme to display the login form above the forum archive. You can also place it above single forums by adding this exact code into content-single-forum.php and for topics in content-single-topic.php.

    <?php if ( !is_user_logged_in() ) : ?>
    
        <div class="bbp-forum-login-form">
            <?php echo do_shortcode("[bbp-login]"); ?>
        </div>
    
    <?php endif; ?>
    #167028

    In reply to: Sidebar Help

    wesphily
    Participant

    Robkk,

    Thanks for that. It fixed the space issue. Now I have to figure out how to get a sidebar working.
    I have been trying to do this by going to the page labelled “forums” that has the index shortcode in it and then adding a sidebar that I have created. I then added widgets to that sidebar. I have also tried content aware and bbpress wp tweak. I still can’t get a sidebar to show on the bbpress page. I can get it to show on any other page.

    #167027
    Danny
    Participant

    @mica123 Placing the login form above on the main Forums page created in your WordPress is easy.

    1. Edit your WP page containing [bbp-forum-index]
    2. Include [bbp-login] above that line
    3. Update the page

    And the login form will show above your forum index.

    I’ve not fully experimented placing the login above all the forum pages. Though I think it’s very much possible, and the answer may lie in other forum topics.

    What I could share though is I tried adding <?php echo do_shortcode("[bbp-login]"); ?> to loop-forums.php and loop-topics.php but it didn’t work.

    What happened was the list of forums and topics disappeared.

    I hope this was helpful.

    #167021
    aaron2310
    Participant

    Place the CSS code I gave you your child themes stylesheet or in a separate custom css plugin.

    Hi Rob, it is my theme’s style sheet with changed colour code and it’s not styling.

    The /forums page looks fine now, now it is only the single forums pages. Clear any cache to see if that could fix anything.

    The index was fine – I assume because I filled in description and it’s filled out. Specific board indexes don’t fill to 100% nor do thread pages without much written in the posts.

    #167019
    project_subdomain
    Participant

    I’d like to display the count of all existing replies for one topic like
    “Topic name One (56)”
    where 56 is the amount of replies.

    Is bbp_forum_reply_count() correct for this?

    How could I get the count to a specific menu which had been created through the backend’s design->menu,
    when the menu ID is 2 and the menu item ID of Topic name One is 11 and of Topic name Two is 22?

    Many thanks for any help!

    #167014
    Robkk
    Moderator

    Did you try some troubleshooting first? Check to see if it works fine in a default theme. If it still does not work in a default theme, try to see if a plugin could be causing the issue also by doing the listed steps for troubleshooting a plugin issue.

    Plugin/Theme updates could cause an issue to pop up without it previously being there before.

    Troubleshooting

    #167013
    Robkk
    Moderator

    The enable tinymce visual tab plugin just uses the exact same code in here.

    Enable Visual Editor

    I do not think cache could cause an issue like this.

    It is something that slipped my mind, but it is most likely that paragraph tags are considered restricted HTML for some reason.

    Use and edit this function in the plugin below to your liking.

    https://gist.github.com/ntwb/7797990

    You will most likely need to add this to make it work for participants.

    //paragraph
    'p'          => array(
    	'class'    => true,
    ),

    Admins/Keymasters can post unrestricted HTML because they have the capability to do so.

    #167012
    Robkk
    Moderator

    The only table I think bbPress creates is the one for importing forums/keeping extra imported forum data. Most of the data bbPress has are stored in WordPress tables, but all that data should be gone if you ran the reset forums tools(well except the forum roles).

    Stored Database Data

    If you are looking to delete users you can go into Users > All Users in the WordPress backend and then start bulk deleting users.

    #167007
    Bet Hannon
    Participant

    Yep, while it doesn’t do it when I post, it does print the <p> tags for at least some users–and that part is weird. It looks like this:

    <p>I completely support a focus on...

    I have the plugin “bbPress Enable TinyMCE Visual Tab” running. I haven’t been able to test yet, but the client really does need that full visual editor for their users, so I hope it’s not that.

    I did double-check the plain text filter. Maybe there was a caching issue with respect to the filter? I emptied all the caches just to be sure.

    #167002
    Robkk
    Moderator

    Nevermind I think you have to update to 4x, the other importer is for a much older version of vBull.

    Make sure to have a backup saved before doing an import. You may try doing a backup on a test server also.

    https://codex.bbpress.org/import-forums/vbulletin

    Import Forums

    Import Troubleshooting

    #167000
    Robkk
    Moderator

    The links are like this because that is how it is in your theme.

    You can try this custom css to remove the underline. Place the custom css in your child themes custom css or anywhere else you can place custom css like a plugin or theme.

    .bbpress .post-content a {
        text-decoration: none !important;
    }
    #166999
    Robkk
    Moderator

    You should be able to delete any imported users.

    Deleting bbPress

    If it is a test server, I guess you can always manually delete data using phpMyAdmin and start fresh.

    #166994
    UgoDimma
    Participant

    @Robkk
    Thanks for your support.
    I finally added define( 'WP_DEBUG', true); in my wp-config.php, and I am getting this error report;

    Notice: bbp_setup_current_user was called <stromg>incorrectly. The current user is being initialized without using $wp->inot(). Please see debugging in WordPress forore onformation. (This message was added in version 2
    3.) In ******\blessed\wp-includes a functions.php on line 3622

    Notice: the called constructor method for WP_Widget is deprecated since version 4.3.0! Use
    __construction()
    Instead. In ******\blessed\wp-includes\functioms.php on lime 3457

    Please am sorry to bore you this time again, am not good incoding, how can I resolve this issues

    #166991
    Robkk
    Moderator

    Yeah the code doesn’t really work well.

    You can try to create your own new-topic post class though.

    If you come up with anything just post your result on this topic.

    #166988
    Robkk
    Moderator

    Place the CSS code I gave you your child themes stylesheet or in a separate custom css plugin.

    The /forums page looks fine now, now it is only the single forums pages. Clear any cache to see if that could fix anything.

    #166982

    In reply to: Sidebar Help

    Robkk
    Moderator

    Try to see that you are placing widgets in the right sidebar for it to show on the bbPress pages.

    IF you want full-width forums.

    Try this custom CSS to see if it fixes the empty space and makes your forums actually full width. Place the custom css in your child themes style.css file or in a custom css plugin.

    .bbpress .sidebar {
      width: 0;
      display: none;
    }
    
    .bbpress .postcontent {
        width: 100%;
    }
    #166979
    Robkk
    Moderator

    This has happened to a couple users before, so it may be a bug in bbPress that needs to be reported now.

    Just to make sure that it is just bbPress causing the issue.

    Make sure you have already done most of these troubleshooting steps. Also try in a different browser and see if it helps any.

    Troubleshooting

    And please answer these questions also.

    Is this a single site installation or multisite?
    If it is a multisite installation, what is your current user role Admin or Super Admin?

    After all this I have to collect all the topics on here about the issue in the last year.

    #166978
    Robkk
    Moderator

    Did you try refreshing your permalinks??

    Navigation Links Return 404s Errors

    Also make sure it is not a plugin conflicting with bbPress or your current theme/a code snippet in your theme causing the issue also.

    Troubleshooting

    #166962
    Robkk
    Moderator

    I just split your reply into a new topic because your reply is very specific with using the divi theme and reply threading feature in bbPress.

    I am aware of this issue. There is a conflict with a script in the Divi Theme some custom-js.js script that holds carousel/slider javascripts and it is conflicting with bbPress’s reply threading.

    A simple and fast fix, I guess would be to de-enqueue the script on any bbPress related pages.

    Contact Divi Support first about the issue to see if they have a fix handy or are aware of the issue.

    #166960
    thunksalot
    Participant

    I have a private WordPress community in which I am not concerned about members posting malicious code. The site is a dues-paying professional networking site and the profession is non-techie, so it would be really odd for someone to get malicious on it, and I have back-ups I can restore with were that to happen. That said, I don’t want to make everyone an Administrator because that gives users control over other people’s content, which I don’t want to give them. I just want to give all Participants the ability to paste unrestricted HTML content so that they can copy and paste from Word or a website and have it come through looking just fine, the way I can as an Admin with the “unrestricted HTML” permission. How can I achieve this?

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