Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 25,701 through 25,725 (of 32,570 total)
  • Author
    Search Results
  • #69982

    Of course :) If you have experience with WordPress theming, it’s even easier. Took me a couple hours to make my forum match my site.

    #72105
    deadlyhifi
    Participant

    i’m not entirely sure what you are trying to do here since forum.php (used to display specific forum) shows information in the same way as front-page.php (used to display a summary of all posts)

    i.e.

    <?php if ( $topics ) : foreach ( $topics as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><a href="<?php topic_last_post_link(); ?>"><?php topic_time(); ?></a></td>
    </tr>
    <?php endforeach; endif; ?>

    #72133

    Aha! Outside my office firewall I get an Error 500 right away on oakdaily.ru/forum, BUT oakdaily.ru works without issue!

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, support@netangels.ru and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.
    Apache/2.2.3 (Debian) Server at oakdaily.ru Port 80

    Traceroute gets me this

    traceroute to oakdaily.ru (91.201.53.16), 64 hops max, 40 byte packets
    1 home (xxx.xx.xx.xxx) 1.960 ms 1.405 ms 0.730 ms
    2 adsl-xx-xxx-xxx-xxx.dsl.MYSERVER.net (76.197.239.254) 19.255 ms 16.898 ms 17.679 ms
    3 12.83.63.137 (12.83.63.137) 41.463 ms 47.398 ms 39.459 ms
    4 equinix.nyc.retn.net (206.223.131.96) 39.441 ms 40.698 ms 39.450 ms
    5 ae3-7.RT.M9.MSK.RU.retn.net (87.245.233.197) 185.161 ms ae2-10.RT.M9.MSK.RU.retn.net (87.245.233.133) 184.561 ms 184.576 ms
    6 so-0-0-0.ebrg-rgr1.ur.ip.rostelecom.ru (87.226.138.182) 212.860 ms 273.203 ms 256.098 ms
    7 87.226.138.210 (87.226.138.210) 208.845 ms 212.029 ms 210.828 ms
    8 79.133.95.20 (79.133.95.20) 212.878 ms 209.786 ms 211.095 ms
    9 u7258.netangels.ru (91.201.53.16) 212.860 ms 214.290 ms 214.865 ms

    Detective
    Member

    Also, thanks for the welcome, ck! I do more theme customizations for WP but usually do it all the quick and dirty way, cramming things into function.php file rather than packaging it up nicely, and I often just hack features into other plugins to get it all working the way I want. Right now as far as bbPress is concerned on my to-do list is to find a good solution for manually marking spam posts, work email notification into the pm plugin, and set up the post notification to send email by default. Just haven’t had time to look into all that yet… if there are any existing solutions/patches, please let me know! Otherwise I’ll probably look into it at some point and contribute what I can (if anyone else is interested).

    Great! I was going to work on that in a few weeks :)

    #4932

    I just wanted to share the experience I have gathered while working, designing and pushing bbPress so as to not look like a generic bbPress instance. My latest work are these forums (the rest of the site is WordPress), and if you have the time please consider registering to be able to play a bit with the design from a member-perspective (enjoyed better in Safari). I would appreciate your feedback.

    I am really captivated by the possibilities bbPress offers; but I also feel the obscurity of these possibilities are somehow hindering proper development in the design department. The lack of a proper and exhaustive codex, readable for theme authors —without having to dig into core files—, remains as the biggest obstacle. I am all for contributing, should it be possible, in this way or another.

    #72123

    Integration, in and of itself, shouldn’t matter though. Shared DB does not integration make, and I think that pinning it on ‘integration’ may send some folks down the wrong path.

    Check your language file, check your charset for your DB. Let us know! :)

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

Viewing 25 results - 25,701 through 25,725 (of 32,570 total)
Skip to toolbar