kodestar (@kodestar)

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’ve allowed users to upload images, but whenever I try to upload an image it fails with increase post_max_size and upload_max_filesize to 5M.

    I don’t have any issues uploading with wordpress, and the values are currently set to 8M and 2M respectively.

    The image i was trying to upload was only 167KB I tried with a 47KB file as well and that didn’t work either.

    Any ideas?

    Ok after reviewing the code again, it seems this is either by design or a bug?

    It calculates how many total topics there are, THEN if the user has permission counts how many private topics etc there are, but this has no effect on the total amount.

    This doesn’t make any sense to me?

    I can’t even count how many private topics there are and take it away from the total amount, because it only counts this if the user has permission to see private forums anyway.

    I’ve changed it to

    extract( bbp_get_statistics(), EXTR_SKIP );

    <h2>Forums <span class=”info-text pop”><?php echo $forum_count.” forum(s) / “.$topic_count.” topic(s) / “.$reply_count.” post(s)”; ?></span></h2>

    But I’m getting exactly the same numbers, which doesn’t make sense as a quick look at the code seems to indicate the amount of topics that displays will depend on the users permissions.

    So when logged in as admin 7 topics would be right as there are 5 in public forums and 2 in a private forum, but when logged out it should say 5.

    However, it says 7 topics either way, and 23 replies

    Ok, I’ve worked out that the posts things is only counting replies (including from the private forum) and doesn’t count the original topic, so I guess all I need to do is add replies to topics to get the full amount of posts.

    Still not sure what to do to overwrite a core function though.

    Anyone have any ideas? =/

Viewing 5 replies - 1 through 5 (of 5 total)