Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 17,251 through 17,275 (of 32,506 total)
  • Author
    Search Results
  • #110100
    Anointed
    Participant

    Because the skeleton plugin adds the capability of adding theme templates which do not require added markup such as the header/footer/etc.

    The way it is now, bbPress has a bunch of twentyten specific templates which handle all the output for bbPress. Each of these templates carries the overall ‘layout’ for twentyten instead of just what is output by bbPress.

    If my understanding is correct, I would create a single bbpress.php file that holds just the twentyten layout. ‘The_content’ would then be auto replaced according to what page you are on.

    This would mean that in order to get a custom setup in any theme, I would only have to modify one template file, ‘the twentyten base layout’ instead of modifying every file.

    Basically I am trying to find a way of making it easier for me to build and market bbPress templates that work in any theme.

    An example would be people that don’t want a sidebar. You would simple change the bbpress.php file to remove the sidebar, change the css attribute for the content area to be fullwidth and your done. You don’t have to modify the other bbPress templates.

    *Yeah, I know, there are shortcodes, custom page templates etc already avail, but trying to find an even better approach.

    #40464
    Anointed
    Participant

    I am using custom theme templates from bbPress within my own theme. So no shortcodes or creating pages etc.

    What I am trying to do is to show the list of most recent topics below the forum list on the forum homepage.

    I am using the following code:

    <div id="forum-front" class="bbp-forum-front">
    <div class="entry-content">

    <?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>
    <br><br>
    <h3><?php _e( 'Recent Topics: ', 'bbpress' ); ?></h3><br />
    <?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>

    </div>
    </div><!-- #forum-front -->

    This seems to work, however, the pagination for the topics is wrong. Currently it tries to go to /forums/forum/last-forum-title/page/2/

    It should go /topics/page/2/

    Using the default bbPress templates within my own theme, what would I add to the archive-forum.php file in order to show recent topics with pagination that works right?

    *I saw that devpress managed to pull it off, so asked over there as well.

    #40457
    jabre
    Member

    Is there a way to protect, hide or remove the RSS-Feeds of topics and replies?

    I’m using bbpress 2.0 and Buddypress for a protected community. Thanks to “private buddypress” everything is protected, even the feeds require a login. Only the BBPress 2.0 Feeds aren’t protected.

    I’m using the solution in this thread:

    http://bbpress.org/forums/topic/combining-bbpress-rss-feed-with-wordpress-rss-feed-possible

    to combine the feeds into one, which is successfully protectet by the private-buddypress-plugin.

    Using this code

    remove_filter( 'request', 'bbp_request_feed_trap' );

    I can force the forumfeeds to be protected but if I enter username and password I get a weird feed.

    Is there a more “elegant” solution to this problem? It would be great if I can protect the original forum-feeds but removing them completly would do the trick too.

    #110045
    Anointed
    Participant

    What did the theme author have to say?

    To have something like this happen in a single browser means he obviously coded something specific to Safari that isn’t working right.

    #108218
    Anointed
    Participant

    Suggestion:

    Please consider adding the topic status to the topic_class()

    This will make it very easy for me to style resolved/not-resolved differently to give it a little flair.

    It would also be nice to not have the ‘urgent/resolved/etc’ placed before the topic title. Provide an off switch and a function where I can simply place the code where I want it to show up.

    *I can do that myself, but it would make upgrades difficult

    #40459
    paulmarshall
    Member

    Hi

    I’ve recently installed bbPress plugin to my WordPress blog and am having a few problems. Wondered if somebody could help me please.

    The forum index is fine – added using shortcode to a page on the website:

    http://bristolornithologicalclub.co.uk/?page_id=926

    But viewing the forum and it seems to use a page template with a sidebar. I would like it full width.

    http://bristolornithologicalclub.co.uk/?forum=2011-sightings

    As my php skills are non existent I asked the theme developer for help and he came back with the following:

    “Yesterday I installed the plugin and checked things. The plugin has many template files and it is difficult to figure out which template is ‘exactly’ used for the forum page. May be they are custom post types/taxonomies.

    Further, we will need to implement the full width for topics, forum, author and other such pages. If you could ask the plugin authors about any specific hook, I can help you out further. You just need to ask them how to detect whether the current page is from bbPress plugin. (Any post type or page type hook).”

    Any help gratefully appreciated.

    Best wishes

    Paul

    #40454
    Anointed
    Participant

    I’m looking for something like is_bbpress(), but one that only fires if on the forum homepage. Is there such a conditional?

    i.e.

    if is_bbpress_forum_home() …. will allow me to add/subtract functionality from the forum homepage no matter where it is located.

    Trying to do something like:

    <?php if ( $page = bbp_get_page_by_path( $bbp->root_slug ) ) : ?>

    <?php _e( 'Forums', 'bbpress' ); ?>

    <?php else : ?>

    <?php bbp_forum_title(); ?>

    <?php endif; ?>

    #40455

    I figured since I was asking for help on something here:

    http://bbpress.org/forums/topic/function-calls

    I would at least give a little something that I believe some people may find useful. I may not explain this well so please feel free to ask questions and I’ll do my best to help you.

    I needed to create a whole new sidebar for my forum page and after some research and using the old noggin I came up with the following. Please note that this should be a good common usage for most themes but your situation may be unique. Adjust as needed.

    First, open your functions.php file and copy the following in there:

    // Forum Sidebar Widget Area. Empty by default.
    register_sidebar( array(
    'name' => __( 'Forum Widget Area', 'twentyten' ),
    'id' => 'forum-widget-area',
    'description' => __( 'The Forum Widget Area', 'twentyten' ),
    'before_widget' => '<li id="%1$s" class="widget-container %2$s">',
    'after_widget' => '',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>',
    ) );

    Again, each case may be different but generally this will work. What this will do is create a new Widgetized sidebar area (located under Appearances >> Widgets)

    Alternatively, You can copy your existing widget code in functions.php for widgets but be sure to rename the areas, especially id, as I have above (forum-widget-area was originally sidebar-widget-area).

    Take note, as well of the class= and id= I have. Those are useful for my blog but you may be using different tags for yours. Adjust as needed.


    Then Create a new file and name it anything you want, for our testing purposes we’re going to use forum-sidebar.php

    Copy and paste your code from sidebar.php into your new forum-sidebar.php file.

    My original looks like this:

    // A Sidebar for widgets
    if ( is_active_sidebar( 'sidebar-widget-area' ) ) : ?>

    <div id="sidebar" class="widget-area" role="complementary">
    <ul class="xoxo">
    <?php dynamic_sidebar( 'sidebar-widget-area' ); ?>

    </div>

    As you can see, I have two spaces calling the sidebar-widget-area that was previously declared in functions.php. Yours should be very similar to this or at least easy enough to figure out.

    What you need to do is rename the two fields within the () areas to what you declared when setting up your code in functions.php, mine is

    // A Sidebar for widgets
    if ( is_active_sidebar( 'forum-widget-area' ) ) : ?>

    <div id="sidebar" class="widget-area" role="complementary">
    <ul class="xoxo">
    <?php dynamic_sidebar( 'forum-widget-area' ); ?>

    </div>

    Notice how I changed sidebar-widget-area to forum-widget-area ?

    We do this so that when your forum page is called, it shows the widgets you’ll setup later.


    Now, Open your Page Template and find:

    <?php get_sidebar(); ?>

    Or something similar. generally this is at the bottom of the code.

    Replace that with:

    <?php
    $uri = $_SERVER['REQUEST_URI'];
    if ( strpos($uri,'YOUR-FORUM-BASE') !== false ) {

    include(TEMPLATEPATH . '/forum-sidebar.php');

    } else {

    get_sidebar();

    }
    ?>

    “forum-sidebar.php” is the file you created earlier and YOUR-FORUM-BASE is the “Forums base” you have defined for your forums settings (in Settings >> Forums). Also please note the / before the file name. With this code you’ll need it.

    What this does is calls your primary URL http://yoursite.com and then attempts to detect if it’s on THIS URL or ANOTHER.

    So if yoursite.com/YOUR-FORUM-BASE then SHOW THIS else SHOW THAT.

    Using this code you can have an entirely seperate widget area for your forum page so you can make better use of the bbPress widgets without overdoing it with your current sidebar setup.

    Someone may have a better or more elegant way of achieving this but this has worked for me and it works well. I hope anyone finds it useful.

    #40447
    highexistence
    Participant

    I’m trying to show a logged-in user’s favorite topics on a single page like the page-front-topics.php template that’s included in the bbpress default theme. I used the exact same syntax as in that file but instead called in another template I created, content-archive-favorites.php, which contains the exact code (minus the containing div) from the user-favorites.php file.

    It just shows that the user has no favorites.

    Any help would be greatly appreciated!

    svedman
    Member

    In bbpress.pot, the original strings are:

    This forum contains %1$s and %2$s.

    This category contains %1$s and %2$s.

    With bbPress 2.0-rc-2 fully translated, these phrases seem to use hard-coded English for the words topic/topics and reply/replies.

    Translated to Norwegian, the finished phrases will thus be:

    Dette forumet inneholder 0 topics og 0 replies.

    Denne kategorien inneholder 0 topics og 0 replies.

    When they should be:

    Dette forumet inneholder 0 tråder og 0 svar.

    Denne kategorien inneholder 0 tråder og 0 svar.

    #110018
    jez101
    Member

    @Gautam Fair point.

    @anointed I hope so, perhaps the new version might have better out of the box support

    @letheos I think I will have another go with bbcodes, this does now seem like the best option. I’ll post back if I have any luck.

    Thanks for the replies.

    #109950
    sharonlevi80
    Member

    i would love to get answer to that too.

    really love the new version by the way…

    cheers !!

    sharon


    ‫‪‫superenalotto

    #110016
    letheos
    Member

    You can use shortcodes and just add some custom css styling.

    #110030
    letheos
    Member

    Dario,

    1. Create a page.

    2. Make it a homepage.

    3. Add the right shortcodes.

    4. Add proper styling.

    highexistence
    Participant

    Hmm so there’s no way to code this in until it’s released? I would LOVE to be able to have favorites/subscriptions in the BP profile. I need the functionality of both!

    Additionally, it would be great to also have a list of ‘Mine’ discussions on the profile too.

    #110004
    pagal
    Participant

    I found a solution somewhere to disable functions when you are calling post-form to septate files: LIKE

    <?php post_form( array( 'last_page_only' => false ) ); ?>

    I hope, with that kind of code we can disable attachments on replies.

    — Anyone?

    #110002
    pagal
    Participant

    Bump! Bump!

    Hello, Zaerl, Ben L.

    Are you listening to me?

    I think _ck_ has gone again :-/

    #110043
    Anointed
    Participant

    Odds are pretty good that it has something to do with the css files. I’d ask the theme author what he is doing to cause this issue.

    I read through the code that I can see but have no idea what is wrong. I do see the style.css being called twice in your header, but that would not cause this problem.

    Honestly, this one is so weird, that I’d love to hear what the fix ends up being so if you do find out, please do share….

    #109797
    amirsaam
    Member

    Yep, but something else you can use if you want that play like Twitter to reply game (Got my mean? Like @OAEErra) on topics you can use this: Easy Mentions

    Note: The code I gave you is for StandAlone vr. not the bbPlugin

    #109796
    OAEErra
    Member

    That’s perfect 7i7GRiFFiN i’ll play with this later, thanks!

    I assume that takes them to the post form area on the forum page itself?

    I could do that with a ‘Reply’ button on each post too.

    Much thanks :)

    #110015
    Anointed
    Participant

    As bbPress follows all WordPress code standards, I am going to assume it is something to do with thesis.

    Chris is a great coder so I am certain that he would have no problem coming up with a fix for thesis.

    Anointed
    Participant

    Actually it was quite easy to do:

    Modify archive forum:

    <div id="forum-front" class="bbp-forum-front">
    <div class="entry-content">

    <?php bbp_get_template_part( 'bbpress/content', 'archive-forum' ); ?>
    <br><br>
    <h3>Recent Topics:</h3>
    <?php bbp_get_template_part( 'bbpress/content', 'archive-topic' ); ?>

    </div>
    </div><!-- #forum-front -->

    Notice I am simply calling the content-archive-topic template.

    **Obviously there is more to it than simply modding a core file which is not good. I am going to assume that you are using a custom theme/child-theme and modifying the templates from there.

    #109836
    Anointed
    Participant

    @Gautam

    Yes I read through your code prior to posting this and used it as an example of how to add options to the page.

    It was because of reading your code that I was asking about using tabs. My reason for this is that it would give the users a clear distinction between ‘core’ and ‘custom’ options while still maintaining all options in the same page.

    Just thought it would be unique, cool, and provide yet another level of organization to bbPress.

    #109876
    antonchanz
    Member

    The latest versions now have admin settings in the dashboard that allow the admin to create additional whitelists of supported tags. It also detects Viper’s Video Quicktags and allows all those tags to be added to the whitelist via a single checkbox.

    I’ve implemented a means by which other shortcode plugin developers can make their plugins get automatically detected by the whitelist, declaring which safe shortcodes they support, and giving them the same single checkbox ‘add to whitelist’ functionality that I’ve currently done with my bbPress BBCode plugin and Viper’s Video Quicktags.

    Gautam Gupta
    Participant

    You would actually need to modify theme files, particularly the forum loop and CSS files to do that. It involves a bit of time and no one has tried to do it yet. I’ll see to it when I get time. :)

Viewing 25 results - 17,251 through 17,275 (of 32,506 total)
Skip to toolbar