Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,476 through 11,500 (of 32,521 total)
  • Author
    Search Results
  • #148549
    pazis
    Participant

    After upgrading to bbPress 2.5.4, none of my topic contents are being showed anymore! The topic page loads and everything is visible but the topic content and replies! I use WordPress 3.9.1 and here are the list of my active plugins:

    All In One SEO Pack 2.1.7
    BackWPup 3.1.2
    bbPress 2.5.4
    bbPress Enable TinyMCE Visual Tab 1.0.1
    BuddyPress 2.0.1
    Capability Manager Enhanced 1.5.1
    CloudFlare 1.3.14
    Disable Feeds 1.3.1
    Dynamic Widgets 1.5.8
    iQ Block Country 1.1.10
    Membership 3.4.4.1
    myCRED 1.4.7
    Paid Memberships Pro 1.7.11
    Quick Chat 4.13
    Register IP 0.1
    Share Buttons by AddToAny 1.3.3
    Shortcodes Pro 1.1.5
    Shortcodes Ultimate 4.9.0
    Sidebar Login 2.6.0
    Sweet Captcha 3.0.8
    WordPress Google +1 Button – Advanced Plugin, Includes Redirection 1.9
    WordPress Importer 0.6.1
    Wordpress Poll 35.0
    WP-Ban 1.62
    WP Admin No Show 1.4.3
    wpMandrill 1.33
    WP SlimStat 3.6.4

    I tried disabling and enabling bbpress plugin and resubmitting settings, but none fixed the issue. I don’t know how to fix it!

    #148544
    SeeingBlueS2
    Participant

    First issue I ran into is the example at the bottom of this page is no longer valid, but I did find the correct edits.

    Step by step guide to setting up a bbPress forum – part 3

    Second issue I am currently having is I am unable to find out how to change the “New topic” and “Reply To” backgrounds that show up at the bottom forums and topics.

    Lastly(for now) is that I am unable to change the reply header despite having added this to my css.

    #bbpress-forums div.bbp-reply-header {
    background-color: #111111;
    }

    My forums are located here: http://test.greatarchitect.us/forums/

    Thanks for any help.

    #148542

    In reply to: How to add a @username

    Robin W
    Moderator

    basically you’d use the same css as @robkk into your stylsheet, and then the code would be

    
    /**
    * Add @mentionname after bbpress forum author details
    */
    
    add_action( 'bbp_theme_after_reply_author_details', 'mentionname_to_bbpress' );
    function mentionname_to_bbpress () {
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo '<p class=bbp-user-nicename>' ;
    echo "@".$user_nicename.'</p>' ;
    }
    }
    
    #148541

    In reply to: How to add a @username

    Robkk
    Moderator

    how do I change the font colour of @username?

    im going to use my version though , cause i dont know how with the add action version

    <p class=bbp-user-nicename><?php $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    } ?></p>

    throw this into custom css

    #bbpress-forums p.bbp-user-nicename {
    font-weight: bold;
    color: #888;
    display: inline-block;
    margin: 0;
    }
    #148527
    Stephen Edgar
    Keymaster

    Sorry, it’s pretty hard to tell exactly what you mean 🙁

    Could you post some screenshots? That would help with pointers to the issue 🙂

    Also you have a few permalinks ending in -2
    e.g. http://mutriku-gaming.com/wordpress/forums/forum/juegos-2/

    Make sure you do not have any slug conflicts, you might have some pages or forums in the ‘trash’ that you if you empty rhe trash you should again be able to use the link without the -2

    e.g. http://mutriku-gaming.com/wordpress/forums/forum/juegos

    #148525

    In reply to: phpBB Import Error(s)

    Stephen Edgar
    Keymaster

    Forum import – The documentation states that stickies will not be imported, however I after doing the import I have around 20 ‘super-stickies’ which, looking at the old forum, are a mixture of announcements and stickies. I’d rather these weren’t converted to anything, and as far as I’m aware they shouldn’t be (https://bbpress.trac.wordpress.org/ticket/2126)

    The above ticket you reference was the ‘issue’ being created to track the changes and progress of implementing this feature.

    In comment 12 that is where the ticket was to updated to ‘fixed’ and ‘closed’ via changeset r5170. Trac can be a little daunting at first trying to understand everything that goes on in a ticket 😉

    With only your ~20 ‘stcikies’ it shouldn’t take more than a couple of minutes to ‘unstick’ the ones you do not want after your import has finished and the repair tools run.

    I have updated the docs to reflect that also https://codex.bbpress.org/import-forums/phpbb/

    Stickies – is there a way to ignore stickies during the import? They don’t appear to have come through correctly so it would be nice to simply ignore them (as was previously the case).

    How so, could you explaing that a little more please? Do the topics ‘look right’ and are just not ‘stuck’ or something else going on?

    User import – During the import, I (the main WordPress admin user) seem to have had quite a lot of forums, topics and replies linked to my user. I wasn’t a user on the previous phpBB forum at all so I’m not sure why I’ve adopted these posts. Or any posts for that matter.

    If there is a username match the importer will try to match the posts being imported with any current WordPress user, thus if phpBB has a user named ‘admin’ and you use the default the default WordPress username ‘admin’ that will be the cause.

    The best work around for this would be to rename the phpBB username in the database bvefore importing.

    Users – looking at the phpbb data, the amount of imported users seemed to match up, but I wonder if I’ve been assigned posts that were previously changed to the ‘Anonymous User’ that phpBB has at user ID 0… the amount of posts don’t seem to match up with that theory but a ‘majority’ of the posts that have been assigned to me seem to match the logic to an extent (ie, posts that have been moved into a ‘moderators only’ forum for further discussion about actions to be taken).

    You should notice that you now actually have a WordPress username ‘Anonymous’, so any ‘Anonymous’ posts should be attributed to that user.

    Your ‘moderators only’ forum after import you should change the bbPress forum permission to ‘hidden’ and that will make that forum the equiv bbPress ‘moderators only’ forum.

    Repair tools – All the repair tasks seem to work ok, except for two:
    – Recalculate the position of each reply
    – Remap existing users to default forum roles
    These two tasks end up white-screening with no status messages at all.

    What size is the phpBB database your importing? (Approx. Forums, Topics, Posts & Users please 🙂 )

    User Login Conversion – User logins are converted correctly when using the standard wordpress login screen but now when using my custom frontend ajax login – does anyone know if there’s a way to get that to work? A seperate topic has been started about that here: https://bbpress.org/forums/topic/user-login-authentication-migrated-phpbb-users/

    I’ve pretty much still got the same opinion as I wrote last night here.

    User Login – that’s correct – I’m just using the wp-signon method so I guess I’ll need to add some kind of do_action() call or something to trigger the conversion? If you can point me in the right direction, that would be great 🙂

    There is nothing to point you to sorry, when a user logs in for the first time after the import their legacy salt and hash password get’s converted to the native WordPress password format. Without knowing each legacy password their is no way to do this programmatically.

    bbPress’ login forms actually are hooked into the WordPress login forms, so theoretically it shouldn’t be too difficult for either the plugin you are using to add support for bbPress or possibly look for another similar plugin that already supports bbPress.

    Passwords and all their associated algorithms are hard and this an area where I just manage to skate by with the basics, actually doing any of what I mentioned in the previous paragraph is way beyond my skill level and pay grade 😉

    #148518

    In reply to: How to add a @username

    Robin W
    Moderator

    to do the second you need to put the following in your functions file:

    //take away the role display
    function hide_role ($args) {
    $args['show_role'] = false ;
    Return $args ;
    }
    add_filter ('bbp_before_get_reply_author_link_parse_args', 'hide_role') ;

    this removes the existing text,

    then you’d need to add some image depending on role, so something like

    add_action( 'bbp_theme_after_reply_author_details', 'add_image' );
    function add_image () {
    $role = bbp_get_user_display_role( bbp_get_reply_author_id( $reply_id ) );
    if ($role == 'keymaster') {
    echo "<img src='/snippet_theme/img/error.gif' title='Error' alt='Error' />"; 
    }
    if ($role == 'participant') {
    etc.
    }
    
    

    This is not tested – sorry but limited time !!

    #148516

    In reply to: How to add a @username

    Robin W
    Moderator

    or put

    /**
    * Add @mentionname after bbpress forum author details
    */
    
    add_action( 'bbp_theme_after_reply_author_details', 'mentionname_to_bbpress' );
    function mentionname_to_bbpress () {
    $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    }
    }
    

    in your functions file.

    Functions files and child themes – explained !

    both methods are valid, if you use @robkk’s method, remember to create this as a separate file within your theme
    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3

    #148515
    Robin W
    Moderator

    ok, use this template, but follow the instructions in https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum/#8-make-sure-bbpress-uses-the-page-template-we-want

    in the copy that you have renamed bbpress then remove

    <?php
     if ( ! is_active_sidebar( ‘sidebar-2′ ) && ! is_active_sidebar( ‘sidebar-3′ ) && ! is_active_sidebar( ‘sidebar-4′ ) && ! is_active_sidebar( ‘sidebar-5′ ) )
     return;
     ?>

    and replace it with

    <?php get_sidebar(); ?>
    

    and then ensure that bbpress tweaks is saying to use bbpress.php

    #148513

    In reply to: How to add a @username

    Robkk
    Moderator

    How to add a @username like BBPress forum

    <?php $user = get_userdata( bbp_get_reply_author_id() );
    if ( !empty( $user->user_nicename ) ) {
    $user_nicename = $user->user_nicename;
    echo "@".$user_nicename;
    } ?>

    you add this to your loop-single-reply.php template

    #148492
    rsbthebest
    Participant

    Ya i installed the code but it just dont allow any more post then 9!!!

    I want to add time limit of it to reset so that countdown starts again from 0 on next day

    Please some one help

    #148490

    In reply to: Edit My Profile link

    Robin W
    Moderator

    Personally I hate the toolbar – it should only be there for admins !

    I switch it off and use a menu item

    Layout and functionality – Examples you can use

    #148488
    tourdecartes
    Participant

    Hello,

    That is VERY interesting.
    However, I do not see the time limit in the code posted above.

    Is it possible to include a reply limit as well?

    Thanks a lot for your time and support!
    Best regards,
    Emmanuel

    #148482
    dububiscuit
    Participant

    Hi,
    I’m very new to both WordPress and bbPress, so my apologies if this is a very easy problem to resolve!

    Whilst poking about trying figure stuff out in the bbpress/includes/admin/functions.php, I received the following error:

    Parse error: syntax error, unexpected ‘}’ in /home/content/65/5240765/html/wp-content/plugins/bbpress/includes/admin/functions.php on line 303

    I’ve checked through the code to try and find the ‘}’ but couldn’t spot it (there is no line 303 – it only goes up to 294), and tried to fix it by replacing the wrong code with the original code but it still gives the same error. I’m not entirely sure what I’ve done even after extensive google/forum searches, so I’ve copied the code into paste bin in case anyone can help me out.

    http://pastebin.com/X9FsvsR1

    The website doesn’t appear to be broken from the front end in any way, it’s just the back end that’s messed up.

    I’m using WordPress vers 3.9.1 and bbPress vers 2.5.4, the theme is BigFeature.

    Thanks in advance!

    #148477
    Robin W
    Moderator

    ok, so now you need to go into

    wp-content/themes/divi

    and look through the page templates, hopefully one is called ‘left sidebar’ or ‘right sidebar’ if not you’ll need to open them up and look for

    *Template Name: left sidebar
    

    This is the template that you now want as bbpress, so follow the instructions

    Step by step guide to setting up a bbPress forum – Part 1

    #148473

    In reply to: bbPress Mods Wishlist

    Robin W
    Moderator

    bbpress has a number of templates which you can alter

    these are found in

    wp-content/plugins/bbpress/templates/default/bbpress

    Start with

    content-archive-forum.php

    this is the index page.

    you will see that it calls other templates

    eg

    <?php bbp_get_template_part( 'loop', 'forums' ); ?>

    which calls loop-forums.php

    a look through and you should be able to work out what most of it is doing.

    If you want to alter any of these, make a new directory in the root of your theme and copy any of these template files to it (only the ones you want to alter)

    so for instance if you wanted to alter content-archive-forum.php you’d create a copy to get
    wp-content/themes/%your-theme-name%/bbpress/content-archive-forum.php

    you can then alter these copies, and bbpress will use them instead

    They will also show you what css is being used, so that you can amend your style.css file with those that you want to change, or you can copy the whole bbpress style file viz https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-2/#5-copyingcreating-a-bbpress-stylesheet-in-your-child-theme

    at the finer level you may need to use something like firebug to work out how to say ‘bold’ the forums names to see what css each part is using, so that you can alter it.

    Firebug is downloaded to go with the Firefox browser. There are loads of firebug tutorials eg see

    Robkk
    Moderator

    nevermind i got it , i assumed i could easily do it with css

    after a couple of tries i eventually got it

    li.bbp-header {
        display: none;
    }

    hides the header on blog posts and forums

    but when i add

    .post li.bbp-header {
      background: none repeat scroll 0% 0% transparent;
      display:block;
    }

    the header is now just on forums and not on blog posts anymore

    this also works on the li.bbp-footer too

    and probably anything else if you just use

    display:none; to hide the original css for blog posts

    .post to display it only on forum pages

    #148470

    In reply to: Mingle Import help

    Stephen Edgar
    Keymaster

    They should be the same as your the settings in your wp-config.php for Mingle

    #148468
    Stephen Edgar
    Keymaster

    If you’d like to get Montezuma working then an answer to my questions in my previous post would be helpful as if they are the links being emailed something else is not quite right, maybe a conflict with some ‘mail’ type plugin you might be using.

    I just installed the Montezuma theme myself and the email links I get appear correct.

    eg. http://example.com/?topic=topic-with-hidden-replies/#post-472

    I also had to folow the steps on this page to get bbPress looking kind of right, there are still a few theme issues such as > being displayed in the header and footer.

    http://forum.bytesforall.com/showthread.php?t=19192&highlight=bbpress

    #148463
    thecatholicwoman
    Participant

    Actually never mind I just finally found the shortcode on a google page

    #148459

    In reply to: Forum index

    Stephen Edgar
    Keymaster

    This is awesome, it would be great to see this as a tutorial in the codex 😉

    Codex Standards & Guidelines

    #148458
    Stephen Edgar
    Keymaster

    The @thecatholicwoman wrote:
    YOU ARE A GENIUS. I have to go to the forum settings and change m root to forum. It seems to be working. I could hug you through the computer. Thanks so much for sticking with me.

    You should not have had to change this, you should keep this setting as forums, changing it to forum will likely cause a slug conflict, change it back to forums.

    Then you should see a list of forums here:
    http://www.thecatholicwoman.com/forums

    And a list of topics here:
    http://www.thecatholicwoman.com/topics/

    #148454
    Stephen Edgar
    Keymaster

    They are separate taxonomies in the WordPress database, with some custom code and templates I am quite sure you could do this.

    Probably a good starting point would be looking at ‘Multiple Taxonomies’ here https://codex.wordpress.org/Function_Reference/WP_Query#Taxonomy_Parameters

    #148439

    In reply to: Forum index

    Robkk
    Moderator

    ok i checked out all the steps ,and i literally just copied and pasted my code and it worked
    fine for me bbmenu

    i checked out the code on how to register a new menu in woothemes canvas and it looks a little different from what the code i gave you.

    you can take a look at https://support.woothemes.com/hc/en-us/articles/203106807-Add-Custom-Navigation-Menus-in-Canvas and see the how its done.

    i pretty much gave you all you need , i just cant work on the exact structure on the code it might be just adding in ‘woothemes’ but i dont know for sure

    (i work trial and error, im a 19 y/o newb haha) .

    you could wait til @robin-w or @netweb takes over , work it out yourself, or contact woothemes and link them to this topic and maybe they will help you out too.

    #148436

    In reply to: Forum index

    dottedpixel
    Participant

    I moved the code below <?php do_action( 'bbp_template_before_forums_loop' ); ?> but it does make no difference.
    Here is the link: filmprojekt.ch/Izzy2/community/forum/

    Thanks so much for your help.

Viewing 25 results - 11,476 through 11,500 (of 32,521 total)
Skip to toolbar