Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Its this line in the PHP

    [div class=”activity-header”]
    [?php bp_activity_action() ?]
    [/div]
    in media-single.php

    How to configure bp_activity_action()?

    Thanks well I tried to add the highlighted line in this screenshot:
    http://i27.tinypic.com/eqqyb5.png

    But it didnt work… how to make it work?

    Well solved #1 by doing this
    <?php
    if ( in_category( array( 11,9,13,12,10,1 ) ) and !is_home() ) {
    if ( function_exists(‘yoast_breadcrumb’) ) { yoast_breadcrumb(‘

    ‘); }
    }
    ?>

    Anyone know my question 2?

    oh and the plugin im talking about is album+

    Ok as I said , I didnt even tweak the settings of BP, it came 5MB by default. And as you see it’s linked to Album+ for some strange, and stupid? reason. So if I were to make this smaller, there goes my upload size limit, Lol.

    So why didnt you guys get it, was your buddypress configured differently? I mean I havent even tweaked the settings of BP

    But why was i the only one with this problem? very strange… All the other guys with this problem had a server side issue.

    Omfg ITS WORK!!!

    define(‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, 5120000);

    in wp-config XD

    Cheers man!

    Ok it says this

    if ( !defined( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’ ) ) {
    if ( !$bp->site_options )
    define( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, 5120000 ); /* 5mb */
    else
    define( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, $bp->site_options * 1024 );
    }

    So the integer you gave me was wrong haha.. its in bytes

    So I think its this line that’s screwing it up: define( ‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, $bp->site_options * 1024 );

    thanks I’ll try changing it there.
    Defining it in wp-config didnt help obviously. i also tried define(‘BP_AVATAR_ORIGINAL_MAX_FILESIZE’, ‘10240’); to no avail.

    I tried uploading a 5mb and a 250kb file with that parameter, didnt work. Anyone know where BP_AVATAR_ORIGINAL_MAX_FILESIZE is defined in the PHP files?

    thanks, i will try that. 1024 being 1 MB , correct?

    OK i fixed the error myself by removing these lines from sub-upload-http.php , but also effectively getting rid of the size cap altogether.

    if ( $_FILES > BP_AVATAR_ORIGINAL_MAX_FILESIZE ) {
    $feedback_message[] = sprintf( __( ‘The file you uploaded is too big. Please upload a file under %s’, ‘buddypress’), size_format(CORE_MAX_FILE_SIZE) );
    $error_flag = true;
    }

    can upload every file now! Should I just replace BP_AVATAR_ORIGINAL_MAX_FILESIZE with a integer filesize within the PHP file instead? And If so how?

    Also, when the plugin updates, I’d have to re-edit this file , correct?

    my webhost : http://downtownhost.com

    WP 3.0
    BP 1.2.5.2
    Album 0.1.9 Nightly ver

Viewing 14 replies - 1 through 14 (of 14 total)
Skip to toolbar