Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 13,251 through 13,275 (of 32,585 total)
  • Author
    Search Results
  • #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);
    
    Robin W
    Moderator

    Ok, I’m still struggling because what you describe is not what I see as you have the “DONOTWANTTHISTOBEWHATTHELINKPOINTSTO” still set, so I am not seeing your exact problem.

    You should be able to

    1. set the forum root to “forums”
    2. set permalinks to postname in settings
    3. set the “forum” page permalink to http://mysite.com/forums
    4. Put the shortcode on that page

    and then you can change the actual “forum” page to whatever title you like and as long, and it should all work – mine is set up exactly that way and works.

    You could try disabling seo yoast to eliminate that as a problem.

    what other plugins are you running?

    markthedoc
    Participant

    Hi

    I’m trying to set my forum so that a non-member can view the list of topics in a forum but when they click on a topic to read it they get a message telling them they must be logged in to view the topic.

    This bbPress forum does exactly what I’m trying to achieve.

    I can hide the forums entirely using this code, but I want to show a list of topics to non-members but not allow them to view the content of the topic.

    Thanks in advance for any help and advice.

    #139889
    contramare
    Participant

    Hello,
    I’m creating a site: http://www.contramare.net/site I’ve installed and activated bbpress.2.5.1, buddy press 1.8.1, I have a weaverII theme with WP 2010 sub-theme (maybe that’s a problem) and a meteor slider plugin on the header. Everything was working fine until I installed bbpress (buddypress seems fine). Two problems: 1) can’t create a forum, no option for it except in the forums page, but it requires a parent forum… which I can’t create, so I’m stuck; 2) meteor slides not working on forums page, but working fine on buddypress pages. I think maybe I can do it with the buddypress only but from what I read here http://codex.buddypress.org/getting-started/installing-group-and-sitewide-forums/ it seems like you have to install bbpress if you want to have any buddypress forums. Is that true? Can you help? If there is coding, can’t do it, unless there’s some step by step guide.

    Haz
    Participant

    Let me try to lay this out another way.

    What I’m trying to do is get control of the title tag on my Forum Index page when using shortcode. As it stands now, my title tag seems to be getting overwritten from somewhere.

    My page slug is “forum” and I put the word “forum” in the Forum Root field so the navigation works properly, but my page is getting a title tag from somewhere else.

    My Forum Page: http://www.aquariumcarebasics.com/forum/
    — SEO Yoast title for that page should be: “Aquarium Forum”

    But the title tag reads: “Forums | Aquarium Care Basics”

    So, my question is, if I use shortcode on a page, where does the info to create that page’s title tag come from?

    Stephen Edgar
    Keymaster

    You are going to have more issues than just search and search pagination if Premise is only detecting by forum category and/or post_parent in wp_postmeta.

    I expect you will also find them turn up via widgets, shortcodes and custom registered views.

    If Premise was detecting by each off bbPress’ post types, forum, topic and reply specifically rather than forum category alone you would find that it would also filter these results correctly from search also alleviating your pagination issue whilst also making sure they didn’t turn up in via widgets, shortcodes or custom views.

    #139871
    AkhilAniyan
    Participant

    Hi.

    I think,this is not a common issue.

    My forum root is http://www.androidizer.com/support/

    It is working fine.

    This link is also fine: http://www.androidizer.com/support/forum/android-application-support/

    But, this “forum” directory is getting 404!! http://www.androidizer.com/support/forum/

    I have tried a permalink update. But, no use. Any help?

    LeoBCpt
    Participant

    Hi there

    Using bbPress Version 2.3.2
    We’ve got Premise member access module installed. It manages access to posts by adding meta tags to the wp_postmeta table. We then check member access levels against these meta tags to see if the user can access a post.

    We also use these member access levels to restrict access to our forums. Unfortunately the member access tags are only added to the forum categories and parents, and not to the individual replies and posts.

    This means that restricted posts turn up in search results, and have to be excluded by checking the user access level against that of the forum category or parent.

    I’ve managed to exclude the posts from the search results, by adding the following lines of code I found in these forums to the loop in loop-search.php just before get_template_part is called:

    $parent = array_reverse(get_post_ancestors($post->ID)); // get an array of all the parent pages in order from most distant to closest.
    $first_parent = get_page($parent[0]); //get the first page in the array, which is the most distant parent
    $int = apply_filters(‘the_ID’, $first_parent->ID); //filter the $first_parent to get only the wordpress page/post ID, which is an integer like 49 or 565. store it as a variable $int
    //Skip post if user can't access it.
    if (!IQS_can_user_access_post($int)) {
    continue;
    }
    

    This code works, however the pagination results still show for all the excluded posts.

    I’ve been trying to figure out how to modify the bbpress()->search_query results but I’m not very good with PHP.

    Any advice on how I can exclude posts from a search query or fix my pagination?

    #139861

    In reply to: Updating bbPress

    Stephen Edgar
    Keymaster

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

    Once you have your customizations per that doc you can upgrade bbPress anytime without having to worry about these things.

    #139853

    In reply to: Adding profile fields

    Stephen Edgar
    Keymaster

    can somebody tell me where to copy the template files so I can customize bbpress. the information here

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

    As to extending profile information take a look at how the ‘signature’ is implemented in GD bbPress Tools as a good starting point.

    #139844

    I wonder if _bbp_reply_to isn’t being carried over when editing a reply. Can you get the _bbp_reply_to postmeta for each of those posts, and report back with them?

    For context, _bbp_reply_to is used for the threaded reply hierarchy instead of post_parent which already used for getting the parent topic ID.

    #139842

    The HTML editor does work extremely well, as an HTML editor. If you want to enable the visual editor, a Google search should reveal this page as the top hit:

    Enable Visual Editor

    Haz
    Participant

    Thanks responding so quickly.

    What I am trying to say is that my WP Forum Page using the shortcode has a Title Tag that comes from words I submit via SEO Yoast…so I have control over how the page title reads. And it looks like this, for example:

    <title>Aquarium Forum</title>

    If I populate the Forum Root field with the slug “forum”, my WP page takes precedence over the Forum Root Field slug of the same name so the navigation words properly and the forum index page looks the same. But when one navigates back, the Forum Page has a different title tag. It changes to:

    <title>Forums | Aquarium Care Basics</title>

    …which I have no control over.

    Actually your question has forced me to think this through again and I’m going to sleep on whether this is actually a difference that really matters. Because in the end, the version of the Forum Page that gets spidered the one with the optimized title, not the version of the Forum Page that exists via the navigation link.

    #139830
    inspirationally
    Participant

    Kaliceos posted already above an answer to my – the same – problem:

    Forums index in the same layout as other bb software


    but I did write Adam yet regarding that problem.

    I simply commented out

    #add_filter('bbp_has_forums', 'tehnik_bpp_filter_forums_by_permissions', 10, 2);
    

    in tehnik_bbp_forum.php –
    that way the forums still show up, but they cannot be entered without permissions.
    If they are not visible would be better, of course.

    I also commented out

    #if (current_user_can('read_hidden_forums'))
            #$post_stati[] = bbp_get_hidden_status_id();
    

    btw, because I did not want the moderators to enter the hidden forums. Just because they can move threads doesn’t mean they should take a look at the crew forum for the main site.

    #139828
    Robin W
    Moderator

    It is in the widgets.php file

    located at

    wp-content/plugins/bbpress/includes/common/widgets.php

    start at line 1064

    you should be able to find the time in there somewhere

    NOTE : this file will be overwritten by bbPress updates. You might do better to fork the code into your own plugin to prevent overwrites.

    I think (but am not sure) the styling comes from other wordpres & bbPress elements and has no direct bbpress.css elements

    #139826
    matrixino
    Participant

    I was using this and everything worked fine… until I had the need of a “per forum permission” system. Then I tried this plugin https://github.com/ZanderAdam/Tehnik-bbPress-Permissions (the only one I found actually). Now I just get the default listing repeated for each “section” instead of the subforums.
    Seems like I have no other way to restrict single forums to different roles/groups other than this+Members plugin. I wonder why bbPress don’t have a better permission system…
    Can you please look this plugin code and help me fix it?
    Thanks

    Robin W
    Moderator

    Was with you al the way to

    I know that if I populate the Forum Root field with the same slug as my shortcode page the forum index and page contents show up, but what I lose is my Page Title Tag.

    I think I am being thick, but what does having the forum root field as forum lose you? – can you give a view of what you want to see and what it is doing.

Viewing 25 results - 13,251 through 13,275 (of 32,585 total)
Skip to toolbar