Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 25 results - 9,476 through 9,500 (of 11,581 total)
  • Author
    Search Results
  • #72029

    In reply to: WordPress 2.7 options

    _ck_
    Participant

    It’s strange that I didn’t think to downgrade WP 2.7 to match bbPress 0.9 but I guess I overthought the process and figured the new “auth” cookie method would be required in the admin area on WP so it would break. I assume you have tested your admin access in WordPress after your changes?

    WordPress 2.7 added three new kinds of cookies, surprised it doesn’t break anything when you force it backwards. Did you delete all of your old cookies on your browser to make sure it wasn’t “cheating” ?

    In any case, my new plugin is here and should be downloadable for testing shortly:

    https://bbpress.org/plugins/topic/freshly-baked-cookies/

    One plus to the WP downgrade method is it might work with deep integration where mine will definitely not work and should not even be tried that way.

    #72026

    In reply to: WordPress 2.7 options

    superann
    Member

    Yep, same method above works with WP 2.7.1 and bbPress 0.9.0.4. Just tested and there’s full cookie integration.

    #4927
    jpanizzoli
    Participant

    I’m trying to combine some of the functions in the “Latest Discussions” table with the main “Forums” table. I’d like to include the “Latest Poster” and “Freshness” to my forums section. So far, I’ve successfully displayed these items within the table, but they’re not showing the appropriate data. Instead, I’m getting only the most recent poster and freshness displayed for every forum. This should help clarify:

    www (dot) eco-wheelz (dot) com/forum

    This is the code:

    <table id="forumlist">

    <tr>

    <th><?php _e(‘Main Categories’); ?></th>

    <th><?php _e(‘Topics’); ?></th>

    <th><?php _e(‘Posts’); ?></th>

    <th><?php _e(‘Last Poster’); ?></th>

    <th><?php _e(‘Freshness’); ?></th>

    </tr>

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>

    <?php while ( bb_forum() ) : ?>

    <tr<?php bb_forum_class(); ?><?php topic_class(); ?>>

    <td><?php bb_forum_pad( ‘<div class=”nest”>’ ); ?>“><b><font color=”#339900”><?php forum_name(); ?></font></b><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>

    <td class=”num”><?php topic_last_poster(); ?></td>

    <td class=”num”>“>

    <?php topic_time(); ?></td>

    </tr>

    <?php endwhile; ?>

    <?php endforeach; endif; // $topics ?>

    </table>

    THANKS FOR YOUR HELP!

    #72070
    frooyo
    Member

    To help get more people actively involved, why doesn’t bbPress host a “bug fixing marathon weekend” and offer a prize to the most bugs fixed within a 48 hour period.

    Or a contest to redesign the web site.

    Or a contest to improve the documentation.

    Just trying to come up with ideas to help.

    #72063
    _ck_
    Participant

    The news about bbPress on that blog is just rehashing news elsewhere (and it’s a month out of date at that). 2009 will indeed be a big year for *development* for bbPress 1.0 – but that doesn’t mean 1.0 should be adopted for use on live sites in 2009.

    I don’t know how to explain it any further that 1.0 is not simply a continuance of 0.9, it’s about 50% rewritten. 0.9 was reaching a certain maturity but now virtually every major function has been changed in some way that makes it more complex (for the same functionality).

    You’re not using code in 1.0 that’s been proven stable in 0.9, you are using code that’s been rewritten to mimic the functionality of 0.9 with complexity added to force the use of BackPress (essentially WordPress core functions). Not only does the added bulk slow things down, but it degrades the proven stability that was in 0.9 because the new code is not thoroughly tested.

    You shouldn’t be nagging about 1.0 over here, the key question you should be nagging developers about is over on the WordPress side: When will WordPress use BackPress? If it’s not going to (anytime soon) what was the point in rushing to break a stabilized bbPress to make it use Backpress and why are people rushing to use bbPress 1.0 when it’s not finished?

    I think there was only one problem: it’s that 0.9 never got support for the cookies in WP 2.7 so way too many people rushed to 1.0 despite heavy warnings not to do so, somehow thinking they know better, or worse, that they’d just nag about any problems they have and get some kind of priority fix.

    I am considering releasing a plugin to make 0.9 work with WP 2.6-2.8 cookies to stop this nonsense once and for all however people still won’t be able to downgrade unless I also make another plugin to downgrade the database also. But it’s a lot of work and I have little motivation since I would never use WP 2.7+ myself.

    #72062

    @kevinjohngallagher – I got it from the horse’s mouth. She posted it on her blog and in her Blog Herald post last Friday.

    WordPress News, scroll down to bbPress On Fire.

    And yeah, the ‘follow the blog’ was partly tongue-in-cheek (I know updates are sparse), but also serious (as it is the best place to get ‘this has changed’ news). The blog will be updated when there’s news to update. And if there are long gaps between posts, well, it’s not a dev-blog. The forums are kind of the dev blog right now.

    #4917

    I write this in response to the growing posts and their ever-increasing angrier responses from moderators, to people who are simply asking for clarification of (mis-)information.

    The problem we have, as a community, is that we have no communication nor project management involved with BBpress.

    COMMUNICATION

    A great example would be:

    How many more ALPHA’s before BETA?

    _ck_ rightly points out, and then gets angry at the poster, people are constantly asking the same questions. The bit _ck_ misses is that they are not pointless to a lot of people, or indeed one person, even if they are pointless to her. The point that hasn’t seen to be grasped by Sam/Moderators is that have an external facing Trac website that says one thing, when another is true, which is why people are asking the same questions over and over.

    Instead of getting angry at people, why not change the date on Trac?? Even if you put it at 1st Jan 2010, it’s at least in the future and closer to being realistic than 1.0Beta 2 months ago.

    I brought this up in October, and then again in December, and now again in February, but people who are new to this project or maybe not as involved ask _ck_ get their information from the website; but this info has been wrong for over 5 months. Which is why people are asking for clarification!

    If you give people wrong/bad/out of date information, you have to accept that they will ask questions about it on the forum. It’s been the nature of humans throughout history, and we’re not going to change simply because it’s BBpress (sadly).

    Given that the issue could be fixed by a BBpress person (not sure about user roles here so don’t want to presume that a forum mod could do it or if we need to wait for Sam); maybe we should stop being rude to people and fix it?

    <u>A further example:</u>

    It’s great that _ck_ knows that alpha 7 will break her plugins; but what about everyone else? Where is the blog post? Where is the forum post by Sam? Where is the sticky? Where is the announcement? Etc.

    After much searching it turns out that 3 weeks ago _ck_ made a post about it, which has been off the front page of the forums section for the last 15 days. Brilliantly meaning that if you didn’t read the BBpress forums for a 5 day period at the start of February for any reason, then you won’t know about these massive changes. At the risk of appearing sarcastic, does anyone else think that maybe this should be the sort of thing we should Sticky/announce/keep on front page? Shouldn’t this sort of thing come from Sam?

    But regardless it just re-emphasises the fact that communication about BBpress is close to non-existant.

    TRAC

    Devs and Moderators tell us to use Trac, and then are surprised that people are confused about the roadmap saying that Beta comes out 01/08/08 .

    Either update Trac so that people don’t get confused, or inform people in some another way (which is a little redundant as that is what the Trac roadmap is for).

    PROJECT MANAGEMENT

    It somewhat goes hand in hand with the communication aspect, but as any developer knows, rushing head first into coding with no long term view quickly becomes fruitless.

    As a community, and i’m in no way saying that Sam answers to us (really want to make that clear), we have no freaking idea what the heck is going on at any given time. We’re either given an ever changing answer by a moderator, or we’re told that Sam will tell us (like the voice behind the curtain), or we’re left with the (wrong) info on the website.

    Every change comes out of no-where.

    We have no idea what the short, medium and long terms goals are.

    As much as this software is ‘free’, anyone planning to use it on a website at least wants to plan a little in advance.

    It’s very difficult to want to help/take pride/give back to an open source project when we’re constantly told “it’s ready when it’s ready stop asking” – and in fact shows a total lack of project management and control.

    Who runs the BBpress project?

    Do they know/can they answer:

    – how many scheduled man hours until alpha 7?

    – are people assigned to work on it, or have they been moved elsewhere?

    – what is the testing time on alpha 7?

    – how long and we holding open bug acceptance for alpha 7?

    – what is the due date for alpha 7?

    – what is the likelihood of hitting that date?

    – what are the dependant factors?

    – what impact does alpha 7 have on existing installations?

    – have the testers been informed of this?

    – have the contributors been informed of this?

    – what potential conflicts are there between current versions and alpha 7?

    I’m not specifically looking for answers btw, as I said before Sam doesn’t answer to us, but I’m not sure I believe that ANYONE related with this project can answer those questions, and that is really really worrying.

    IT IS FREE – THEREFORE IT IS OK.

    Free is good, free we like.

    Free means we accept bugs.

    Free means we accept it’s not ideal.

    Free means we know we wont get a 100% fit to what we need.

    Free doesn’t mean we accept no communication.

    Free doesn’t mean we accept what communication we get being wrong.

    Free doesn’t mean we accept no management.

    Free doesn’t mean we should get slapped down for asking perfectly legitimate and reasonable questions.

    Free doesn’t mean we should accept instant yet wide sweeping changes.

    Free doesn’t mean we should accept a total lack of respect.

    AUTOMATTIC IS NOT A COMMERCIAL COMPANY

    It is.

    No, really… it is, so can we please stop saying that it’s not. Sam, while a loveable rogue to be sure (and he’s very cute in his picture), he is not fucking Ghandi – he does this for a wage.

    Automattic is not building BBpress out of the goodness of their hearts to save all the wee orphans of the world, they’re a company making a profit and paying people’s wages.

    Lets drop the humanitarian line when someone makes a good point and the moderators want to slap it down, eh? Or am I wrong, is BBpress ending world hunger as we speak? No? ok, maybe lets stop this one then. Just a thought.

    HOW TO FIX THIS.

    At the risk of opening up an old wound, I made a list at Christmas time (the oh so fun Facebook thread).

    Either pause development on BBpress 1.0alpha7 for a week, or engage someone else to do it but:

    <u>Fix the website. </u> Seriously, spend time going through each static page (there are 20 of them) removing all the bogus/wrong/out of date information. Some pages are fine, some are really really out of date. Given how much has changed with BBpress since WP2.5 came out, if you haven’t updated a page since that time then you know it’s wrong before reading.

    <u>Blog more. </u> Not in a twitter “I am eating an apple” way, but you’ve made 5 posts in over 6 months (and 3 of them were within 3 days of each other). That development blog is our window into the BBpress development. It says “hey, this project ain’t dead”; instead all it does now is say “we released this bit of software on this date”. It’s not a blog, there’s no info other than release dates of software that don’t work anymore (for the most part).

    <u>Extend / Plugin section. </u> This drastically needs an overhaul. There needs to be an option to filter out plugins that either don’t work or haven’t been updated to the latest release. Lets be honest, some of these plugins are 2 years old, and as soon as you click into them that’s the first stat you see.

    <u>Download section. </u> Kinda/probably/should/maybe say that if you download the latest version it won’t work with a wordpress install form the last 9 months. Even though it’s from the same company. And it says it does work in the About page. And says it again on the Integration page. Yeah, we should probably write the truth somewhere or people will keep asking…

    <u>Trac. </u> Lets update Trac. If someone has an understanding of the project to the level that they can answer the Project Manager 101 questions above, then why not put some of that info into Trac? I’m confident (though it’s just my opinion) that people are more motivated to fix bugs if we know there are X outstanding before the next alpha, rather than a huge list that has be fixed in an unknown amount of time.

    <u>Development documentation. </u> A tough one this, and time consuming. I get that, I really do. But it makes helping out really difficult. As someone with rusty PHP coding skills (I‘ve been a BA far too long), I find Navigating bbpress to be a pain, and while I understand wordpress comparisons aren’t favourable, documentation makes wordpress editing 1000 times easier.

    <u>Give us an overview. </u> Sounds very simple, and most PM’s have an overview list for each project anyway (usually on a power point to fob directors off), but it would make life easier. Many of us still don’t know what ‘features’ are standard with BBpress and which will only be available via plugin. Many of us don’t know what features are intended on being added, or what direction BBpress is going to go in. These aren’t bugs, we can’t add them to Trac, but many good points have been raised on these forums in the past – and I don’t think it’s right of us to assume you missed them or have ignore them, simply because there’s no communication.

    Last bug not least…

    Any chance we could have a reigning in chat with some Moderators? It’s great that they give up their time to reply here, and help the community, but (and I don’t know if it’s just someone having a bad day) the comments are getting way more aggressive/argumentative/absolutist.

    It’s not that the standard answers aren’t wearing thin ofc, it’s just that we know the answer is going to be:

    • It’s free.
    • Sam’s too busy to pass on info.
    • Blame Matt.
    • It’s free.
    • Stop asking. It’ll be ready when it’s ready.
    • It’s free.
    • Automattic are here to save us all and do not make any moey at all ever and everyone works for free I loves them – please ignore the $29 million they got which included the development of BBpress in the pitch.
    • Go to trac.
    • Don’t believe Trac.
    • Sam’s too busy to keep you lot updated.
    • Microsoft.
    • It’s free.

    That’s said a little tongue in cheek, and I hope it caused no offence, but while the moderators are clearly trying to do a great job (and we thank them), rarely do we get answers or constructive conversation when we talk about things like this. We’re shot down very quickly that we dared to have a different view point, and then given one of the standard answers that blame someone else or that it’s free.

    WE WANT TO HELP.

    Anyone who takes the time to hang around this forum sees we want to help. Anyone who takes the time to write on the forum wants to support BBpress.

    If you’re the only developer on BBpress, or the person making almost all of the plugins, or the moderator who slams anyone who asks a question: please let us help.

    We can’t just rock up, roll up our sleeves and stick our hand up a cow’s butt (an old farming joke – sorry). We need some direction, we need to be able to ask questions, we need information. Once we know what stage BBpress is at, we can help in taking it forward – with you.

    But right now, all we can do is right posts like these every 2 months.

    #72045
    chrishajer
    Participant

    This looks pretty similar to what you are doing:

    https://bbpress.org/forums/topic/latest-wordpress-stories

    It’s latest stories not a page menu, but still, it’s querying WordPress from within bbPress.

    #64409
    deadlyhifi
    Participant
    $forum_one_topics = $bbdb->get_results("SELECT * FROM $bbdb->topics WHERE forum_id = $forum_id AND topic_status = 0 AND topic_sticky = 0 ORDER BY topic_id DESC LIMIT $limit OFFSET $offset");

    updated to leave out sticky posts from the second loop (added AND topic_sticky = 0 to query).

    If you leave out ‘$forum_id = 1;’ it will work on multiple forums.

    I’ve done this so that my front page summary shows latest active posts, but my specific forum pages list by topic order.

    #72000
    whitewall
    Member

    Thanks for the very informative reply _ck_,

    The reason I got interested in bbPress is not that we are trying to cut corners or find a cheap solution. It’s more like we would like to find a very simple and a lightweight bulletin board without built-in options we actually do not need. And somehow bbPress 0.9 looks much like what we are after.

    Our forum has been running on phpBB since 2001 and the software has had it’s well-known problems. We have also tested the vBulletin – we have even the commercial license and have used lots of time and effort to make our other extensions work with it. But at the end vBulletin has too many options and it is too complex for our needs. We don’t need all those options it offers – we need a simple solution which would integrate nicely into our website.

    We have already two dedicated servers (actual machines, not virtual ones), one handles the www-stuff (running apache…) and the other serves as the database server. Right now we have only the phpBB running with a couple of scripts of our own so I guess there’s resources more than we need.

    The search issue would be solved by using Google’s search, that’s what we use right now with the phpBB but the lack of caching may be an issue.

    Maybe we should keep searching the ultimate BB solution for us or try to customize the phpBB3 to fit our needs and figure out some non-WP solution for the WordPress post commenting.

    #4910
    uk_ca_usa
    Member

    Hello, I have several categories, with subforums. When a user clicks on the category they are taken to a page that shows the subforums for that category. I would also like to add a “Latest Discussions” listing that pulls recent posts from that category to this page. Any idea how how this can be done? Thanks.

    #72018

    In reply to: WordPress 2.7 options

    chrishajer
    Participant

    Here’s a good reason from the WordPress release archive:

    “None of these are safe to use, except the latest in

    the 2.7 series, which is actively maintained.”

    If someone was using a version earlier than 2.7.1 and got hacked, the WordPress forums would be all over them to upgrade and telling them getting hacked is their own fault for not staying up to date.

    I run 2.7 vs 2.5 because the admin interface is so much better, IMO. I know some people hate it, but any time I use the admin of a WordPress site prior to version 2.7 I look at it and wonder how I got anything done.

    I don’t think criticizing people’s choice to run the latest version of WordPress is helpful in getting bbPress on board with supporting it. 2.5 was released back in March 2008 and presumably work on 2.6 started around that time. That’s almost a year now that bbPress has had a chance to get cookie compatible with 2.6 and later. The alpha versions are compatible, but alpha is bleeding edge and unstable for production use. So, saying alpha is cookie compatible doesn’t help either, since that’s not been recommended for production use by anyone. You can look at alpha and see that 1.0 WILL be compatible, but WHEN?

    I mean, bbPress docs still mention that it should integrate with the latest version of WordPress in the 2.5 series, and tells you how to deal with running OLDER versions. That’s pretty sad for software that focuses on “ease of integration” with WordPress.

    Now, all this aside: I still can’t figure out why people want integrated logins, why they have users that both post to a blog and post in a forum. But, I don’t ask why. You can push the software around however you want. I don’t understand that but I do understand the frustration with not being able to get that to work.

    Frustrations two and three:

    2. getting bbPress to look like WordPress (that’s integration to many people)

    3. setting up permalinks does not work like WordPress (you make the change in WordPress admin and WordPress modifies the .htaccess file. bbPress does not.)

    Fix those things and the number of support requests here would be cut in half, possibly more, and we could focus on pointing people to or creating cool plugins to do everything they want to do with bbPress.

    #71996
    whitewall
    Member

    Thanks for the replies.

    We have had some performance issues also with phpBB so far, especially with the latest topics and phpBB2’s search system. Also phpBB is too complex for our usage because we need to customize the board for our needs and integrate it into our webzine and other scripts we will use in our website’s next version.

    Our combination would be a wordpress installation for a webzine which will be managed by only a small number of our editors but it would be nice to have all our registered users to comment the posts logged in with their accounts.

    Then the bulletin board should be readable by all visitors but posting is for only the registered users. We should have our 52 forums categorized in 5 or 6 different groups. And there are also various private forums which should be readable and writeable only by a certain user groups. I guess this is not fully supported by bbPress or it’s plugings yet?

    Then we would customize the user profile page and user registration and management system into our own, because there will be paid “VIP” members and free registered users and users should be also categiorized in different groups. Also we have our own solution for the private messaging. I guess all this could be done outside the bbPress.

    There are also few scripts of our own such as event calendar, classified ads, galleries etc. which would use the same user management / login system.

    So the main usage of bbPress would be handling the forum posting, editing and basic forum stuff and together with WordPress and our own extensions they would make a nice platform for a social networking online community. Maybe some of these customizations and extensions of ours would even be possible to publish as a plugins when they’re ready and working.

    We have studied also vBulletin and SMF but so far bbPress seems to be the best bb for our needs.

    #72014

    In reply to: WordPress 2.7 options

    johnhiler
    Member

    AFAIK, nobody’s worked out the WordPress 2.7/bbPress 0.9.x cookie/signin integration yet. If it comes, I’m betting it will take the form of a user-generated plugin… I don’t get the feeling that it’s on the official roadmap.

    I agree that point upgrades to address compatibility would be nice! But I’m pretty sure that bbPress isn’t enough of a priority within Automattic yet to get the resources to make that happen. It sounds like that may happen within the next year tho.

    As for the current state of things: I don’t think bbPress 1.0 is stable yet and more importantly, a good number the most popular 0.9 plugins aren’t yet fully compatible with 1.0. But that may change in a few months! In the meantime, I am hoping that bbPress 0.9 cookie/signin compatibility with the latest WordPress versions becomes possible with a plugin. :-)

    #71995
    johnhiler
    Member

    That’s a really high number of posts and pageviews!

    My bbPress forum is # 12 on that top100 list. It’s not nearly as large as your phpBB site but I’ll share the scaling problems I’ve come across, in case it’s useful.

    Probably the biggest problem I face is that the Google Sitemaps plugin doesn’t scale very well. I believe the most popular Sitemaps plugin regenerates the sitemap upon every publish; this hangs my site every time someone comments on a post. I’m actually exploring the possibilities around upgrading or programming the existing sitemap plugins, to provide a more scalable solution here. But without a good solution here, my content isn’t as Google friendly as it could be.

    Also, the Akismet spam solution is decent… but the bbPress moderation management tools aren’t as robust as they are on WordPress. So moderating the spam queue takes a decent amount of time a day, especially as the site has grown larger. If the problem continues to grow, I’ll look into plugin solutions to help out here.

    Finally, the account management tools on bbPress aren’t very robust. For example, I get emails every day from users saying they forgot their username, or would like to reset their password. bbPress doesn’t currently have easy ways for users to retrieve a forgotten username or to easily reset their password (they can reset the password, but first they have to put in a username/password and fail a signin attempt). I’m actually working on plugins and theme changes to address this one now, but it currently creates a decent amount of work answering emails from confused users.

    My final concern actually is around bbPress 1.0. I am very happy on bbPress 0.9, but version 1.0 is around the corner and seems to be a lot less lightweight than the current version. I’m also concerned about the lack of backwards compatibility with some 0.9 plugins. This wouldn’t be a huge issue, but bbPress 1.0 is currently necessary to ensure cookie/signin compatibility with the latest version of WordPress.

    If you are considering bbPress as a standalone forum for a huge site, I’d definitely recommend it – as long as there are plugins for all the features you currently support on your forum.

    If you’re considering bbPress in conjunction with WordPress, I’d hold off until bbPress 1.0 comes out of beta and/or a plugin supporting bbPress 0.9/WordPress 2.7 cookie integration comes out.

    Just my two cents… hope that helps!

    #71992
    chrishajer
    Participant

    This was a discussion of getting bbPress data in WordPress:

    https://bbpress.org/forums/topic/heres-how-to-show-bbpress-info-inside-wordpress-without-full-integration

    Here is a way to get the latest WordPress posts and use them in bbPress; I imagine you could just do something similar to get with wp_usermeta:

    https://bbpress.org/forums/topic/latest-wordpress-stories

    #71994
    chrishajer
    Participant
    #71961
    _ck_
    Participant

    Yup “order by rand()” is very handy.

    I used it for a mod for WordPress years ago to make a “random” category which is very useful.

    It could even be done to make a “random topics” view in bbPress but not sure how useful that would be.

    It’s fine for casual use but keep in mind for larger tasks it’s very slow and makes mysql purists shudder.

    #71960
    deadlyhifi
    Participant

    and my final correction on the random thing!

    $stories = $bbdb->get_results("SELECT post_title, guid FROM site_posts WHERE post_type='post' AND post_status='publish' ORDER BY post_date_gmt DESC LIMIT 0,10");
    shuffle($stories);

    previous example was getting a random 10 from all posts.

    This get’s 10 latest posts, then randomizes them with the ‘shuffle’.

    cheers!

    #71959
    deadlyhifi
    Participant

    On my version I’m fetching 10 latest rows, randomizing, then displaying 5 stories.

    $bbdb->get_results("SELECT post_title, guid FROM site_posts WHERE post_type='post' AND post_status='publish' ORDER BY rand() LIMIT 0,10");

    Admittedly, I didn’t make the correct alterations to the previous example. Anyway, it should give people an idea of what to do.

    oh, and _ck_ I hadn’t spotted your earlier post – it would have made it a lot easier for me to figure out if I had!

    #4889
    jmilli
    Member

    Greetings,

    I just installed BBPress today and was totally psyched because I have heard such great things about the WordPress products.

    But . . . I am having major problems:

    – New user testing – password doesn’t work. Login failed.

    – I created forums and when I select the topic I get a “The requested document was not found on this server.” error.

    – When I select a user profile (including mine) I get the same error.

    – This is where it is strange and makes me think that maybe I need to reinstall the whole thing. I can’t create a new post. Nowhere does it say “Create post” on the forums.

    I did install the Approve User Registration plugin by Aditya Naik, but I deactivated it and I am still having the above problems.

    Thoughts?

    thanks in advance,

    Jeff

    #71958
    _ck_
    Participant

    FYI, the if ($i <= 4) { is not needed because you already do a LIMIT on the query.

    Related topic:

    https://bbpress.org/forums/topic/heres-how-to-show-bbpress-info-inside-wordpress-without-full-integration

    #71957

    FYI, this only lists 4 posts but is FREAKIN AWESOME! :D

    #4885
    deadlyhifi
    Participant

    Just made a query in my forum functions.php to display the 5 latest stories from WordPress. Pretty basic but it may help someone:

    // get WP news
    function wpnews() {
    global $bbdb;
    $stories = $bbdb->get_results("SELECT post_title, guid, post_date_gmt FROM wp_posts WHERE post_type='post' AND post_status='publish' ORDER BY post_date_gmt DESC LIMIT 0,4");
    foreach ($stories as $story) {
    if ($i <= 4) {
    echo '<li><a href="' . $story->guid . '">' .$story->post_title . '</a></li>';
    $i++;
    }
    }
    }

    then call it on your forum with <?php wpnews() ?> and style to suit.

    #71946

    In reply to: Theme: TooNewsy

    _ck_
    Participant

    Good fix, I got distracted after I posted that and never did it myself.

    There’s also a border issue on images but I think most themes have that problem and it’s another thing I have to enforce in it’s own stylesheet.

    actually, you are causing it here:

    #posts .post .content a img {
    border: 1px solid #ccc;
    }

    You may way to limit it to topic pages and not any kind of table like latest-discussions.

Viewing 25 results - 9,476 through 9,500 (of 11,581 total)
Skip to toolbar