Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 12,101 through 12,125 (of 32,521 total)
  • Author
    Search Results
  • #145204
    bustel
    Participant

    After a long search I found a solution for my problem…

    instead of:
    $uri = bbp_get_reply_edit_url( $r['id'] );
    set:
    $uri = $_SERVER['REQUEST_URI'].( '/../../../give-reaction/' . $r['id'] . '?edit=1' );
    on line: 1923

    #145202
    bustel
    Participant

    And if i set it to:
    $uri = ( '?edit=1' );
    then I get the topic to change and not the reply….

    #145201
    bustel
    Participant

    It works for the topics but not for the replies, I don’t know why it doesn’t work…

    I have tested with
    1)
    $uri = ( '/?edit=1' );
    in the topic: http://www.mysite.com/?edit=1
    it isn’t correct
    it go to the home of the site, that’s it.

    2)
    $uri = bbp_get_reply_edit_url( $r['id'] ) . '?edit=1';
    in the topic: http://www.mysite.com/map/map/1827/edit/?edit=1
    and it isn’t correct eather…
    it says: The page you requested could not be found.

    #145189
    Majijiboo
    Participant

    Thanks for responding. I made the below code and unfortunately didn’t work. When you have time in a week or 2, would love to know what went wrong. Thanks.

    function post_time ( $output) {
    $output = preg_replace( '/, .*[^ago]/', ' ', $output );
    echo $output;
    }
    add_action ('bbp_theme_before_reply_content', 'post_time') ;
    #145185

    In reply to: change forum sidebar

    Robin W
    Moderator

    have you been through the step by step guides in

    Codex

    #145184
    Robin W
    Moderator

    basically you’d need to cut some code to display the date/time, put it in a function that echo’s it, and then hook it to the following action

    add_action (‘bbp_theme_before_reply_content’, ‘your_function’) ;

    see

    Step by step guide to setting up a bbPress forum – part 4

    sorry am up to my armpits in other code, or I’d cut it for you !

    #145174
    Robin W
    Moderator

    should read

    <p><a href="<?php bbp_user_profile_url( bbp_get_current_user_id() ); ?>edit" >Amend Profile/Change password</a></p>

    sorry, wordpress tends to not like code, and keeps trying to edit it !

    have amended the codex !

    #145172
    bustel
    Participant

    Do the same thing for:

    edit function: bbp-reply-edit-link
    in the file: wp-content/plugins/bbpress/includes/replies/template.php

    on line 1922

    // Get uri
    // $uri = bbp_get_reply_edit_url( $r['id'] );
    $uri = ( '?edit=1' );
    #145171
    bustel
    Participant
    // Get uri
    // $uri = bbp_get_topic_edit_url( $r['id'] );
    $uri = ( '?edit=1' );
    #145168
    Halo Diehard
    Participant

    @foxden-vixen That’s awesome you figured it out! Often it is hit and miss for me too.

    I use FireFox FireBug and right-click, “Inspect Element” anywhere on a webpage and it tells me what that element is called. The “Read More” element on your page is called a.readmore and the ‘display none’ css should work for that. Maybe:

    .forum-archive a.readmore {
         display: none;
    }

    I should encourage you to start a new thread for topics that don’t go with the topic you are in, though 🙂

    #145161

    In reply to: creating a child-theme

    Robin W
    Moderator

    which parts of the plugin do you want to re-write?

    You will always be prompted for bbpress updates, so no code you write will be lost by mistake.

    If it is templates that you want to alter, then copy only the ones you alter to

    wp-content/your-theme/bbpress

    see
    https://codex.bbpress.org/step-by-step-guide-to-setting-up-a-bbpress-forum-part-3/ section 3

    of it’s functions, then you should change these using filters see

    Step by step guide to setting up a bbPress forum – part 5

    #145160

    In reply to: creating a child-theme

    Sascha.H
    Participant

    Well the problem isnt that i cant install it. Actually i had installed both plugins but i dont want to rewrite the plugin code because when the plugins will be updated my code will be overwrited thats why i want a child-theme but i dont know which parts from the plugin in which folder.

    1. Thank you
    2. The Problem is the basic URL is http://www.myurl.de/forums/forum/test and when i disable the thickbox its http://www.myurl.de/forum/test. But i want zero tags before. And when i delete the forum field and save than it appears again.

    foxden-vixen
    Blocked

    The site is back up today and I tested it out. It did not work the way you wrote the code.

    .forum-archive DIV.sidebar.right, .bbpress .single-forum DIV.sidebar.right, .bbpress .single-topic DIV.sidebar.right {
    	display: none !important;
    }

    should be

    .forum-archive DIV.sidebar.right, .bbpress.single-forum DIV.sidebar.right, .bbpress.single-topic DIV.sidebar.right {
    	display: none !important;
    }

    Just taking out the spaces between bbpress and single worked. The syntax was incorrect.

    One other stupid question…at the bottom of the main page, which I guess now is called the archive page, there is the “read more” tag. How do I get rid of that? Doesn’t that have to do with the loop?

    #145155
    Robin W
    Moderator

    find your themes full width page template and then follow the instructions below to get bbpress to use it

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

    #145149
    Robin W
    Moderator

    I’d start by reviewing the layout and functionality

    Layout and functionality – Examples you can use

    the look at

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

    to get some widgets in your sidebars

    then

    bbPress Styling Crib

    to get some styling.

    Halo Diehard
    Participant

    @foxden-vixen try adding a comma and:

    .bbpress .single-forum DIV.sidebar.right, .bbpress .single-topic DIV.sidebar.right

    after where you already have in the css:

    .forum-archive DIV.sidebar.right

    so it says:

    .forum-archive DIV.sidebar.right, .bbpress .single-forum DIV.sidebar.right, .bbpress .single-topic DIV.sidebar.right {
    	display: none !important;
    }
    foxden-vixen
    Blocked

    Halo thank you! I used the CSS code you provided. That worked for the front page of the forums. When I go to categories the sidebar is back. So any more code that you can throw at me to prevent the sidebar for other parts of the forum?

    #145130

    In reply to: Forum Ranks

    matthewa761
    Participant

    Still confused on where you enter this html code at…

    #145122
    leopolds
    Participant

    Hi,

    I am using Twenty Fourteen and bbpress. How can I make the forums root page full width?

    I want to remove the sidebar, center the content and remove the post-like forum names after the listing section. Basically, I want this page to act as a full-width page, not a post/forum listing.

    My forums root page is http://leopolds.com/discussions/

    I want it to look like http://leopolds.com/bbs/ (created using shortcodes)

    Thank you very much.

    (I was able to achieve full-width style in individual forum page by using widget visibility function. But this doesn’t work for the forums root page.)

    #145108
    Adonismoet1608
    Participant

    I have successfully changed the color of all of them forum except the .. reply background. My font is white and the back ground is white. I didn’t notice this code in the styling crib. Can I have help for this please

    #145106

    In reply to: hidden forum

    Robin W
    Moderator

    Not really without some code, and I’m busy doing that for my plugin, and it won’t readily adapt for the above method – hence why I’m writing a plugin.

    I’m not far off now, cracked the search yesterday, now a major tidy up !

    #145104
    Stephen Edgar
    Keymaster

    If you take a look at a single users profile and the ‘edit’ section:

    If you look in content-single-user.php you’ll see:

    <?php if ( bbp_is_single_user_edit() ) bbp_get_template_part( 'form', 'user-edit' ); ?>

    Open the form-user-edit.php template:

    
    <?php do_action( 'bbp_user_edit_before_role' ); ?>
    
    	<?php bbp_get_template_part( 'form', 'user-roles' ); ?>
    
    <?php do_action( 'bbp_user_edit_after_role' ); ?>
    

    (I removed some of the multisite network user role code for readability above)

    Open up the form-user-roles.php template:

    <?php bbp_edit_user_forums_role(); ?>

    The role that will be the default when you add this to your ‘New User Form’ will be the default ‘participant’ if that is what you have set the default role as in bbPress settings.

    Halo Diehard
    Participant

    @foxden-vixen try:

    DIV.sidebar.right.clearfix

    or

    DIV.sidebar.right

    If that doesn’t work in the experimental section, try pasting this in your style.css:

    .forum-archive DIV.sidebar.right {
    	display: none !important;
    }
    #145097

    In reply to: CHAT FOR MY FORUM

    Halo Diehard
    Participant

    There are so many cool options right now! Besides private messages, like the plugin listed above, there is a chat at the bottom bar that users can chat with but it’s also one on one privately, it is iFly.

    Also, the plugin Quick Chat can be integrated into bbPress in two different ways:

    1. This chat plugin can be put into different WordPress pages with shortcodes, so you can put it on any pages at the top or bottom of your forums that are on WordPress pages using shortcode, or in any sidebar widget.

    2. You can also use a different chat on each WordPress page using shortcode, so coupled with the plugins BuddyPress and BuddyPress Groups Extras (which adds extra pages to BuddyPress Groups) you can give each of your bbPress forum groups their own private chat!

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