Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,526 through 11,550 (of 32,504 total)
  • Author
    Search Results
  • #148246
    tharsheblows
    Participant

    @robinw – I just came across this too and thought exactly the same as you, that it needed that filter or something like that. I was trying to change the “Topic tags: ” (or something like that) bit of the tags archive pages.

    It was picking up the default taxonomy-topic-tags.php file. This must have been picked up from the plugin default theme, not mine – it’s in /extras in my theme folder but changing it there had no effect, I had to move it out of there to the root of the theme folder. This totally makes sense from a WordPress standpoint but was non-obvious because I was looking in the bbPress folder in my theme.

    ANYWAY it’s sorted now but if someone else comes across it, check for some hidden template. I couldn’t get that filter to work for anything. I tried very very hard to make it work. It didn’t.


    @saulmarq
    – what you can do is make a new page and make the permalink your forum root. So my forum root (in settings) is forums and the page is at example.com/forums. Then use the [bbp-forum-index] shortcode. The gotcha is that this page will *only* use the bbPress template, I think – you can’t make a custom template for it. I might be misremembering that, but I do know you can’t change the default template. Someone tried to tell me this was a good thing, whatever.

    Doing it this way is nice because then you can write an intro like:

    Hi! Welcome to our forums. Dive right in. Post a lot, whoo!

    [bbp-forum-index]

    Stephen Edgar
    Keymaster

    Ha! I just found some replies in the spam queue 😉 Unspammed, those words and abbreviations you used starting with a capital M are very common spam words, I’m not typing them either in case it flags me as spam, anyways, restored and sorry about that 🙂

    #148207
    zxtonizx
    Participant

    I have a slight fear of updates but I need to just back up my files and get over it. Thanks for the code, worked a treat.

    #148206
    HansRuedi
    Participant

    Thanks Stephen! I will try to get a few lines of code in the BuddyPress forum …

    #148186
    Stephen Edgar
    Keymaster

    Tell them to set WP_DEBUG to false in their wp-config.php define('WP_DEBUG', false); and troubleshoot what the other plugin and/or theme is causing this issue, this is not a bbPress issue per se, it is another theme or plugin doing_it_wrong.

    #148184
    Stephen Edgar
    Keymaster

    Firstly, you should update WordPress to v3.9.1, if you have some reason you must remain using the 3.7.x version upgrade to 3.7.3.

    That said line #1198 of your style.css has the following:

    
    .hentry {
    border-bottom: 2px solid #f7f7f8;
    margin-left: 120px;
    padding-bottom: 15px;
    position: relative;
    }

    You will need to override that for your bbPress forums with a custom entry in a child themes CSS.

    eg.

    
    #bbpress-forums .hentry {
    margin-left: 0px;
    }
    
    #148166
    obinyc
    Participant

    So it looks like I was finally able to get the sidebar to display properly by using the original code for displaying dynamic sidebars.

    <?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Page Sidebar')): endif; ?>

    Once I used this, then the homepage sidebar stopped displaying and the forum-specific sidebar showed up(which I only need to allow people to login).

    What do you think, Robin?

    And thanks for the help!

    #148163
    Robin W
    Moderator

    Getting bbpress to work with the many very clever (too clever!) themes is not always easy

    Ok, we could spend a lot of time getting a forum specific sidebar for your theme, but maybe easiest to get your sidebar working to display in bbpress

    so install widget logic

    https://wordpress.org/plugins/widget-logic/

    Then set up whatever sidebar is being displayed on the bbpress page for all the widgets that you want it to display, both for the homepage and bbpress

    Then you’ll see each widget now has a widget logic condition.

    For items you want to display only on bbpress add the logic

    is_bbpress()
    

    For items say only on a home page add

    is_home()
    

    for items you want on all pages apart from bbpress use

    !is_bbpress()
    

    Come back if anything is not clear

    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 🙁

Viewing 25 results - 11,526 through 11,550 (of 32,504 total)
Skip to toolbar