Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

Viewing 25 results - 6,251 through 6,275 (of 6,774 total)
  • Author
    Search Results
  • #62650
    Olaf Lederer
    Participant

    Sure this “upgrade” is not for current functionality. To make this function clear it would be useful to have a working example in the default template ;)

    there are so many unused functions in the include map, why is this unused function included in the default template (makes no sense to me)

    @fel64, believe me I know the bbpress files maybe a little too much, hehe…

    #62649
    _ck_
    Participant

    In plain english it essentially replaces the need for things like “Sticky:” to be hard coded into templates. Long overdue but at least it got put in there finally.

    However when making templates for backwards compatibility, you’d have to detect if that function exists before relying on it.

    The only themes I’ve seen that uses it already outside of the built-in default is “K2 for bbPress” (and now my “FutureKind”).

    It allows tricks like I’ve done to replace “sticky” with a post-it-note-like yellow rectangle. But it also could be filtered via plugin to change it to a little graphic icon, etc. which was impossible before the function existed.

    #62535
    lookfab
    Member

    Thanks very much for the kind words.

    WordPressl, I mock up a few different design options in PhotoShop and when I’m happy there I move to the code. Since this was my first exposure to bbpress I ended up iterating between PS and the code a lot as I got to understand bbpress better. The challenge was to keep the flavor of the blog, but still make it clear to the user that they are somewhere different.

    The mechanics of the template are similar to the default theme. The different look is achieved mostly through the CSS stylesheet. One major change to the layout is to add a floating div for the sidebar on the left. All the rollovers are CSS. I do the tabs simply in php by checking which forum the user is in and displaying the tab bar appropriately. Most of the other changes are actually about hiding some of the power of bbpress.

    I’m glad the “tabs” resonate. I had a full working site in beta without them, but just wasn’t happy. The breadcrumb is a little subtle (particularly for folks who are new to a forum), and with only 4 forums and no sub-forums seems like overkill. But without the breadcrumb the user is lost once they’re in one of the forums or topics. The tab solves that and makes it easy to get to any forum from almost everywhere.

    #62645
    Burkie
    Participant

    have tried the default rewrite rules

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /

    RewriteRule ^forum/([^/]+)/page/([0-9]+)/?$ /forum.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^forum/([^/]+)/?$ /forum.php?id=$1 [L,QSA]

    RewriteRule ^people/([^/]+)/page/([0-9]+)/?$ /topic.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^people/([^/]+)/?$ /topic.php?id=$1 [L,QSA]

    RewriteRule ^location/([^/]+)/page/([0-9]+)/?$ /tags.php?tag=$1&page=$2 [L,QSA]

    RewriteRule ^location/([^/]+)/?$ /tags.php?tag=$1 [L,QSA]

    RewriteRule ^location/?$ /tags.php [L,QSA]

    RewriteRule ^profile/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&page=$2 [L,QSA]

    RewriteRule ^profile/([^/]+)/([^/]+)/?$ /profile.php?id=$1&tab=$2 [L,QSA]

    RewriteRule ^profile/([^/]+)/([^/]+)/page/([0-9]+)/?$ /profile.php?id=$1&tab=$2&page=$3 [L,QSA]

    RewriteRule ^profile/([^/]+)/?$ /profile.php?id=$1 [L,QSA]

    RewriteRule ^view/([^/]+)/page/([0-9]+)/?$ /view.php?view=$1&page=$2 [L,QSA]

    RewriteRule ^view/([^/]+)/?$ /view.php?view=$1 [L,QSA]

    RewriteRule ^rss/?$ /rss.php [L,QSA]

    RewriteRule ^rss/forum/([^/]+)/?$ /rss.php?forum=$1 [L,QSA]

    RewriteRule ^rss/people/([^/]+)/?$ /rss.php?topic=$1 [L,QSA]

    RewriteRule ^rss/tags/([^/]+)/?$ /rss.php?tag=$1 [L,QSA]

    RewriteRule ^rss/profile/([^/]+)/?$ /rss.php?profile=$1 [L,QSA]

    </IfModule>

    #2838
    Burkie
    Participant

    I want to change the default topic/ folder to people/ for a new project I am working on, firstly I tried just renaming topic.php in the root to people.php which works when pretty urls is set to false, but using mutliviews or even modifying the rewrite-rules manually it still appears as topic/ any ideas?

    #62630
    healthstatus
    Member

    the .htaccess is the default one with:

    Options +MultiViews

    nothing else

    I checked the directory path and it is all ok

    #61669

    In reply to: User Registration

    rslater
    Member

    Log file

    01/22/08 16:52:25 [xxxxxx794F3BBD4EA70AC6DBC2D6.MAI] from (SMTP) [SMTP:r @ doubleweb.com]->[SMTP:r@doubleweb.com] System Default Route Applied.

    and

    Debug

    [01/22/08 12:28:15]****************** LOG FILE STARTED *******************

    01/22/08 12:28:15 Service Starting

    01/22/08 12:28:15 Service Loading Agents

    01/22/08 12:28:15 Resetting messages in inbound queue for List Server Connector

    01/22/08 12:28:15 No outgoing message files in inbound queue for List Server Connector

    01/22/08 12:28:15 Resetting messages in inbound queue for POP Connector

    01/22/08 12:28:15 No outgoing message files in inbound queue for POP Connector

    01/22/08 12:28:15 Resetting messages in inbound queue for SF Connector

    01/22/08 12:28:15 No outgoing message files in inbound queue for SF Connector

    01/22/08 12:28:15 Resetting messages in inbound queue for SMTP Connector

    01/22/08 12:28:15 No outgoing message files in inbound queue for SMTP Connector

    01/22/08 12:28:15 Initalised MTA Connector Collector Thread for POP Connector

    01/22/08 12:28:15 Initalised MTA Connector Collector Thread for SMTP Connector

    01/22/08 12:28:15 Initalised MTA Connector Collector Thread for List Server Connector

    01/22/08 12:28:15 Initalised MTA Connector Collector Thread for SF Connector

    01/22/08 16:52:25 Processing file xxxxxx8794F3BBD4EA70AC6DBC2D6.MAI from queue SMTP

    01/22/08 16:52:25 ME-MTA-ROUTE [xxxxxx4F3BBD4EA70AC6DBC2D6.MAI] from [SMTP] Connector queued to [SMTP] Connector as [xxxxxxx5444A809973864743822928.MAI]

    #62548
    Göran
    Member

    Thanks for help. I am moving forward. I deleted both WP and bbPress and started again and made progress. The blog and the forum are integrated but I cannot get bbSync to work. Both work by temselves and I can log in with same id and password but cannot get posts into forum.

    Installation:

    Blog at http://www.goranlin.se/blogg/wordpress/

    Forum at http://www.goranlin.se/blogg/wordpress/bbpress/

    WordPress 2.3.2 installed 22 january 2008

    theme WordPress Default 1.6 changed colors in head with panel

    bbPress 0.8.3.1 installed 22 january 2008

    sv_SE.mo for WP installed 22 january 2008

    sv_SE.mo for bbPress installed 22 january 2008

    bbSync version 0.94 installed 22 january 2008

    bbSync gave message “It needs your config!:)

    I did that! succesfully I thought.

    But when trying to write new post in blog:

    Fatal error: Cannot redeclare class streamreader in /mnt/home/_g/goranlin/www.goranlin.se/blogg/wordpress/bbpress/bb-includes/streams.php on line 26

    but going back to blog the new post is there but still not in Forum

    line 24-26 in streams.php is:

    // Simple class to wrap file streams, string streams, etc.

    // seek is essential, and it should be byte stream

    class StreamReader {

    // should return a string [FIXME: perhaps return array of bytes?]

    function read($bytes) {

    return false;

    I have no clue how to do anything about this! All help is welcome!

    #62375
    chrishajer
    Participant

    The default theme is working here. Maybe something is cached with your browser. Clear the cache or use a different browser. The path to the theme in the source HTML is correct as well: http://www.guitarfxdepot.com/forum/bb-templates/kakumei/style.css

    #62372

    Thanks guys, I’ve got that part working, but now the default theme isn’t working. I activate the theme in the admin panel, yet it still looks like it’s missing a style sheet. Any ideas?

    #62378
    edwinfoo
    Member

    Gee, that is brilliant. Thank you.

    Just one little problem. When I’m logged in as admin, and activate the plugin in an account other than mine, it’s checked and looks like it’s ready to go. However, when I log back in as the member, it’s not checked and of course not activated.

    Log back in as admin, and it’s checked and looks like it’s ready to go.

    Actually, when logged in as admin it looks like for all existing accounts the plugin is checked active as default. From the member accounts, it’s not.

    As admin, I’d like to go through and activate this for my members but it is not possible. Only the member can activate this plugin.

    What’s required to enable admin to activate this plugin in member profiles?

    #2786
    intellivision
    Participant

    New users have no role, even though I have New User Default Role set to Subscriber in WP Admin -> General.

    Perhaps this is because I didn’t have the WP integration plugin, so I installed that. Then I get “Cannot redeclare bb_int_set_current_user()” 404 for any forum page.

    #62291
    basher
    Member

    Thanks fel64, I got through the setup now. :) I installed BBpress without WP integration because it told me that I’ll be able to do after install, in the admin menu.

    So I did. After install I logged in and went to the Integration with WordPress menu and filled in the required fields. After saving changes I couldn’t go back to the Admin menu, because the option went away.

    In the upper left corner it says: “Welcome, admin! View your profile (Log out)” Before integration there was an Admin option too to access the Admin menu.

    The only thing now I can do is to post into the default forum as a member. Any idea?

    #62296
    fel64
    Member

    No, from the PHP docu glob only returns false when it encounters an error. No files found makes it return an empty array. (I don’t have any underscored files and it works for me, too.)

    But I agree with you, those folders should be in there by default. What plugins could be included that could be interesting to everyone? Avatars?

    #62295
    chrishajer
    Participant

    I’ve seen two or three seemingly unrelated problems pop up related to something like this:

    if ( is_callable( 'glob' ) )
    foreach ( glob(BBPLUGINDIR . '_*.php') as $_plugin )
    require($_plugin);

     

    Seems like if there are no underscore plugins, this fails. I don’t follow the code exactly, but further up in that file, it defines BBPLUGINDIR if it’s not already defined as (basically) my-plugins/. But this line just says “if glob is callable, then go through the directory for all underscore plugins”. What happens if there are no plugins there? This would return false, maybe, instead of an array?

    And, is there a good reason NOT to include a blank directory for my-templates and my-plugins? At least then people would know where to put stuff. I mean, what IS the reason? WordPress comes with wp-content/themes/ and wp-content/plugins/ directories, and by default, two themes and two plugins. That eliminates the possibility of something missing. Of course, people could delete those, but right off the bat, they wouldn’t and things would just work when they started out.

    At the very least, I think this should be fixed to have a conditional looking for underscore plugins before looping through them (i.e. if there are none, you can’t loop through them.)

    Maybe someone with a better read on it can explain to me exactly what’s happening.

    #62274
    Graeme
    Member

    Yes you can however it is fiddly as it requires coding! It involves crafting a bbPress theme manually to make use of the same stylesheet and page structure as your WordPress theme. Your theme stylesheet will also need certain rules for bPress.

    I found when developing my themes that bbPress will use template files from the default theme if they are non-existent in a theme. This means that you can keep the number of .php template files in the theme to a minimum of 3 php files for a 1 column theme or 5 php files for a 2 column theme (i.e. with sidebar).

    If you had someone create your WordPress theme for you, then direct theme to bbpressraw.com since these themes are a bare-bones starting point for creating a new bbPress theme. They save some time in stripping down a bbPress theme to its bare essentials.

    #58827
    ajg
    Member

    There is no additional space nor new line in front of the <?xml version="1.0"?> line in rss2.php

    This file is identical to the default (kakumei) theme rss2.php file

    I deleted the “old” and replaced it with the one from kakumei folder.

    And yes, I did upgrade to a newer version. ;)

    —-

    Update:

    It’s fine now. :)

    We had this _blah.php file in my-plugins dir that had just a typed space in it. I deleted it and now the rss feed is fine.

    Thanks for all your help

    I deleted the space from file and it’s fine now.

    #2754
    Trent Adams
    Member

    From Sam’s Post on the main bbPress blog:

    Due to popular demand we have bundled a bug-fix release for bbPress. 0.8.3.1 (still called “Desmond” I believe) and it is now available for download.

    This version is not the latest development release so as to remain as compatible as possible with the current version of WordPress.

    The primary reason for the release is to fix some bugs in the MySQLi implementation. We anticipate that MySQLi support will be dropped in the future and to this end we have made MySQL the default extension instead of MySQLi.

    A few other fixes and enhancements have also snuck in:

    • Deep forum breadcrumbs with thanks to baptiste
    • More consistent topic labeling methods – users of the support forum plugin will probably need to upgrade to version 2.3.3
    • Some fixes to stop orphaned sub-forums from disappearing from all view
    • There is now one of those fancy checkboxes to mark a user as a bozo

    A couple of those changes will affect existing themes. If you have questions about adapting your theme to be compatible with the new topic labeling and forum breadcrumb features, then ask over on this forum topic.

    #2748
    Simon99
    Member

    I’ve recently enabled the hard cache, to see how it handles on a test forum with only a few users. The first problem I’ve come across has been an error with $bb_cache->get_forums() – the array it was returning when cached was 0, instead of containing the forum ids.

    I fixed it by a simple reversal of the sections of code within the get_forums() function in cache.php:

    $forums = (array) $bbdb->get_results("SELECT * FROM $bbdb->forums $where ORDER BY forum_order");
    if ( $this->use_cache && $normal && $forums )
    $this->write_cache(BBPATH . 'bb-cache/bb_forums', $forums);

    $_forums = array();
    foreach ( $forums as $forum )
    $_forums[(int) $forum->forum_id] = $bb_forum_cache[(int) $forum->forum_id] = $forum;

    After reversing them (the above are their original positions), I then made sure the write cache line was using $_forums, instead of $forums.

    No idea if this may have other consequences I’ve yet to unearth, but I thought it may be worth noting here.

    I’ve also used the “load all options” function from wordpress as a basis for creating a global array containing all topicmeta options. By default (even with cache enabled, although maybe I’ve missed a setting), there were several calls to to topicmeta, whereas only one was really required.

    #2729
    goldfiinger
    Member

    Changed my config information & followed the steps at DevLounge

    Now when i try to go to the install page @

    http://the3rdplace.co.uk/home/bbpress/

    I get this error :

    Fatal error: Call to undefined function: __() in /home/the3eco/public_html/home/bbpress/bb-includes/

    default-filters.php on line 81

    This is line 81 :

    bb_register_view( ‘no-replies’, __(‘Topics with no replies’), array( ‘post_count’ => 1 ) );

    Anyone have any advice on what i should do ?

    Many thanks in advance :)

    #62054
    livibetter
    Member

    The workaround won’t work for plugins.

    @sambauers: I think there is no complete working solution if you don’t touch the core files.

    First, load_default_textdomain and load_plugin_textdomain are WordPress version, they only look language files in WordPress directories. So, in bbPress, all text won’t be translated since language file are not loaded because WordPress load_*_textdomain won’t find language files in bbPress’ directories.

    Second, WordPress and bbPress both use default as textdomain when calling __() or _e() without assigning textdomain, that means we can only use either WordPress’ or bbPress’ language files at the same time, not both.

    (edit: plugin’s problem can be solved by add a bb_load_plugin_textdomain, but bbPress’s part. If we don’t want to use something like bb__(), bb_e(), maybe we can try to merge bbPress translations into WordPress’ in runtime? or search bbPress’ first, then WordPress’ if can’t find)

    #62052
    livibetter
    Member

    Sorry, didn’t read bbPress source carefully. Replace first if clause with

    if ( defined('BBLANG') && '' != constant('BBLANG') ) {
    if ( function_exists('load_default_textdomain') ) {
    global $l10n;

    $locale = BBLANG;
    $mofile = BBPATH . BBINC . 'languages/' . "$locale.mo";
    if ( is_readable($mofile) ) {
    $input = new CachedFileReader($mofile);
    $l10n['default'] = new gettext_reader($input);
    }
    }
    else {
    include_once(BBPATH . BBINC . 'streams.php');
    include_once(BBPATH . BBINC . 'gettext.php');
    }
    }

    PS. That “..” is how you put variable to be parsed in string in PHP ( Variable parsing )

    #62045
    livibetter
    Member

    This is a quick workaround:

    if ( defined('BBLANG') && '' != constant('BBLANG') ) {
    if ( function_exists('load_default_textdomain') ) :
    global $l10n;

    $locale = BBLANG;
    $mofile = BBLANGDIR . "$locale.mo";

    load_textdomain('default', $mofile);
    else:
    include_once(BBPATH . BBINC . 'streams.php');
    include_once(BBPATH . BBINC . 'gettext.php');
    endif;
    }
    if ( !( defined('DB_NAME') || defined('WP_BB') && WP_BB ) ) { // Don't include these when WP is running.
    require( BBPATH . BBINC . 'kses.php');
    if ( !function_exists('load_default_textdomain') )
    require( BBPATH . BBINC . 'l10n.php');
    }

    It should drops WordPress’ language file, and replaces with bbPress’. That means translations need to be done in WordPress won’t be translated since this code drops language file. This wont happen when you read your blog. However, I don’t have any language files, so this is coded by guessing.

    This is not a solution, just a temporary fix. I will file a ticket.

    #62025
    dupola
    Member

    thanks chrishajer.

    #62024
    chrishajer
    Participant

    Sounds like you are having a problem with db-mysqli.php. It’s been covered in the forums here (search for threads tagged 745 and you’ll see what I mean) or just look at this recent post:

    https://bbpress.org/forums/topic/installation-errors-every-time-db-issue

Viewing 25 results - 6,251 through 6,275 (of 6,774 total)
Skip to toolbar