Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 6,651 through 6,675 (of 6,788 total)
  • Author
    Search Results
  • #54221
    zapata
    Member

    It’s the default theme… all righty mdawaffe is here… thanks… I’ll update this and let you guys know…

    Will the bbPress-WP Integration be working?

    #54218
    Trent Adams
    Member

    What is your theme name….we can fix this in a hurry for you! Is it the default theme now?

    Trent

    #54207
    macwise
    Member

    Yes, this worked great for me. I thank you all!

    #54206
    dss
    Member

    * edit *

    i wasn’t logged in as the keymaster admin. so nevermind.

    amazing!

    Thank you!!!

    #1367

    Or maybe you see “Theme not found. Default theme applied.” in the Presentation Admin panel.

    Your custom templates must go into a subdirectory of

    my-templates/. Like

    my-templates/my-hot-theme/

    This is new in bbPress 0.8.

    http://bbpress.org/documentation/themes/

    #54204

    Please don’t put anything in bb-templates! This will be problematic for you later.

    Put your templates in a subdirectory of my-templates/ :)

    Check out https://bbpress.org/documentation/themes/

    #54203
    macwise
    Member

    Awesome…didn’t know this was an upgrade for this version. But I love it…

    #54202
    Trent Adams
    Member

    I didn’t know you could drop the folder into my-templates as well. Interesting…that might be a better solution! Thanks for the 411. Does it need to be a complete folder then or just changed files? I didn’t even bother testing that out! ?

    Trent

    #54201
    so1o
    Participant

    the theme system in the 0.8 version is a little different from the 0.75 version. this is an upgrade.

    put the theme files in a folder and drop that folder in the bb-templates or my-templates directory.

    #54200
    Trent Adams
    Member

    With 0.8, we still use the my-templates and my-plugins directories. What you need to do is create a directory for your theme that you have and put it in the my-templates directory:

    /root directory/my-templates/your-theme/

    Then, what I did was copy all the files from the default theme into my directory folder that I hadn’t changed to make a complete template folder. For example, if you changed only style.css, header.php, front-page.php and footer.php, then copy the rest of the files from the default template into that folder as well.

    Once you have all those files in your theme directory, go to the admin => presentation => and pick your theme! It works pretty slick. You may want to take a snapshot of your theme and upload it so that the admin area knows which one it is! Uploading a snapshot with the name screenshot.png should do the trick!

    Trent

    EDITED NOT TO START CONFUSION!

    #1366
    macwise
    Member

    hmmm…I must have missed something. When I uploaded desmond, it went back to the default template. I have re-uploaded the “my-template” and “my-plugins” folders, nothing. I even went so far as to rename bb-templates, and it threw some errors. Any ideas what I’ve done wrong?

    #54133

    In reply to: Unique Style Sheet?

    macwise
    Member

    Once again, I think this is done by default. WP has its theme and content. bbPress has its theme and content.

    As usual..more details.

    I am really trying to use elements from wp on the bb side, such as sidebar…so I’m calling

    <?php get_sidebar(); ?>

    on pages like this one:

    http://babyquestions101.com/forum/

    However, I have so many questions as to how to handle the login box in sidebar…Should it:

    – Go to BBPress login/register page always (wp or bb)

    – Go to WP login/register page always

    – Go to respective login/register pages depending on which side the click originated?

    Then, depending on that configuration, redirect questions ensue.

    I know this is probably a matter of preference, but I’m indifferent, and wondering what will overall be the best solution for the user. Any suggestions will be greatly appreciated.

    – Login Redirects to last visited page

    It seems to me that if you are integrated, both bbPress and WP use the wp_users table in the database so wherever you login will be redirected to the last visited page (as both programs do this now). It is easy to have th login in the header.php of your template in bbPress and just adding the login box to WP in sidebar also has login on every page.

    I have already made a tweak to the redirect in wp-admin to go back to the homepage in wp. I did this because it was redirecting to the profile.php page when a user logged in, instead of to the last page they were visiting. Is that the default behavior, or did I miss something? I am on wp v.2.0.5, so maybe something has changed in version 2.1 which changes this behavior?

    Ron

    #54132

    In reply to: Unique Style Sheet?

    Trent Adams
    Member

    – Login Redirects to last visited page

    It seems to me that if you are integrated, both bbPress and WP use the wp_users table in the database so wherever you login will be redirected to the last visited page (as both programs do this now). It is easy to have th login in the header.php of your template in bbPress and just adding the login box to WP in sidebar also has login on every page.

    – Display selective content based on which side the user’s on (bb vs wp)

    Once again, I think this is done by default. WP has its theme and content. bbPress has its theme and content.

    – I seem to be having some issues with relative paths? (Actually, I think I may have just figured this out, and I may just be dumb)

    Relative paths are easy to figure out, we can go into this more if you didn’t get it.

    – Some other thing I’ll ask about in 7 minutes or less, I’m sure…

    Shoot. That is what we are here for.

    Trent

    #54089
    ardentfrost
    Member

    One day I plan to add options such as these to an admin interface, but for the time being, you just gotta do it by hand.

    Of course, the trick to that is pulling out the information. get_profile_info_keys seems like it should pass you back an array of those values and you can just get them out of there, except I haven’t attempted to use that function and since it doesn’t ask for any information about the user you’re interested in, I don’t know how to tell you to get the information from that seemingly useful function.

    Which takes us to my personal favorite method: SQL commands. You’d be searching through the table bbprefix_usermeta (mine is bbpress_usermeta). Setup a SQL call like this:

    $result = $bbdb->get_results("SELECT * FROM $bbdb->usermeta WHERE user_id = $id");

    where $id is the id of the person you’re interested in and $result is the object that the person’s data will be loaded into.

    Then to access the information, you’d simply call it like this (like, for the example of where the user is from):

    $result->from

    You can echo that to have it printed or whatever you want done with that information. A quick glance at the database tells me that you can call this information (and what it means):

    “from” = location

    “occ” = occupation

    “interest” = interests

    “bbpress_title” = the title, custom or default

    You’d have to make a subroutine in bb-memberlist.php in the my-plugins directory to get $result, then use the information in memberlist.php.

    Sorry I can’t do more for you than this, but I used information from the table I had already gotten results from for ease in my current release. I could have added more stuff, but then some people might not have wanted them plus it’s easy to add or subtract from information users put in when they sign up and blah blah blah…. one day I’ll make it nice via the admin panel, but for now, good luck :)

    #54001
    Null
    Member

    Hmm it should have entries, something went wrong there.

    If you can, delete the bb_menu table.

    Then in phpMyAdmin:

    CREATE TABLE bb_menu (

    set varchar(50) NOT NULL default '',

    item varchar(50) NOT NULL default '',

    page varchar(50) NOT NULL default '',

    location varchar(50) NOT NULL default '',

    order int(9) NOT NULL default '0',

    PRIMARY KEY (set,item)

    ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

    If your current bb_menu already has these values, you wont have to recreate it. But better save then sorry…

    Now fill the table:

    INSERT INTO bb_menu VALUES ('active', 'Forums', 'index.php', 'front-page', 0)

    INSERT INTO bb_menu VALUES ('active', 'Search', 'search.php', 'search-page', 1)

    INSERT INTO bb_menu VALUES ('available', 'Statistics', 'statistics.php', 'stats-page', 0)

    Now refresh the admin page. This should fix it. Not sure if I gave the right syntaces to use in phpMyAdmin, but you get the idea :)

    ps. If you didn’t use the bb_ prefix, you should change this…

    ps2. And leave out the @

    ps3. This is the beta so it has some errors that are fixed in the final release (after bbPress 0.8 is out)

    #51388
    Trent Adams
    Member

    It is a bit of a complete thing if you don’t know CSS really well and the functions for bbPress. You can look at how the default theme is produced, or just take a look at this from So10

    wordpress and bbpress theme integration

    Trent

    #1345
    baptiste
    Member

    So I’ve been digging further into the strange behavior I’ve had with slashes in posts AND with HTML tag attributes being yanked out.

    It’s all related. Apparently, there is some type of problem where slashes get added TWICE when the WP intergation is on. This is why slashes start showing up everywhere and why kses fails.

    I finally discovered that even though the stripslashes filter is called before bb_filter_kses, there are still slashes in front of the quotes of the attributes. So they get tossed.

    So I took out all the stripslashes hacks I had put into the title and post routines and called stripslashes TWICE as a pre_post filter. Voila – attributes are preserved.

    add_filter('pre_post', 'stripslashes', 40);

    add_filter('pre_post', 'stripslashes', 45); // 2nd Time

    I also added this little section in default-filters.php:

    // Slash problems when integrated with WordPress

    if (defined('WP_BB') && WP_BB) {

    add_filter('post_text', 'stripslashes');

    add_filter('get_topic_title', 'stripslashes');

    add_filter('get_bb_title', 'stripslashes');

    add_filter('edit_text', 'stripslashes');

    }

    And it stripped out the slashes in titles, browser bars, posts, edit screens, etc. (Note there is a missing semi-colon after the sort_tag_heat_map line – you need to add on if you put this at the end)

    This is still a hack. I don’t have magic quotes on. I still need to dig and find out why there seems to be alternate behavior when wordpress is integrated or not. Maybe WordPress is turning on magic quotes and bbPress doesn’t expect it to be on?

    Still digging.

    #53624
    Trent Adams
    Member

    Another call to all the template authors. With 0.8 coming out right away, you might want to take a look at the new way that templates are going to be called. You have to make sure your theme information is included in the style.css (check top of default template style.css for info).

    As well, themes will have their own folder in the my-templates/ folder. So, /my-templates/theme-name/ ! It still only needs the changed files in there, but you can check out the Themes Documentation for more information!

    The last real thing you might want to do is take a snapshot of your template for the admin area. After you have the snapshot, it is best to create it in PNG format and call it screenshot.png

    Just a heads up! It will be wicked!

    Trent

    #1342

    Topic: Plugin: private forum

    in forum Plugins
    ryudonghyup
    Member

    When I use default template, this plugin doesn’t have a problem. But, I changed default into K2 template. I came to know, registered member also can see my private forums. I want it completely private.

    Is there any solution for this?

    #53985
    ear1grey
    Member

    That comes with bitter experience :)

    Once it’s working, it’s then a good time start thinking about integration. Since this is a plugin it will have to work with many themes, so for maximum flexibility you might want to switch from pixel based sizing to either percentages or ems so that everything is sized relative to the default font.

    #53003
    davidbessler
    Member

    Problem: With forum restriction, I use the following code to filter topics with the default views:

    function forum_restriction_list_of_allowed_forums($user) {

    global $forum_restriction_allowed_in_forum,$bb_current_user;

    foreach ($forum_restriction_allowed_in_forum as $forum_number => $forum_memberlist){

    if (ereg(get_user_name($user),$forum_memberlist) || $forum_memberlist ==''){

    $list_of_allowed_forums .= "'".$forum_number."',";

    }

    }

    $list_of_allowed_forums = rtrim($list_of_allowed_forums,",");

    return $list_of_allowed_forums;

    }

    // FILTER TOPICS

    function forum_restriction_get_latest_topics_where( $where ) {

    if (bb_is_user_logged_in()) {

    global $bb_current_user;

    $list_of_allowed_forums = forum_restriction_list_of_allowed_forums($bb_current_user->ID);

    $where .= " AND forum_id IN ($list_of_allowed_forums) ";

    echo "where is set to: $where";

    return $where;

    } else {

    return $where;

    }

    }

    add_filter ( 'get_latest_topics_where', 'forum_restriction_get_latest_topics_where' );

    The problem is this doesn’t work with bb_custom_views used by since-last-visit.php. It seems the plugin changes the $where AFTER forum-restriction has already tried to filter the $where.

    How do I get forum_restriction_get_latest_topic_where to add ” AND forum_id IN ($list_of_allowed_forums) ” to $where AFTER since-last-post sets $where?

    Kapish?

    #53041

    No need to change core files. Just make a file called user_types.php with the following code in it and put it in your my-plugins/ folder.

    <?php

    /*

    Plugin Name: Change 'Member' Label

    Plugin URI: https://bbpress.org/forums/topic/503

    */

    function change_user_type_labels( $label, $type ) {

    if ( 'member' == $type )

    return 'Kazoo Corps Draftee';

    return $label;

    }

    add_filter( 'get_user_type_label', 'change_user_type_labels', 10, 2 );

    ?>

    #53822

    In reply to: k2 for bbpress

    linickx
    Participant

    thanks Sabutay, you’re right that was missing, I was trying to avoid editing any of the php templates, but I agree this “part” is critical to the look of the theme.

    I’d like to move the “Profile / admin / log out” boxes into these tabs, as I think it would make them fit nicely, but the functions output this a <p> rather than <ul> by default :o(

    #53139
    baptiste
    Member

    It’s happening in the kses pre_post filter. If I comment out the bb_filter_kses add_action in default-filters, the link stays. I see a and href in the allowed_tags array. No clue why it would suddenly yank it out. Been browsing the SVN repository looking for recent changes – don’t see anything major. Very very strange.

    #53040
    M
    Member

    Worked like a charm, thanks so much.

Viewing 25 results - 6,651 through 6,675 (of 6,788 total)
Skip to toolbar