Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'bbpress'

Viewing 25 results - 60,576 through 60,600 (of 64,515 total)
  • Author
    Search Results
  • #59395

    In reply to: Topic Pages

    outchy
    Member

    try this if you want to change the number on the front page:

    https://bbpress.org/plugins/topic/3

    #2156

    Topic: Topic Pages

    in forum Troubleshooting
    Andrew
    Member

    Right now bbpress appears to default to 15 post per topic before being paged. Where is the variable to reset this to another value?

    #2155
    wiseremuska
    Member

    I encountered with a problem saying that headers were already sent while using slugs with mod_rewrite rules shown in bbpress FAQ.

    And just to let people who was or will be up against this problem; i solved it changing the line 168 in bb-includes/pluggable.php

    Change the line with this code line :

    `?><script>location.href=”<?=$location?>”;

    </script><?php`

    #59373
    Ziyphr
    Member

    What are the advantages of doing it this way?

    mikelothar
    Member

    Is there a way to either modify the “Indicate New Posts” plugin, or inspire someone to make a plugin, so that i can add something like this in my theme:

    <?php if ($newpost) : ?>

    NEW

    <?php else : ?>

    OLD

    <?php endif; ?>

    I have looked all over google – and on this site – for a plugin that allowed me to see new posts/topics when i visit my forum, but so far the only one i could find is the “Indicate…”. In all honesty, i can’t use bold marked topics for much.. i need something more CSS like, something not only affecting the topic.

    I’ve coded themes for phpBB for years, but i recently found bbPress and i just love how simple and easy it is to code themes here. With a plugin to display new posts/topics (which in my own humble opinion SHOULD be standard in bbPress), i could gladly help spreading the word of a (relatively) new BB, by making some new themes.

    If i could decide the function entirely, it should work in such way that both new topics as well as new posts would be affected, and they would continue to show as unread until i actually read them. Also, it should be database driven, so that i could log in to my account on another computer, and still see the posts/topics that would be new for me.

    Please don’t make me go back to phpBB… :)

    _ck_
    Participant

    Actually, I just realized there is a cheat way to do zero extra mysql queries and link to the profile.

    <td class="num"><a href="/forums/profile.php?id=<? echo $topic->topic_last_poster; ?>"><?php topic_last_poster(); ?></a></td>

    untested but should work in theory

    This will just use the stored last posted id # instead of forcing bbpress to lookup all their meta data and profile link in the database.

    If your forum uses permalinks, it will just rewrite the url on display.

    #52948
    riddle
    Member

    Mistainu, by “breadcrumb structure” do you mean that the family tree of a sub-forum should be displayed? That’s high on my wishlist.

    In other words, right now a subforum’s breadcrumbs look like:

    Food Forums – winesaps

    When I wish they looked like:

    Food Forums – fruit – apples – winesaps

    I’m reluctant to use subforums at all if I can’t give the user good feedback about where they are in the forum structure.

    So: does your breadcrumb code address this problem? And if so, is it coherent enough that I can glue it into place myself without being an expert about bbPress internals? (I do know enough PHP to be dangerous.)

    outchy
    Member

    is there a way to limit the maximum number of characters for a username?

    #59323
    oledole
    Member

    I’ll link it. And it’s the same userid over at WP as here att bbpress.

    Turning of/setting WP permalinks to default fixes it at my site.

    #59322
    berniesteak
    Member

    May be worth linking that thread over to this one (I don’t have a WP forum account just now), as it does affect both systems (working together).

    If I turn off permalinks on bbpress it seems to work though, same with you?

    I have used MultiViews as well as the more in depth htaccess and it didn’t change anything.

    #58101

    In reply to: bbSync

    crowspeaker
    Member

    fel,

    Using a forum name instead of a number in the Write Post screen while the default is left blank also results in no post to the forum.

    Anything I put in bbsync ~ forum box in the Write Post screen is overridden by what is in the default screen.

    So a summary; no posts if default is empty on config screen; posts only if the default screen is filled in and then posts only to that forum, overriding anything in the Write screen.

    BTW, I have two additional integration plugins running: in BBPress, I have WordPress Integration 0.7 by Michael D Adams; in WP I have bbPress Integration 0.74 also by Michael D Adams.

    #56729

    In reply to: Plugin: Avatar Upload

    fel64
    Member

    Here’s a hacked workaround, though I am not sure it’s a good idea to tap into the user_cache directly. I’d otherwise suggest nicely using bb_get_user() as it checks the cache first but the problem with that is it fetches ALL the data if not in the cache which is overkill. Too bad there isn’t a bb_get_user_meta($id,’metaname’) but oh well – for now replace this top section of code:

    The user _must_ be in the cache at this point if his details are being displayed next to the post, right? Implying that bb_get_user would never need to use a single query.

    There _is_ a bb_get_usermeta() already: https://trac.bbpress.org/ticket/691. It’s in the latest.

    #57314

    In reply to: Plugin: bb-Topic-Views

    _ck_
    Participant

    I’ve now come up with an extremely easy/fast way to grab and display the views per forum in the forum list on the front page (or forums with sub-forums.

    Here’s the plugin:

    function forums_views_append($forums) {
    global $bbdb; $sum_meta_value="SUM(meta_value)";
    $forums_views = $bbdb->get_results(" SELECT $sum_meta_value,forum_id FROM $bbdb->topicmeta LEFT JOIN $bbdb->topics ON $bbdb->topicmeta.topic_id = $bbdb->topics.topic_id WHERE $bbdb->topicmeta.meta_key='views' GROUP BY $bbdb->topics.forum_id");
    foreach ($forums_views as $forum_views) {$forums[$forum_views->forum_id]->views=$forum_views->$sum_meta_value; }
    return $forums;
    }
    add_filter('get_forums','forums_views_append');

    To display the views, edit your front-page.php template and insert a views header and views column like so:

    <th><?php _e('Views'); ?></th>
    <th><?php _e('Topics'); ?></th>
    <th><?php _e('Posts'); ?></th>

    .

    <td><?php echo $forum->views; ?></td>
    <td><?php forum_topics(); ?></td>
    <td><?php forum_posts(); ?></td>

    Since there is no clean way to store forum meta data right now in bbpress (apparently an oversight) this will run on every time the forums list is displayed. Maybe not such a good idea for very busy forums, even though it’s a single mysql query (nifty eh?).

    Eventually I’ll figure out a nice way to store this and only update upon new posts or new topics to reduce overhead (or a cron job perhaps).

    #59233
    _ck_
    Participant

    Would it be possible for you to properly use fsockopen or curl instead of “file()” for remote files? Like many hosts, I disable file() for remote urls for security vulnerability reasons which cripples your plugin. You’re likely to get many complaints that “nothing happens”

    Warning: file() [function.file]: URL file-access is disabled in the server configuration in /home/example/public_html/forums/bb-admin/admin-functions.php on line 798

    .

    update: actually this is not directly your fault, though you are trying to use a bb-admin function that was meant for local file access to do remote file access?

    If I am not mistaken, you just found a bbpress security loophole.

    ps. any concerns about eventually 2,000-20,000 bbpress users hammering the svn with so many file downloads to examine all the plugin headers?

    #59318
    berniesteak
    Member

    Having the very same issue here. Main wordpress site is at / bbpress at /forum/ and although all appears fine the headers returned are 404 not found.

    If anyone can shed any light on this weirdness that would be much appreciated.

    I attempted moving the htaccess content into a vhost file on my server and put them in <Directory> sections, to see if that made any difference. No surprise really it didn’t.

    I’m not an htaccess ot http expert and this seems just weird to me.

    #56728

    In reply to: Plugin: Avatar Upload

    LMD
    Participant

    @Box87 – thanks, but I think the class has far too many features for an avatar upload script. It would be fantastic for a fully-fledged image/photo album/file-browser plugin, but I’m not interested in going down that route.

    Avatar Upload now already has the two chief functions it lacked: resizing (including maintaining aspect ratio) and sharpening of resized truecolor images (unsharp mask). I want to keep it as simple as possible.

    I onced used a forum where the avatar feature was integrated with a generic image upload browser and my users got a bit confused. They didn’t realise it was one and the same place (they hardly EVER uploaded anything that wasn’t an avatar) – you uploaded an image and had to select the one to use as an avatar – it was possible to select an image that was too big etc. So I hacked the plugin to make it more specifically for avatars (making my own for this particular forum would have been a right-Royal pain in the [gr]ass), but I was never really happy with the forum software and ditched it for another one — until bbPress arrived!

    @_ck_ thanks, I’ll look into it. My primary concern right now is getting the plugin to play nicely with the Plugin Browser plugin.

    #58688
    outchy
    Member

    i think that mysterious text appears when some kind of system text is missing:

    for example, when i changed this line in login.php from:

    <h2><?php isset($_POST) ? _e(‘Log in Failed’) : _e(‘Log in’) ; ?></h2>

    to

    <h2><?php isset($_POST) ? _e(‘Log in Failed’) : _e(”) ; ?></h2>

    that crazy text appeared where ‘Log in’ should have been. hope this helps.

    #2145

    Topic: super beginner :)

    in forum Themes
    warmechoco
    Member

    Hello everyone,

    I know a bit about html (but that is not necessary here I guess :p) but nothing about css & php..

    I managed to install bbpress on my website.. I am integrating the forum with Iframes on my website.

    now I would like to have a very cleen and simple forum

    – no hot tags

    – not a big header

    – the forums on top & the latest discussions on the bottom

    the theme I think leans the most to my needs is Superbold for bbPress1 by Refueled (looking at styles). So I’m thinking I could start by editing this theme?

    as you can see I need a little help,

    I have dreamweaver to edit things.

    can someone help me and say me how to start or what is the best thing to do?

    #56726

    In reply to: Plugin: Avatar Upload

    _ck_
    Participant

    @box87, be aware that single upload class is larger than most of the the entire bbpress core code itself – massive overkill unless you really, really really need it’s extra features?

    @louisedade – I found a major caching bug where you are not taking advantage of user meta data that has already been loaded previously in the same execution – this causes 10-30 extra mysql queries for every topic that is displayed depending on how many posts are displayed at once.

    Here’s a hacked workaround, though I am not sure it’s a good idea to tap into the user_cache directly. I’d otherwise suggest nicely using bb_get_user() as it checks the cache first but the problem with that is it fetches ALL the data if not in the cache which is overkill. Too bad there isn’t a bb_get_user_meta($id,’metaname’) but oh well – for now replace this top section of code:

    function avatarupload_get_avatar($id, $fulluri=1, $force_db=0)
    {
    global $bbdb, $user, $bb_user_cache;

    if ($force_db == 0 && ($id == $user->ID || !empty($bb_user_cache[$id])) )
    {
    if (!empty($user->avatar_file)) {
    $a = explode("|", $user->avatar_file);
    } else {
    if (!empty($bb_user_cache[$id]->avatar_file)) {
    $a = explode("|", $bb_user_cache[$id]->avatar_file);
    }
    else {return false;}
    }
    }
    else

    Drops my topic queries by 20 per page while still functioning correctly in all other cases.

    Discovered this problem via bb-benchmark

    #2151
    Trent Adams
    Member

    I came across this post in the wp.org forums and it seems to work from what I hear.

    Trent

    #58687
    outchy
    Member

    yeah, login with this info:

    Your username is: supercoolman

    Your password is: 1c46c2

    You can now log in: http://www.manonfire.cc/sk6ers/

    then click here:

    http://www.manonfire.cc/sk6ers/topic.php?id=4&page&replies=3

    it appears above the textarea box

    #58686
    M
    Member

    Most peculiar. I’ll look into it later.

    Do you have a live example?

    #58685
    outchy
    Member

    one thing though, i just noticed. above all of my forms, the following text is appearing:

    Project-Id-Version: POT-Creation-Date: PO-Revision-Date: 2007-07-23 13:42-0500 Last-Translator: NJO Language-Team: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit

    is there a way to get rid of that?

    #58905
    M
    Member

    @_ck_ – “Hack” core files = baaad. Try localization… it works for bbPress and WordPress. Easy to do as well.

    I want to change bbPress’ default text

    If you don’t like the “favorites” text, you can change it without losing the changes on an update. Not updating because of some little changes you made is bad news indeed. Might as well wear a sign that says “hack me.”

    #58684
    outchy
    Member

    worked like a CHARM. thank you so much.

Viewing 25 results - 60,576 through 60,600 (of 64,515 total)
Skip to toolbar