Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,626 through 25,650 (of 32,481 total)
  • Author
    Search Results
  • _ck_
    Participant

    Oh and by the way Ann, welcome to bbPress (though I see you were around here a few months ago for a short bit).

    Seems like you know how to code so that’s great to see, hopefully you’ll get addicted to bbPress too and churn out some plugins ;-)

    #72028

    In reply to: WordPress 2.7 options

    superann
    Member

    Hey _ck_… that’s great news! It’s probably better to do it your way but I did it this way as I was lazy… I didn’t have to write a single line of code and it was literally just copy and paste from WP 2.5 pluggable functions. And yep, I did override the salt with the old function too.

    #72024

    In reply to: WordPress 2.7 options

    superann
    Member

    Are the login functions any different in 2.7 from 2.6? I just wrote in the WP + bbPress integration forum about having successfully integrated WP 2.6 and bbPress 0.9 logins by just overriding all the WP pluggable cookie functions via a plugin with code copied right from WP 2.5’s pluggable.php file. I was thinking I could just do the same for 2.7…

    #71220

    In reply to: List all Tags?

    Probably. Looking at this page for an example…

    <div id="othertags">
    Tags:
    <ul id="yourtaglist">
    <li id="tag-87_349081"><a href="https://bbpress.org/forums/tags/tag" rel="tag">tag</a> </li>
    </ul>
    </div>

    349081 is the user ID of whomever made the tag

    tag-87 is the tag ID of the tag (which in this case is ‘tag’)

    Now you can go to https://bbpress.org/forums/profile/349081 and easily see who that is so you can probably use get_username(349081) or something to get the name for a mouse over. I don’t know of a way to parse the tag ID number, though.

    #72082

    I doubt the post is being “mulled over” though, as it’s been deleted and not closed. I know this because i went to fix a typo less than 2 minutes after posting (there’s a typo in the firs paragraph) and it was closed. So who every closed it, did so without reading the post. It was deleted not long after.

    As a fellow bbAdmin, I’m sure you know that a deleted post remains in the DB and can be read from the admin console. :) https://bbpress.org/forums/topic/how-to-help-us-help-bbpress?view=all will work for an admin/mod/key master etc.

    i would like to reiterate that if people still refer to this as an open-source project and us contributors as a community, then we have to accept that there will be voices out there that don’t 100% agree with us on everything. Deleting posts that detail such opinions only makes the consensus of a view point insular and narrow.

    I don’t feel the same, which is not to say I disagree with the sentiment. I can see how it could be viewed that way, but that isn’t how I see it. Nuff said, we can chat semantics of open-source ethics elsewhere!

    Also to your three questions: No one can answer # 1. Ever. The ‘Right’ direction for you is different than for me and for _ck_ and for everyone else. ‘Right direction’ is way too subjective. And as a developer, I hate when people ask me ‘Would it be easier to start over?’ Maybe. But I can’t tell you how long it’d take to reinvent the wheel, and I’m sure that I’d have problems that other people have already solved. It’s a Catch-22 to the extreme. :/

    I’d ask this:

    1) Is bbPress moving?

    2) Are you (developers) satisfied with the direction it’s moving in?

    3) Are you (users) satisfied with the product, as it is? Does it live up to the goals, as expressed by the development team?

    If # 1 is a no, then you leave the project or fork it.

    If # 2 is a no, then you scrap and restart (or fork it).

    If # 3 is a no, bear in mind I do not mean ‘Yeah, but I want built in smilies!’ That’s not a design goal. That’s a wishlist. Design goals are things like WP/BB integration (stated as a goal by the devs). But if it is, indeed, a no, then you really are left with the same choices. Leave or fork.

    I think I’m just really keen on saying fork today *halo*

    #4929
    chazbeaner
    Member

    Getting slashes before quotes/apostrophes in bbPress 1.0-alpha-6 integrated with WP.

    Have searched forum for solution, but most seem to be from 2 years ago (what can be found anyway). The core file that needs to be edited (bb-includes/template-functions.php) in those instructions is no longer called that (yes, i know which one it has become), but the code also looks markedly different.

    While I have *some* PHP knowledge and can follow most step-by-step stuff, I’m starting out with a different syntax than the instructions, which makes me a little nervous.

    Here’s the code I think I may need to change:

    ‘function get_post_text( $post_id = 0 ) {

    $bb_post = bb_get_post( get_post_id( $post_id ) );

    return apply_filters( ‘get_post_text’, $bb_post->post_text, $bb_post->post_id );’

    and then what about forum titles?

    Is there an easier way to do this now, or do the core files still have to be edited?

    #72081

    Hi Ipstenu,

    Once again you are spot on mate.

    I’m not in anyway suggesting that the mods/owners don’t have the right to close / delete a forum post, in fact i respect their right to do so. But i also think if someone’s taken the time to write a constructive post then there should be a common decency to at least tell them why it’s been closed and then deleted within 5 minutes of it being posted. Respect kinda has to go both ways.

    I doubt the post is being “mulled over” though, as it’s been deleted and not closed. I know this because i went to fix a typo less than 2 minutes after posting (there’s a typo in the firs paragraph) and it was closed. So who every closed it, did so without reading the post. It was deleted not long after.

    I’m not going to flog a dead horse, or push a personal agenda; the mods have a right to do what they want – but i would like to reiterate that if people still refer to this as an open-source project and us contributors as a community, then we have to accept that there will be voices out there that don’t 100% agree with us on everything. Deleting posts that detail such opinions only makes the consensus of a view point insular and narrow.

    BBpress has amazing potential, I hope it succeeds, i want to help make it succeed.

    If _ck_ isn’t updating her plugins for any of the alpha or beta releases, then we’re effectively given a free-er reign here to not worry about backward compatibility (as lets be honest, _ck_’s plugins are freaking’ awesome); then surely now is the time to ask the hard questions.

    I am not, in any way shape or form, suggesting a complete rewrite or anything like that. But if we put our BA or PM heads on and ask ourselves:

    1) Is BBpress moving in the right direction?

    2) Is the legacy code from before Sam took ownership causing issues?

    3) If we had a clean slate and unlimited time, what would be fix?

    Now the answers may be 1) Yes, 2) No, 3) nothing it’s all working fine. And if they are that’s cool, but sometimes there is a big difference between am end-user view, a developer view, owner view and a Project Manager view. Even if everyone is in complete agreement (unlikely in any community), the right and ability to question can only help but guide the project and give reassurance to its contributors.

    It might also end all of these timeline/compatibility/development/plug-in questions we’re getting (and going to get more) – thus making the lives of the mods alot easier.

    BBpress has amazing potential, I hope it succeeds, i want to help make it succeed.

    #71219

    In reply to: List all Tags?

    circuit
    Member

    i just had a brainwave;

    is it possible to change the code so ALL users can see who wrote each tag.

    the delete function could be removed for everyone except admins.

    this would fix the above permissions problem, wouldn’t it? on our forum, tags don’t really need to be anonymous.

    #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!

    #64648
    chrishajer
    Participant

    You need to create a file called .htaccess in your forum root. Be sure the file starts with a period, and this only works if you’re on an Apache-based web server. IIS will not repond to this.

    Point your browser to bb-admin/rewrite-rules.php and paste the output of that screen into the file called .htaccess in your forum root. Now change the setting in the bbPress admin. Hopefully all will be well with that setup, but if not, post here.

    For example, if your forum is at http://www.example.com/forums/ then you need to point your browser to http://www.example.com/forums/bb-admin/rewrite-rules.php and grab the output of that to paste into your new .htaccess file. Also, I think that only works if you’re logged in as keymaster. I don’t think you can just do that on any bbPress site.

    Also, you might need to put this at the top of your .htaccess file:

    Options -MultiViews

    Some hosts won’t work without that (like mine for, 1and1.com).

    #64647
    jpanizzoli
    Participant

    I’m having a similar problem (404 error when using Pretty Permalinks) and assumed it was the .htaccess file. But where do I get the code to add to the .htaccess file to make things work properly? Would I need to adjust my main .htaccess file (outside of bbpress) – or is there an .htaccess file for BBPress. I don’t see an .htaccess file in BBPress anywhere…

    #4923
    lookfab
    Member

    I’ve read the threads on the problem with 0.9.0.4 and php4. For example:

    Warning: cannot yet handle MBCS in html_entity_decode()!

    Are we going to see a version before 1.0 that I can run properly without upgrading the server to php5?

    #72068
    lookfab
    Member

    _ck_ paints a pretty bleak picture for bbpress 1.0. A pointless rewrite of 50% of the code, which neutralizes much of the benefit of having the beta in the wild for all this time. Extra bulk and slower performance.

    Sam’s response reads like a carefully worded validation.

    Sounds like a lack of information is the least of our problems.

    #71549
    PJ Brunet
    Participant

    I like this a little better ;-)

    <div class="threadauthor">
    <a href="<?php echo get_user_profile_link(get_post_author_id()) ?>">
    <?php post_author_avatar(); ?><br />
    <?php post_author(); ?></a>
    <br />
    <a href="<?php echo get_user_link(get_post_author_id()) ?>"><small><?php post_author_title(); ?></small></a>
    </div>

    #71548
    PJ Brunet
    Participant

    OK, my server is undergoing some upgrades, but this is what I came up with:

    <div class="threadauthor">
    <a href="/profile/<?php post_author_id(); ?>">
    <?php post_author_avatar(); ?><br />
    <?php post_author(); ?></a>
    <br />
    <!--<strong><?php post_author_link(); ?></strong><br />-->
    <a href="<?php echo(get_user_link(get_post_author_id($post_id))) ?>"><small><?php post_author_title(); ?></small></a>
    </div>

    Now I’m going to change the URL back from numeric to the person’s username.

    #72067

    If I can throw out some input, having felt both sides of this debate multiple times, I think the bbPress audience is just looking for a little more information than maybe what is presented publically, and hoping that maybe it’s delivered with a little more public relations than it is firm moderation.

    Lets take a moment to be honest with each other. The bbPress website, as a whole, is in bad shape. The documentation is old and outdated, transversing multiple versions and subversions of code with no WordPress style codex to whisper about. To offer a bit of perspective to everyone, bbPress is following WordPress in it’s development style, and remember that bbPress isn’t even 1.0, and WordPress is at 2.7. Where do you think bbPress will be when it is at version 2.7?

    While we’re all used to how WordPress works and how convenient it is to have years of experience and knowledge to build off of, bbPress just isn’t to that level yet, and it isn’t fair to expect for it to be.

    I feel that the bbPress site needs a serious update, just like the WordPressMU site does. There needs to be some uniformity and some solid public relations going on to get the message across to answer these questions before they even begin to be thoughts in a users mind, and no offense to anyone but a sticky topic isn’t enough, even though there isn’t a sticky anymore. Even if the product is free, it’s still a product, there are reputations on the line, and ultimately someone is investing in Automattic to help pay Sam’s bills, so someone needs to be nice to the customers, even if they’re not paying a dime.

    Sam, if you’re listening, I’d love to help restyle bbPress.org to help it more accurately match WordPress.org/com. I would have suspected this was something done by someone specific within Automattic, but I think I remember reading that you styled it specifically yourself. If it will help take some of the burden off of you, I’d love to help out in anyway that I can.

    #71547

    KnowingArt_com, <?php post_author_link(); ?> will show a link to the post author’s page. I suspect you’d have to dig around with that source, but perhaps get_user_link( get_post_author_id( $post_id ) ) would help?

    (code is between backticks, see the example just below the text window)

    #72064
    sumit1988
    Member

    nobody cares if bbPress stable will be ready in many months _ck_. I think the biggest problem here is this:

    The community: we, us, who use bbPress (alpha or not) report bugs, try all, use your plugins, make it public… we are also a piece of the “raise of bbPress”. We are all very thankfull for the work that you guys do, but what if nobody use it? It would be work for nothin. And it’s just a thing of respect and good will to get the community informated. So if e.g. you don’t know when its ready, dont write “stop asking” or “ready when ready”… try instead “i don’t know” …? So all of us will wait for a reply from someone that knows. Like Sam. And he replied. And it was really informative for us all. Lots of ppl like me are a little happier :-) now, so where is the problem? Chill…

    (sorry if you cant understand my english)

    and just for my personal info: are you (_ck_) working on bbPress itself? or “just” the plugins? Because why reply you always to this questions if the question is not for you (when you’re not working on core product)?

    #71546
    PJ Brunet
    Participant

    Thanks Ipstenu, I didn’t realize post.php was what I needed. Using your code I came up with this…well the “code” tag isn’t working.

    Now I have the picture and name linking to the profile. Next I want to link the “author_title” to the person’s URL, hopefully there’s a handy function to get the author’s URL.

    #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.

    #72061

    I think we all love _ck_ for her plugins, and her attempts to help the community before and after she was made a Mod, but if she and other Mods have “had it up to here” with the same posts being made and the same questions being asked all the time; maybe it’s time to change the website which gives this the false /conflicting/confusing information?

    We can’t tell people to look at Trac for info on bugs/releases/roadmaps, and then complain when they get confused by the conflicting information.

    I’m also don’t find Joel’s blog too helpful, but that’s not to say that some project management isn’t necessary simply because it’s an open source project. But rather than taking the comments about leadership/ownership of the project on the chin, it’s apparently easier to discredit/deflect from the man making the comments – i mean, seriously, who cares if wikipedia doesn’t list Joel as a developer? Does that mean the man doesn’t know that keeping Trac/Gantt chart/documentation/bug list etc up to date greatly increases productivity and keeps a project focussed?

    Or is it because he worked for “Microsoft, so he couldn’t be more opposite in thinking to open-source web based code development”. Are we just presuming now that if you happen to take a wage that you’re fundamentally against free or open source software? I take a wage for a company that wont be releasing it’s software, am i now in the “couldn’t be more opposite in thinking to open-source web based code development” simply because of my day job? Or is it easier to shoot down people making comments based on presumptions moderators have about anyone who places feeding their wives and children above working a 9-5 for an open source software foundation?

    I see, it’s cos it’s easier to shoot down questions and comments rather than have a discussion.

    (btw _ck_, the guy left Microsoft over 9 years ago. 9. years. maybe we can let that one go.)

    @Ipstenu:

    Hey dude, can i ask where you got his info from:

    Now Lorelle (from Lorelle on WordPress, a name many folks may be familiar with) has intimated that this will be a ‘big’ year for bbPress.

    It seems great news, but in the same way that Sam lets us know that he’s been focussed on non-BBpress projects 7 replies down a random forum post; it worries me that finding out this cool info is getting harder and harder.

    Follow the bbPress blog. You’ll get your answer when you do :)

    I kinda hope that’s tongue-in-cheek , with 5 posts in 6 months (and 3 of them within 3 days of each other), the BBpress blog isn’t quite the bastian of information you might think. All it does it tell us when there’s a new release. It’s not not a blog as much as a list of release dates.

    #72060

    I suspect _ck_’s had it up to here with the same people asking the same questions. It does get a little wearing and if I were to link to every post that someone asked this ‘How long…’ question… well I may find the practical limit to post length ;) Exaggeration a little, yes, but not as much as you’d think.

    FWIW, I read Joel on Software frequently, but I disagree with him when it comes to the Open Source Solution. Locked Down software, like Office and such, are a totally different beast, and most Open Source developments start out herky-jerky (like BB and WP) and eventually smooth out into a sort of update schedule. But you can’t do that until you have a baked product, and when you’re re-inventing things, you can’t give a firm deadline because there is no way you can quantify the time it takes to be inventive. Open Source created a new development roadmap, and that map is still very young and very tentative. It took a decade or more to get commercial software where it is today. Open Source has been around since the 60s, but it didn’t really become a ‘thing’ until 1998. And Open Source development, where anyone can pitch in? Whooof! A lot of folks never even saw that coming as more than a passing fancy.

    Now Lorelle (from Lorelle on WordPress, a name many folks may be familiar with) has intimated that this will be a ‘big’ year for bbPress. What does that mean? Dunno, but I suspect now that WP is a grownup, it’s time to burn creative juices over on bbPress. Which still does not mean you’ll get bb 1.0/release any time soon.

    Be patient. Read the posts people have already made. Follow the bbPress blog. You’ll get your answer when you do :)

    #72022

    In reply to: WordPress 2.7 options

    Sam Bauers
    Participant

    The only gotchas with bbPress-1.0-alpha (up to alpha-6) are the less stable code and a few missing functionalities with regards to tag management. If you are doing “deep” integration then there are reported problems with language translation files not being loaded. There are some other sundry issues as well, most of which just need some quality time with a PHP person to fix.

    #72049
    frooyo
    Member

    @ _ck_

    Thanks for the reply.

    Nope, I don’t use plugins.

    As for that topic, your response makes it sound like a large reason why bbPress is slow to release is due to the fact that plugins will break.

    Maybe I’m a little confused here but what’s the problem with that?

    Plug-ins are just that, “plugins”. They are not part of the core product.

    Just an observation, but it seems to me that something that is not apart of the core product, like plug-ins, shouldn’t slow down the release of the core product.

    (Especially plug-ins developed for a non-stable, non-1.0 release)

    Just my 2 cents :)

    #4915
    sumit1988
    Member

    hey guys, just another idea:

    what about integrate bbpress and wordpress that far (maybe with a plugin) that if registered and logged in users post a comment at a wordpress blog-post, this comment will appear in the profile of bbPress users under “user activity”.

    And related to that:

    WordPress users doesnt really have a profile page, so it would be nice if a user register and post a blog-comment, his name-link would open his bbpress profile page.

    Hope you understand what i mean. I think it isnt that difficult. But too much difficult for me :-/

    greetings

    Sumit

Viewing 25 results - 25,626 through 25,650 (of 32,481 total)
Skip to toolbar