Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 18,101 through 18,125 (of 32,573 total)
  • Author
    Search Results
  • #107477
    Anointed
    Participant

    Which do you prefer as the default? Users can access all forums, or users can only access forums for which they have a role on that specific site?

    I would prefer that users can only access a forum for which they have a role on a specific site.

    Here is my argument for this:

    1. It is easy enough to programmatically add a user to another site either upon registration or after the fact.

    2. buddypress finally has ‘mu’ capability. Many of us have asked for years to have separated installs of bp with an ‘mu’ network. Having users added to all forums can confuse this operation. (besides if you are using buddypress, there is already a plugin to add all users to all groups/forums)

    Should forum results appear in your existing blog search? Should they be separated?

    I’d rather have all results show up in a users search in a single search box.

    Here is my argument:

    1. Forum posts are data just like a post is data. I simply use forums in order to present the data in a different layout than blogs as it can be more appropriate.

    2. A user comes to a website to find information. Who am I to tell a user that the million+ posts in my forum are less relevant to what they are looking for than a blog post? It gives the impression to a user who uses search and does not see the forum results that there is less relevant information on the site than there actually is.

    How I would solve the template problem.

    1. Include all results in the search output and simply separate out the design within the template for each type of data output.

    `if (get_query_var(‘post_type’) == “post”){

    get_template_part( ‘loop’, ‘post’ );

    } elseif (get_query_var(‘post_type’) == “topic”){

    get_template_part( ‘loop’, ‘topic’ );

    } else …..’

    2. This can lead to one really annoying issue. The results are output in the order of ‘post-date’, so the results are jumbled together. Meaning you could end up with post – topic – topic – post – reply…

    To solve this issue I would attack this with the ‘groupby’ function. I would show 10x ‘posts’ then 10x ‘topics’ then 10x ‘replies’ etc, with a ‘MORE’ button underneath each of the 10. That way a user could say I want to see ‘MORE’ search results for just ‘posts’, or just ‘topics’ etc..

    To go even fancier, you could apply some ajax loading to the MORE button.

    Another option would be to allow the user to filter their search results either pre or post search utilizing check boxes. A user could select what types they want to search for. Then have the search function itself only include the selected post-types in the initial query.

    *All of this is currently possible and I am about 70% there already, although not for search specifically. I ran into this issue when a user goes to a tax term page where the tax term is shared by multiple post-types. When I finish, I’ll pass the code along, although I’m sure you can probably do better than I can anyway.

    Should we break the one page up into a few, or leave it as 1 page with all options?

    I had to laugh when I read that you thought the page was already out of control. Have you ever seen the admin page for vbulletin?

    If it were me, I would use a multi-tabbed admin page much like many of the premium theme companies use.

    I absolutely love the flexibility that the vbulletin admin panel gives me. I can control every aspect imaginable and can’t imagine running a large forum without it.

    Frankly if an admin doesn’t want to take the time to learn and operate the admin panel they should just bugger off and install any one of the crappy basic forums already available. I’d rather see bbpress turn into a full blown commercial level forum setup for wp.

    #107415

    Editing topics and replies has been working for months, and I’m not able to duplicate any of what you’re mentioning on several installs.

    If you have passed the time limit on editing topics or replies, the link no longer appears, so that isn’t the problem. :)

    The edit links are always available to admins, regardless of the time limit set.

    Sounds to me like something is wrong with your install somewhere. Most likely custom template files?

    #107475
    pimarts
    Participant

    In my search.php I only return the title & excerpt. And that works perfectly, until I add the the code above and one of the results is a topic / reply. I assume that’s when bbPress takes over the entire output?

    The first result has the breadcrumbs, “This topic has 1 voice, contains 0 replies, and was last updated by.” line, the style of a topic and a reply form. Pretty much just the whole viewtopic page. The results after that (both replies, topics AND blog posts) only display the content (with HTML in it). No titles on either the first or the replies after that. That’s expected behaviour?

    As for that appending:

    You mean http://www.domain.com/?ts=test or http://www.domain.com/?rs=test? That doesn’t seem to work for me.

    I might want to go the Google search way, but for whatever reason I never liked it when sites implemented that. I can’t really say why though haha.

    pimarts
    Participant

    That’s the risk when you run software that didn’t have a proper release yet ;)

    Proper documentation will come in time, I have no doubt about that.

    If you were running the plugin that’s in the wordpress repository at the moment (beta2b or something) you might want to change that with the one in trac (https://bbpress.trac.wordpress.org/browser/branches/plugin) that has some fixes in it.

    I don’t know if they’ll fix your problem though. I never had to add any code to my functions.php to make it work and while I do have a message in my dashboard “Theme does not natively support bbPress”, it works pretty good :)

    #106681

    In reply to: Swedish for 2.0 plugin

    Why not go the official way? https://translate.wordpress.org/projects/bbpress/plugin

    Here it looks like the plugin is 100% translated in swedish :-)

    https://translate.wordpress.org/projects/bbpress/plugin/sv/default

    sovery
    Participant

    I tried all day to get this to work on my WP blog (bbPress, I mean). No go. Sigh. I sure wish there was a step-by-step guide. I’m not at all new to WP but I (obviously) had a lot of trouble trying to get bbPress to work. And I’ve failed. For now. I know people are busy, though, so I’ll check back now and then and see if there are any “bbPRess for Dummies”-type guides.

    :-)

    #107501

    In reply to: registration page

    pimarts
    Participant

    This has been asked a couple of times already, try to search for it.


    domain/wp-login.php?action=register should do the trick.

    There are shortcodes for the following though, so you might be able to make your own register page (I’m running bbPress in combination with BuddyPress so I don’t need it):

    [bbp-login]

    [bbp-register]

    [bbp-lost-pass]

    #39183
    EtHeO
    Member

    I can’t find the user signup page url for an installed instance of the bbpress plugin. This is the url: http://www.africareport.com.dev.studioseptember.nl/business-opportunities/

    Can anyone give me a hint as to where to search for it? I found the php/html code in bbpress/bbp-themes/bbp-twentyten/page-user-register

    #106680

    In reply to: Swedish for 2.0 plugin

    @Jobjörn Folkesson – The strings are almost completely unique and the .po/.mo’s aren’t compatible. Your average person can’t easily migrate one to the other without manual labor and time. While it’s a great help and the contribution is always appreciated, it doesn’t solve this specific issue for this user. :)

    #107474

    Sounds like a great idea to me. Hard to beat the best. :)

    #107472

    Without doing some ender the hood trickery, it’s going to be hard to include all results and satisfy the majority of uses.

    bbPress already does some of this to prevent things like rouge comment forms appearing where maybe they shouldn’t. I haven’t been able to come up with a working solution that I think satisfies what 80% of the people using bbPress will want, namely because the WordPress core search function makes what we want to do, a little difficult.

    The other thing that you’re noticing is that all search results look like blog posts. That’s because that’s how the search.php in almost all WordPress themes is coded to look. bbPress can’t really intercept every possible query and scan the post_type for topic/reply, and then inject something different, on every singe possible page load. Well, it could, but I suspect the performance hit would be fairly costly and it probably wouldn’t scale well into millions of entries.

    So, we’re kinda stuck.

    In the meantime, you can append:

    ?ts=whatever

    to search topics, and

    ?rs=whatever

    to search replies in a specific topic, so I do have some logic built in to allow for this… but, it does need some massaging before it’s what I would consider to be ‘correct.’

    #39181

    So 2.0 beta has been downloaded over 15k times, which is awesome. Feedback has been coming in steadily, and I’ve been holding an official RC because of a few odds and ends that are taking some time to figure out. Hoping to get some feedback on a few specific things:

    Page Templates

    The way WordPress works, page templates can work automagically if the template name matches a page slug. This is really convenient as it automatically acts like a page template without setting it, but can get in the way if you want to use a specific page slug and not have bbPress take it over. Example:

    page-user-register.php

    If you made a WordPress page with the unique slug ‘user-register’ WordPress would automatically use that template file for that page. So far I’ve purposely picked unlikely template names so they wouldn’t collide with existing slugs. But, if that same file was renamed to:

    page-register.php

    …all it would take is making a “Register” page and bbPress would automatically have a sign-up page with no shortcodes and no more work. The adverse to that convenience is if you want to customize your sign-up page beyond what bbPress provides, you’re looking at a totally custom theme.

    This works with any template file in the root folder of a theme, so there are lots of possibilities. My goal is to satisfy the majority, so I’m thinking of heading in this direction and renaming the template files.

    Multisite

    At the moment, multisite integration works great, if you want to have individual bbPress forums with their own authorized users per forum. If you want to have all users have access to all forums in a multisite install, you’re currently out of luck. With multisite there are endless configuration options, and I see the use case for all of them.

    Which do you prefer as the default? Users can access all forums, or users can only access forums for which they have a role on that specific site?

    Search

    Right now there is no interface for searching the bbPress 2.0 integrated forums. The original implementation got negative reviews because search results were site wide, showing blog entries, topics, and replies.

    It’s currently possible to filter search results by post type (topic/reply) but most WordPress themes assume the search results will come from posts or pages, and as such aren’t styled to look like forum results, which is really confusing to the person performing the search. It’s also confusing to have multiple search boxes, or to need to pick what results you’re looking for.

    How do you think it should work? Should forum results appear in your existing blog search? Should they be separated? Should there be some kind of ‘smart search’ that knows where the request came from, and only shows results based on the type of content you are looking at (blog/forum/other)?

    Settings

    The WordPress mantra is decisions over options, but creating something as large as a discussion forum within WordPress is going to come with at least a few settings. I think our settings page is starting to get out of hand. Should we break the one page up into a few, or leave it as 1 page with all options?

    That’s what’s on my mind. If you’ve been using 2.0 for the past few weeks, your input would be much appreciated so these last few ends can be tied up and we can let this ship sail. :)

    sovery
    Participant

    Thank you Andre! You helped clarify, a bunch.

    FYI, at this point I’m using Genesis and a customized Genesis child theme. I got the child theme to be “recognized,” via the “bbpress integration” plugin by putting in a line of code into my custom functions.php file. But now I can’t get the actual *forum* to appear in the basic “page” I created (yes, I put in shortcode: [bbp-forum-index] and published, and made “public.”) I also tried putting in shortcode for showing ONE particular forum. Nothing shows up. I only have one forum (as a test).

    I think I’m missing something very obvious here, or, my overall WP 3.2.1 setup is too weirdly customized to even use bbPress at this point. Not sure.

    Thanks for trying to help, though. I do appreciate it! I’m looking forward to seeing any new improved documentation they release (“step-by-step” for dummies would be GREAT! maybe a video, too?). I think that would help a LOT for people like me who have never used forum-ware at all, just regular WP plugins.

    #107470
    pimarts
    Participant

    I tried doing this too. And it worked, in a way. But with that code (I think it was that code I used at least) it enables searching in the forums, but for whatever reason the first result showed up in complete view topic style, including a reply form etc. Which is not really what I wanted for search results.

    Probably something on my end, so I disabled that feature for now.

    Any ideas JJJ?

    #106666

    In reply to: Step by step guide

    sovery
    Participant

    I’m trying to do the same thing and I see others are too. Someday some nice person will probably write up a great step-by-step guide as to how to use this plugin (bbPress) after it’s installed and activated. :-) If you guys ever see anything like this, come back and post a link, will you? I will, too. Right now I’m scouring the internet.

    #39180

    First off, I’m sorry to start a new thread here. I commented on one here: http://bbpress.org/forums/topic/about-search-field-in-bbpress-20-beta-3 but unfortunately it got closed, so I can’t comment on it.

    John James Jacoby told me:

    This has been covered in these forums a few times already, which may or may not be an indicator of how little the search functionality gets used. :)

    http://bbpress.trac.wordpress.org/ticket/1575

    But since I actually commented on a thread regarding the issue, it should tell John, that I actually did a search, and I had actually sought for about 30 minutes before writing the question. And a googlesearch also shows me, that it’s the only place linking to the tracticket: http://bbpress.trac.wordpress.org/ticket/1575

    Having said that. When I paste the code it just generates an error and the code in the trac ticket should be this instead:

    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' );

    Unfortunately I haven’t figured how to solve these two issues:

    – have pages in search results (I always only get one page shown)

    – show both forumposts and blogposts in search results.

    So any thoughts on these issues would be great.

    #63088
    Alex
    Participant

    The long _ck_ version half works – it links, removes the nofollow tag, and adds target=”_blank” to internal links. But external links aren’t linked – just the CSS is applied. Could you post a pastie of the long version of your code?

    sovery
    Participant

    OK, I created a regular ole WP page and put the shortcode for showing the forum index in that regular ole WP page. Hit publish. I can see it. Great!

    Is there a way to get it so it doesn’t have the WP sidebar and looks more like a forum usually looks? Not like it’s inside WordPress, in other words? I am thinking this may be where implementing “forum themes” comes in? If you have a link explaining this, I’d sure love to see it. Thank you so much, again, for taking a moment to help the clueless. :-)

    One thing I notice, too, is that there are references everywhere to the “bbPress admin” area and I only see an area in WP’s normal “settings” area and it doesn’t have anything like “bbPress integration” or any options like that. ?? I do see a message on my WP dashboard, “Theme does NOT natively support bbPress.”

    pimarts
    Participant

    Did you try making a page and putting one of the shortcodes in there?

    https://bbpress.org/forums/topic/bbpress-20-shortcodes

    #105507
    _ck_
    Participant

    Check wp-config.php for any lines that define a $wp-> object setting.

    They will break wordpress 3.1 or higher and give a $wp->add_query_var error.

    For example:

    $wp->cookiedomain = '.example.com';

    Will work in 3.0 and below but break WP 3.1 and 3.2

    You’ll have to research for the replacement define setting as an alternative to $wp->

    For example, the modern replacement for the above line is

    define(COOKIE_DOMAIN,'.example.com');

    #100407
    _ck_
    Participant

    Check wp-config.php for any lines that define a $wp-> object setting.

    They will break wordpress 3.1 or higher and give a $wp->add_query_var error.

    For example:

    $wp->cookiedomain = '.example.com';

    Will work in 3.0 and below but break WP 3.1 and 3.2

    You’ll have to research for the replacement define setting as an alternative to $wp->

    For example, the modern replacement for the above line is

    define(COOKIE_DOMAIN,'.example.com');

    manager2
    Member

    Thanks, John! You where right! I was reluctant to update from beta 2 to beta 3 because i customized interface.

    I consider there are too many fields, too big avatar, and too much info displayed, making the forum bulky and weird.

    Anyway, after I’ve updated it works. The forum shows that some names posted but their posts don’t display, and Akismet spam total grows. Maybe when I eliminated fields and info from interface I removed Akismet code, or Akismet is integrated only now.

    Thanks a lot!

    #107458
    master5o1
    Participant

    I would suggest that this meta-key could be a start somewhere.

    $custom_title = bb_get_usermeta($user->ID, 'bbpress_title');

    #107134

    What is it exactly that you’re trying to do. Anything is possible. :)

    #106678

    In reply to: Swedish for 2.0 plugin

    @t.sjodren – Your translation is helpful, but not related to this topic. :)

Viewing 25 results - 18,101 through 18,125 (of 32,573 total)
Skip to toolbar