Forum Replies Created
-
In reply to: Theme directory
Besides – there’s no point to make a theme directory if there are no themes. Not many people are doing layouts for bbPress and if they’re doing, then it’s really hard work – I know something about it as I’m making “Halloween Evening” theme for bbPress right now…
In reply to: No $user_id on profile page?I’ve already found the problem – I guess I’ve lost myself when trying to develop a plugin for both 0.9.0.2 and 1.0 . It’s working now and will be released today (I hope)…
In reply to: bbPress 1.0 alpha looks interestingYay, time to update some plugins to make sure management panels will look cool .
In reply to: Pilates Digest Forums@_ck_ – you of all people should know that you can do amazing things with bbPress .
@gio500000 – nice and clean design – I like it.
In reply to: Show the last user have joinedShow last registered user? Here y’go:
<?php include_once("bb-includes/statistics-functions.php"); ?>
Our newest member is <?php if ( $users = get_recent_registrants(1) ) : foreach ( $users as $user ) : ?>
<a href="<?php user_profile_link( $user->ID ); ?>"><?php echo get_user_name( $user->ID ); ?></a>
<?php endforeach; endif; ?>In reply to: FavouritesHmm… bbSuperCache plugin could be useful, muhaha! Thanks
In reply to: FavouritesIt appears that function
get_topic_favorites_count
is not working in 0.9 – anyone know how to make it working? And generally – this function won’t kill my DB, will it? lolIn reply to: “Custom” rewrite rule for static pagesI’ve created something like this:
function page_link( $page_number ) {
echo apply_filters('page_link', get_page_link( $page_number ) );
}
function get_page_link( $page_number ) {
$rewrite = bb_get_option( 'mod_rewrite' );
if ( $rewrite ) {
global $bbdb, $bb, $page;
$page = $page_number;
if ( $rewrite === 'slugs' ) {
$table_name = $bbdb->prefix . "pages";
$query = $bbdb->get_results("SELECT page_slug FROM $table_name WHERE page_id=".$page."");
foreach ($query as $rk) {
$column = $rk->page_slug;
}
} else {
$table_name = $bbdb->prefix . "pages";
$query = $bbdb->get_results("SELECT page_id FROM $table_name WHERE page_id=".$page."");
foreach ($query as $rk) {
$column = $rk->page_id;
}
}
$link = bb_get_option( 'uri' ) . "page/" . $column;
} else {
$args = array();
$link = bb_get_option( 'uri' ) . 'page.php';
$args['page_id+id'] = $page;
$args['part'] = 1 < $part ? $part : false;
$link = add_query_arg( $args, $link );
}
return apply_filters( 'get_page_link', $link, $page_number );
}Trust me, I don’t know what this is either . I’m working on this for a couple of hours (in total) and I’ve messed up. Could someone help me in this by explaining how this thing should look like?
I mean – the above code is allowing me to type
<?php echo page_link("1"); ?>
and this will display url to static page with id=1, creating something like domain.com/page/1 or domain.com/page/about – so links are working. But now I want to send page ID to other functions that are selecting and displaying date from database – and I have no idea how to send this id in ‘rewrited’ version. Can anyone help?
In reply to: Do you plain to write bbpress?Ok, WordPress and TalkPress are two different projects, and bbPress is third. Send these $250 to my PayPal account and you will get all plugins from my TO DO list (visible on freebies section on my weird blog) till the end of this week – I promise!
If someone is doing something for free, then he is doing this in his free time. You don’t have free time all the time, right? More developers – more free time – faster development. You got the point, right?
In reply to: Display only if is_front ?That’s how I’m writing Static Pages plugin now .
In reply to: Display only if is_front ?Hmm – documentation is really needed…
In reply to: Do you plain to write bbpress?For now this project looks like a hobby
Lol, sorry but I think Open Source is hobby – that’s why it’s free. If bbPress develpers would be working on this project like on normal job, then you wouldn’t get open source, but forum software for $250.
People should stop complaining and start helping. Write some plugins, release some theme – why not? Oh, because you can’t? You don’t know how? I don’t understand people who don’t understand how hard work is coding, but who are still complaning…
In reply to: Need help with plugin submissionOh my… this will be more difficult than I thought in first place . Thanks for links, I’m going to look for some SVN “manager” for my Ubuntu…
Edit:
OK, topic is resolved. Although my knowledge is not enough to deal with SVN yet…
In reply to: (Weird) Open CafeThank you for kind comments .
As for these statistics, I guess it was _ck_ who posted this originally somewhere here, but I will repost it:
<?php include_once("bb-includes/statistics-functions.php"); // This need to be included ?>
Our <?php echo get_total_users(); ?> users have made a total of <?php echo get_total_posts(); ?> posts in <?php echo get_total_topics(); ?> topicsIn reply to: Show (gr)avatar on frontpageLong or short, still you should write about it here so:
1. People won’t spam your mailbox;
2. People won’t post another topics like this thing will be here .
I could use something like this for my new project.
In reply to: ShoutboxNevermind, I’ve coded it myself . But it’s not ready for release yet…
In reply to: (A few) Ideas for PluginsHello (my first post, yay) – so is there anyone who is planning to make this invitations/referral plug-in? I would find it very useful . Especially when running a contest “bring as much users to my forums as possible and win an iPod”.