Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,551 through 11,575 (of 32,521 total)
  • Author
    Search Results
  • jtabrams
    Participant

    The problem is that my search form is only returning a list of recent posts. It’s not including ANY forum information, and it’s not including any valid search results. Prior to installing BBPress, my search results were displayed on a formatted page that said “Search Results.” Now when you search, it’s saying “Latest Posts.” Somewhere with the installation, something is rerouting the code to pull from somewhere else.

    In my searchform.php the code is:

    <form role="search" method="get" id="searchform" class="form-search <?php if (is_404() || !have_posts()) { ?> well <?php } ?>" action="<?php echo home_url('/'); ?>">
      <label class="visuallyhidden" for="s"><?php _e('Search for:', 'roots'); ?></label>
      <input type="text" value="" name="s" id="s" class="search-query" placeholder="<?php _e('Search', 'roots'); ?> <?php bloginfo('name'); ?>">
      <input type="submit" id="searchsubmit" value="<?php _e('Search', 'roots'); ?>" class="btn">
    </form>
    Robin W
    Moderator

    It may well be that you’re search form is just including the forum posts.

    bbpress uses custom post types of ‘topic’, ‘forum’ and ‘reply’. You site wide search may well need to exclude these types so that forums results do not get filtered into the search.

    see https://codex.wordpress.org/Function_Reference/get_search_form

    In particular

    <input type=”hidden” value=”post” name=”post_type” id=”post_type” />
    Here we submit the value post. The default value is any, meaning, posts, pages and custom post types.

    ie the default is any would include forum entries.

    Robin W
    Moderator

    ok, sounds like you need a test site

    https://codex.bbpress.org/creating-a-test-site/

    so that you can test things like installing bbpress prior to going live !

    Anyway, back to your immediate issue, it will be very theme dependant, and sounds like your theme is doing something with search after you’ve disabled it

    you say ‘our site continues to use the search functions that we setup. ‘ have you some special search function, or how is your search working?

    #148145
    Robin W
    Moderator

    It could be a bbpress + buddypress + private groups issue

    Buddypress filters some bbpress code, so my plugin may be overwriting a filter that buddypress is using to control either subscriptions or the info it is displaying about bbpres subs.

    Did you check if subscribing to one forums ACTUALLY subscribes to them all, or whether buddypress is just saying that they are?

    You could check this by unsubscribing from forum b, then subscribing to forum a, checking that buddypress says you’re subscribed to forums a & b, and then posting in forum b to see if you get an email.

    #148144
    Lumartist
    Participant

    So, you want to have 100% width?

    Search in your main style css, in general it is style.css, for this code-part:

    .site-content .entry-header, .site-content .entry-content, .site-content .entry-summary, .site-content .entry-meta, .page-content

    There you can find “max-width:”

    Change it to 100%.

    If you do so, it might change other parts of your site as well. To prevent this you might want to add a new part to your css, and leave the above mentioned part untouched.

    .site-content .forum .entry-header, .site-content .forum .entry-content, .site-content .forum .entry-summary, .site-content .forum .entry-meta, .page-content {
    margin: 0 auto;
    max-width: 100%;
    }
    #148142
    Lumartist
    Participant

    Okay, I have to add another reply here, sorry.

    Strange thing is, that I am having the same effect as with the Tehnik plugin. As soon as I add your plugin, bbp-private-groups, and I subscribe to a forum, I am subscribed to all forums. As soon as I disable the plugin everything works fine. It also happens with a standard theme like twenty fourteen.

    I am not sure where this coming from. Very strange…

    Here’s a list of installed plugins:

    • Advanced Custom Fiels
    • bbP private groups
    • bbPress
    • bbPress Pencil Unread
    • Breadcrumb NavXT
    • Buddypress
    • CodeStyling Localization
    • iThemes Security
    • Members
    • Radio Buttons for Taxonomies
    • Regenerate Thumbnails
    • Require Featured Image
    • WP Smush.it

    All Plugins are up to date!

    May it be a conflict with iThemes Security or Members? But why? And why does it just happen if a plugin for forum access is used?

    This is like a closed book to me, as I am a designer and css-coder, but not a php-coder, which makes it realy hard…

    #148129
    Stephen Edgar
    Keymaster

    Everything here is working and is expected behaviour for bbPress.

    You are correct replies no longer have a title, the slug of a reply is now the reply ID.

    You would typically only notice this working in the backend by not seeing a reply title in the ‘edit reply’, yet when you look at the list of replies in the backend just like bbPress you will see all the replies have a title, this title is inherited from the topic title.

    The key thing here is that when viewing a single reply on the front end it has no context without it’s parent topic. We also encourage the use of the vast majority of bbPress via the front end and not the backend, the backend is really only meant to be used if you cannot do something via the front end, we try to make everything work via both interfaces but due to other issues further upstream in WordPress Core we can’t replicate all the functionality we implement.

    As you stated via @JJJ until WordPress 3.7 replies had to have a title, this imposed some limitations on what we could and could not do with replies, further to this change in bbPress there will be even further enhancements coming to bbPress, maybe 2.6, if not 2.7 due to this new found freedom and functionality we have with our replies.

    As I continue reading the previous page I knew this was coming 😉

    Why do I want this?
    1. permalink without reply-title, but only with reply-ID is not good for search engines.

    Neither is duplicated content, previously if your topic URL was /topic/topic-title, then your replies would be /reply/topic-title-1, /reply/topic-title-2 etc, similar content but not the same content, now each reply has a unique URL.

    2. if I open a reply-post in the admin area, there is no title “reply to: …. (topic title) …” (the title bar is empty) and I do not know to which post this reply refers. This is not good for handling the forum in practice.

    This is one of those things I just mentioned above, about working via the frontend vs the backend and until the updates upstream flow from WordPress Core this field will remain empty until we can actually hide it completely. You should be editing replies via the frontend, moderators and users all use the frontend to perform all the tasks required. I’m only a moderator here on bbPress.org and can perform any task bbPress needs just fine, it is the preferred experience as just because you can do something in the backend does not always mean you should.

    Apologies that I only saw this this morning, crazy week last week.

    #148128
    Lumartist
    Participant

    Presume this doesn’t happen when you switch to a default theme?

    Actually, the strange thing is, that it also does happen with a standard theme, like twenty fourteen. I didn’t test it before, as I thought it would be a problem with my custom theme, but now I see, that it happens also with other themes.

    Also test whether it is actually subscribing to all forums, or just saying that it is.

    Well, if I visit the subscription list with subscribed forums and topics, I do see the whole forum list, with categories and forums, no matter which forum I did subscribe to. It’s the same with the source code, I do see all the forums.

    I should add, that it is working wth topics. If I subscribe to a topic, only that topic appears in the subscribed topics list.

    #148125
    Robin W
    Moderator

    Ok so sorry it looks like a theme issue.

    I don’t thin k it will help, but just might, so try

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

    #148124
    Robin W
    Moderator

    ok, with the code in, try the following

    Deactivate bbpress tweaks
    Dashboard>plugins>bbpress tweaks>deactivate

    Go into widgets
    Dashboard>appearance>widgets

    And look at the bottom of the left hand side. You’ll see an “inactive sidebar”, with your entries on
    Below this is an “inactive widgets”
    Drag all the entries from the inactive sidebar to the inactive widgets area.
    This then allows wordpress to delete the sidebar
    I normally log out and in again at this stage – probably not needed, but I’ve never bothered to check
    Then basically reverse the above
    Re-enable bbpress tweaks
    You see the bbpress sidebar returns
    Drag the entries back from the inactive widgets area to the sidebar

    #148121
    obinyc
    Participant

    Hey Robin,

    Thanks for the reply. A little while ago, I removed the line that would have included the sidebar but I just added in yours and what I am seeing is the sidebar from the homepage for some reason. This is one of the issues I was having before and the reason I removed the code in the first place.

    Do you have any idea why this might be happening? Please assist, buddy.

    Thanks

    Robkk
    Moderator

    ok, ignore the code (it is confusing me)

    i understand

    So you have a topic started and this displays in the ‘post author’ part an avatar, the topic author name, but no role

    it should just display the topic author name with a certain color

    Next someone replies and this displays in the ‘post author’ part an avatar, and the reply author name, but nothing else

    yes exactly

    Next is a reply by the original author, and in the ‘post author’ part this display an avatar, and their name in say a green block (and nothing else)

    yes

    Is that what you want?

    just in case heres a picture, zoom with the scroll wheel

    https://drive.google.com/file/d/0B_Ue9ryY5cmYTHhlRkg0a3k4T1U/edit?usp=sharing

    i used a blue because it was the color i had when photoshop was last used

    Robin W
    Moderator

    ok, ignore the code (it is confusing me)

    So you have a topic started and this displays in the ‘post author’ part an avatar, the topic author name, but no role

    Next someone replies and this displays in the ‘post author’ part an avatar, and the reply author name, but nothing else

    Next is a reply by the original author, and in the ‘post author’ part this display an avatar, and their name in say a green block (and nothing else)

    Is that what you want?

    #148101
    Robin W
    Moderator

    Though dashboard access is restricted and allows only to edit the profile page, I don’t want that to happen. How to prevent that from happening?

    add the following to your functions file

    //disable toolbar for non-admins
    if (!current_user_can('manage_options')) {
    show_admin_bar(false);
    }
    
    
    #148099
    totorche
    Participant

    Thanks a lot !! Has been really userfull !

    I also had a problem with the login form. When I used the login form, it always redirected me on the main page of the forum but always in the main language.

    Te solve this problem, just modify another line in bbpress/includes/common/template.php on line 1181 :

    On line 1181, replace:
    $redirect_to = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];

    with:
    $redirect_to = qtrans_convertURL(( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);

    #148094
    Lumartist
    Participant

    Hello everyone,

    right now I am working on my own theme, and I am having a “small” problem. After I subscribe to a certain forum and check my subscribed forums on the buddypress profile page, I am subscribed to alle available forums, and not the one I actualy subscribed to in the first place.

    I did check all of my template files, like content-single-forum.php and loop-singleforum.php, or user-subscriptions.php, but I couldn’t find anything unusual. The link, generated with the subscription link seems to be okay too, compared with other forums.

    http://www.website.net/forum/forum-category/forumname/?action=bbp_subscribe&forum_id=9&_wpnonce=c557e237e8

    I did even compare my files to other forum styles.

    I am not quite sure where this is coming from. Maybe someone had a similar problem before? Any ideas?

    Thanks for your help in advance!

    #148092
    Robin W
    Moderator

    If a user who has capability “participate” subscribes to a forum and then is demoted to capability “spectate”, will the user continue to receive notifications?

    Yes, spectators can subscribe to forums, and this is against the user, not their access level.

    It is certainly possible to code to prevent this, you be looking at filtering the functions

    bbp_get_topic_subscribe_link
    bbp_get_forum_subscribe_link

    But whilst I’d love to, I have too much on at the moment to code it – sorry 🙁

    #148086
    Stephen Edgar
    Keymaster

    bbPress includes the WordPress natively supported embed providers:

    Flickr Videos & Images WordPress 2.9
    Hulu Videos WordPress 2.9
    Imgur Images WordPress 3.9
    Instagram Images WordPress 3.5
    Photobucket Images WordPress 2.9
    SmugMug Photos WordPress 3.0

    (SmugMug and Photobucket support is being removed for WordPress 4.0 is released, see #28379)

    For any of the above you simple paste the URL on a new line by itself:

    e.g. https://flic.kr/p/57FFQn
    bbpress

    Any other images hosted elsewhere you simple link to them using the <img src=''> HTML

    e.g. <img src="https://farm4.staticflickr.com/3130/2701069417_4d5234fc18_o.jpg" width="198" height="49" alt="bbpress">

    bbpress

    Morgensonne
    Participant

    Hi again,

    shortly before I can finally go online with my WP+bbpress, there is a problem with the shortcode in a widget: The tag cloud in sidebar widget is not displayed.

    Here in the forum I found the following tip:

    To allow shortcodes in sidebar widgets, write in an empty functions.php file the following code und put this file into your child-theme-folder:

    <?php
    add_filter('widget_text', 'do_shortcode');
    ?>

    After saving the file, you can now add the shortcode [bbp-topic-tags] in sidebar widgets.

    Unfortunately the tag cloud is not shown.
    What did I do wrong?

    Thank you very much for help says
    Morgensonne

    #148070
    Robkk
    Moderator

    why do you need a plugin ?

    example cat picture

    when you reply to this comment look at the toolbar there is an image upload by url (img) button.

    if you want images to be uploaded to your server

    add this function to your functions php (if you have a child theme already set)

    add_filter( 'bbp_after_get_the_content_parse_args', 'bavotasan_bbpress_upload_media' );
    /**
     * Allow upload media in bbPress
     *
     * This function is attached to the 'bbp_after_get_the_content_parse_args' filter hook.
     */
    function bavotasan_bbpress_upload_media( $args ) {
    	$args['media_buttons'] = true;
    
    	return $args;
    }

    but function only allows admins, moderators , and authors to upload images to your server.

    you would then need to change some user role capabilities so that if you want subscribers to upload images to your server

    Robkk
    Moderator

    ok my bad for bumping this

    but i changed my mind on how i want the function to display

    is there a way to use if (bbp_get_reply_author_id() == bbp_get_topic_author_id() ) {

    so that it just replaces this code of the reply author name

    div class=reply-author-name><?php bbp_reply_author_link( array( 'show_role' => false, 'type' => 'name' ) ); ?></div>

    to this instead

    div class=topic-starter><?php bbp_reply_author_link( array( 'show_role' => false, 'type' => 'name' ) ); ?></div>

    i just want to change the div class so that if the topic author = reply author it would just show the reply author name in just a different color , kind of like reddit

    i want this because when my site goes to a smaller size i have to remove some attributes like post count , buddypress profile data , user role , and the user avatar at really small screens just so i could make it look nice.

    i want to users to still recognize the topic starter even at smaller screens

    i think a simple filter might do this

    but i dont know where to even start.

    thanks if anybody helps

    #148055
    Robin W
    Moderator

    Yes wordpress does like to try and show the toolbar which I hate !!

    Put the following in your functions file

    //disable toolbar for non-admins
    
    if (!current_user_can('manage_options')) {
    show_admin_bar(false);
    }
    

    This will mean that only admins can see the toolbar

    If you don’t know how to add code to the functions file, work you way through

    https://codex.wordpress.org/Child_Themes
    https://codex.wordpress.org/Functions_File_Explained

    How To Safely Add PHP Code To WordPress

    #148018
    Sudar Muthu
    Participant

    We’re happy to add extra hooks and filters into bbPress where needed to help facilitate having wpMandrill work with bbPress but someone who knows and understands wpMandrill and the Mandrill API is going to have to give us a hand here.

    Okay guys, some good news 🙂

    After spending almost the entire day, I finally found a way to get around the “only one bcc email” restriction of Mandrill API. Basically Mandrill API provides a way to trigger individual emails for a list of individual email address. To do that we need to add the list of email address to the the “to” column in a array with type as “bcc” and then set “preserve_recipients” to false.

    After I found this I wrote a small plugin by filtering the wp_mail filter and then parsing the “bcc” header and then adding the emails to the “to” array. The full explanation and code is available at http://bulkwp.com/blog/using-wpmandrill-to-send-subscription-notification-from-bbpress/

    Note: Strong disclaimer. It currently works for me but there may be lot of corner cases. So first check it in your dev server before adding to a live server.

    #148013
    Robkk
    Moderator

    it shouldnt be each page…just each different sidebar you use if you use a plugin like custom sidebars .

    you can either enter each css code for each instance of the widget
    or you can give each instance of the widget a certain css id

    if you want to give each recent topics widget a certain css id

    download the plugin “widget css classes”

    in the options of the plugin you can activate “show additional field for id”

    then you can just 1 css id for where ever you place the widget

    you input your id in the widgets section , in each widgets options

    it should show fields to input your custom fields like this

    CSS CLASS:
    CSS ID:

    so if i enter

    CSS CLASS:
    CSS ID: custom-id

    i would have to add this css code

    #custom-id ul li {
    border-bottom: 1px solid #F1F1F1;
    }

    #148004

    In reply to: Add forum to post

    TheLamb
    Participant

    Don’t worry, I found the shortcodes and that told me how to do it. For anyone else who needs this use the shortcode below where the id is the id of the forum you want to display.

    [bbp-single-forum id=10]

    more help on the shortcodes is at https://codex.bbpress.org/shortcodes/

Viewing 25 results - 11,551 through 11,575 (of 32,521 total)
Skip to toolbar