Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for '+.+default+.+'

Viewing 25 results - 5,976 through 6,000 (of 6,774 total)
  • Author
    Search Results
  • #69288
    chrishajer
    Participant

    Also, before making changes to a stock template, you probably want to make a new directory called my-templates, then inside there a new directory called $whatever-you-want (maybe “forumtemplate” or “mytemplate” or “newlook”). Then inside that directory, copy over all the files and subdirectories from the bb-templates/kakumei/ directory. Now, in your new directory, edit the top of style.css to change the template name to something unique. Once you’ve done that, you can log in as keymaster, then select your new template, by name, since the screenshot will still look like kakumei since that’s what you copied over. Select the new template and look at your site. It should look the same as it did before, because you didn’t make any changes yet.

    Now, confine all your changes to these template files, and if you break something you can always fall back on the default kakumei, or compare to see where you went wrong.

    #69246

    In reply to: Replies order in Alpha

    cartmanffc
    Member

    tkanks but it didn’t work.

    I have just give up on trying to do this and stick to the default order; I’m too busy to dwell on any more problems…

    #69237

    In reply to: New installation

    chrishajer
    Participant

    You can install bbPress in the same database as WordPress, it will use a table prefix of bb_ by default. It’s actually recommended to use the same database if you’re going to try integration at some point. So, there’s no need to create a new database, just use the connection details for the database you use for WordPress and ensure the table prefixes are different. By default, WordPress uses wp_ and bbPress uses bb_.

    #69249
    bigcanoe
    Member

    fixed. after set the forum url to the default http://…/bbpress/. it works. why ? we can’t change it? or just because I upload bbpress to directory ‘/bbpress/’ ?

    #69183
    _ck_
    Participant

    For some reason I’ve never liked the default kakumei green and like kakumei blue much better instead. But other people can make it worth well enough on their sites. I only mentioned the blue option because the rest of your main site’s links and text are in blue and the green in the forum makes it look “foreign” to the rest of the site.

    #4313

    I’ve been working on this for a few weeks and its finally complete. There are still a few small bugs left and I’m sure I’ll find more, but I have launched the forum in its present state.

    I’m using a few of _ck_’s pluggins. “Instant Password” and “Human Test”

    I made quite a few modifications to the core to support what you might call “Virtual Forums” for lack of a better term.

    My site lists apartments, I have pages for around 26,000 cities in the U.S. I wanted to have forum content on each page but didn’t want to create 26,000 forums for a few obvious reasons. The main being that probably 99% of the forums would never get any content.

    My solution. I created 2 generic forums and 51 state forums. On each one of my apartment city pages I integrated the forum content from the state forum in which the city resides. For example, the Boston, MA apartment page would show content from the Massachusetts forum.

    The trick is that if someone creates a topic from the Boston, MA apartment page, the topic is inserted into the bbPress DB with a new column that contains the latitude and longitude of Boston,MA.

    If someone creates a topic from the Newton, MA (10 miles from Boston, MA) apartment page. The topic is inserted in the bbPress DB with the latitude and longitude of Newton, MA.

    What this allows me to do is show forum content from any City in the U.S. with the forum topics sorted by distance (and secondarily by date) from the City the user is currently viewing.

    To show you an example. (Scroll down under the map to view the forum content on the right hand side)

    Boston Apartment page

    Newton Apartment page

    Each forum topic has the City and State that the user posted from prefixed to the actual forum topic.

    As you can see the forum posts change order based on what city you view. This is not that useful without many forum posts, but once the forum starts to fill up it will appear that each city page contains a “Virtual” forum based on that city and the cities that are nearest to it.

    Hopefully this will not only allow me to engage a much larger audience as most of the forum topics will be relevant to the page they are viewing.

    Please let me know if you have any suggestions or comment. This is very much still a work and progress and can definitely be improved. The #1 thing I’m not happy with is the location of the city forums. I’m working on a redesign that would move the forums, or at least a link to the forums, up near the top of the page.

    You can also view the regular apartment forum which has a modified very of the default template.

    #69159
    chrishajer
    Participant

    _ck_ – what if you wanted to use a different before character? I tried forum_description('before=x'); but that didn’t work. I couldn’t get before or after to work.

    Can you explain how to use the arguments for that function please? Thanks.

    function forum_description( $args = null ) {
    if ( is_numeric($args) )
    $args = array( 'id' => $args );
    elseif ( $args && is_string($args) && false === strpos($args, '=') )
    $args = array( 'before' => $args );
    $defaults = array( 'id' => 0, 'before' => ' – ', 'after' => '' );
    $args = wp_parse_args( $args, $defaults );

    if ( $desc = apply_filters( 'forum_description', get_forum_description( $args['id'] ), $args['id'], $args ) )
    echo $args['before'] . $desc . $args['after'];

     

    It seems like the relevant info is listed right there in the $defaults array, but I couldn’t stumble upon the combination to make it work.

    #69007
    _ck_
    Participant

    Heh, Kevin you made what I had been working on at random times. A phpbb template for bbPress. Except my project was to use real phpbb templates and translate them into bbPress templates from the raw files. Kinda gave up on that one after the first week so I’m glad you made it happen (at least the default template).

    To the best of my knowledge, no one has made a theme with non-table front-page/forum-page. But hey I have 5000 bbPress sites sitting in my db so I can do a scan for you later and let you know if any of them managed to pull it off.

    This is a list of all the existing, public/free bbPress themes to date:

    http://bbshowcase.org/forums/view/available-themes

    Oh and yes, there is no documentation. This has always been a complaint, but no-one has risen to the task. The problem is bbPress has been constantly changing – there isn’t even an official/final 1.0 release yet, which is probably why no-one has pinned it down. The database from 0.9 to 1.0 changed somewhat radically too. Now that 1.0 beta is in sight, someone should probably start working on some notes for plugin and theme developers.

    What would probably help is an official codex for bbPress. There’s an unofficial wiki but it’s barely used. If it was a tab here, that would be entirely different.

    ps. I completely disagree with the idea of trying to uses lists where tables currently are. Tables have vertical rows that can be sorted which would be 100x times harder with lists. Javascript has specific abilities on tables that don’t exist in lists. Lists do not have vertical relationships between their “cells”.

    I am not at all discouraging you from trying it as it would be interesting to see. But lists for the sake of simply not using tables is wrong IMHO.

    #69036

    FYI, the roles don’t always match up right until the user logs in to both sides of the game.

    If I create an ID in bbPress, I have a WP role of ‘None’. When I subsequently login to WP, my role is flipped to whatever the default is. Done. Vice versa for bbPress.

    #68989

    I keep thinking back on this, and I think you’re looking at it the wrong way. I’m not speaking to the HTML/Code side of it, but the concept side. The code side, yeah, some function I would consider default is missing (Unread, maybe Allow Images)

    But what’s the difference between a Forum and a Blog?

    A blog is a journal. Few people make new topics, many people reply. A forum is … a forum. Many people make new topics, many people reply.

    If you feel the code of a Blog is better suited to how you want to run your forum, cool. You want to use the highly structured IPB or phpBB? Have at :) I picked bbPress not because of the WP integration (I could care less, really) but because it gave me more options than just Category -> Forum -> Topic -> Posts, and because it’s small and lacks a lot of those fancy options.

    Example? I don’t use categories at all. Don’t need ’em. I have three ‘fora’ for high level organization. I went off the same general idea I use on my Blog. Three categories, a ton of tags.

    1) About the site topic (screwdriver.com is about screwdrivers, talk about them)

    2) About the Website (the code behind the site, suggestions, ideas, etc)

    3) Everything else (screwdrivers are nice, but I have this hammer…)

    Three big, broad categories/fora whatever. The tags I sort of let explode. And even then, I’m torn between structure and free form. I want a little structure (so you don’t get tags like ‘hammer’ and ‘hammers’ which really are the same thing), but I also want freedom.

    So function. If you can get all that in a blog, have at :) Many people do and we call ’em LiveJournal Communities ;)

    chrishajer
    Participant

    > My host says that getmypid is working.

    > I built a php info file to check what modules

    > were installed, and getmypid wasn’t there.

    Well, one thing does not jive with the other. Either it’s enabled or it’s not. Do you have a choice between PHP4 and PHP5? Maybe they’re checking one version and you’re using another. If the web server uses PHP4 by default, but PHP5 is available, you can force PHP5 by adding this to the top of your .htaccess file:

    AddType x-mapp-php5 .php

    To check which version of PHP your pages are being served with, and to see if getmypid is disabled, save this into a file called info.php (or anything.php really):

    <?php
    phpinfo();
    ?>

     

    Then access that at your host http://www.example.com/info.php, and see what it shows.

    #68487

    In reply to: Customizing gravatars

    Okay, having tested it a bunch of different ways, I can’t get it to work.

    I want to make my own image the ‘default’ for the non-gravatard people (which works fine on WordPress).

    In WordPress it’s this:

    <?php echo get_avatar(get_comment_author_email(),50,'http://www.foo.com/gravatar.png');?>

    For bbpress we have this post_author_avatar(); on post.php. Passing the URL into that, either on it’s own or as $default doesn’t work.

    Using echo bb_get_avatar( bb_get_user_email(post_author()), 48, 'http://www.foo.com/gravatar.png' ); didn’t work.

    I’m gonna keep tossing stuff up against the wall for now.

    #63064
    _ck_
    Participant

    Okay this one is testing working.

    For anyone else that wants to use this, you have to replace the domain name by hand. It’s hardcoded for speed, sorry.

    All other target=”_blank” plugins should be uninstalled. Any existing links with target=”_blank” will be left in place for performance since target is not added by bbPress by default.

    <?php
    /*
    Plugin Name: Target Nofollow External Only
    Description: append target="_blank" and rel="nofollow" only on external links
    Plugin URI:
    Author: _ck_
    Version: 0.0.1
    */

    add_filter('post_text', 'target_nofollow_external_only',999); // unfortunately we have to do this on every page load and not in pre_post

    function target_nofollow_external_only( $text ) {
    $domain="travel-writers-exchange.com"; // domain to exclude from target and nofollow
    $text = preg_replace('|<a (.*)rel=['"]nofollow['"](.+)?>|iU','<a $1$2>', $text); // strip ALL nofollow
    $text = preg_replace('|<a (?=([^>]+http://))(?!([^>]+'.$domain.'))(.+)>|iU', '<a $3 rel="nofollow" target="_blank">', $text); // add back in when needed
    return $text;
    }
    ?>

    I’m not happy about the performance of this technique because it has to be done in post_text for every time a page is displayed, but there’s no other easy way around bbPress/WordPress’s unfortunate use of make_clickable with hardcoded “nofollow” in post_text.

    #63060
    _ck_
    Participant

    Well we could cheat and make the plugin skip links that have your domain name or no http:// in it.

    function bb_target_blank( $text ) {
    $text = preg_replace('|<a (?=http://)(?!travel-writers-exchange.com)(.+?)>|i', '<a $3 rel="nofollow" target="_blank">', $text);
    return $text;
    }

    This is untested.

    It’s a fancy regex feature called negative lookahead.

    Try it and see what happens.

    Doing nofollow for only externals is essentially the same thing, I’ve added it to the replacement above.Make sure you have no additional tweaks for nofollow. I don’t think it’s on by default? If so, try

    remove_filter('post_text', 'bb_rel_nofollow');
    remove_filter('pre_post', 'bb_rel_nofollow');

    #68820
    TrishaM
    Participant

    Sorry for the delay in responding – for some odd reason my primary (desktop) computer logged me out of this forum and would not let me log back in….tried many times making certain I was typing my username/password correctly…….so I had to go boot up my laptop…

    Anyway, to answer your question, no – I read all the instructions on pretty permalinks and did not see that – I thought I read most of the posts on the issue but must have missed that. In any case it did not work for me….

    I put $bb->mod_rewrite = "slugs"; into my bb-config.php and uploaded – this of course changed my default permalinks to the name-based ones (great) but when I click on the links, I get this error message:

    Multiple Choices

    The document name you requested (/Forum/topic/article-titles) could not be found on this server. However, we found documents with names similar to the one you requested.
    Available documents:

    /Forum/topic.php/article-titles (common basename)
    Please consider informing the owner of the referring page about the broken link.

    And of course if I have the .htaccess file uploaded, I still get the 500 Server error

    #68833
    jabberwock
    Member

    Thanks for the response. You were exactly right: the theme that I’m modifying simply didn’t make use of those functions. Can’t find something that’s not there.

    get_topic_author was exactly what I was looking for and it’s right there in the default theme. I should have known to look there.

    Thanks again for taking the time to respond. It is greatly appreciated.

    Cheers!

    #68764
    patir
    Member

    I’m sorry, I did something wrong when I added the plugin I was talking about to this site. Don’t know how to fix it, but you can find the file on this address:

    http://www.samla.info/default-post-notification.zip

    #68815
    _ck_
    Participant

    There is a chance your host has multiviews already turned on by default so let’s make sure it gets turned off.

    At the start of the root .htaccess try putting

    Options -MultiViews

    Other than that, I’m out of ideas for today and will have to “sleep on it”.

    #4236
    hotshottwo
    Member

    I have bbPress 0.9.0.2 fully integrated with WP 2.5.1 using shared DB and tables. Everything seems to be working fine, except that when users register on bbPress they are shown as having “no role for this blog” on the WP side.

    Role mapping defined in bbPress is: WP-Administrator==bb-Administrator, WP-Editor==bb-Moderator, WP-Author==bb-Member, WP-Contributor==bb-Member, WP-Subscriber==bb-Member.

    I was expecting somemone who signs up to bbPress (with the default Member role) to be given Subscriber status in WP. I can see that there is an ambiguity as to which WP role should be chosen for a bbPress Member, but I guessed the one with lowest privilege, i.e. Subscriber, would apply.

    #68763
    Olaf Lederer
    Participant

    I wrote that function monthes before:

    https://bbpress.org/plugins/topic/auto-add-favorites/

    #68762
    chrishajer
    Participant

    I hope we see the plugin soon. It would be nice for it to happen automatically, since you want it to happen for everyone. Opt-out basically, rather than having them opt-in, or you opting them in.

    #68761
    danbbpress
    Participant

    Regarding this issue – I have just found that, as a forum administrator you have the option of turning on email notifications for any user. Although not perfect this feature does the job.

    #68760
    danbbpress
    Participant

    Great I can’t wait.

    #68759
    patir
    Member

    Hi.

    I’ve written a plugin to do this. Hold on and I’ll post it.

    #4225
    danbbpress
    Participant

    I just installed this plugin http://bbpress.org/plugins/topic/post-notification/ that automatically adds new posts to an author’s favorites. However, in order for the post’s author to receive a notification email for a new post he/she must also turn on email notifications in the admin area.

    My question: is there a way to change the code to have these email notifications turned on by default?

Viewing 25 results - 5,976 through 6,000 (of 6,774 total)
Skip to toolbar