deadlyhifi (@tomdebruin)

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 145 total)

  • deadlyhifi
    Participant

    @tomdebruin

    You could do this in the theme files.

    In topic.php, around line 35 where the topic posts are listed, check if they’re logged in.

    e.g

    <?php if ( bb_is_user_logged_in() ) { ?>

    <?php foreach ($posts as $bb_post) : $del_class = post_del_class(); ?>
    <li id="post-<?php post_id(); ?>"<?php alt_class('post', $del_class); ?>>

    <?php bb_post_template(); ?>
    </li>
    <?php endforeach; ?>

    <?php } else { ?>

    <li>Sorry, you must be logged in to view this - register now!</li>

    <?php } ?>


    deadlyhifi
    Participant

    @tomdebruin

    Well done Taeo, that looks really great. A nice use of the ‘views’ to browse the various galleries.

    Noticed one issue, on profile pages (which can only be reached through the UI Vitals panel and not by clicking on the Member next to their name?) it states ‘recent replies’ for both lists. One should be ‘topics started’.


    deadlyhifi
    Participant

    @tomdebruin

    There isn’t any official documentation as far as I’m aware, but you can read the IRC logs on the blog (https://bbpress.org/blog/).

    Regarding the points by froyo:

    1 + 2: As mentioned it would work in the same style as buddypress which allows plugins which affect particular aspects of buddypress itself. So there wouldn’t be a problem hooking into only bbP features, and keeping other plugins away from bbP.

    3: I think the admin area will be a whole lot cleaner when the two are integrated. Currently all the user stuff is duplicated in both admin areas (and behave differently), so I imagine there will be additional menu on the left of the WP admin area for all forum related stuff, plus a dashboard overview panel/widget.

    In reply to: Help out with bbPress

    deadlyhifi
    Participant

    @tomdebruin

    Hi Matt,

    I’ve been running a large bbP community for 11 months now, so I’ve come to know what users expect and the kinds of limitations we’ve had to overcome (or not). My skills lie mostly in user experience and CSS coding, but I’m also getting quite proficient in PHP. I’d be more than willing to help in any of these areas. With PHP some of the lighter side of things would be desirable.

    I’d also love to help out with the codex, answer questions here, and moderate.

    A great person to have on board would be CK ( https://bbpress.org/forums/profile/_ck_ ). She seems to have disappeared off the radar of late, but she wrote many plugin (for 0.9), offered much advice, and stated she’d be updating plugins for 1.0 from December onwards.

    In reply to: Future of bbPress

    deadlyhifi
    Participant

    @tomdebruin

    It’s great to hear that bbPress has a future, so thanks for informing us, Matt.

    At this stage I think it’s important to get bbP integrated better with WP in terms of the theming, and having a select number of WP functions available to it.

    Logging in, and profile pages should be brought together. At the moment my integrated site has abandoned WP profiles, because of the forum history, favourites, etc. in bbP.

    Sharing of cookies needs to be a single check box option, with none of the faffing around that it currently takes. The login/out form needs to be global.

    Two versions of bbP (0.9, and 1.0) is very confusing, particularly when it comes to browsing the plugins. We need some clear direction for plugin writers, since this brings real power and customisation. (twitter login, facebook connect, etc. should all be plugins since not everyone needs these features.)

    It may be that bbP needs to stop its standalone status (though, I hear many cries) and focus on its integration with BuddyPress. If someone only wants a forum then they can switch off all the other Buddy features. BuddyPress would then take over all user profile duties and allow easy integration with a single administration area (paying good attention to moderator powers.)

    thanks.


    deadlyhifi
    Participant

    @tomdebruin

    just had two revisions come through on 0.9 and trunk by mdawaffe. Is he our new esteemed leader?


    deadlyhifi
    Participant

    @tomdebruin

    not a complaint, just an observation, but

    This is coming out tomorrow, with or without feedback. POSTED 3 WEEKS AGO #

    In reply to: All RSS Feeds Broken?

    deadlyhifi
    Participant

    @tomdebruin

    The fix in track wraps CDATA around the title and description, then the &raquo’s work fine and it all validates.

    In your theme’s rss2.php replace with this:

    <?php
    header( 'Content-Type: text/xml; charset=UTF-8' );
    echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "n";
    bb_generator( 'comment' );
    ?>
    <rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
    <title><?php echo $title; ?></title>
    <link><?php echo $link; ?></link>
    <description><![CDATA[<?php echo $description; ?>]]></description>
    <language><?php esc_html( bb_option('language') ); ?></language>
    <pubDate><?php echo gmdate('D, d M Y H:i:s +0000'); ?></pubDate>
    <?php bb_generator( 'rss2' ); ?>
    <textInput>
    <title><![CDATA[<?php _e('Search'); ?>]]></title>
    <description><![CDATA[<?php _e('Search all topics from these forums.'); ?>]]></description>
    <name>q</name>
    <link><?php bb_uri('search.php'); ?></link>
    </textInput>
    <atom:link href="<?php echo $link_self; ?>" rel="self" type="application/rss+xml" />

    <?php foreach ($posts as $bb_post) : ?>
    <item>
    <title><?php post_author(); ?> <?php _e('on')?> "<?php topic_title( $bb_post->topic_id ); ?>"</title>
    <link><?php post_link(); ?></link>
    <pubDate><?php bb_post_time('D, d M Y H:i:s +0000', array( 'localize' => false ) ); ?></pubDate>
    <dc:creator><?php post_author(); ?></dc:creator>
    <guid isPermaLink="false"><?php post_id(); ?>@<?php bb_uri(); ?></guid>
    <description><?php post_text(); ?></description>
    </item>
    <?php endforeach; ?>

    </channel>
    </rss>

    In reply to: Censored words?

    deadlyhifi
    Participant

    @tomdebruin

    have you tried https://bbpress.org/plugins/topic/cnsor/ ?

    We use it on our site for swearing. Though it doesn’t do wildcards so it would probably be quite easy to get around.


    deadlyhifi
    Participant

    @tomdebruin

    post pagination is built in, just go into Admin > Settings > Reading


    deadlyhifi
    Participant

    @tomdebruin

    There’s an issue with RSS feeds not validating. The problem appears to stem from &raquo; in the titles (rss.php) so I swapped them all with ::.

    It now validates. It did work fine in Safari, but Firefox and IE threw up errors. Will report in trac…

    Feed validation for this thread: http://validator.w3.org/feed/check.cgi?url=http%3A%2F%2Fbbpress.org%2Fforums%2Frss%2Ftopic%2Fcall-for-testers-on-the-09-branch-and-10-trunk

    There’s also a recommendation to not use <textInput>.


    deadlyhifi
    Participant

    @tomdebruin

    no fast recount on the 1.0?


    deadlyhifi
    Participant

    @tomdebruin

    Not sure about that since I don’t have any sub forums.

    Have you tried adding to $exclude_forums? Like this $exclude_forums=array ("3", "4","6");?

    In reply to: forgotten username

    deadlyhifi
    Participant

    @tomdebruin

    I had read something about that, but it doesn’t work for me.

    I get an error returned saying that “user does not exist” if I try and log in, and on an attempted password recovery “The specified user does not exist.”

    In reply to: forgotten username

    deadlyhifi
    Participant

    @tomdebruin

    thanks for your reply.

    On my login form, which appears at the top of every page in my site, I have a link to the bb-login.php page titled (lost password?). I just thought that the password recovery should allow input of username or registered email address.

    There was talk about something like this allowing people to check if someone was registered by typing in email addresses and checking for the errors. Alternatively the message could just be “If this email address is registered on the forum an email has been sent with your details in. Please check your SPAM folder carefully if it fails to arrive. If you are sure you registered with this email address and receive no email then please contact the forum administrator.” Or something like that.

    In reply to: forgotten username

    deadlyhifi
    Participant

    @tomdebruin

    anyone?


    deadlyhifi
    Participant

    @tomdebruin

    I find that very odd. As it’s working perfectly well for me. Did you put function filter_front_page_topics($where) in a plugin and activate it?


    deadlyhifi
    Participant

    @tomdebruin

    Have a look here on how to exclude a forum from the front page loop, whilst keeping the post limit intact.

    limit forums included in latest discussions

    Note the core hack required to keep the paging numbers correct.

    Maybe you then need to write another small custom query to bring out just forum 17, as I’m not sure you if you can have two loops. (perhaps the WP multiple loop info would give some insight into this: https://codex.wordpress.org/The_Loop#Multiple_Loops)

    In reply to: Role = Main?

    deadlyhifi
    Participant

    @tomdebruin

    http://www.w3.org/TR/xhtml-role/#s_role_module_attributes explains the role attribute.

    could the other issue be to do line endings? LF, CR, CRLF, etc. I use Coda (mac) and that is set to UNIX LF as default.

    In reply to: Topic paging issue

    deadlyhifi
    Participant

    @tomdebruin

    Only 24 MB of RAM for PHP?

    8mb is a standard installation. Shouldn’t 24mb be enough?

    In reply to: Topic paging issue

    deadlyhifi
    Participant

    @tomdebruin

    Thanks _ck_. Unfortunately I’m using v1 so can’t put your plugin into practice. Although I’m sure (I hope) it will soon be featured in the software itself.

    I may have a look at your plugin and see if it’s straightforward to amend for v1.

    In reply to: Topic paging issue

    deadlyhifi
    Participant

    @tomdebruin

    So to use just one of the recount functions on a forum with a half million topics, you currently pull an array of the topic id’s several megabytes in size into ram, then proceed to use 500,000 x 3 = 1.5 MILLION QUERIES to update the meta.

    that’s me! Thanks _ck_.

    Is this the same issue that’s causing the paging to be wrong? The user has just reported:

    It commonly happens with the 41st post on a thread, where you if you click on “latest post” link you get sent to the 40th post at the bottom of page 1, with no link to page 2 (note in the example I sent you “latest post” sent you to the bottom of page 3).

    In reply to: Topic paging issue

    deadlyhifi
    Participant

    @tomdebruin

    Unfortunately these options:

    Count posts of every topic

    Count tags for every topic

    Count topics for every tag

    return fatal errors – Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 35 bytes) (and many others).

    Though we do have 550,000 posts.

    In reply to: Topic paging issue

    deadlyhifi
    Participant

    @tomdebruin

    i’ll give that a go. cheers.


    deadlyhifi
    Participant

    @tomdebruin

    In fact, it’s important to do it the way I mention, because just checking for forum id when outputting will still count the topics, therefore the number of topics appearing on the page will be inconsistent.

    e.g. If you have 5 topics in the forum you are not showing, and output the latest 50 on the front-page (Reading Settings > Items per page). You’ll actually get 45 listed.

Viewing 25 replies - 26 through 50 (of 145 total)