Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 6,651 through 6,675 (of 6,778 total)
  • Author
    Search Results
  • #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.

    #53702

    Solved. I made an .htaccess with this line only:

    AddDefaultCharset utf-8

    and that was it. *grin*

    #53855
    hexaust
    Member

    well..I found the bug..it was in post-form.php the one from the template…i restored the original one..from the default theme and its now working...now Im analyzing the one with the bug to see what exactly caused the error..I`ll post the answer here..

    #53854
    Trent Adams
    Member

    It has to be related to this post

    Make sure you post your solution when you compare your template versus the default!

    Trent

    #53853
    hexaust
    Member

    damn..it works..with the default template :(

    #53852
    hexaust
    Member

    nope..I didnt..Ive uploaded again again bb-post.php … and still nothing… I really dont know whats the deal..Ill back-up my curent theme..and Ill upload the default bbPress theme…to see what happens

    #53778
    Trent Adams
    Member

    No reason, it just wasn’t added as one of the default tags. A quick plugin should allow it pretty easily though. Let me see how easy it would be to write…..brb

    Trent

    #1308
    Geezerjim
    Participant

    I’ve upgraded Graphic Display Ranks to 0.6

    Moved the configurable variables to gdr_config.php located in the ‘ranks’ subdirectory. I also added a new set of images that are smaller than the original set and should fit in the default threadauthor css width.

    #53681
    Trent Adams
    Member

    Actually, when integrated both programs use the users of WP. If you delete a user in program they are gone in both. You can change roles around in either program and it doesn’t affect the role in the other. If you have a user in WP and don’t want them to post in bbPress you can change their bbPress role to inactive. All they would have to do is register another user to post though. WP is different. Registrations in either program creates user in WP with default role until you change that

    Trent

    #1290
    Geezerjim
    Participant

    I am fleshing out my plugin Graphic-display-ranks and I’m looking for the right hook to use to do the following:

    I want to find out if a topic author is the Key Master or a moderator. Here is what I have so far —

    function get_special_rank () {

    global $special_rank, $use_special_rank, $bbdb;

    if ($use_special_rank==1)

    {$title_for_rank=<strong>I NEED THIS HOOK</strong>( get_post_author_id() );

    switch ($title_for_rank) {

    case "keymaster" :

    $special_rank=1;

    break;

    case "moderator" :

    $special_rank=2;

    break;

    default :

    $special_rank=0;

    }

    }

    else

    {

    $special_rank = 0;

    }

    return $special_rank;

    }

    Can anyone point me in the right directon?

    #52591

    In reply to: IE Display Problem

    chrishajer
    Participant

    Sam, no problem. Since CSS3 is still a draft, I just use the CSS2 validator here:

    http://jigsaw.w3.org/css-validator/#validate-by-upload

    (CSS 2.1 is selected by default on that page)

    I also just use the CSS validator that is built into the Firefox Web Developer extension by Chris Pederick. I highly recommend it.

    As for the comments being less standards based, they’re just ignored as comments by smart browsers. While they’re not based on any standard (like much of IE itself, it seems) they were created by Microsoft to address problems like this.

    http://msdn.microsoft.com/workshop/author/dhtml/overview/ccomment_ovw.asp

    I just do what works to make things work in IE and posted the info in case someone else was having a similar problem. YMMV

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