Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 18,276 through 18,300 (of 32,518 total)
  • Author
    Search Results
  • tooltrainer
    Member

    Cool, glad to hear there might be a fix for this even if it is somewhat obscure.

    And yeah, “too quickly”… I was gonna give you a pass on that one though… ;)

    Jonathan

    Probably should say “too quickly” but who’s counting? :)

    I’ll take a look. I imagine it’s a current_time() gmt issue. Might not make it into Beta 3, but it’s on the radar.

    tooltrainer
    Member

    OK, turns out he’s in Israel! So whatever timezone that is, I’m not sure. He’s an American so I had assumed he’s in the US but, obviously not.

    Any idea how this could be causing the speed errors?

    Also the grammar in that error message needs a little fix… “to” instead of “too”. :)

    Jonathan

    #106250
    Nate
    Participant

    i’d like to add to this if possible, as i think i’m encountering the same problem as leemon. if my custom theme is doing a bit’o hijacking with the css, where would i find and disable this body class code?

    #38703
    valked1n
    Member

    SQL ERROR!

    >>> Database: xxxxxxxxxxx (localhost)

    >>>>>> CREATE TABLE IF NOT EXISTS bb_posts (

    post_id bigint(20) NOT NULL auto_increment,

    forum_id int(10) NOT NULL default 1,

    topic_id bigint(20) NOT NULL default 1,

    poster_id int(10) NOT NULL default 0,

    post_text text NOT NULL,

    post_time datetime NOT NULL default ‘0000-00-00 00:00:00’,

    poster_ip varchar(15) NOT NULL default ”,

    post_status tinyint(1) NOT NULL default 0,

    post_position bigint(20) NOT NULL default 0,

    PRIMARY KEY (post_id),

    KEY topic_time (topic_id, post_time),

    KEY poster_time (poster_id, post_time),

    KEY post_time (post_time),

    FULLTEXT KEY post_text (post_text)

    ) TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8’;

    >>>>>> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘TYPE = MYISAM DEFAULT CHARACTER SET ‘utf8” at line 16

    Key master email not sent!

    I am using XAMPP and I tried to integrate it with WP which I installed it into the same database.

    can anyone please help me ?

    Pomy
    Participant

    zaerl you didn’t say anything for my sad mood..?

    OK, your solution is really difficult for me… Can you make it more easy? I cannot write a plugin, that’s why I’m here to looking for your kind help… can you do it for me? I’ll really appreciate.

    I’m also frustrated from bbPress as Plugin like other senior bbPress developers. But I hope there will always remain a good space for bbpress standalone lovers. Matt cannot ignore it. I hope :)

    — OK, let me ask above question with another angle…

    Is it possible to make pagination just for forums on a custom page? if it is difficult to show on front page? something like

    http://www.blog.com/forums/view-all-forums.php ? – just an idea?

    And I just thought that I’ll also need pagination for forums in admin setting and for zearl visiblity setting near future when I’ll have thousands of forums. (user/forum)

    Please see the following screenshots, to understand what I’m taking about..

    — For Forums Pagination in Admin Setting — Screenshot

    — For Forum Pagination in Zaerl Visibility setting — Screenshot

    I know its a little big job for you. But can you do it for me? It’s really important, I’ll really appreciate your kindness if you will make a plugin or easy script for this solution.

    — and I also know your time is really precious, And time is money… can you give me your personal contact email? So that we can discuss about it further?

    I hope I’ll try to mange your time. Thanks Again.

    #106602

    I’d use a custom taxonomy, and a creative UI. Seems it could be done pretty easily with the right developer. :)

    Daaaaaave
    Member

    John removing the bb config file fixed it straight away.

    you sir are a genius or i am moron ;)

    If you ever come to Australia ill buy you a beer.

    #95516
    traveljunkie
    Member

    Haven’t found the time to look into it in depth yet, so in the meantime I sorted things with these two functions:

    /**
    * Search only our forums and fix topic tags
    * @since 1.0
    */
    function click_help_add_to_search( $query )
    {
    if( $query->is_search )
    $query->set( 'post_type', array( 'topic', 'reply' ) );

    if( ! empty( $query->query_vars['topic-tag'] ) )
    $query->set( 'post_type', array( 'topic' ) );

    return $query;
    }
    add_filter( 'pre_get_posts', 'click_help_add_to_search' );

    /**
    * Remove error404 class from the body
    * @since 1.0
    */
    function click_help_remove_error404( $classes )
    {
    if( in_array( 'bbPress', $classes ) )
    {
    $error = array_search( 'error404', $classes );
    unset( $classes[$error] );
    }

    return $classes;
    }
    add_filter( 'body_class', 'click_help_remove_error404' );

    #105907

    In reply to: Where is the importer?

    Laurens Offereins
    Participant

    Found out it’s got something to do with my earlier conversion from phpbb to bbpress standalone. But it still got me confused:

    All the logins work perfectly after the first conversion (phpbb > bbpress 1.0), but after conversion from 1.0 to 2.0 all the logins block. Only accounts newly created in 1.0 get through in 2.0.

    In the database there’s a visible difference between logins from phpbb (start with $H$7) and bbpress 1.0 (start with $P$9). Since there is no login error in bbpress 1.0 I don’t think it’s a problem with the phpbb conversion (used this converter recommended somewhere on this forum).

    Can someone give me a hint on how to solve this?

    #100807

    In reply to: Where is the importer?

    Laurens Offereins
    Participant

    Found out it’s got something to do with my earlier conversion from phpbb to bbpress standalone. But it still got me confused:

    All the logins work perfectly after the first conversion (phpbb > bbpress 1.0), but after conversion from 1.0 to 2.0 all the logins block. Only accounts newly created in 1.0 get through in 2.0.

    In the database there’s a visible difference between logins from phpbb (start with $H$7) and bbpress 1.0 (start with $P$9). Since there is no login error in bbpress 1.0 I don’t think it’s a problem with the phpbb conversion (used this converter recommended somewhere on this forum).

    Can someone give me a hint on how to solve this?

    Pomy
    Participant

    :-(

    #95512
    traveljunkie
    Member

    I’ve copied the template files across to the theme. There’s only minimal adjustments been made. It’s on my local machine, so can’t provide a link. Here’s a bit more info. It’s on a subdomain on a multisite installation.

    Just found out that the topic tags template never shows any topics and there’s quite a few tagged topics.

    I’ll dig a bit deeper into the code and let you know when I find something.

    #95511

    Just making sure since you said “trunk” :)

    What theme are you using? Can you link me to your site to see what’s happening? I just checked my installs with bbp-twentyten or using theme compat, and can’t duplicate.

    #95510
    traveljunkie
    Member

    SVN plugin branch. This is a topic for it after all ;)

    kai920
    Member

    I’m against the idea of using wp_register(); since it redirects you to wp-login.php to sign-up instead of using a registration page in the theme. Also, the idea with community sites like bbPress and BuddyPress, is usually to keep members out of the admin area. Promoting them to enter it seems counter intuitive.

    Thanks, I missed the part where you mentioned integrating the register/login pages into bbP. Looking forward to more discussion and potential solutions on this.

    Would wp_register() not actually display an admin link, since we’d only use it if ( !is_user_logged_in() )?

    #95505
    Spiralspeaks
    Member

    I figured it out.. uploaded another theme, edited and it works.. added some tweaks in the theme functions viola good combination :)

    Home › Forums › Happy Talk › Why choose bbpress?

    Forums › Happy Talk › Why choose bbpress?

    #106569
    Paul Gregory
    Member

    Assuming you’ve already added a blank page with the slug ‘forums’:

    Change the page template to “bbPress – Forums (Index)”

    OR

    Include the shortcode [bbp-forum-index] in your page text

    Also, go to the Permalinks page if you haven’t recently so everything else works.

    See also https://bbpress.org/forums/topic/bbpress-20-theme-compatibility

    There are a number of other things you’re probably going to have to do. I’m working on a checklist.

    Paul Gregory
    Member

    Yeah, that specific function’s not at all the right one, it seems to be a well-meaning but naive tip on kai920’s part.

    But the basic idea of having a Register link within the bbPress Login Widget is sound, and I’m a bit concerned that it seems to be problematic.

    There needs to be a good bundled method of having a link to Register that does NOT show up when a user is already logged in, and the Login Widget is the most logical place to put it. (Obviously it’s trivial to add a Register link to a menu or widget area that would be present all the time).

    Two naff, but workable, solutions:

    1) Add a field in the bbPress Login Widget for the registration page URL, with “/wp-login.php” set as the default. When the Login Widget is displaying the Log In details, display the registration link (if not blank and if registration is enabled). When the Login Widget is displaying the current user details and log out link, don’t show the registration link.

    2) Encourage users to install a pair of simple widgets. I don’t know if decent ones exist, but they’d be called something like Logged In Text and Not Logged In Text, which as their names suggest are like Text widgets but only show their contents if is_user_logged_in() condition is true or false. It’s then simple to add a Register link or whatever to a Not Logged In widget, which could be placed above or below the bbPress Login Widget. If I can’t find an existing pair I’ll knock them out myself soon, although I suspect what I’ll end up doing on most sites is conditionally displaying one entire sidebar or another.

    The reason both are naff is that it seems pretty clear that there should be a function or method that returns the correct (custom) login page, and the absence of it is causing problems.

    Is WP completely unaware of custom registration pages? It seems so. There should be somewhere central that the URLs (or page IDs) of custom Register and Login pages etc are set – and that this should be site based rather than theme based, much like you can set the front page and posts page in WP Reading Settings.

    Of course, that’s arguably a WP issue not a bbP issue, but bbP as plugin is at liberty to extend WP in useful ways because that’s what plugins do.

    From what you’re saying it sounds like this isn’t part of immediate bbP plans.

    I don’t know whether I’m missing a setting, or if it’s something you’ve fixed since b2 but: having registered using a bbPress registration page, the email that people get with their password includes a link to /wp-login.php rather than my /log-in page that uses the bbPress login template. Using that leaves people in an inappropriate interface that they are probably not intended to see, and will confuse (and lose) users.

    Am I expected to override this myself with a plugin or in my template? That would mean hard-coding page references. It doesn’t seem right.

    I think bbP should just bite the bullet and allow users to specify their login and register pages under Settings. And indeed specify the View Profile page etc. It seems to me that bbP really needs to know where the login page is, and searching for a page with either the bbPress Login template or the Login shortcode (the “magic” method) seems prone to error.

    All that said, I don’t want to seem too negative – I am liking bbPress 2.0 a lot and thank you (and everyone involved) for your time on it.

    @kai920 – Please don’t bump topics, especially if they’re still on the front page.

    I’m against the idea of using wp_register(); since it redirects you to wp-login.php to sign-up instead of using a registration page in the theme. Also, the idea with community sites like bbPress and BuddyPress, is usually to keep members out of the admin area. Promoting them to enter it seems counter intuitive.

    #95502
    Syrehn
    Member

    Firstly I’m very glad to see this project going.

    I’ve been playing around with the beta, using beta 2 at the moment, and maybe it’s me doing something wrong but if I create a forum, and then create a category it will not allow me to create a topic under that category. Only under it’s main forum. Is this intentional?

    I’m very much looking forward to the final release of this plugin. Thanks! :)

    #105876

    Not really an optimal fix, since it’s still loading the sidebar. Ultimately if you want a custom theme, you need a custom theme. :)

    #100776

    Not really an optimal fix, since it’s still loading the sidebar. Ultimately if you want a custom theme, you need a custom theme. :)

    zaerl
    Participant

    Hi softinfo. What you’re trying to achieve can be very challenging cause bbPress developers haven’t included such feature in the software. On index.php topics are obtained with get_latest_topics, forums with bb_get_forums.

    The current page (for topics) is collected from a $_GET variable called page which have its own rule in the .htaccess which in turn is parsed by bb_get_uri_page (functions.bb-core.php) called from BB_Query::fill_query_vars (yargh).

    Now you must do the same thing with forums but in order to do this you must change too many core files and we don’t want our soul damned for eternity.

    I don’t have much time at the moment but I can give you some hints.

    You need a new page variable that should be different from the default (which is used for posts’ page) together with its own .htaccess rule: RewriteRule ^forum-page/([0-9]+)/?$ /forum/index.php?forum-page=$1 [L,QSA]

    You should create a new fake paginate function bb_latest_topics_pages for forums bb_latest_forums_pages, a fake get_page_number_links with /forum-page/%#% instead of /page/%#% and other things here and there.

    And last but not least you need a custom query (with a LIMIT) on the $bbdb forum query.

    As I said it can be very challenging and there’s room for a very interesting plugin but I don’t write plugins anymore because of the current fragile status of bbPress standalone.

    If you will try to write a plugin I will be happy to debug and/or code (a portion of) it.

    Anointed
    Participant

    @lykketrollet

    No, there is no way to manually change user permissions within the bbPress core. Well more specifically, not without a ton of hacking of the code.

    Someday, I am guessing there may be a bbPress plugin built for this purpose.

    I know I keep talking about the members plugin, and I do so because it is the perfect tool for the job at the moment. It really is built so well that you can set it once and ignore it.

    Who knows, maybe after seeing just how powerful and simple it is, you may just end up finding other great reasons to use it as well.

    *The real problem with having this in core would be group permission collisions. Meaning, if I use members to set permissions for a specific group and also have bbPress doing it then there can be problems if the permissions are not exactly matched up.

    **The opinions of this commentator do not necessarily reflect the views of the network :)

Viewing 25 results - 18,276 through 18,300 (of 32,518 total)
Skip to toolbar