Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

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

    #53619
    Sam Bauers
    Participant

    I’m working on a revised patch file for categories to accommodate the latest builds with the new templating file structure. Although it seems to be just me and spencerp who are using it. Of course, if you are customising your templates, then you will still have to edit your own based on the changes to the default theme.

    #53465

    davidbessler,

    Your theme needs to have a call to bb_head() in its header.php.

    If you’re using a version of the default header, make sure bb_head() is actually being executed on every page load. There was a bug in early versions of bbPress that prevented bb_head() from being called on anything but topic pages.

    As an aside, if you’re adding javascript, you should definitely use bb_enqueue_script().

    bb_enqueue_script( 'give-it-some-name', '/soruce/file.js');

    #52899
    spencerp
    Member

    @nateolsen, I just added ALL 3 databases into ONE database, like such:

    database_name (holding all three)

    bb_forums

    bb_posts

    bb_privatemessages

    bb_tagged

    bb_tags

    bb_topicmeta

    bb_topics

    mw_archive

    mw_categorylinks

    mw_externallinks

    mw_filearchive

    mw_hitcounter

    mw_image

    mw_imagelinks

    mw_interwiki

    mw_ipblocks

    mw_job

    mw_langlinks

    mw_logging

    mw_math

    mw_objectcache

    mw_oldimage

    mw_page

    mw_pagelinks

    mw_querycache

    mw_querycachetwo

    mw_querycache_info

    mw_recentchanges

    mw_redirect

    mw_revision

    mw_searchindex

    mw_site_stats

    mw_templatelinks

    mw_text

    mw_trackbacks

    mw_transcache

    mw_user

    mw_user_groups

    mw_user_newtalk

    mw_watchlist

    sk2_blacklist

    wp_bad_behavior

    wp_bas_log

    wp_bas_os

    wp_bas_pages

    wp_bas_refer

    wp_bas_searches

    wp_bas_ua

    wp_bas_visitors

    wp_bbpress_post_options

    wp_bbpress_post_posts

    wp_categories

    wp_comments

    wp_link2cat

    wp_linkcategories

    wp_links

    wp_options

    wp_post2cat

    wp_post2tag

    wp_postmeta

    wp_posts

    wp_secureimage

    wp_sk2_logs

    wp_sk2_spams

    wp_tags

    wp_tag_synonyms

    wp_usermeta

    wp_users

    Of course, used the normal database prefix for each one specifically. ;) :) It was mentioned though, that for the mw_ ones, you didn’t have to use the “mw_” prefix for when trying to mesh with bbpress/WP.. but, to play it safe, I used the default “mw_” prefix anyway.. Choice is your’s really.. :) ;)

    @mozey, nice!! I’ll have to try that out sometime, well, when I get more time. ;) :) Thanks for tips and pointers! ;) :)

    spencerp

    Trent Adams
    Member

    By default, the bbpress-integration.php plugin that you are using in WordPress brings over the registrations from bbPress and gives them the default role that you have for WordPress. That would mean that if they are given author status then that would be the default role for new members in WordPress. Maybe check that out.

    I tested this on my test forum and then changed the default role from subscriber to admin and sure enough the new user that I created came across in WP as an admin.

    Trent

    #52340
    ateale
    Member

    kickass! yes our server was set by default to php4. The server guys said:

    We have checked our server logs. The reason for the issue is not related to the memory limits for your account.

    The file_put_contents() function is only available in PHP 5.

    By default our servers handle any requests to .php file through the PHP 4 interpreter. By default the PHP 5 interpreter processes only files with .php5 extension.

    If you want to change this in a way that .php files are processed by the PHP 5 interpreter you should put the following line in your /www/blog/.htaccess file:

    AddHandler application/x-httpd-php5 .php”

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