Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 11,076 through 11,100 (of 32,521 total)
  • Author
    Search Results
  • #150065
    Stephen Edgar
    Keymaster

    Nice, thanks for the follow up and code 🙂

    #150064
    Stephen Edgar
    Keymaster

    You copy the files to /mytheme/bbpress as stated in the links above.

    You also should change your template as I suggested above, that is the primary cause of your issue I think.

    #150063

    In reply to: Install Language

    Stephen Edgar
    Keymaster
    #150061
    Stephen Edgar
    Keymaster

    Should the admin get an email when a post goes into moderation if I have E-mail me whenever A comment is held for moderation selected in the Settings > Discussion.

    I have no idea 😉

    bbPress is not currently doing this, nor have I got to the this bit in the recent code updates I have written. This is probably something we would want to iterate on further once the changes we have been making as linked above in #2589 and ‘Per forum moderation’ in #459 and how we handle notifications for not just keymasters but also specific forum moderators also.

    #150057

    In reply to: Mobile display

    Robkk
    Moderator

    are you using a child theme ?? with bbpress.css in your child theme??

    cause what i might think is that you have put bbpress.css into your child theme a long time ago

    but the bbpress plugin updated their css with a repsonsive layout and you just dont have that code in your child themes bbpress.css

    if im right , you can just check out the bbpress plugin and copy styles to your child themes bbpress.css

    #150056
    Robkk
    Moderator

    @tonydes child theme

    you put it either one i guess,

    i copy most of my code into my custom css editor in my theme because it works automatically for me

    but if i have to put the code into my bbpress.css in my child theme , i have to add !important alot

    #150055
    palmdoc
    Participant

    @peterwsterling the Polls plugin generally works well. There is however a “bug”
    After creating the poll, if one ever tries to edit the first post in the topic, one will see an error message which says that the poll can only be created for the first post (even if it is the first post).
    You’ll lose the shortcode formatting and have to re-create it.

    #150049

    In reply to: Full Width Forum Help

    Robin W
    Moderator

    ok, so what happens at the moment is that the bbpress.php calls the footer.php at the bottom of it.

    The footer in turn calls the sidebar (this is an annoying habit that theme developers have started doing, sidebars should be called in theme pages not in footers aggghhh!).

    so what we’ll do in bbpress.php is simply take out the call to the footer, and put the footer code minus the sidebar into the bbpress.php

    so in bbpress.php remove the line which says

    <?php get_footer(); // Loads the footer.php template. ?>
    

    Then put this code in it’s place

    </div><!– .content-wrap –>
    
    <?php do_atomic( ‘close_main’ ); // oxygen_close_main ?>
    
    </div><!– #main –>
    
    <?php do_atomic( ‘after_main’ ); // oxygen_after_main ?>
    
    <?php do_atomic( ‘before_footer’ ); // oxygen_before_footer ?>
    
    <div id=”footer”>
    
    <?php do_atomic( ‘open_footer’ ); // oxygen_open_footer ?>
    
    <div id=”footer-content” class=”footer-content”>
    
    <?php echo apply_atomic_shortcode( ‘footer_content’, hybrid_get_setting( ‘footer_insert’ ) ); ?>
    
    </div>
    
    <?php get_template_part( ‘menu’, ‘subsidiary’ ); // Loads the menu-subsidiary.php template. ?>
    
    <?php do_atomic( ‘footer’ ); // oxygen_footer ?>
    
    <?php do_atomic( ‘close_footer’ ); // oxygen_close_footer ?>
    
    </div><!– #footer –>
    
    <?php do_atomic( ‘after_footer’ ); // oxygen_after_footer ?>
    
    </div><!– .wrap –>
    
    </div><!– #container –>
    
    <?php do_atomic( ‘close_body’ ); // oxygen_close_body ?>
    
    <?php wp_footer(); // wp_footer ?>
    
    </body>
     </html>

    Come back with what that does !

    #150048

    In reply to: Random Topic Link

    Robin W
    Moderator

    Absolutely you can, once in the edit screen of the page, switch to ‘text’ from ‘visual’ (top right of the content box), and paste

    echo '<a href="/?random=1">Random Post</a>' ;
    

    in there

    #150047

    In reply to: Random Topic Link

    joejozwowski
    Participant

    could I put that in a page or post, rather than the code?

    #150045

    In reply to: Full Width Forum Help

    aussiestar14
    Participant

    Hope this helps :-/
    the footer.php:

    <?php
    /**
    * Footer Template
    *
    * The footer template is generally used on every page of your site. Nearly all other
    * templates call it somewhere near the bottom of the file. It is used mostly as a closing
    * wrapper, which is opened with the header.php file. It also executes key functions needed
    * by the theme, child themes, and plugins.
    *
    * @package Oxygen
    * @subpackage Template
    */
    ?>

    <?php get_sidebar( ‘secondary’ ); // Loads the sidebar-secondary.php template. ?>

    </div><!– .content-wrap –>

    <?php do_atomic( ‘close_main’ ); // oxygen_close_main ?>

    </div><!– #main –>

    <?php do_atomic( ‘after_main’ ); // oxygen_after_main ?>

    <?php get_sidebar( ‘subsidiary’ ); // Loads the sidebar-subsidiary.php template. ?>

    <?php do_atomic( ‘before_footer’ ); // oxygen_before_footer ?>

    <div id=”footer”>

    <?php do_atomic( ‘open_footer’ ); // oxygen_open_footer ?>

    <div id=”footer-content” class=”footer-content”>

    <?php echo apply_atomic_shortcode( ‘footer_content’, hybrid_get_setting( ‘footer_insert’ ) ); ?>

    </div>

    <?php get_template_part( ‘menu’, ‘subsidiary’ ); // Loads the menu-subsidiary.php template. ?>

    <?php do_atomic( ‘footer’ ); // oxygen_footer ?>

    <?php do_atomic( ‘close_footer’ ); // oxygen_close_footer ?>

    </div><!– #footer –>

    <?php do_atomic( ‘after_footer’ ); // oxygen_after_footer ?>

    </div><!– .wrap –>

    </div><!– #container –>

    <?php do_atomic( ‘close_body’ ); // oxygen_close_body ?>

    <?php wp_footer(); // wp_footer ?>

    </body>
    </html>

    #150044
    tonydes
    Participant

    Thanks for the reply @robkk. Quick question though, if I use a child theme do I create a folder and copy the css file there or to the parent theme? Also once I copy it, do I add relevant code to the file itself or to the custom css editor on wordpress?

    Thanks again!

    #150043
    Robkk
    Moderator

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

    heres is a straight link to where you need to be, but reading the whole page isnt bad too

    #150041
    Robin W
    Moderator

    ok, could be a number of issues

    start with theme and plugin as it could be a theme or plugin issue

    Plugins

    Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.

    Themes

    If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.

    Then look at the documentation to see what else you might need to do

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

    #150039
    tonydes
    Participant

    Hi guys,

    I apologize in advance, my skills are pretty minimal and I couldn’t find a solution to my problem. I just installed the forum on my site, but the pictures (avatars) for ‘last updated by’, started by’ are huge! Where do I find the.css file to edit them, and what code do I use?

    Thanks in advance for the help!

    #150034

    In reply to: login and registration

    Robin W
    Moderator

    yes you need to set up pages for these functions.

    So set up a page called ‘registration’ and put

    [bbp-register]
    

    in it.

    and a page called ‘lost password’

    and put

    [bbp-lost-pass]
    

    in it

    You can prefix these codes with some text as well so for instance lost password might say

    Enter your email address, and we'll send you a new password
    
    [bbp-lost-pass]
    
    #150032

    In reply to: Random Topic Link

    Robin W
    Moderator

    ok, need to work out if menu issue or function issue

    So eliminate function by creating a test page and putting

    echo '<a href="/?random=1">Random Post</a>' ;
    

    onto the test page and confirm it works.

    #150017
    wp_maybe
    Participant

    I am trying to implement a search box inside a Buddypress group that searches on the contents of the Group Forum. I found some helpful instructions here

    Basically, I pasted the following code outside the loop in the “content-single-forum.php” file. (Of course this was done to a copy of the bbpress file which I imported into my theme’s bbpress folder):

    <h3>Search Forum</h3>
    <form role="search" method="get" id="bbp-searchform" action="">
    <label for="ts">Search the support forum topics</label>
    <input type="text" name="ts" id="ts" value="<?php echo ( isset( $_REQUEST['ts'] ) ) ? $_REQUEST['ts'] : ''; ?>" />
    <input type="submit" id="searchsubmit" value="Search" />
    </form>

    This code however, performs search only on the topics and not the replies.

    Can someone suggest appropriate modifications to the code so that it searches on both topics and replies rather than just the topics.

    Many thanks!

    #150013

    In reply to: Full Width Forum Help

    watstyl08
    Participant

    You need to make sure that code is at the VERY END of your style.css.

    #150012

    In reply to: Full Width Forum Help

    Robin W
    Moderator

    it’s not taking

    .bbpress #sidebar-secondary {
     display:none ;
    
    }
    

    try

    
    .bbpress #sidebar-secondary {
     display:none !important;
    
    }
    
    #150007

    In reply to: Random Topic Link

    joejozwowski
    Participant

    ok… so I pasted the following into my functions.php page:

    add_action('init','random_post');
    function random_post() {
           global $wp;
           $wp->add_query_var('random');
           add_rewrite_rule('random/?$', 'index.php?random=1', 'top');
    }
     
    add_action('template_redirect','random_template');
    function random_template() {
           if (get_query_var('random') == 1) {
                   $posts = get_posts('post_type=post&orderby=rand&numberposts=1');
                   foreach($posts as $post) {
                           $link = get_permalink($post);
                   }
                   wp_redirect($link,307);
                   exit;
           }
    }

    And then in my menu I created a LINK element and pasted this into the URL field:

    /?random=1

    And all I get is a blank page

    #150001

    In reply to: Full Width Forum Help

    watstyl08
    Participant

    Fixed it!

    I didn’t realize the .css code had to go at the very end of the style sheet.

    Everything works perfectly now

    Thanks for all your help!!

    #149997

    In reply to: Full Width Forum Help

    Robin W
    Moderator

    What can I change to eliminate the sidebar remnants that remain?

    The code in your style.css was supposed to do that ie

    .bbpress #sidebar-secondary {
     display:none ; 
    
    }
    

    I cannot see the other sidebar on your site – have you cleared your cache/refreshed your browser, and if you can still see it tell me which browser (eg IE, Chrome etc.) and give me a specific url

    We should be able to crack this one 🙂

    #149995

    In reply to: Full Width Forum Help

    watstyl08
    Participant

    OK!

    I tried this, and I think we’re getting extremely close 🙂

    Note that you also have to remove this code from your bbpress.php file

    <div class="aside">
    		
    		<?php get_sidebar( 'primary' ); // Loads the sidebar-primary.php template. ?>
    

    The only problem with my Forum now is that the “right” sidebar still shows up, albeit below the full-page forum. Check it out here –> http://www.ibeacon.com/forums/forum/ibeacon-com-forums/

    This is my code for the full-page template

    ‘get_header(); // Loads the header.php template. ?>

    </div>

    <?php do_atomic( ‘before_content’ ); // oxygen_before_content ?>

    <div class=”bbpress-wrap”>

    <div id=”bbpress-content”>

    <?php do_atomic( ‘open_content’ ); // oxygen_open_content ?>

    <div class=”hfeed”>

    <?php if ( have_posts() ) : ?>

    <?php while ( have_posts() ) : the_post(); ?>

    <?php do_atomic( ‘before_entry’ ); // oxygen_before_entry ?>

    <div id=”post-<?php the_ID(); ?>” class=”<?php hybrid_entry_class(); ?>”>

    <?php do_atomic( ‘open_entry’ ); // oxygen_open_entry ?>

    <?php echo apply_atomic_shortcode( ‘entry_title’, ‘[entry-title permalink=”0″]’ ); ?>

    <div class=”entry-content”>

    <?php the_content( __( ‘Continue reading <span class=”meta-nav”>→</span>’, ‘oxygen’ ) ); ?>

    <?php wp_link_pages( array( ‘before’ => ‘<p class=”page-links”>’ . __( ‘Pages:’, ‘oxygen’ ), ‘after’ => ‘</p>’ ) ); ?>

    </div><!– .entry-content –>

    <?php echo apply_atomic_shortcode( ‘entry_meta’, ‘<div class=”entry-meta”>[entry-edit-link]</div>’ ); ?>

    <?php do_atomic( ‘close_entry’ ); // oxygen_close_entry ?>

    </div><!– .hentry –>

    <?php do_atomic( ‘after_entry’ ); // oxygen_after_entry ?>

    <?php do_atomic( ‘after_singular’ ); // oxygen_after_singular ?>

    <?php endwhile; ?>

    <?php endif; ?>

    </div><!– .hfeed –>

    <?php do_atomic( ‘close_content’ ); // oxygen_close_content ?>

    </div><!– #content –>

    <?php do_atomic( ‘after_content’ ); // oxygen_after_content ?>

    <?php get_footer(); // Loads the footer.php template. ?>`

    What can I change to eliminate the sidebar remnants that remain?

    #149992

    In reply to: Random Topic Link

    Robin W
    Moderator

    @robkk thanks for that, so to make this a topic I think you you would just change

    $posts = get_posts('post_type=post&orderby=rand&numberposts=1');
    

    to

    $posts = get_posts('post_type=bbp_get_topic_post_type()&orderby=rand&numberposts=1');

    although could be

    $posts = get_posts('post_type="bbp_get_topic_post_type()"&orderby=rand&numberposts=1');
    
    

    never sure of some of these without playing

    idk how to bring that link up in the menu

    For a ‘button’ (actually it would just be a link) you just paste it in text mode onto whtever page. in php, you just echo it

    echo '<a href="/?random=1">Random Post</a>' ;
    

    on a menu item, you just at it as a link dashboard>appearance>menus and look for links

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