Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • snark
    Participant

    @snark

    @r-a-y @johnjamesjacoby @boonebgorges @DJPaul — Any of you guys have any idea what could be causing this problem and how to fix it? Thanks.


    snark
    Participant

    @snark

    Ok, here is a slight change to the pattern I’ve observed (in uppercase, below) with the display of bp_the_topic_last_poster_name in the Forums Loop — again, ou ycan see the problem in action at http://www.wordlab.com/forums/ :

    1. For older posts and replies, made before today’s upgrade to BP 1.5, it works as it should.
    2. For new post-upgrade replies to Topics that were created before the upgrade, it incorrectly shows and links to the NEXT TO LAST POSTER
    3. For new Topics created after the upgrade, no user or link is shown at all for the last poster.

    Does anybody know how to fix this????


    snark
    Participant

    @snark

    Has anybody seen this issue? It’s very weird — the Topic page displays just fine, and has no trouble identifying the latest poster. But on forums-loop.php, it can’t, and the problem persists with the default 1.5 theme, so it seems like something to do with WP/BP settings or is server-side.


    snark
    Participant

    @snark

    Re-posting this here at the new BuddyPress.org community:

    @boonebgorges — One small issue I have noticed: the function separates capitalized and non-capitalized tags, putting all the capitalized tags first. I want all tags to be alphabetized together in one group, regardless of whether they are capitalized or not. Thanks.


    snark
    Participant

    @snark

    @boonebgorges — One small issue I have noticed: the function separates capitalized and non-capitalized tags, putting all the capitalized tags first. I want all tags to be alphabetized together in one group, regardless of whether they are capitalized or not. Thanks.


    snark
    Participant

    @snark

    Thanks @dweanus, that solved the problem. However, I just noticed a new one crop up: In the Forum topics list view, a topic’s rating number is not showing up in the Ratings column on any of the sub-pages, only on the first page. You can see at Wordlab — http://www.wordlab.com/forums/ — you might see a couple topics on the first page with ratings listed in the Ratings column, but if you click on the subsequent pages, you won’t see any, even though some topics have been rated.


    snark
    Participant

    @snark

    @dweanus — I have noticed an error that has cropped up using Rate Forum Posts: a user’s karma display gets stuck at some arbitrary number and stops incrementing. However, when you click on “Groups” tab sub-menu in the user profile — /members/username/groups/ — and only that page, the correct karma value is displayed. You can see it in action on wordlab.com, where my (“snark”) karma value is stuck at 18p — http://www.wordlab.com/members/snark/activity/ — except on the Groups sub-page, where it shows the correct value of 157p — http://www.wordlab.com/members/snark/groups/. I tried deactivating and re-activating the plugin, but the problem persisted.


    snark
    Participant

    @snark

    Thanks @3sixty — after much head-wringing and a little tweak, I got your code to work perfectly:

    <?php if (get_usernumposts( bp_current_user_id() ) > 0) echo " | Blog posts: " . get_usernumposts( bp_current_user_id() ); ?>

    In the process I learned that “get_usernumposts()” has been deprecated in WordPress 3.0, so when that comes out I assume I’ll have to change this to work with the replacement function, “count_user_posts()”


    snark
    Participant

    @snark

    Thanks @boonebgorges and @3sixty — I went with @3sixty’s solution and decided to make a copy of the function for the post count and then call them out as separate “Forum Topics” and “Forum Replies” counts, rather than totaled together, in the yellow activity bar on the member profile page like this:

    <span class="activity">
    <?php bp_last_activity( bp_displayed_user_id() ) ?>
    | Forum Topics: <?php echo get_new_forum_topic_count_by_user( bp_current_user_id() ) ?>
    | Forum Replies: <?php echo get_new_forum_post_count_by_user( bp_current_user_id() ) ?>
    </span>

    This works well, as you can see on the member pages at http://www.wordlab.com/. I decided to forgo adding the post count to the topic list anyway, so I’m all set.

    The only bit of information I would have liked to have added to the member profile pages is a count of blog posts, which I figured out easily enough, but to only have that count display on the member profiles of those members who have permission to post to the blog, which on this site is only 3 out of over 200 members. So for the three members who have blog posts, there would be an added count, like this, “Blog posts: 46”, but for all other users instead of saying “Blog posts: 0”, I tried to craft a conditional tag but I couldn’t get it to work right — the count just kept showing up on all user profile pages. Any ideas?


    snark
    Participant

    @snark

    Thanks @r-a-y — It should have a decent ranking, as the site’s been around since 1998. But up until a week and a half ago it was a Windows-hosted Cold Fusion site, and I completely scrapped that for all new code on an open-source platform I can deal with.


    snark
    Participant

    @snark

    Thanks @boonebgorges — I got it partially working, but then got stuck. I put the function as is above in my functions.php file, and added this to member-header.php:

    <p><?php echo get_activity_count_by_user( bp_current_user_id() ) ?> Forum posts</p>

    This returned ALL posts for a user, including blog posts. Obviously, based on the text I added above, I only want to include Forum posts (should include both Topics and Replies). I looked at the page you suggested — https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/ — but I couldn’t figure out how or where to implement the filter: what syntax, and where does it go, in the function or in the call-out?

    Also: Using “bp_current_user_id() ” allows the post count to display on the user’s profile page, but how do I display the post count on a different page, such as /single/forum/topic.php, the Forum topics display page, where “bp_current_user_id()” is no longer applicable? On that page I’d like to put a user’s post count in parenthesis next to the user, like this: “John Doe (54 posts)”. That way when you scanned the list of Replies to a Topic, you would quickly see if a user was a long-term and/or hardcore user or a noob based on the number of posts they have contributed to the site, and I’m hoping that little ego boost will help nudge people into posting more frequently. Does that make sense?

    Thanks again for all your help.


    snark
    Participant

    @snark

    No, NOT blog posts. I am running single user WP, and all the blog posts are done by only 3 people, so I rather have the post count be for everything BUT blog posts, but if it has to include blog posts, that’s fine. As long as it includes all Forum Topics and Replies.


    snark
    Participant

    @snark

    @boonebgorges — removing the ‘$b’ didn’t work, but changing ( $a, $b ) to ( $a, $b = false ) in the second function did the trick. Thanks for your help!


    snark
    Participant

    @snark

    Just bumping this, hoping @boonebgorges or someone else who can tweak his functions so they work without an error. Thanks.


    snark
    Participant

    @snark

    @boonebgorges — Your functions worked like a charm to achieve alphabetized forum tags, but they returned a warning error above the tags:

    Warning: Missing argument 2 for bbg_alphabetical_tag_cloud_filter() in …/httpdocs/wp-content/themes/…/functions.php on line 163

    Here is the line of code referenced by the warning:

    function bbg_alphabetical_tag_cloud_filter( $a, $b ) {

    Looks like “$b” needs some sort of argument?


    snark
    Participant

    @snark

    @3sixty — I found this topic of yours, https://buddypress.org/forums/topic/time-zones-different-in-messages-and-forums-bbpress, but it doesn’t link to your Trac ticket, and I couldn’t really follow your suggested fix, where to make the changes, the caveat, etc. (I’m not codesmart enough, sadly…).


    snark
    Participant

    @snark

    I agree. I have already made the line about having to activate your account from an email link big, bold and red on that page, to make it more prominent, but perhaps an interstitial page with a more prominent notice would be better, so users can’t even continue to the option of uploading an avatar until they have first clicked the link in email — once verified by the link, they could then proceed to upload an avatar and then login.


    snark
    Participant

    @snark

    Yes @jamesmarsland it is.


    snark
    Participant

    @snark

    Still looking for help on this. My new BP site finally went live today — http://www.wordlab.com/ — and I’m getting a couple signups per hour that never click on the activation link. Some may be legit but can’t figure out the activation process, but from email correspondence I’ve only found one who fit that bill — the others never respond to me, so I’m guessing a fair percentage of them are spambots using fake email addresses.

    So it would be great to have these improved User sorting options in the WP Admin, so I could track down bogus registrations, perhaps those that haven’t been activated after a set amount of time, and delete those users in batches. An alternate strategy would be to have the system auto delete (or delete en masse on command) any registrations that are never confirmed after a set period (10 days, 30 days, etc.)


    snark
    Participant

    @snark

    Thanks @boonegorges , but that’s beyond me, and I don’t want to hack up the core files. Any chance of adding a hook to BP or whatever it requires so that a simple(r) function added to the child theme functions.php file could adjust the sort method and order?


    snark
    Participant

    @snark

    @DJPaul — great plugin. I just posted this little enhancement idea to the WordPress forums:

    https://wordpress.org/support/topic/379728?replies=1


    snark
    Participant

    @snark

    Any ideas on this? It seems like it should be an easy tweak to change the Forum tag cloud sort order that a lot of people might want to do, but I can’t find an info on it anywhere.


    snark
    Participant

    @snark

    @DJPaul — I tried tweaking the function you gave me — it didn’t create an error, but it didn’t work either. Here’s what I tried:

    /* Customized heat map (tag cloud) function */

    function bp_forums_tag_heat_map_x( $args = '' ) {
    $defaults = array(
    'smallest' => '10',
    'largest' => '18',
    'sizing' => 'px',
    'limit' => '100',
    'orderby' => 'name',
    'order' => 'ASC'
    );

    $r = wp_parse_args( $args, $defaults );
    extract( $r, EXTR_SKIP );

    bb_tag_heat_map( $smallest, $largest, $sizing, $limit, $orderby, $order );
    }

    I tried adding ‘orderby’ and ‘order’ arguments, but it didn’t work. Does anybody know how to tweak this function I’m using in my child theme to change the display order of the Forum tag cloud? By default it orders by most occurrences first and then in order of creation, so all new tags don’t even show up. I’d like to include tags by most occurrences, but then order them alphabetically. Thanks.


    snark
    Participant

    @snark

    Ok, I just solved the problem. First, I found that it worked fine in another browser (Safari/Mac). So I deleted the cookies in the problem browser (Firefox/Mac) for the site running on BP, and now the “Load More” functions correctly.


    snark
    Participant

    @snark

    Yes, I am having the same issue. I am running single-user WP 2.9.2 and the latest BP release, 1.2.2.1. I am only seeing this problem in the site-wide Activity stream — the individual Group and member Profile activity streams are each working correctly, loading new content when “load more” is clicked. But for some reason, on the site-wide Activity stream, clicking “Load More” once works to load a second page of content, but after that it keeps loading the same second page of content tacked on the the end of the previous display of the same content. Like this, where the numbers represent.

    Here is the pattern (each “page” displays 20 Activity stream items):

    — Open Activity stream page, and the most recent 20 activity items are shown.

    — Cick “Load More” and a second batch of 20 activity items are loaded after the first 20.

    — Cick “Load More”, and the same second batch of 20 activity items are loaded after the first 20 and fist copy of the second twenty.

    — Continues…

    In other words, if you clicked on “Load More” a bunch of times, here’s the activity items that would be listed:

    Items 1-20

    Items 21-40

    Items 21-40

    Items 21-40

    Items 21-40

    Items 21-40…

    For some reason it is stuck on that second group of twenty items.

    I checked the BuddyPress demo site, and the Activity stream “Load More” is working fine there, so something @anton and myself are doing is causing it to hiccup for us. Any thoughts.

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