Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,451 through 11,475 (of 32,504 total)
  • Author
    Search Results
  • #148571

    In reply to: bbPress Mods Wishlist

    Robin W
    Moderator

    yes there’s lots to learn, my css is probably at your php level !

    I found a way to have a search box that is persistent on every level of the bbPress forums. Now I have to get rid of the second search box that is at the top of the forums. I can’t find where that is in the code to remove it.

    You could try just turning off the forum search

    dashboard>settings>forums and look for allow forum wide search

    Is there anyone that comes around regularly that would either donate the time for these couple of tweaks or let me pay them over time?

    you can put an ad on wordpress jobs

    http://jobs.wordpress.net/

    just post it as a project and detail what you want

    But I’d play with the css first, as I think much of what you want is stylable.

    #148570

    In reply to: bbPress Mods Wishlist

    K-Path
    Participant

    Robin W,
    Thank you for the resources. I can work my way through the CSS and HTML4 and some 5 but I haven’t a clue how to program in PHP. Is there anyone that comes around regularly that would either donate the time for these couple of tweaks or let me pay them over time?

    I cloned TwentyTen and renamed it TwentyTen+ and then tweaked the CSS of the formatting to the limit of my understanding. I’m going to keep at that but I’m not going to have the programming kung fu needed to tweak the PHP that bbPress depends on for it’s formating.

    I found a way to have a search box that is persistent on every level of the bbPress forums. Now I have to get rid of the second search box that is at the top of the forums. I can’t find where that is in the code to remove it.

    Help please.

    Auriel

    #148567
    Robin W
    Moderator

    no problem, using the wordpress editor will not work, you’ll need to use ftp or cpanel

    see the following

    Functions files and child themes – explained !

    on FTP and notepad++ which will get you the tools.

    then you want to
    ftp the file to your pc
    open it using notepad++
    then save it to your pc as the new filename
    the edit it for the sidebar
    then save it on your pc
    the ftp the file back to your host

    lots to learn, but you’ll find this useful for future as you customise you site

    #148564
    Stephen Edgar
    Keymaster

    I have also made the edits to that part 3 document.

    Awesome, thank you 🙂

    The _bbp_topic_title on the new form something like:

    
    #bbpress-forums fieldset.bbp-form p,
    #bbpress-forums fieldset.bbp-form textarea,
    #bbpress-forums fieldset.bbp-form select, 
    #bbpress-forums fieldset.bbp-form input {
    margin: 0 0 8px;
    background-color: #111111;
    }
    

    (The above includes a few other areas of bbPress forms you might be interested in)

    #148563
    SeeingBlueS2
    Participant

    Ok I figured that one out. I forogt to add !important

    I was able to successfully use the Inspect Element to change those background as well. The only thing I couldn’t figure out is how to properly code changes to the textbox for bbp_topic_title. Not savvy enough to write my own without an example.

    I have also made the edits to that part 3 document.

    #148560
    Stephen Edgar
    Keymaster

    You would need to create a custom role, should be possible.

    Take a look at these to get you started:

    https://codex.bbpress.org/bbpress-user-roles-and-capabilities/

    Custom Capabilities

    #148558
    Stephen Edgar
    Keymaster

    This worked for me…. Try a hard refresh (CRTL F5/CMD F5 I think), your CSS might be cached.

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

    Use your browsers debug tools also, most browsers tools are pretty awesome, F12 will bring it up or right click an element and select ‘Inspect Element’

    Also could you update the codex with the correct edits you found, anyone can edit the codex, just login using your same username and password 🙂

    https://codex.bbpress.org/wp-admin/edit.php?post_type=page

    #148555
    Stephen Edgar
    Keymaster

    Only moderators and keymasters would see that you it should not be an issue in the majority of use cases.

    If you still want to though create a child theme if you don’t have one already and modify the bbPress template form-topic.php.

    Functions files and child themes – explained !


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

    #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

Viewing 25 results - 11,451 through 11,475 (of 32,504 total)
Skip to toolbar