Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,976 through 24,000 (of 32,522 total)
  • Author
    Search Results
  • Navin
    Member

    I haven’t been here for a while. Will try it for sure and give feedback.

    #77608

    There is a direct function for your need but I can’t recall it at the moment.

    How about the following?

    <?php $avatar = bb_get_avatar( $user->ID ) ;
    echo $avatar; ?>

    I took it from the profile.php

    #78090

    Try hardcoding <?php topic_author(); ?> in your template at the place where do you want the Author name to appear.

    #78063
    Olaf Lederer
    Participant

    Hi,

    you mean like on my frontpage (check the link from my profile)

    I use this code:

    <?php while ( bb_forum() ) :
    if (get_forum_parent_id() == 0) : ?>
    <?php if (bb_get_forum_is_category()) : ?>
    <tr<?php bb_forum_class('bb-category'); ?>>
    <td colspan="3"><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    </tr>
    <?php continue; endif; ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><?php forum_description( array( 'before' => '<small> – ', 'after' => '</small>' ) ); ?><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php
    endif;
    endwhile; ?>

    The function get_forum_parent_id() is located in my personal plugin file:

    function get_forum_parent_id( $forum_id = 0 ) {
    $forum = get_forum( get_forum_id( $forum_id ) );
    return apply_filters( 'get_forum_parent_id', $forum->forum_parent, $forum->forum_id );
    }

    #78069
    Olaf Lederer
    Participant

    I know this function from many type of websites but never used on a forum :)

    don’t think that it will be easy to develop inside bbpress, check the plugin list I thought I saw some old extension there

    ps. Pimp is a word young people like to say (pimp a car)

    #77060

    In reply to: bbpress and memcache?

    johnhiler
    Member

    Ruby on Rails has some stuff to allow memcached storage of user sessions:

    http://awesomerails.wordpress.com/2008/06/26/memcache-sessions-in-rails/

    @finalwebsite – _ck_ is a female developer. :-) I was referring to her statements that “the performance boost will be trivial, almost non-existent for a single server setup” and ” Memcache is only beneficial for multi-server systems, it’s why it was invented in the first place.” But ymmv!

    #77781
    DennisH
    Member

    @johnhiler Thanks for the links. I’ve decided it only makes sense for us to use BB if it was deeply integrated. I’m willing to take the server hit, it can’t be any worse than what phpbb is doing.

    @mark-k I think you would be everyones hero if you pulled it off. Instead of one big plugin, maybe you could do several smaller ones.

    The one thing I can’t wrap my head around is login pages and profile pages. Having 2 different pages (integrated or not) is not only confusing to users it’s confusing to administrators. In a perfect world BB would handle all of this, but we know that’s not the case. So what to do? You can’t have a BB “login box” in WP, but BB should be their only profile page (that’s where they will be uploading avatars, checking PMs, etc.). So could you redirect WP login page to BB? If so how would you automatically redirect them back to the last visited blog page? I’m so confused I don’t even know how to write these questions intelligently. How do you have just one login page and just one profile page?

    PS

    I got the avatars working. :)

    Olaf Lederer
    Participant

    I thought the multi CSS border has covered IE browsers too :(

    …looks good in chrome and FF on Linux :)

    #77159
    Olaf Lederer
    Participant

    Hi,

    you need to check the old and the new table structure (use phpmyadmin) for this.

    next you need to convert the old tables to the format of the new tables.

    Learn from how bbpress will create the records inside the tables and import your old data this way.

    I don’t think that there is a tutorial on how to do that (didn’t know that Joomla has a forum module)

    :)

    #67349

    In reply to: All setting use cache

    Tomcraft1980
    Member

    Is setting up this code in bb-config.php still important fpr bb 1.02 as it became part of bb-settings-php?

    $bb->load_options = true;

    kind regards

    Tom

    #77054

    In reply to: bbpress and memcache?

    frooyo
    Member

    @usera

    Instead of memcache, output caching might be a better option for non-logged in user. Something like WordPress’ SuperCache plugin.

    More information can be found about this discussion here:

    https://bbpress.org/forums/topic/covert-wp-super-cache-plug-in-for-bbpress#post-37072

    Essentially, a lot of people would love the SuperCache plugin to be converted for use with bbPress … but no one has yet committed to performing the work needed to convert the plugin :(

    #76864
    johnhiler
    Member

    Hehe, most people talk as though bbPress doesn’t exist. :-)

    I personally talk as if bbPress 1.0 doesn’t exist… 0.9 or bust!

    I haven’t used Vanilla, so I can’t comment on them… I wish there was more benchmarking across boards platforms for speed. But I haven’t seen much on that front…

    #77935
    anandasama
    Member

    It’s not a deep integration: But that’s something I will try later. :)

    johnhiler
    Member

    You might want to try the new CSS Q&A site that’s affiliated with stackoverflow… http://doctype.com

    I have nothing to do with it – but it’s designed for CSS Q&A! :-)

    Marius-
    Member

    Thanks man. Can I post both codes without them conflicting each other?

    Both border radius and mozilla codes?

    And using border-radius, do you have input each of the four corners, like in the Moz-code? Or can you just specify one line like the one you gave me?

    Hi, do you notice the little -moz thing in front of the CSS property? That is an internal Firefox only CSS property. IE does not support rounded borders at all (and maybe will not soon). Safari on the other hand and all other webkit based browsers (Chrome, Konqueror) do support it via their own special CSS properties.

    So for Safari(and Chrome) the code will be:

    -webkit-border-radius: 6px;

    for Konqueror (not very widespread but anyway):

    -khtml-border-radius: 6px;

    and since rounded borders are a property from the upcoming CSS3, here you have the standard definition (which you should also include for the bright moment in the future when all browsers will natively support it):

    border-radius: 6px;

    Of course using these properties will render your CSS invalid in the W3C validator.

    Extended info on CSS3 border-radius:

    http://www.css3.info/preview/rounded-border/

    Cheers :)

    Pssst! But hey – is that a bbPress issue? And why post in “Installation” subforum?

    #78022

    I was hoping someone could do it for me.

    Well there’s your problem right there :)

    Making a theme is easy AND it won’t break the source code or become beyond repair. A theme is all HTML and CSS, with a little PHP tossed in, and not the coding kind of PHP where you have to make SQL calls. Unless you want to, of course.

    Go to https://bbpress.org/documentation/themes/ for the basics. You’ll need this under your belt if you ever hope to maintain a forum without going nuts.

    Marius-
    Member

    I use a code in my theme in many places. This is to make the corners on boxes round. It’s this one here:

    -moz-border-radius-bottomleft:6px;
    -moz-border-radius-bottomright:6px;
    -moz-border-radius-topleft:6px;
    -moz-border-radius-topright:6px;

    IE don’t read it at all. So everything is square and sharp. Strange thing is, Safari on my Mac, only applies it for my Postwindow, but nowhere else. So one box is round, and the rest is square.

    Mozilla Firefox however, reads this code perfectly, and applies it to everything I’ve assigned this code to. So the forum looks best in Firefox, but is there a way I can make it look as good in the other browsers too?

    #77988
    Marius-
    Member

    Ah, I have one simple wish too. Maybe you could give me the code to put in right here :)

    A youtube button! Is this possible?

    Try define( 'BBDB_HOST', '0.0.0.0' );

    #78003

    Doy! Max-Width is correct, and it will NOT resize your images and make them larger :)

    Moar Coffee, Less Meetings, Plz.

    #78002
    Marius-
    Member

    Is it then possible to click the image, and enlarge it? or is it just plain and simply resized with no other options?

    I read somewhere that if a user posts a small image, this will be enlarged to that size, when using CSS, is this true?

    edit:

    Ipstenu, I tried your CSS code, and that did not work either. But this did:

    #thread .post img {max-width:580px;

    I only used Vanilla for a couple hours. I have a knee-jerk reaction to most code and if I don’t enjoy using it right away, or have issues setting it up/themeing it how I want, it gets dumped.

    And I’m not comfortable telling you strengths and weaknesses because they’re subjective. Seriously, I say it a lot but it’s true.

    Me? I don’t like PMs and reporting posts, membership ‘levels’ and all that hoopla. So for me, bbPress is great because it’s small, simple and I can write plugins for it since I’m familiar with WordPress. But see how subjective that is? You may want those things and see it as a weakness that bbPress doesn’t have them.

    Knowing what each products strengths and weakness will help determine if it fits needs.

    I think you’re doing it backwards. Start with a list of your needs and your wants. Then go ask each place ‘Can you do this and if so, how hard is it?’

    #78020

    Sure, just go edit your theme :)

    #77987
    Marius-
    Member

    Ah you’re the author huh. Yeah well, it’s good you took initiative. Would really appreciate an admin panel for it. Like “what color do you want as background, what features do you want to include” etc. Had a hardass time styling the css in this one. The result turned out good though, so it wasn’t impossible.

    However, more importantly, I wish for the option to select text, and one click on button will automatically at a start and end-tag. Instead of clicking twice. This is the number one wish! All the other stuff I can live with.

Viewing 25 results - 23,976 through 24,000 (of 32,522 total)
Skip to toolbar