Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,176 through 13,200 (of 32,503 total)
  • Author
    Search Results
  • #140020

    In reply to: Bulgarian translation

    Stephen Edgar
    Keymaster
    #140018
    Stephen Edgar
    Keymaster

    You could create a new role for your users based on the participant role without the publish_topics role.

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

    #140004
    martin
    Participant

    Is there a way to add cutoms fileds to the profile in an other way than changing the code? Because after an update those changes I will make will be deleted anyway. Maybe someone knows a plugin, or maybe this should be a feature for bbpress?

    #140001
    Lynq
    Participant

    Hey!

    Adding an image based on user rank is relatively easy to achieve…
    Inside your theme files there is a file called loop-single-reply.php, you can find the author ID of the current reply and then from there get all the data for that user.

    $userdata = get_user_meta( bbp_get_reply_author_id ( bbp_get_reply_id() ) );

    This will fetch the user data then you can just use an if statement to check the current role and output an image tag.

    For your second question I do something similar to the user legend on teamoverpowered.com – I am using Wp-UserOnline and I just add the shortcode to my template files.

    Good luck!

    #139998
    Lynq
    Participant

    In the core files there is a file called widgets.php inside /plugins/bbpress/includes/common

    If you look at line 677 (in my version) there is a topics widget class (class BBP_Topics_Widget), you could create your own plugin and copy the class across (renaming it) and then create your own bbPress widget, without altering the core code.

    Good luck!

    #139990

    In reply to: Menu link to Profile

    ronthai
    Participant

    If your theme supports blank pages (Page Attributes), use that to give the “illusion” that it is not a redirect.

    The above link+php is for the edit page.
    If you look at the link after URL you see: partial_url/php_code/last_part_of_the_URL

    The last part of the URL is what you have to change for the topics, replies, favorites, subscriptions or edit

    #139989

    In reply to: Menu link to Profile

    ronthai
    Participant

    I just added to my menu all forum links from a user:
    topics, replies, favorites, subscriptions, edit
    all under 1 main “Your Forum Settings & Stats” Dropdown, but just call it anything you want.

    Get the plugin “WP exec PHP” : https://wordpress.org/plugins/wp-exec-php/
    No security risk, since you can set the permission for who can add php to pages and such.

    Create pages for any links to the profile you want and add the following REDIRECT with php-code in it (adjust to your own domain)

    <meta http-equiv="refresh" content="0;URL=http://domain.com/forums/users/<?php global $current_user;
          get_currentuserinfo();
    
         echo  $current_user->user_login . "";
          
    ?>/edit/">

    You could delay the refresh and add a little text to the page, or anything you want.

    With many thanks to Diggories (above somewhere) for the php code to get the username in a URL

    #139987
    serks
    Participant

    I need a way to find out what a replies parent forum is.

    Reason is because I have created members only forums in a specific way by integrating DAP (Digital Access Pass) conditional functions. All of this is working great but my problem is with the search function of bbpress.

    I need to filter the search so it doesn’t display replies that are under members only forums.
    So like, IF REPLY_ID IS CHILD OF FORUM_NAME-OR-ID, REPLY = MEMBERS-ONLY-REPLY.

    I don’t mind if it displays topics but I do not want people to see replies that are under members only forums if they are not a member.

    So I think the file I need to play with is loop-search-reply.php but I need some help with figuring out the code to do this.

    Thanks in advance to anyone who can help

    #139982
    s1r0n
    Participant

    on the forums a post includes username, role (like keymaster, participant, etc.). I want to be able to change the role to something i decide, like for example the “group” the user is a member of. Where file can I get at that in, what filter do I use, what function do I override, what action do I take. I’m assuming i don;t have to hard code the change.

    you can see what I’m talking about on this. I need to change Key Master, participant, etc.

    http://thelightningpath.com/forum/forums/topic/wave-two-moon-card-question/#post-1838

    thanks in advance

    #139969
    Robin W
    Moderator

    Mr-B,

    If I get a moment in the next few days, I’ll fork all that code into a plugin for you/others.

    #139955

    In reply to: bbPress 2.5.1 is out!

    david7h6
    Participant

    Hi. Since I updated, the shortcode is no longer working.

    #139950

    In reply to: Forum Page

    julieono
    Participant

    The forum root slug is forums.
    The single forum slug is forum ( No s)

    Which one are you talking about – the forum root slug or the single forum slug?

    I created a page – forums

    I add text and the shortcode it still doesn’t show a list of the forums with links.

    http://massagepracticebuilder.com/forums/

    Thanks very much!

    #139945

    In reply to: Forum Page

    Robin W
    Moderator

    If you page’s URL is “xx/forums” and the forum slug is “forum” it won’t appear without the shortcode as they don’t match (one plural, one singular). Also if you add any text to the page (as you have done) then again you’ll need the shortcode. But it should work with the shortcode.

    Can you confirm that the site currently has
    [bbp-forum-index]

    at the bottom, including the square brackets.

    #139943
    ronthai
    Participant

    Yes, you are right, they do move to the right. Guess was to busy with the numbering that I didn’t noticed that.

    To change the background color of reply to reply posts add this to the bbpress.css
    .bbp-threaded-replies div { background-color: #ccc ! important; }

    Color #ccc is a little dark, but just change it to what you want

    #139938
    robgranholm
    Participant

    I’m using the Pagelines theme [before DMS] and they have a selector at the bottom of each page or post that you can select to make the page full width.

    On forum pages, and individual threads, this option isn’t available. I know I can create a bbpress.php template which bbPress will look for, but I’m not sure how to deconstruct my theme, or set it up to be my default page, but minus the sidebar.

    Help here would be much appreciated.

    My page.php code doesn’t give me much indication as to how to craft this…

    
    <?php
    /**
     * PAGE
     *
     * This file meets the WordPress template requirements for 'page.php'
     *
     * @package     PageLines Framework
     * @since       ...
     *
     * @link        http://www.pagelines.com/
     * @link        http://www.pagelines.com/tour
     *
     * @author      PageLines   http://www.pagelines.com/
     * @copyright   Copyright (c) 2008-2012, PageLines  hello@pagelines.com
     *
     * @internal    last revised January 20, 2012
     * @version     ...
     *
     * @todo Define version
     */
    
    setup_pagelines_template();
    
    #139936
    ronthai
    Participant

    Try putting it as important:
    display: hidden ! important;

    #139935
    arwenmckenzie
    Participant

    I open up this topic. I used the code snippet above and it worked like a charm on my test site but now on my live site it’s either ugly line up – which I guess is the reason for @elpju to change from none to hidden in the first place.

    However hidden does not respond for my code 🙁 None does and that’s where they ugly breaking up of layout shows and with hidden there’s absolutely nothing happening.

    #139931

    In reply to: Updating bbPress

    ronthai
    Participant

    Exactly, that is what I mean with a major update, if code is added or changed in the templates or css.
    If that happens I will need to go through all changed templates and apply the edits to the updated templates or css.

    For css that is easy, just add css and if needed do ! important to override (works 95% of the time)

    For templates it will be adding additions, mostly html, again to the updated templates

    and then put that all again in the theme folder

    #139928
    ronthai
    Participant

    add to the bbpress.css
    .bbp-forum-title { color: #E03700 ! important; }
    You also put anything in there like font-size, font-weight, text-decoration

    Note that when bbPress opdates all changes will be lost, UNLESS you follow these instructions:

    You should have all your customizations as per this document
    https://codex.bbpress.org/theme-compatibility/

    #139917

    Topic: Forum Page

    in forum Installation
    julieono
    Participant

    I just installed this plugin and I went through these steps

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

    and I can’t get the list of forums to show up on the forum page.

    I named the page forum and then I also tried adding the extra code as outlined in step 2 [bbp-forum-index] but neither create a list of the forums that I have created. I have two set up.

    http://massagepracticebuilder.com/forums/

    This is one of the forums I set up just to test. http://massagepracticebuilder.com/forums/forum/diy-websites/

    And why does that have the address forums/forum ??

    I just went and followed the directions to set up a forum.
    thanks
    Julie

    #139915
    ronthai
    Participant

    OOPS, miss read what the lady wanted. Here is the css for larger avatar and name removed.
    It will show: topic title by avatar-image
    You can not remove the word “by” with css, it comes from a core file.

    .widget_display_topics .avatar { width: 30px ! important; height: 30px ! important; }
    .widget_display_topics .bbp-author-name { display: none ! important; }

    Just change the 30px size to anything you want.
    Keep in mind that the core file has created already an avatar thumbnail of 14×14 and this will just resize that image, therefore will become somewhat unclear.

    #139913
    ronthai
    Participant

    All widgets (even if you use the same more then once) can be individually edited how they look.
    From colors, headers, font type/size/color/shadow, widget background color/image,
    you name it, it can be done, WITHOUT editing any core files.

    How? Just use css.
    For the ladies question, assuming she uses the bbPress “Recent Topics” widget, just add the following to the bbPress main ccs file (bbpress/templates/default/css/bbpress.css):

    .widget_display_topics .bbp-author-avatar { display: none ! important; }
    This will remove the little avatar and leave it with:
    topic title by posters name

    You can find any widgets “css class or id (id can be used if the same widget is used more then once)” by viewing the source code of your page or using FireBug (firefox or chrome browsers, just get rid of IE all together)

    You should also follow this, to avoid any updates from changing your edits:
    You should have all your customizations as per this document
    https://codex.bbpress.org/theme-compatibility/

    #139911
    Donna Fontenot
    Participant

    This is NOT about previewing before posting. Wondering how to show the first X words of a thread as a tooltip when hovering over the thread link. Any plugins? Code?

    Robin W
    Moderator

    loop-single-reply is the template that displays posts and replies

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

    copy this to a bbpress directory in your theme (see codex for how to do this if needed), and then you should be able to put a “logged in” condition around whatever you want in this. For instance

    <?php bbp_reply_content(); ?>

    to make that bit conditional

    #139904
    James Dilworth
    Participant

    Funny. BBPress need to remove those filters on this forum too. When I copied and pasted your example, I had to go back and remove the fancy quotes.

    Anyway, found the solution :

    When removing the filter, the priority has to be the same as when the filter was added. The filters are added in : /bbpress/includes/core/filters.php with a priority of 3.

    So, to successfully remove those filters from functions.php, add in the priority :

    remove_filter( 'bbp_get_reply_content', 'wptexturize' , 3);
    remove_filter( 'bbp_get_topic_content', 'wptexturize', 3);
    
Viewing 25 results - 13,176 through 13,200 (of 32,503 total)
Skip to toolbar