Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,701 through 17,725 (of 32,506 total)
  • Author
    Search Results
  • #39858
    mweatherill
    Member

    I’ve added the following to my theme functions to include topics, posts and replies in search result:

    // Add Forums, Topics and Replies to search results
    function my_add_bbp_to_search( $post_type ) {
    $post_type['exclude_from_search'] = false;
    return $post_type;
    }
    add_filter( 'bbp_register_forum_post_type', 'my_add_bbp_to_search' );
    add_filter( 'bbp_register_topic_post_type', 'my_add_bbp_to_search' );
    add_filter( 'bbp_register_reply_post_type', 'my_add_bbp_to_search' );

    My frustration is that my search results are flooded with replies whilst I would prefer to only show each topic once. I’m willing to write a plugin to implement this “GROUP BY parent” logic but I’m not too sure how to approach the problem. Can anyone point me in the right direction for the filters that I need to intercept?

    #107821

    @WebEndDev

    Try adding this to the plugin:

    remove_action('genesis_after_endwhile', 'genesis_posts_nav');

    If that works then I will update the patch/plugin

    #107820

    Patch update. Still needs testers :)

    https://bbpress.trac.wordpress.org/ticket/1622

    #107818

    Glad you got it figured out :D

    For anyone who stumbles on this topic: the plugin linked to above has been tested with Genesis 1.7.1, WP 3.2.X, bbP RC 4, and *several* Genesis themes – so far I have found zero issues.

    The patch still needs more testing and tweaks, however. That’s next.

    #107817
    WebEndev
    Member

    @dave & @jared

    I was finally able to make it work. Let’s just say that BuddyPress complicated it somewhat, in combination with too many things going on in this site, in combination with my ineptitude. :)

    Jared – plugin works great – many thanks for your time and patience

    #107816
    David Decker
    Participant

    @WebEndev:

    I am so sorry for you! I hope I could help you out soon. I got mine working with Jared’s plugin patch – I just experimentet with his code line for the layout option and have all working like I want it.

    My above report you quoted was regarding the patch from John for bbPress core which was not working at that time (or the last time I tested it a few days ago…). So I am sorry if you got confused because of my report…

    Please have also a look here and especially for Nathan’s posts:

    https://bbpress.trac.wordpress.org/ticket/1622

    I hope this helps a bit right now. I am knee deep in important client work and might get back later here on…

    -Dave :)

    #107815
    WebEndev
    Member

    Hi Jared,

    I followed each of your suggestions yesterday, and was only able to get a full width layout using one method – create a page and use a bbpress shortcode. This leaves me with less than optimal control of the page.

    Every other method I tried resulted in a content-sidebar layout.

    I followed your advice and removed all bbpress template files from my child theme directory, removed all bbpress code from functions.php, and essentially reverted back to the bbpress plugin vanilla/’out of the box’, along with your extend plugin.

    What that resulted in was a content-sidebar layout….

    I assume that Dave (above post) is having the same layout issues based on this – “I assume the issue is from a wrong setting of the layout option?? Or some other function?”

    It seems that you are the only one to get it working…

    So… I am at a loss on this one…

    Thanks!

    #108699

    In reply to: Forum Order…

    jabbamonkey
    Member

    Well… that sucks. Then why is there an “order” field when you create or edit a forum/category? Also seems a little odd that they let you put things into a category, and then just shuffle things around. Makes no sense to have categories then.

    If there is no way to sort the fields (either by modifying the query, or by using some code to tell the site what order to put them in)… then, does anyone know how to hard-code the forum page (without messing up the rest of the forum functionality)?

    #108577
    monkfish13
    Participant

    So I finally found this after a lot of searching the WP codex and comparing the code between the two plugins.

    The setting to change is in jigopress-admin.php and your looking around line 40 for the position marker.

    I changed mine to 90 so it sits at the bottom of the admin menu – and doesn’t conflict with other top-level menus items

    I couldn’t however find a way to move the “products” and “orders” menu items down to sit with the jigoshop menu.

    Everything now works and is present in the menus – albeit not if a very good order.

    The advice above is informative – but not vary helpful if you actually want to fix the issue.

    If anyone can shed more light on this issue, it would be appriciated.

    With thanks

    Webbo

    #108712
    Adam
    Member

    I would do the codex as Jquery did their documentation IMO, wordpress pages/posts. Easy to set up, easy to edit and change, and allows for people to comment saying what changed, how to use or provide feed back.

    Gets the community involved. Thats how I do documentation for ruby based projects.

    Any ways,

    can you explain (since I am not testing this plugin till its 2.0) finished, how we will set it up for multi site to only use with ONE site? will it be done via the dash board?

    #108711

    bbPress already does do this, yes.

    The process isn’t being sped up, other than 2.0 being close to complete. What would help is having more developers contribute to bbPress core, and if we had a codex where members could contribute documentation.

    Once 2.0 ships I’ll be looking into how to best setup a codex for us.

    #108694

    In reply to: Empty Topic Tags

    This is a new one. The topic tags are updated on each reply with the contents of the input box. This is by design but will only result in empty tags if you reply to a topic with the tags input empty, so that forum members can self-police them. They are replaced as easily as they are deleted.

    One current drawback is if you trash or spam a topic, it could leave empty tags behind. I’d maybe open a ticket for it, and I can look into it further. Right now I can’t reproduce the bug, but that doesnt mean it isn’t one. :)

    #39835

    Topic: Simplifying my forums

    in forum Themes
    Recon2
    Member

    I’m trying to make a really simple install of bbPress 2.0. I am using modified bbp-twentyten theme files with my WordPress theme. I have disabled topic favorites and subscriptions and would now like to disable all the user profile pages.

    I realise that this will make it impossible for users to quickly review all the posts from a particular user, but this isn’t important to me. How can I remove this functionality — or at least remove the profile link every time a username is displayed?

    I hope there’s an easy way to do this :)

    vladoa
    Member

    I have bbPress as WP plugin. The integration is seemless, but I want the forum to appear on a page without the sidebar. Otherwise the replies become ridiculously long.

    Any workaround for this? A shortcode maybe?

    #108673
    Escalibor
    Member

    To make the page wider for the forum I put the following code in my themes page.php:

    <?php if ( strpos($_SERVER[“REQUEST_URI”], ‘forum’)) {

    ?>

    <div class=”art-content” style=”width: 800px; margin-left: 99px;”>

    <?php

    }

    else {

    include (TEMPLATEPATH . ‘/sidebar1.php’);

    ?>

    <div class=”art-content”>

    <?php

    }

    this just looks for the string “forum” in the url, and if found styles the content such that it is 800px wide. Otherwise, it just uses the default width. It works, but may not be the best solution. Any other thoughts?

    #108670
    folgerj
    Participant

    Well so far it seems that way… and you’ve done a bang up job on it.

    What else can I do to try to break it? :-)

    #108669

    Awesome :) Good to hear it. Should be pretty stable for many Novembers to come. :)

    #108668
    folgerj
    Participant

    Well if I had half your talent I would… might make me millions.. :-) but after the fall foliage season is over if you want more info on this I’ll be glad to sit down and try to be real specific in what it should do…

    If not I’ll do as I do now and make sure I’m subscribed to each topic and that way I get an email. I can’t tell from the dashboard under topics which one is which and the same for replies.

    So if I go in from the back end (dashboard) I will spend quite a while trying to locate a specific reply to edit or answer.. So I always go in through the front end and reply to the person that way.

    I just would like to have unanswered replies (by me) to be more evident.

    Oh and I think I need to thank you since in some part, that your bbpress has helped me hit the 10,000 view mark (started the site this past April) and I beleive I’m getting great SEO from the forum…

    Did I mention I’m running this in prime time? :-) I sure hope it doesn’t break before November… ;-)

    #108575
    monkfish13
    Participant

    I have this problem, but for the life of me can’t find anything to do with the term menu_position or custom post types to fix the conflict ?

    Where do you look and what do you need to change ?

    It’s it an amendment to the code ? or is it a field the database ?

    Help would be much appriciated.

    With thanks

    Webbo

    #108667

    Makes sense. You should build it :)

    #108677
    Gautam Gupta
    Participant

    When you delete a user from the WordPress administration panel, there is an option to either delete all of the users’ posts or switch their author to some other option. You can use the former option to remove spammer users’ posts. :)

    #108659
    folgerj
    Participant

    As to the no right click and also the no dragging an image off to the desk top.

    I have a lot of photography on my site and while the measures I take only really keep the honest people honest since it those folks who grab my pictures to put on their blogs and pages… I like them to at least ask or rent the image..

    But I do not care if you see the source for the page and I will deactivate the right click protection if that helps you out.

    I feel it has to do with a third party toolbar for bbpress. This allows images to be uploaded (and as a photographer I desire this function and I want my users to be able to upload what they see on their touring around New England) When I take the pictures out of a topic it fixes the topic.

    But I feel because the images are too large (I’m going to recommend he look to force the image to resize to the window)

    I have turned off the disable on right clicks so feel free to see what is going on.

    You may say and rightly so that this is the toolbar person’s responsibility to fix and I’m sure he will but I thought it should be something you knew about that way you can look into it and see if there is some code that you need to fix on your end to ensure that third party writers can’t upset the CSS with their code efforts.

    Jeff

    #39824
    KRCSC
    Member

    Hi chaps, just a quickie: is there any snippets of code I can use to display the latest posts (and decide the number) on my static and custom front page here: http://www.krcsc.co.uk. Am using BBP 2.0 but can’t find any php on it – any ideas?

    #108662
    Anointed
    Participant

    This actually is being caused by your themes stylesheet.

    Specifically line 647

    .ind-post, .hentry {
    float: left;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
    padding-bottom: 10px;
    width: 100%;
    word-wrap: break-word;
    }

    The float: left is causing the problems. Removing that will fix the forum problems but could potentially cause other problems with the theme. (I didn’t check)

    I also added the following rule:

    .bbp-topics {
    clear: both;
    width: 100%;
    }

    *that only takes care of this one table. You will probably have to go through and fix the rest. Once again, I did not check, but the css above should point you in the right direction.

    #39812
    iSixty
    Member

    I am a relative novice, so forgive me if this is posted in the wrong place. I searched and didn’t see an appropriate topic.

    On my bbPress Forum page, I have used shortcodes as follows:

    [bbp-login]

    [bbp-register]

    bbp-lost-pass]

    [bbp-topic-index]

    The topic index overlays other text on the page, specifically, “Viewing 2 topics – 1 through 2 of 2.”

    The url is http://bulimiatips.org/forum-2/ if you wish to see what I am talking about.

    Can anyone suggest what the problem might be and how to fix it?

    Thanks.

Viewing 25 results - 17,701 through 17,725 (of 32,506 total)
Skip to toolbar