M (@box87)

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 29 total)
  • In reply to: bbMenu 1.2 released!

    M
    Member

    @box87

    I double-posted, so I’ll use this space by thanking you for giving credit. Jolly nice of you.

    In reply to: bbMenu 1.2 released!

    M
    Member

    @box87

    Lookin’ good :)

    One thing. In Omniweb double-clicking doesn’t work. In Safari/Camino it does, and in Firefox triple-clicking works, but you covered that one in the readme. I’ll look into it though… it might be an error on my part.

    In reply to: Plugin: bbMenu 1.1

    M
    Member

    @box87

    Hmmm. Let me take a look.

    Either $r1 and $rw need to be switched, or $r1 isn’t an array.

    Edit:

    Lines 358 – 360 should contain the following:

    $r = (array) $bbdb->query( "SELECT * FROM ~$bbdb->menu~ WHERE ~set~ = 'active' ORDER BY ~order~ ASC" );

    foreach( $r as $rw ) {

    Replace the ~ with backticks. I don’t know how to escape backticks in bbPress.


    M
    Member

    @box87

    The new changes have been made:

    http://www.box.net/shared/cgrj1na0t7

    I think that should cover the problems. I took the liberty of changing other things as well… hope you don’t mind. I removed some redundancies in the CSS, and changed some little code things.

    There’s the modified bbmenu.php file, as well as the diff file to make it a little easier for you to see what I changed. If you cant make sense of the diff there are diff file viewers that color the text and make it more human-readable.

    In reply to: Plugin: bbMenu 1.1

    M
    Member

    @box87

    The new changes have been made:

    http://www.box.net/shared/cgrj1na0t7


    M
    Member

    @box87

    Thanks. I googled this and got differing opinions with every page I found. Most people said it works ok, but it’s a bit of a pain.

    I wasn’t sure who else here was using subversion, and I was curious to see what other people were doing.


    M
    Member

    @box87

    @Null – Working on it…

    Don’t lose hope :)

    Sorry about the “day or so”…

    In reply to: Noobish CSS Question

    M
    Member

    @box87

    In Safari/Camino, it still has issues. #hottags{height: 100%;} helps that one.

    Quick fix, not guaranteed to work… thus, I resort to an acronym: YMMV.


    M
    Member

    @box87

    Most peculiar. I’ll look into it later.

    Do you have a live example?


    M
    Member

    @box87

    @_ck_ – “Hack” core files = baaad. Try localization… it works for bbPress and WordPress. Easy to do as well.

    I want to change bbPress’ default text

    If you don’t like the “favorites” text, you can change it without losing the changes on an update. Not updating because of some little changes you made is bad news indeed. Might as well wear a sign that says “hack me.”


    M
    Member

    @box87

    Give me a day or so and I’ll work on it. I’ve got about three jobs going at the moment.

    In reply to: Plugin: Avatar Upload

    M
    Member

    @box87

    @louisedade – I found an image upload class the other day… it allows watermarking, resizing, bunches of other stuff, rather simple implementation. Looks pretty decent.

    http://www.verot.net/php_class_upload.htm

    I integrated it into your plugin ages ago, as well as an account picture upload feature with custom-definable dimensions for both avatar and account picture. I didn’t really want to upload it here, as there are oodles of plugins that have similar features. Would you like a peek at the source?


    M
    Member

    @box87

    Funny you mention this… I’m doing some work for a client at the moment using WordPress and I wanted to change some of the admin backend text without modifying core files. Localization using an en.mo file turned out to be the way to go.

    I believe bbPress supports localization as well. It’s probably going to be the route you’ll want to take. (edit: it does, BBLANG in config.php, drop the .mo file in /bb-includes/languages/ I would assume)

    The file you’ll need to edit is a compiled binary, so you’ll have to get the bbpress.pot file, probably from the bbPress site somewhere. (edit: http://svn.automattic.com/bbpress-i18n/pot/tags/)

    Once you’ve got the file, check out poEdit (http://sourceforge.net/projects/poedit/). It’s an open-source cross-platform mo/po/pot editor. Create a New catalog from .pot file, make sure the option to compile to .mo is checked in the preferences, and you should be good to go.

    The top-left box contains the text to be translated, the bottom-left contains the “translation.” Ctrl-F, find the string, and you’re good from there.

    Note: I haven’t tried this with bbPress but it works great with WordPress. Hope it helps.


    M
    Member

    @box87

    People that are attracted to bbPress will be attracted because of its out-of-the-box simplicity and its extensibility.

    It’s great… if you want a plugin and you’ve messed around with WordPress for any length of time, you’ll feel right at home. I personally dislike polls… _ck_ obviously doesn’t, and he’s not alone. That’s the beauty of bbPress. These features aren’t crammed down your throat; rather they are completely optional.

    Also, I don’t think that bbPress was built to win a popularity contest. It was built with certain things in mind and is continuing in that trend. I think that’s great.

    One more thing… those people who were attracted to other forum software solutions (ie, SMF, IPB, vB), wanted something feature-bloated. All kinds of things pouring out of every corner. They wouldn’t be attracted to bbPress unless it became a miniature of what they were already using. And what’s the point in that, eh?


    M
    Member

    @box87

    Stick with the ezSQL format… it’ll be much easier.

    Something like this (using foreach instead of while):

    $query = "SELECT * FROM $bbdb->menu
    WHERE set = 'inactive' ORDER BY order ASC";
    $r = $bbdb->get_results( $query );

    foreach( $r as $rw ) {
    // now mess with $rw
    echo $rw->database_row . "<br>n";
    }

    Something that might be helpful would be to browse the source of the ezSQL class in /wp-includes/wp-db.php

    The latest from Justin Vincent, the author

    http://www.woyano.com/jv/ezsql

    The version used in bbPress and WordPress

    https://trac.wordpress.org/browser/trunk/wp-includes/wp-db.php

    It might help you… you’d be able to see where mysql_query is begin used, and how to use the ezSQL format best.

    I think the reason you’re running into problems with mysql_fetch_array is because it’s already used.

    Not sure on that one though… I would have to check.

    Also, what might cause an error: $bbdb->query will not return anything at all. $bbdb->get_results needs to be used for multi-dimensional array data, $bbdb->get_row or $bbdb->get_col need to be used for single array data, and $bbdb->get_var needs to be used for non-array/string data. $bbdb->query is used for inserting data, the others are used for retrieving it.

    Someone correct me if I’m wrong, but I’m pretty positive that’s how it goes.

    ezSQL is lovely. It certainly takes the pain out of MySQL data manipulation.

    So I guess that makes the answer to your question “Neither.” $bbdb->get_results should do the trick.

    And sorry for the screed. :D

    In reply to: Fading Heatmap

    M
    Member

    @box87

    What would be great (and doable too) is to set a minimum and maximum color, like you can with font size. It can’t be too hard… maybe someone can see about pluginatizing (English?) it. I will, if and when I have time.

    In reply to: Fading Heatmap

    M
    Member

    @box87

    I quite like the idea of the different colors in the heatmap. The theme overall is quite pleasing to the eye.

    I personally don’t like having images in the sig, but that’s a personal thing. It seems to me that when users have a huge image in their signature, it takes away from the site that they’re on and ends up being self-promotion more than anything else. I’m not against self-promotion at all, though. There is a time and a place for everything, and I think the place for something of that nature would be a clearly labeled separate forum.

    Very nice though.


    M
    Member

    @box87

    Ah yes, my apologies. I was actually replying to the original comment, but I probably should have indicated that.

    Anyway, enough of this madness… is someone going to make this plugin?


    M
    Member

    @box87

    An admin page would be handy. That’s why I had said “the ‘hard’ part would be making an admin page.” It is necessary for this in my opinion.

    I think with this it would be better to put the post count in the usermeta, rather than the user title. That way for added and deleted posts all you have to do is add or subtract. The most accurate way, however, would probably be to count all the posts and update the meta every time a post is made. If a topic is deleted, a recount would need to be made too. That’s why I liked the “on the fly” method. Fewer errors that way.

    Also, regarding query count, I believe it’s still one query per post, but I could be wrong. I guess the difference would be whether you’re pulling the user title from the usermeta or counting the posts on the fly. I’ll mess around with this more this afternoon.

    And sorry to irritate, it’s just not that complex IMO. Even your method :)


    M
    Member

    @box87

    Hmm, I tried that yesterday and it didn’t seem to work. I checked out the WPAjax class and tried commodAjax.transport.responseText, this.responseText, and a couple more variations on that theme.

    Once I get an admin backend for my plugin I’m going to upload it so that everyone can see the source. It’ll probably be a little easier to answer questions then.

    commodAjax.request(commodAjax.url); is requesting the admin-ajax.php file, sending it some postdata, and it’s responding with a 1 (success), 0 (borked data), or -1 (permissions error).

    Thanks.


    M
    Member

    @box87

    I find it a bit insulting that all I get is Google links. Don’t get me wrong… for most people who don’t search the forums that’s a great solution. I have searched the forums and Google extensively however, and I’m not seeing a whole lot of helpful stuff when it comes to WordPress’s custom wpAjax class. I’ve gone over prototype tutorials, documentation pages, and more and I haven’t found a solution.

    Also, please explain yourself a little further regarding your “function call” comment. Are you referring to commodAjax.request(commodAjax.url);? Because I believe that’s correct. At least that’s how other people have been doing it. If you’re talking about alert(commodAjax.responseText); that was for debug purposes only. I’m trying to get the value. That’s my original request.


    M
    Member

    @box87

    Wow, so much hate… I’m not trying to insult anyone’s sense of intelligence by making this appear easier than it is. It’s just dead simple. I see no great complexity in it. It’s still a “basic MySQL query.”

    Why muck around in the usermeta? That’s far too much work if you ask me.

    Perhaps I’m wrong.

    function get_user_title( $id ) {
    global $bbdb;

    $pc_query = "SELECT COUNT(post_id)
    FROM $bbdb->posts
    WHERE poster_id = $id
    AND post_status = 0";
    $post_count = $bbdb->query( $pc_query );

    if( $post_count <= 10 ) {
    $title = "Noob";
    } elseif( $post_count <= 20 ) {
    $title = "Might stick around";
    } elseif( $post_count <= 30 ) {
    $title = "Title for 30";
    } elseif( $post_count <= 40 ) {
    $title = "Over the hill";
    .
    .
    .
    } elseif( $post_count <= 90 ) {
    $title = "Post whore";
    } elseif( $post_count > 100 ) {
    $title = "Regular";
    } else {
    $title = "Error";
    }

    return $title;
    }

    This way you don’t have to mess around with updating anything… it’s generated on the fly.

    Do take note that I haven’t tested the code. I wrote it in about 5 minutes, so I didn’t get around to testing. It’s the concept I’m talking about though.


    M
    Member

    @box87

    It shouldn’t be too hard… just modify the post count plugin.

    The “hard” part would be making an admin page, and if you look at other plugins that have done that, it’s not too rough.

    In reply to: Plugin: bbMenu 1.1

    M
    Member

    @box87

    The error is caused by using mysql_query instead of the ezSQL syntax, $bbdb->get_results(). The error shows up several times… I don’t know how Null got bbMenu working, unless he has a mysql_connect somewhere. I had to change 4 or so lines to get this thing functional.

    Null, are you going to add an easy way to add pages? Using phpMyAdmin is cool and all, but it’s just not smooth at all.

    In reply to: Plugin – Messengers

    M
    Member

    @box87

    This isn’t a plugin, it’s a core file edit, if I’m not mistaken…

    If so it’s probably best to warn people of this, because any changes made to core files are undone with future bbPress updates if the file is overwritten.

    I have extra profile fields implemented on my local server, I just need to upload it to my main site. I’ll post it later.

Viewing 25 replies - 1 through 25 (of 29 total)