Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,176 through 27,200 (of 32,495 total)
  • Author
    Search Results
  • #66415
    chrishajer
    Participant

    IIRC, I uploaded the BMP and got the denied mime. Then, at a totally separate time when uploading a PNG I got the error described here.

    I never tried to upload more than one image at a time.

    I would totally disallow bitmaps as well, since they’re really not designed for the web. I was thrown off by this note from the saying they’re allowed:

    allowed uploads: bmp (500 KB), doc (500 KB), gif (500 KB), gz (500 KB), jpeg (500 KB),
    jpg (500 KB), pdf (500 KB), png (500 KB), txt (500 KB), xls (500 KB), zip (500 KB)

    #57099

    In reply to: Code backtick bug

    _ck_
    Participant

    It’s archived here:

    http://code.google.com/p/llbbsc/wiki/HTMLTagAttributesValidatorPlugin

    http://web.archive.org/web/20071227175025/http://www.livibetter.com/it/topic/plugin-html-tag-attributes-validator

    http://llbbsc.googlecode.com/svn/trunk/bbPress/HTMLTagAttributesValidator/HTMLTagAttributesValidator.php

    That’s actually a fairly decent plugin, too bad it’s not in the extend section.

    #66414
    _ck_
    Participant

    BMP is not an allowed mime by default because they tend to be huge and uncompressed. You can force it to be allowed though by adding it to the mime (and extension types).

    This bug bothers me though, if you can give me steps to reproduce it that would be very helpful:

    [png] Error_Occurred_While_Processing_Request.png (17.7 KB, 0 downloads) [x]

    Did it happen when you uploaded a PNG and a BMP at the same time?

    #57098

    In reply to: Code backtick bug

    Indojepang
    Member

    livibetter link is dead :(

    #64631
    chriskalani
    Member

    hmmm… yeah. So it sounds like everyone wants it. Now we just need to find someone awesome who can make it happen.

    On a side note… it would be really cool if they released a 3rd product focused more around community. Basically just an integrated bundle of bbpress and wordprss with maybe some additional integrated features. That would kick so much butt!! Drupal sucks… so does everything else. But I might end up using it if the main feature I am looking for doesn’t exist. :(

    #3741
    810798
    Inactive

    I installed muwordpress (with directories not subdomains) and bbpress and integrated them.. I added

    RewriteRule ^(.*/)?forum/(.*) forum/$2 [L,R]

    to the .htaccess in the wp directory and it worked before i added the code

    define(‘WP_BB’, true);

    if ( !defined(‘DB_NAME’) ) {

    require_once(‘/home/.atrax/armsteadj/myiowa-news.com/blogs/wp-config.php’);

    }

    into the bb-config.php file to get integration to work.. now it gives me a loop error..? any ideas on how to get the htaccess file to forward the directory to it?

    Thanks!

    James

    #66586
    thion
    Member

    Show 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; ?>

    #66025
    kirabug
    Member

    The problem I’m having is that I’ve had is that my blog is 4 years old but I only started adding tags less than a year ago and bbpress install is only a few months old. So I’m adding new tags to old posts (because I’m a borderline obsessive compulsive organizer) and they’re becoming the top posts on bbpress even though they’re years old. I’m almost done, but it’s still crazy. If I were smart and had realized what was going to happen I’d’ve finished my tagging and then installed bbpress. But I’m not ;)

    Anyway, thanks for the tips and the info :)

    #3739
    csseur3
    Member

    Hello,

    in the front-page, i want to show the name and the link of this profile, of the membre have joined in last the forum, but how please ? :)

    thanks,

    Fred

    #3738
    csseur3
    Member

    Hello,

    in the pages of the posts, for the all users, i want to show:

    – the date of the user have joined

    – the number of posts of the user

    – if he is online or offline

    how to do that?

    i want to add this in the

    <div class="threadauthor">

    <?php post_author_avatar_link(); ?>

    <p>

    <?php post_author_link(); ?>

    <small><?php post_author_title_link(); ?></small>

    <?php report_post_link(); ?>

    </p>

    </div>

    thanks,

    Fred

    #55236

    In reply to: Favourites

    thion
    Member

    Hmm… bbSuperCache plugin could be useful, muhaha! Thanks ;)

    #65573
    _ck_
    Participant

    Here try this – completely untested – let me know!

    update: forget this one, use the 2nd one below it

    function delete_own_post($retvalue, $capability, $args) {
    global $bb_current_user, $bb_post;
    if ($capability=="delete_post" && $bb_current_user->ID && $bb_post && $bb_post->post_id && $bb_post->post_id ==intval($args[1]) && $bb_post->poster_id && $bb_post->poster_id==$bb_current_user->ID && bb_current_user_can( 'edit_post', $bb_post->post_id) {return true;} // lots and lots of double checks
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'delete_own_post',10,3);

    .

    This checks if the user can still edit the post, and if so, allows them to delete their own post too.

    This plugin could be enhanced by checking if the user has been marked as blocked or inactive and prevent them from deleting it at all.

    Update: I may have “over engineered the above function, this may be a much more simplified approach:

    function delete_own_post($retvalue, $capability, $args) {
    if ($capability=="delete_post") {return bb_current_user_can( 'edit_post', $args[1]);}
    return $retvalue;
    }
    add_filter('bb_current_user_can', 'delete_own_post',10,3);

    This second method simply allows delete if the user can still edit a post. Once the edit times out, so does the delete.

    #65548
    _ck_
    Participant

    There are plenty of threads/posts about this, try this:

    Hiding Subforums’ Subforums from Subforum Pages

    You want code like this:

    <?php $forum_parent=$forum_id; ?>
    <?php while ( bb_forum() ) : ?>
    <?php if ($GLOBALS['forum']->forum_parent==$forum_parent) { ?>
    <tr<?php bb_forum_class(); ?>>
    <td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
    <td class="num"><?php forum_topics(); ?></td>
    <td class="num"><?php forum_posts(); ?></td>
    </tr>
    <?php } ?>
    <?php endwhile; ?>

    #66547

    In reply to: Listing of the forums

    _ck_
    Participant

    You have to first have the list of the forums for that to work.

    add this to the top of that:

    <?php $forums = get_forums(); ?>

    eporedieis
    Member

    Mmm…no :) I’ve tried this: https://bbpress.org/forums/topic/wordpress-and-bbpress-integration-101

    And also the require_once that u’ve told me, but maybe I’m unlucky!

    I’ve used no one include…have u got a link? Or can u tell me how to do it?

    There are no error, but the script don’t function…in bbpress it create a message (“there are [number] new messages”), if I use it in wp it do nothing… (the functions are in the bbpress path)

    Thaaaaaaaaaaaaanks!!

    #55235

    In reply to: Favourites

    _ck_
    Participant

    It’s just a query, doesn’t write anything so can’t hurt your db. Only bad thing it could do if it you used it on a frequently accessed page, might slow down your site a little bit.

    I’ll double check why it’s not working in 0.9

    update: oh they changed the name of the field from “favorites” to “bb_favorites” so it’s like this now:

    function get_topic_favorites_count( $topic_id=0) {
    global $bbdb, $topic;
    if (!$topic_id) $topic_id = (int) $topic->topic_id;
    return $bbdb->get_var("SELECT COUNT(*) FROM ".$bbdb->usermeta." WHERE meta_key='bb_favorites' AND meta_value REGEXP ':<:".$topic_id.":>:'");
    }

    #66542
    chrishajer
    Participant

    Ross, I created a little slice of a navbar up top, and put the link over to the right in it. Here’s how I did it:

    style.css:

    #navbar {
    background: #A9A9A9;
    height: 1.5em;
    text-align: right;
    font-size: 1.2em;
    }

     

    header.php:

    <div id="navbar">
    <a href="http://ashb.proofreadercentral.com/" title="Return to the ASHB website home page">ASHB Home</a>&nbsp;
    </div>

     

    Put that in the header right after the end of the login form and right before the end of the header div. That will give you a little slice up top in which to link to the main website. You can change the color, the height of the bar and the font size.

    I don’t know why the button is tucked in so close in IE (not FF), but it seems like the negative positioning thing is probably fraught with problems, so I would avoid it.

    You could also put your button to return to the main website in this nav bar, but you’d have to make it taller.

    #66556
    eporedieis
    Member

    Well, but it’s not ok. I have the same database for wp and bbpress, I’ve done also the config wrote in the tutorial, but the script doesn’t function… =( I have wordpress 2.5 and bbpress 0.9.0.2

    Do you know what can i do?? Thx

    #55234

    In reply to: Favourites

    thion
    Member

    It appears that functionget_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? lol

    agl666
    Member

    _ck_

    Try deactivating a few plugins at a time?

    You now, I’ve deactivated first plugin and edititng started to work :) that plugin was your “Post Count Plus”. Don’t you know that’s the trouble?

    Because that would be a nice one to share with others.

    I also think so, so that I will write it… some day :)

    agl666
    Member

    _ck_

    yes, of course, there’s no topic with 11178. Look:

    1.http://forum.ttl79.ru/edit.php?id=11178

    2.http://forum.ttl79.ru/topic.php?id=11178

    First link points to post #11178 editing page, second to where it redirect. eg. post’s id is used for redirecting to topic.

    To convert minibb base I haven’t writed any script, I’ve converted it simply by exporting db, changing something and importing. It know it was so foolish, but I’ve had a lot of time to play with it :) And you now, it was very easy: structures are so simple and similar ;)

    But as I’ve said, editing doesn’t work even with native bbPress posts (e.g. added via bbpress). If you wish, I can give you db’s dump.

    #56779

    In reply to: Plugin: Avatar Upload

    agl666
    Member

    Hi! Thanks for such a useful plugin :)

    But unfogtunately I have a little bug, let me name it like that. Profile page have two “Avatar” tabs. Like showed on this screenshot: http://www.picamatic.com/show/2008/08/03/12/741682_804x186.jpg

    What can I do with that?

    agl666
    Member

    I’ve installed bbPress 0.9.0.2 (the last one), converted db from miniBB, writed new topic (e.g. it happens even to native bbPress content) but when I press ” Edit” (which points to http://forum.ttl79.ru/edit.php?id=11178), it redirects me to http://forum.ttl79.ru/topic.php?id=11178, and of course, error page with “Topic not found.” message. What can I do with it?

    PS. I have

    akismet
    bb-avatar-upload
    bb-gzip
    bb-polls
    bb-privatemessage
    bb-rus-to-lat
    bb-signatures
    BBcode-buttons
    BBcode-lite
    bozo
    cyr_nickname
    googleanalitycs
    human-test
    identicon
    my-views-statistics
    my-views
    onlinelist
    post-count-plus
    topic-icons

    plugins installed

    PPS. Right now I use “None” pretty permalink type

    #66540
    _ck_
    Participant

    You could use absolute positioning and just put that home button in position:absolute;top:0; left:0; which would take it out of the content flow.

    There has to be a more natural way to layout that header though. What you might use (though more work) is a sub-menu under the header.

    #66566
    _ck_
    Participant

    Try editing your bb-config.php file and put in a line like this:

    $bb->uri = 'http://your-domain-name.com/forum-path/';

    It may also require a forced change of your cookiepath if you can’t login.

Viewing 25 results - 27,176 through 27,200 (of 32,495 total)
Skip to toolbar