Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 6,326 through 6,350 (of 6,788 total)
  • Author
    Search Results
  • #2523

    Topic: Plugin: Gravatar

    in forum Plugins
    livibetter
    Member

    I wrote a simple plugin for Gravatar. I am planning to put files on Extend, but I am still waiting. You can download it from Google Code for now, please visit this plugin’s homepage. You can find a download link and know how to modify your theme in the page.

    It is relatively simple:

    • Gravatar Email field – This plugin doesn’t use user’s registered email.
    • Email Verification – Users need to own the Gravatar Emails which they input.
    • Support Default Image
    • Size customized (1..80px)

    I hope I can hear your thoughts about this plugin.

    #61166
    iamfyrestorm
    Member

    Well, I don’t know, but since there’s a deregister view following the register view function maybe it’s not necessary.

    function bb_register_view( $view, $title, $query_args = '' ) {
    global $bb_views;

    $view = bb_slug_sanitize( $view );
    $title = wp_specialchars( $title );

    if ( !$view || !$title )
    return false;

    $query_args = wp_parse_args( $query_args );

    if ( !$sticky_set = isset($query_args['sticky']) )
    $query_args['sticky'] = 'no';

    $bb_views[$view]['title'] = $title;
    $bb_views[$view]['query'] = $query_args;
    $bb_views[$view]['sticky'] = !$sticky_set; // No sticky set => split into stickies and not
    return $bb_views[$view];
    }

    function bb_deregister_view( $view ) {
    global $bb_views;

    $view = bb_slug_sanitize( $view );
    if ( !isset($bb_views[$view]) )
    return false;

    unset($GLOBALS['bb_views'][$view]);
    return true;
    }

    I’m in trouble if I ever need to create my own views or if the views that are being created in the default-filters.php page are ever used. But until I get a response from someone that knows what’s going on, I’m running bbPress without it register views.

    #53043
    livibetter
    Member

    I made another approach to fit this need and used it on my forum.

    function ChangeRoleDisplayName() {
    global $bb_roles;
    $bb_roles->role_names['keymaster'] = "Toilet Cleaner";
    [...]
    }

    add_action('bb_got_roles', 'ChangeRoleDisplayName', 10, 0);
    ?>

    The complete code is in role-display-name.php.

    #61162
    iamfyrestorm
    Member

    I’ve done a little more troubleshoot, although it’s gotten me nowhere, but I’ll post it here in the event that someone may be able to help me:

    Line 81 in the bb-includes/default-filters.php file is:

    bb_register_view('no-replies', __('Topics with no replies'), array('post_count'=>1));

    I did a search in the files and “bb_register_view” pops up in 3 files:

    default-filters.php

    functions.php

    template-functions.php

    #61173
    _ck_
    Participant

    I think there is indeed a gravatar for bbpress plugin but I like the more developed avatar plugin by Louise Dade.

    A locally cached copy of a gravatar is always better than relying on the remote copy, even with the enhanced WP speed. Perhaps Louise’s can show the remote gravatar and give the member the option to use it as the default local. I’ve got a very large blog using gravatars and polling for a couple thousand members is a serious load issue with gravatars.

    Then there is the issue of universal avatar support across bbPress<->WP which I don’t quite have working yet, I have to look at what other people have done.

    In any case this is a good move for gravatars. But I simply cannot believe they built something with Ruby on Rails and were hoping to scale it for millions of users though. That’s going to have to be changed radically.

    #2516
    iamfyrestorm
    Member

    I’m doing a fresh install of bbpress. I’m not linking it to wp.

    I’m getting this error:

    Fatal error: Call to undefined function: __() in /home/2816/domains/ridetoremedy.com/html/community/bb-includes/default-filters.php on line 81

    My config file is correct. It’s linking to the same db as wp (simply because there’s no reason to use a different db if I can just prefix the tables differents, i.e. bb)

    Any help would be appreciated. I don’t want to have to go to a different forum system, but I really thought this would be easier than it’s turning out to be.

    Thanks :)

    #61145
    JRussell
    Member

    Okay, wow. It looks like I may have figured it out. All I did was set Permalinks to default within WordPress 2.3 and the installation came up. Sweet!

    #58139

    In reply to: bbSync

    slexaxton
    Member

    This has been scarcely tested, but I think I have a fix for my bug… weird…

    in the bb-includes/capabilities.php file there is a function at the bottom that looks like this:

    function bb_give_user_default_role( $user ) {
    if ( !( is_object($user) && is_a($user, 'BB_User') ) )
    return;
    $user->set_role('member');
    }

    I changed it to look like this:

    function bb_give_user_default_role( $user ) {
    if ( !( is_object($user) && is_a($user, 'wp_User') ) )
    return;
    $user->set_role('member');
    }

    Instead of checking to see if the bb_user existed, we wanted to check to see if the wordpress user existed, assuming we merged our user table. For some reason, this seems like a bug in the bbPress code. Shouldn’t that be a variable prefix to begin with?

    #61127
    petitpoulain
    Member

    A quick solution is changing where is “kakumei” to “mytheme” on all files.

    But hope a better solution, i tried that too and didnt work :(

    https://bbpress.org/forums/topic/theme-not-found-default-theme-applied?replies=8#post-4407

    #2505
    petitpoulain
    Member

    I installed on localhost. When i first try to change the theme it works, and them i have this message “Theme not found. Default theme applied.”, and can’t change anymore.

    I looked to the link themes and they are wrong, pointing to

    <br>

    ?theme=c:arquivosdeprogramaseasyphp1-8wwwwordpressbbpress/bb-templates/kakumeia/&_wpnonce=117154f828

    how can i fix it and remove that ‘c:arquivosdeprogramaseasyphp1-8wwwwordpressbbpress’ part?????

    #61072

    In reply to: CSS

    Graeme
    Member

    Did you copy all of the rules?

    You should have copied all of these rules:

    /* Default table structure
    =================================== */

    /* 100% is a good starting width for most tables - this is a forum! */
    table { width: 100% }

    /* Login form (header.php)
    =================================== */

    .login {

    }

    .login p {

    }

    .login label {

    }

    .login #submit {

    }

    p.login {

    }

    form.login input {

    }

    /* Breadcrumbs (most templates)
    =================================== */
    .bbcrumb {

    }

    /* Notice (profile.php)
    =================================== */

    .notice {

    }

    .notice p {

    }

    /* Front Page
    =================================== */

    #front-page #hottags {

    }

    #front-page #discussions {

    }

    /* hot tags! */
    .frontpageheatmap {

    }

    #front-page #main h2, #forum-page #main h2, h2.post-form, #userlogin, #currentfavorites, #register {

    }

    #front-page #discussions ul {

    }

    .sticky {
    background-color: #ffffd0;
    }

    /* Topic Page (topic.php)
    =================================== */

    /* wrapper for topic */
    .infobox {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    }

    ul.topicmeta {
    display: block;
    margin-left 1.0; padding-left: 0em;
    }

    .topicmeta li {
    display: list-item;
    list-style: square inside;
    }

    #topic-info h2 {
    border: 0px;
    margin: 0px;
    }

    #topic-info {
    float: left;
    }

    #topic-tags {
    top: 1.0em;
    margin-top: 2.0em;
    float: right;
    }

    /* .nav used by topic.php & tag-single.php */
    .nav {

    }

    .nav span {

    }

    .nav span, .nav a {

    }

    #thread {

    }

    #thread li {
    margin-bottom: 1.0em;
    }

    #thread li ol, #thread li ul {

    }

    #thread li ol li, #thread li ul li {

    }

    /* following are used by post.php */
    .threadauthor {
    margin-left: -0px;
    overflow: hidden;
    width: 115px;
    position: absolute;
    }

    .threadpost {
    margin-left: 130px;
    width: 370px;
    background-color: #f5f5f5;
    padding: 10px;
    }

    .poststuff {
    font-size: 0.8em;
    border-top: 1px solid #e5e5e5;
    }

    .num, #forumlist small {

    }

    .postform {
    background: #f0f0f0;
    padding: 1em;
    margin-bottom: 1em;
    }

    .postform textarea {
    height: 12em;
    margin: 5px 0;
    padding: 5px;
    width: 96%;
    display: block;
    }

    .postform label { display: block; }

    .rssfeed { line-height: 20px; padding-left: 23px; background: url( "images/feed-icon-16x16.png" ) center left no-repeat; }

    #manage-tags {

    }

    #manage-tags li {

    }

    .submit {

    }

    .topiclink {

    }

    .topictitle {

    }

    #topic-move {
    margin-bottom: 1.0em;
    }

    /* Content - specific to the main content div
    =================================== */

    #content .frontpageheatmap a {

    }

    #content .infobox li {

    }

    #content .nav a {

    }

    #content .nav a:hover {

    }

    #content a:visited {

    }

    /* Profile Page
    =================================== */

    #profile-menu {
    padding-top: 0.5em;
    list-style: none;
    border-bottom: 2px solid #ccc;

    }

    #profile-menu ul {
    }

    #profile-menu li {
    font-size: 1.1em;
    background-color: #eee;
    padding: 4px 7px;
    margin: 0px;
    display: inline;
    position: relative;
    top: -3px;
    }

    #profile-menu li.current {
    background-color: #ccc;
    }

    #userinfo {

    }

    #userinfo dt {

    }

    #userinfo dd {

    }

    #useractivity {

    }

    .user-recent {

    }

    .user-recent .alt {
    background-color: transparent;
    }

    .user-recent ol {

    }

    .user-recent ol li {

    }

    /* Profile Edit
    =================================== */

    fieldset {

    }

    legend {

    }

    fieldset table {

    }

    fieldset table td {

    }

    fieldset p {

    }

    /* Other
    =================================== */

    #front-search {

    }

    #latest td, #forumlist td, #favorites td {
    border: 1px solid #f5f5f5;
    }

    #forumlist tr td div.nest {

    }

    #latest tr:hover, #forumlist tr:hover, #favorites tr:hover {

    }

    #latest th, #forumlist th, #favorites th {
    background-color: #e9ede8;
    border: 1px solid #f5f5f5;
    }

    #latest, #forumlist, #favorites {

    }

    .alt {
    background-color: #f9f9f9;
    }

    .bozo {

    }

    .alt.bozo {

    }

    .deleted {

    }

    .alt.deleted {

    }

    #60976
    tbronson
    Member

    It seems to be a user thing. I’d been posting from a user that’d been established in WordPress. I updated it to Key Master in bbPress, so it should have all powers. But I found that, apart from tags, I couldn’t delete a post either, same no permission message (same as noted by Jolaedana above). So I logged out and logged in as Superadmin, the default account from bbPress installation, and voila, I can do everything, add tags, delete posts.

    That doesn’t solve the problem. I haven’t tested to see what happens with other users, both already registered from WP and registered through bbPress. But it’s a workaround for me, and a…clue. :)

    #61080
    Graeme
    Member

    Try editing topic.php in the default template and replace:

    <?php post_form(); ?>

    with:

    <?php post_form('Reply to this topic:'); ?>

    This is a simple way to make the change you want.

    Note that rather than editing the default template, you can make use of the powerful templating behaviour of bbPress if you create your own theme. With custom themes, bbPress will always pick up missing template files from the default kakumei theme! That means custom themes can be quite simple!

    1. Create a directory called my-templates.
    2. Create a directory in that directory called myfirsttheme.
    3. Copy style.css, screenshot.png and topic.php from bb-templates/kakumei to your my-templates/myfirsttheme directory.
    4. Edit my-templates/myfirsttheme/style.css and change:
      Theme Name: Kakumei

      to

      Theme Name: myfirsttheme

    5. Change my-templates/myfirsttheme/topic.php with the change described above to topic.php.
    6. At this point you should see your own custom template in the admin backend.

    That allows you to setup your own theme. Then when new versions of bbPress come along you may not have to reedit the default templates – just copy your custom theme into the new/upgraded bbPress installation.

    I hope that makes sense.

    Note:

    Sometimes new functionality in bbPress will mean that it is best to copy the default template files and re-apply your changes in your custom theme.

    #2492
    jaxxx
    Member

    I’m currently editing the default theme template for the latest version. Everything is going well, except I can’t find the code reference for the “Reply” label (it shows up as <h2 class='post-form'>Reply</h2> in the HTML output. The rest of this section is editable in post-form.php. Where do I need to look to find the section (basically I just want to either remove this label and add a new one separately, or else be able to wrap some more code around it). The only other thing which may shed some light on this is the preceeding code: do_action( 'post_form_pre_post' ); but I have no idea what this function does.

    #60972
    chrishajer
    Participant

    I just did a fresh install of 0.8.3 and I can add tags to existing posts just fine. Maybe it happens only with upgrades? I noticed that on this install, my username is something I chose, rather than the old default of admin, so maybe that is messing up the keymaster somehow.

    #49513

    In reply to: sample plugins?

    Leo Plaw
    Member

    Why have the authors of BBPress been so daft as to not add a “my-plugins” directory to the default installation of BBPress?

    It was my first question, just like everybody else on the forum, “where’s the plugin folder”.

    Hey, it might seem obvious to those of you who know the BBPress, but for heaven’s sake make it easy for the newbies. You did it for WordPress, so why not BBPress?

    Get with it and think of the users you programmers! 8)

    #61005

    In reply to: Hot Tags Font size

    chrishajer
    Participant

    http://blueplato.com/forums/bbpress is not accessible (gives a 404). I was going to look at the theme you are using because that is not the default for the bb_tag_heat_map: <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?>

    This is the default from https://trac.bbpress.org/browser/trunk/bb-templates/kakumei/front-page.php#L7

    <?php bb_tag_heat_map(); ?>

    So, what do the numbers mean? Looking at that function in bb-includes/teamplate-functions.php around line 1574, here’s what the defaults are, and mean:

    $defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'limit' => 45, 'format' => 'flat' );

    Looks like you define the smallest size, largest size, the unit of measure, the max size and then a format (not sure what that last one does.)

    So, my guess is you would change those. At the very least you need to put comments between the arguments in the function call in your front-page.php: your example shows none. And you might want to add that last argument – not sure what happens when it’s missing.

    #2466
    ronjroy
    Member

    Looking at previous posts, I see a similar question pertaining to changing the font size of the hot tags. The answer however means nothing to me, i.e.

    <?php bb_tag_heat_map(); ?>

    The default as it looks to me is:

    <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?> What do these numbers mean and by changing them I still see no change on the forum.

    This looks like:

    <div id=”hottags”>

    <?php bb_tag_heat_map(9 38 ‘pt’ 80); ?>

    </div>

    I have made changes to these numbers, but since I do not know what they affect, I can not get the font-size to change.

    I have also made changes to the stylesheet with no luck.

    .frontpageheatmap {

    font-size: 1em;

    font-family: “Eras Medium ITC”, sans-serif;

    font-weight: 600;

    font-style: italic;

    line-height: 1.4em;

    padding: 10px 0;

    }

    Can the tags be changed and if so is there a simple approach that is easy to follow and not too difficult to explain?

    blueplato.com.

    Thanks for any help!

    #60961

    In reply to: Cannot select DB

    lookfab
    Member

    Yes, the wordpress user exists. The passwords are the same.

    The really strange thing now is that WP has stopped working (it did before I started tinkering with bbpress). I get “Error establishing a database connection” when I try to view the blog.

    Even weirder, it seems that IIS “forgot” that index.php was a valid default page. I had to go back in and change this setting.

    #60517
    Jaithn
    Member

    hello…

    after upgrading to .83 the error-message changed…

    maybe somebody could help me!!! please!!

    Fatal error: Call to undefined function __() in /home/www/kunden/fsj-community.de/wordpress/forum/bb-includes/default-filters.php on line 81

    jaithn

    #60957
    chrishajer
    Participant

    If you would like to watch the whole forum, there are lots of RSS feeds set up by default in bbPress (tags, new posts, topics, etc), and you could just have those feeds emailed to you by something like Feedblitz http://www.feedblitz.com

    You’re also looking for a way to post to the forum via email though, and I don’t know of a way to do that. I know you can post to a blog via email, but I have not seen anything like that for bbPress (or any other forum actually.)

    #60754
    chrishajer
    Participant

    > Where it says “$bb->wp_table_prefix” – where do I find

    > the prefix?

    It would be listed in your WordPress wp-config.php – by default, it’s wp_

    > $bb->wp_home & $bb->wp_siteurl – that is just my

    > site url only, nothing more – http://www.blah.com

    That’s fine, no trailing slash.

    > Once I do the above how to I make the forum part of

    > wordpress, will it automtically look like this forum?

    Nope – it’s an independent application that you need to style to get it to look like your WP site.

    Search for threads tagged “integration”:

    https://bbpress.org/forums/tags/integration

    This was a good summary I thought:

    http://www.adityanaik.com/integratepress-part-i/

    #55810
    Detective
    Member

    I use this plugin ported from a Vanilla Extension:

    <?php
    /*
    Plugin Name: Video Tags
    Plugin URI: http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=33
    Description: Ported from SirNot's HtmlFormatter for Vanilla
    Author URI:
    Version: 0.1
    */

    //allow youtube and google videos to be posted, tags are:
    //<video type="google">docid</video> (google video) -or-
    //<video type="youtube">video id</video> (youtube) -or-

    function video_embed($texto){
    $sReturn = preg_replace_callback(
    '/<video(?>s+)type=(["'

    ])((?>w+))1(?>s*)>([A-Za-z-_d]+?)</video>/is’,

    ‘VideoLink’,

    $texto

    );

    return $sReturn;

    }

    function VideoLink($Matches)

    {

    $Type = strtolower(trim($Matches[2]));

    $ID = $Matches[3];

    switch($Type)

    {

    case ‘google’ : return (‘<embed style=”width: 400px; height: 326px;” id=”VideoPlayback” ‘.

    ‘type=”application/x-shockwave-flash” src=”http://video.google.com/googleplayer.swf?docId=&#8217;.$ID.'”></embed>’);

    case ‘youtube’ : return (‘<object width=”425″ height=”350″><param name=”movie” value=”http://www.youtube.com/v/&#8217;.$ID.'”></param>’.

    ‘<embed src=”http://www.youtube.com/v/&#8217;.$ID.'” type=”application/x-shockwave-flash” width=”425″ height=”350″></embed>’.

    ‘</object>’);

    default : return $Matches[0];

    }

    }

    function allow_video_tags( $tags ) {

    $tags = array(‘type’ => array(‘maxlen’ => 10));

    return $tags;

    }

    add_filter( ‘bb_allowed_tags’, ‘allow_video_tags’ );

    add_filter( ‘post_text’, ‘video_embed’ );

    ?>

    `

    It allows you to embed video only from YT or Google Video.

    #60745

    In reply to: WP 2.3 breaks bbpress?

    oledole
    Member

    EDIT

    Looks like it has something to do with “wp-blog-header.php” beeing called in from BB’s config.php. When I run a basic config.php and default theme it works fine …

    #58410
    neyoung
    Member

    Kahil, your method works well if your users use their login name as their display name. However if a user who’s login is user23 changes his display name to John Doe then your code looks for this image. /forum/avatars/John Doe.jpg instead of the correct avatar image which would be /forum/avatars/user23.jpg. I couldn’t figure out a clean way to fix this (I’m using wpmu, not wordpress). But here’s a dirty hack.

    <?php
    $comment_author_dn = get_comment_author();
    $comment_author = $wpdb->get_row("SELECT <code>user_login</code> FROM <code>wp_users</code> WHERE <code>display_name</code> = '$comment_author_dn'");
    echo '<img id="comment-avatar" height="50" width="50" src="/forums/avatars/' . (empty($comment_author->user_login) ? "default" : $comment_author->user_login) . '" alt="avatar" />';
    ?>

    That code should find images for a user if they use a display name or not.

    /shrug

    I haven’t fully tested it, but it seems to work ok.

Viewing 25 results - 6,326 through 6,350 (of 6,788 total)
Skip to toolbar