Search Results for 'code'
-
AuthorSearch Results
-
August 16, 2009 at 4:26 am #76994
Navin
MemberI haven’t been here for a while. Will try it for sure and give feedback.
August 15, 2009 at 4:38 pm #77608In reply to: Display random (or online) member avatars
Ashish Kumar (Ashfame)
ParticipantThere 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.phpAugust 15, 2009 at 4:25 pm #78090In reply to: Show post Author next to Last poster?
Ashish Kumar (Ashfame)
ParticipantTry hardcoding
<?php topic_author(); ?>in your template at the place where do you want the Author name to appear.August 15, 2009 at 6:44 am #78063In reply to: Topic Icons Default Icon (Advanced request)
Olaf Lederer
ParticipantHi,
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 );
}August 15, 2009 at 6:36 am #78069In reply to: How to sort on column heads?
Olaf Lederer
ParticipantI 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)
August 14, 2009 at 4:38 pm #77060In reply to: bbpress and memcache?
johnhiler
MemberRuby 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!
August 14, 2009 at 2:31 pm #77781In reply to: Sometimes Less Is Just Less
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.
August 14, 2009 at 2:19 pm #76989Olaf Lederer
ParticipantI thought the multi CSS border has covered IE browsers too

…looks good in chrome and FF on Linux
August 14, 2009 at 2:15 pm #77159In reply to: tranfer posts from another forum
Olaf Lederer
ParticipantHi,
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)
August 14, 2009 at 10:36 am #67349In reply to: All setting use cache
Tomcraft1980
MemberIs 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
August 14, 2009 at 3:40 am #77054In reply to: bbpress and memcache?
frooyo
MemberInstead 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
August 13, 2009 at 11:40 pm #76864johnhiler
MemberHehe, 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…
August 13, 2009 at 11:03 pm #77935In reply to: Matsuri.maoi.se – WPMU>BP>BbPress integrated
anandasama
MemberIt’s not a deep integration: But that’s something I will try later.
August 13, 2009 at 8:40 pm #76988johnhiler
MemberYou 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!
August 13, 2009 at 8:35 pm #76987Marius-
MemberThanks 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?
August 13, 2009 at 8:26 pm #76986Ivaylo Draganov
MemberHi, do you notice the little
-mozthing 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?
August 13, 2009 at 7:42 pm #78022In reply to: Login-form including register-form?
Ipstenu (Mika Epstein)
ModeratorI 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.
August 13, 2009 at 7:33 pm #27931Marius-
MemberI 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?
August 13, 2009 at 5:40 pm #77988In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberAh, I have one simple wish too. Maybe you could give me the code to put in right here

A youtube button! Is this possible?
August 13, 2009 at 5:28 pm #76962Ipstenu (Mika Epstein)
ModeratorTry
define( 'BBDB_HOST', '0.0.0.0' );August 13, 2009 at 5:24 pm #78003In reply to: Limit width of images in ALLOW IMAGES plugin?
Ipstenu (Mika Epstein)
ModeratorDoy! Max-Width is correct, and it will NOT resize your images and make them larger

Moar Coffee, Less Meetings, Plz.
August 13, 2009 at 4:35 pm #78002In reply to: Limit width of images in ALLOW IMAGES plugin?
Marius-
MemberIs 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;
August 13, 2009 at 3:35 pm #76862Ipstenu (Mika Epstein)
ModeratorI 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?’
August 13, 2009 at 3:02 pm #78020In reply to: Login-form including register-form?
Ipstenu (Mika Epstein)
ModeratorSure, just go edit your theme
August 13, 2009 at 2:59 pm #77987In reply to: Can I remove features from BBCODE BUTTONS?
Marius-
MemberAh 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.
-
AuthorSearch Results