Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,851 through 12,875 (of 32,521 total)
  • Author
    Search Results
  • #141705
    beaulahsmithzeiler
    Participant

    Hi guys. New at this. How do I make use of the lost password shortcode without creating a new page on the menu? I am using the express widget that allows users to register,log in and lost password. I have a page for register,so it redirect the user to that page to register. But I don’t want a page in my menu for lost password although I want to offer it to the user.

    #141696
    Stephen Edgar
    Keymaster

    Is your SMF database on the same database server that your WordPress instalation is setup with?

    If not your webhost should have some docs on how to export/backup your database.

    Then follow the similar docs on your new webhost to import the database if needed.

    Then follow the basic steps outlined here https://codex.bbpress.org/import-forums/

    There are also a couple of topics here on bbPress.org relating to SMF that you should be able to find pretty quickly.

    #141682
    Stephen Edgar
    Keymaster

    Not a solution but go to Admin > Tools > Export and export your replies.

    These files will be in XML format, open each one up in your favorite text editor and check what is or isn’t there.

    Now, are you actually missing content that should actually be there or are is it just the replies are not being shown on the site?

    #141680
    PCTP
    Participant

    Are there any other options … plugins, for example, that will change the look of the forum, but not the theme? I would have no idea where to place the filter codes and not even sure how that would change the forum look.

    #141676

    Pretty strange. You could try recounting the replies in Admin > Tools > Forums though there’s no reason they would all disappear without some outside intervention.

    #141672
    Robin W
    Moderator

    Markic,

    Thanks for posting these – I’ve added them to the codex documentation at

    Layout and functionality – Examples you can use

    as items 6 & 7

    Regards

    Robin W

    #141649

    In reply to: Help with error

    Roitduck
    Participant

    Hi again,
    It worked before, but stopped after i made some changes in the code. But i can’t find the error or where in the code the problem is. I’ve also updated to the new version of bbpress, do you think it has any effect?

    #141648
    koendb
    Participant

    Ah, sorry @shmoo or @macpress: forgot to add the filters:

    add_filter( 'bbp_get_time_since', 'short_freshness_time' );
    add_filter('bp_core_time_since', 'short_freshness_time');
    #141647
    Markic
    Participant

    First of all, I’m not asking any questions, I’m offering solutions for people who, like me, had these specific problems, are googling for a solutions and can’t find any. Some of you think this is pure amateur stuff, but there are people out there who will spend hours trying different things and this can save them so much time. If you want to delete this topic, I don’t care, I’m here to help…

    How to load bbpress.css before your yoursheet.css?
    Intro: When WordPress is loading stylesheets, they’ll load all the theme .css files first and then they’ll load plugin css. That way plugin css has higher priority than your css and only way you can override it is with !important. As we all know, that is a bad practice.

    Also, you can create your own bbpress.css in your theme but that means more files to keep up with (although, that’s the cleanest solution). Here’s another way to do this:

    paste this code into functions.php…

    if (class_exists('bbPress')) {
    add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
    function deregister_bbpress_styles() {
    wp_deregister_style( 'bbp-default' );
    }
    wp_enqueue_style( 'bbpress_css', plugins_url().'/bbpress/templates/default/css/bbpress.min.css');
    }

    So, let’s get into details:
    – first, if you have active plugin ‘bbPress’ it will exicute the following code which removes all the .css files from it
    – second, it loads bbpress.min.css again, but this time where you want it…
    – be sure that you enqeue your stylesheet after this code

    Note: there are two problems that might arise from this techique
    -if bbPress developers decide to rename, remove or split bbpress.min.css, you’ll have to change the code again
    -there’s other .css file named “bbpress-rtl(.min).css”. Well, some cultures (Arabic), read and write from right to left. And what this file aligns everything to the right. bbPress has some system of deciding whether it should load this file or not, but by doing this technique, you’re disabling that system.

    How can I remove all the breadcrumbs from the templates and set them at the top of the page?
    Intro: Many of us are creating our own themes with existing breadcrumbs systems which are in the header. But bbPress has it’s own idea where to display breadcrumbs, and sometimes that’s at the top of the page, sometimes that’s below search form and sometimes it’s below title. Here’s how you can change that quickly.

    1. If you haven’t, create “bbpress.php” in the root folder of your theme. (You can copy-paste page.php)
    2. Add
    <div class="truebreadcrumbs"><?php bbp_breadcrumb(); ?></div>
    where you wan’t to show your breadcrumbs
    3. Add this CSS:

    div.bbp-breadcrumb {
    display: none; /*this will hide all breadcrumbs*/
    }

    .truebreadcrumbs div.bbp-breadcrumb {
    display: block; /*this will display breadcrumbs you've created*/
    }

    Sure, HTML will still generate all the breadcrumbs and css will hide the unwanted ones, but this is the easiest way to do this without going into templates…

    #141644
    koendb
    Participant

    You could change your forum lay-out with a template and let your other pages stay the same. It’s going to be though to achieve this result without ANY coding languages. Even when you use other’s code you’ll need to change the .css to change the colors etc.

    If you however decide to try it yourself, you should start reading here.

    #141639
    Shmoo
    Participant

    Try this.

    Your HTML and CSS isn’t very pretty but this will do the trick I believe.

    
    .type-reply.user-id-1 {
         background: #91CDEA;
         border-top: 1px solid #BEC3C7;
         border-bottom: 1px solid #BEC3C7;
         overflow: hidden;
    }
    

    Btw, if you have copied the default bbpress.css stylsheet from the plugins folder to your own theme ( wp-content/themes/your-theme-name/css/ ) folder you can edit and customize that new bbpress.css file. You don’t have to place all your custom CSS inside the style.css – just customize the bbpress.css inside your theme folder.

    Right now you’re working too much with the !important; attribute just trying to overwrite default stylings while it’s not needed if you simply customize the bbpress.css stylesheet.

    #141624
    koendb
    Participant

    Thanks Shmoo!
    I added this filter, don’t remember where I found it:

    function short_freshness_time( $output) {
    $output = preg_replace( '/, .*[^ago]/', ' ', $output );
    return $output;
    }
    
    add_filter( 'bbp_get_time_since', 'short_freshness_time' );
    add_filter('bp_core_time_since', 'short_freshness_time');

    Shall we leave this thread to Mycelus now? Feel free to PM me or open your own.

    #141623
    Shmoo
    Participant

    Well try using your browsers Web inspector that will guide you through your code and gives you a visual image of where and what you can change because every site can be different.

    This is an old video but I think every browser today has an Inspector inside it by default. It gives you an idea of how you can spot some HTML classes and what you should target to change.

    #141621
    Shmoo
    Participant

    Try adding this to your CSS.

    
    .type-reply.user-id-1 { background: #ff000; }
    

    Change the number 1 in the line above with the user_ID number of your admin-/moderator user-id-1

    #141619
    Shmoo
    Participant
    #141613
    brachi
    Participant

    How do I install the plugin bbpress forum has some kind of code?

    #141611
    koendb
    Participant

    I would show a little more appreciation for the people making all of this possible.

    That being said, this is my bbpress forum: 24Baby (dutch). Looks exactly like the two you linked to. I would be happy to provide some code, but before I put any effort into it, please make sure bbpress is the forum software of your choice.

    #141608
    Will Brownsberger
    Participant

    Definitely wait for the fix.

    The fix suggested by the author above gets past the security problem. And there is another easy work around — use short code with a forum id set. That works.

    However, there are other problems which more serious, which neither approach fixes. The bbp-topic-form short code just doesn’t necessarily work on a front page — it loses context. The field validation works but does not send the user back to the form. The short code seems to work return properly in a widget, but it really seems to bomb if invoked standalone via php on a front page.

    If you are using it in a widget, you may be fine.

    Shmoo
    Participant

    I know they don’t try to keep information from us but it can be frustrated at times if you wanna learn something but for X reasons you can’t find it or you just can’t understand it :S

    And it becomes extra frustrated if you know for sure something similar works 1000 times easier inside WordPress out of the box.

    The link you gave me explained it very well, I’ve read it twice and now I made my very first filter.

    bbPress

    
    // Adding extra CSS
    function shmoo_extra_css( $classes ) {
    		$classes[] = 'tab-row';
    		return $classes;
    }
    add_filter( 'bbp_get_topic_class', 'shmoo_extra_css' );
    

    Doing the same thing in WordPress

    
    <?php body_class( 'tab-row' ); ?>
    

    Because this simply doesn’t work.

    
    <?php bbp_topic_class( 'tab-row' ); ?>
    
    #141598

    In reply to: Upgrading WordPress

    Shmoo
    Participant

    We can’t tell you if your site will break or not because we don’t know what your developer has customized and how he has doen that.

    The best solution is something you should always do. Back-up your WordPress site so that you can always go back to a safe position if your update doesn’t work or breaks some functionality.

    Always make sure you have back-ups of your site.
    https://codex.wordpress.org/WordPress_Backups

    #141596
    SickSquirrel
    Participant

    I run 3.7 right now. I was afraid to upgrade WP in case there wee issues with bbPress. So … if I update to 3.81 (the latest) can I expect issues or should it go smoothly?

    I hired someone o set up my site with WP and bbPress. He hasn’t worked on the site after that so if I run into issues, I’m stuck. I’m only online two hours a day and can no longer code or fix errors (due to illness).

    I’m leery about upgrading but know I have to do it.

    #141590
    mabbas64
    Participant

    I’m customizing my bbpress a bit.
    How do I generate new replies. I have to display some Login credentials as a 2nd reply – everytime a new topic is created. I couldn’t find anything about generating replies from code via Google or via searching on these forums.

    Thank you.

    Robin W
    Moderator

    shmoo,

    don’t think there’s any conspiracy to keep this stuff secret, rather that the clever people who write this stuff are generally the same type of people who hate documenting – they enjoy the code and getting it to do stuff, not the this is how I did it.

    I’d love to see a crib on the structure of the bbPress plugin – a list of the directories and files, and a description of what each file did – eg loop-single-forum.php does this, and content-single-topic does that etc. but unless I do one, don’t think it will happen.

    I’ll try to unravel the filter side of the plugin at some stage !

    #141587
    Shmoo
    Participant

    What happens if you do the same inside a WP Blog Post ?

    Do you have the right Twitter link?

    
    
    

    Edit:

    Looks like it doesn’t work here at bbPress.org as well so maybe a core problem 🙁

    Shmoo
    Participant

    Thanks, IF I knew how it worked I would also like to write about it but for some reason they keep this very secretly while 98% of all bbPress changes have to happen through filters.

    I’ve read the WP Codex about this a few times but I just don’t see it, I can’t connect the dots + all tutorials online are often talking about this in a global way, they make up ‘some’ function and add it to another ‘something’ function.
    Pippin often has easy to follow tutorials but I lost him in the second picture.

    A Quick Introduction to Using Filters

    Respect for your link!
    I will make some time for it and read it very slowly today, looks like a very good one because I saw a heading HOW to SPOT a filter!

Viewing 25 results - 12,851 through 12,875 (of 32,521 total)
Skip to toolbar