Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 27,026 through 27,050 (of 32,481 total)
  • Author
    Search Results
  • #67155
    chrishajer
    Participant

    I have no idea. Might be this (based on looking at another user in my database):

    a:1:{s:13:"administrator";b:1;}

    But I would just change them through the Admin backend, rather than directly in the database. Much safer. Once you have the keymaster back and can log in, you can change anyone you want to administrator or other level one logged in.

    #66343

    In reply to: (Weird) Open Cafe

    thion
    Member

    If any of you is interested in paranormal stuff and you would like to help in developing Open Cafe (both content and php code), please contact me on f.t.mastergreed [at] gmail.com – I’m desperately looking for coder ;)

    #66066
    karlo
    Member

    Well, the installation (with full wp-integration) went as smooth as it could have, but the index.php doesn’t want to load. Not even when fully referred to in the URL (/forums/index.php).

    My ftp-client sees the full installation and the content of the file seems to be ok. What settings could cause this error other than the URL actually not being valid, though I can’t figure out why that should be? :P

    EDIT: I found that Firefox can open and read the readme.txt and licence.txt just fine, but it wont execute the php-files properly… this is just wierd?? What the heck did I miss here?

    #66889

    In reply to: Blank Screen

    chrishajer
    Participant

    The password normally contains special characters and that’s fine. That’s how I can usually tell if the bbPress is an old version or new version, based on the password being sent out when you register.

    There is no problem with having special characters in the secret keys: it’s just that if they’re not properly escaped, the server will choke on the config file because the bb-config.php does not have proper syntax.

    So, make sure the keys are the same for WordPress and bbPress, make sure the bb-config.php is syntactically correct (php -l bb-config.php from a Linux command line) and then figure out why you can’t log in.

    You can also make the secret keys really short and easy to compare while testing to see if that’s the problem.

    It’s also worthwhile to check any php file you edited for the proper syntax. Maybe once you log in, you are being served another page that has a syntax error (a template file?) and that is causing the blank screen.

    Also, access to error logs will help with this, if you have them.

    #67110
    _ck_
    Participant

    Everyone put this in your bb-config.php

    $bb->load_options = true;

    and that number will go down radically.

    For some reason I don’t understand they refuse to make that the default and therefore bbPress just “lazy loads” each option as each plugin requests it.

    If you are using the 1.0 alpha they still have a bit of work to do with query reduction as they rewrote half the routines and storage layout but left it unoptimized. For example each forum on the front page is loaded as a separate query and then the meta for each forum is loaded as a separate query. It’s a bit crazy because if you have a dozen forums that’s 24 queries but I have high hopes Sam or MDA will tackle that soon and do it all in just two queries.

    Last but not least there is a serious optimization problem IMHO in all versions where bbPress will “read before write” every time a meta option is saved, regardless if it’s just been loaded and sitting in the object cache. I have to put a bit of extra code in all my plugins to work around this issue. The reason why they do that is to determine if they should do an INSERT vs an UPDATE because you can have duplicate keys on meta data by design and mysql can’t be told what to do if the key already exists. But there are better ways to do that – since 99.99% of the time it’s going to be an update since the data already exists – do an update and just check for a mysql error on the return (or count rows affected) – then do an insert instead that one time it’s needed.

    #55314
    Detective
    Member

    I use it in WP and bbPress :) It’s easy to adapt, and as you have both integrated …

    Of course you could also print the “about” text entered by the user in their Profile page in the Dashboard. So you only really need a plugin for the gamertags.

    #55313
    pilola
    Member

    Detective – Thanks I’ll take a look. But it doesn’t seem to be what I’m looking for since it’s a wp plugin. And the possibility of adding gamertags isn’t really the only thing I want to get out of this.

    I mean what I’m really looking for i some way to catch the value of a field and echo it inside some code.

    And as i mentioned earlier I’d really like to give my users the op to create “About me”-content.

    Maybe it’s easier to do this outside of the profile-section? But I’m unfortunately not a PHP-coder so I ain’t good at writing php from scratch.

    #55312
    Detective
    Member

    Pilola, you could use this plugin: https://wordpress.org/extend/plugins/gaming-codes/

    I use it here: http://www.ryuuko.cl/bbpress/ (see the “nuestros usuarios” links).

    #55311
    pilola
    Member

    Midnightsun & antonskey already mentioned similair things. I have a site for gamers (integrated wp and bbp using the bbp as the member section) and I wan’t to give them the possibility to add their Xbox Live Gamertag, Wii Friendcode and PSN ID.

    There must be som easy way to, from the profile-template, check if the Gamertag field has a value and then just ad the name to the gamertag embed code. I was looking in the template-functions file and took a look att bb_profile_data and I think that’s kind of similar to what should be used in the theme.

    Also I would like to give the members the possibility of creating something like a About Text. So instead of a normal field i would need a textarea. Hope someone knows what could be done.

    #67137
    orizine
    Member

    no more problem, whith some modifications i had done what iwante :D

    #3870
    outchy
    Member

    I have a band messageboard that’s worked flawlessly for a year now… but when I tried posting myself just now, it didn’t appear on the board. When I checked the dashboard, this is what it said for the latest post:

    Post on
    bbPress database error: [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 'AND meta_key='views'' at line 1]
    SELECT meta_value FROM bb_topicmeta WHERE topic_id = AND meta_key='views'
    bbPress database error: [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 ' 'views', )' at line 1]
    INSERT INTO bb_topicmeta ( meta_id, topic_id, meta_key, meta_value) VALUES ( NULL , , 'views', )
    Gavin DeGraw by neddi.

    Any idea what’s going on? I’ve never seen this before… and I think I’m the only one with access to the backend.

    #67125
    benzilla069
    Member

    Yeah I’m currently just messing about with it at the moment, I’ve stripped it down to what I believe are the bare essentials… please note I don’t have any PHP experience but I do have other languages like C under my belt so I’m getting the hang of it ok.

    <?php
    /*
    Plugin Name: WordPress to BBPost hacked by Ben
    */

    add_action('publish_post', 'bensyncpost', 999 );

    /* CORE */
    function load_bb() {
    global $bb, $bbdb, $bb_current_user, $page, $bb_cache,
    $posts, $bb_post, $post_id, $topics, $topic, $topic_id,
    $forums, $forum, $forum_id, $tags, $tag, $tag_name, $user, $user_id, $view,
    $del_class, $bb_alt;
    }

    function bensyncpost( $post_id ) {
    global $bbdb, $wpdb, $current_user;

    $post = wp_get_single_post( $post_id );

    if( !load_bb() )
    return false;

    bb_set_current_user( $current_user->ID );

    $post_title = $bbdb->escape( $post->post_title );
    $post_text = benprepposttext( $post->post_content, get_post_meta( $post_id ) );

    if( !$link_exists ) {
    bennewtopic( $post_id, $post_title, $post_text );
    }
    }

    function bennewtopic( $post_id, $post_title, $post_text ) {

    $topic_id = bb_new_topic( $post_title, 2, $tags );
    $reply_id = bb_new_post( $topic_id, $post_text );

    /* if( $topic_id && $reply_id ) {
    felmetalink( $post_id, $topic_id );
    $r = true;
    }*/

    return $r;
    }

    function benprepposttext( $post_text) {

    remove_filter('pre_post', 'encode_bad');
    remove_filter('pre_post', 'bb_encode_bad');
    remove_filter('pre_post', 'bb_filter_kses', 50 );
    remove_filter('pre_post', 'allow_images_encode_bad', 9 );
    remove_filter('pre_post', 'allow_images', 52 );

    return $post_text;
    }

    ?>

    I got rid of the error, but it’s not propogating to the correct forum(I used the forum ID of 2 and I also tried just plain old “Site Posts” as the forum) need to debug some more, fel do you recognise anything plainly wrong with my hacked up code?

    #3869
    ramym
    Member

    Hello,

    I just managed uploading and installing BBPress in a subdirectory of WordPress. Everything works just fine, and when you sign up on WordPress, you will also be able to log in with that account on BBPress, but there’s one problem:

    When you log in on WordPress, and you go to BBPress, you have to log in again. So, members have to sign in 2 times, on the same account, one time for WordPress and one time on BBPress.

    I’m running WordPress 2.6. In wp-config.php there was no SECRET_KEY. There was an AUTH_KEY and a SECURE_AUTH_KEY, but there was a BB_SECRET_KEY in bb-config.php. So, what should I do in wp-config.php?

    I tried to define SECRET_KEY myself, but that didn’t work. The ‘code’ in SECRET_KEY in wp-config.php is the same as BB_SECRET_KEY in bb-config.php, but it still doesn’t work.

    I hope it’s a little clear what my problem is.

    Thanks,

    Ramy

    #66929
    fel64
    Member

    Is there a problem with your wordpress install too?

    To fix bbpress, you need phpmyadmin or a similar tool. Login, go to your bbpress database. Not certain what it’s like on 0.9, but you probably need to go to the bb_topicmeta table and perform a search (or browse through) to find a record where the meta_key is wp_table_prefix. Try deleting that record. Without that setting I think bb would look for its own users again.

    orizine
    Member

    Just to explain why :D i’ve made a new installation, but i’ve made a mistake in the Prefixe db of my WP installation, and i would like to modify it is it possible?

    #67108
    thion
    Member

    155?! Whoh, and I’m worried about 18 queries in my still-in-development plugin :).

    It would be much easier to say anything if there would be any link…

    #67097

    In reply to: New Theme: bb_modmat

    _ck_
    Participant

    Nice first try, I’ve put it here so you can see some of the issues:

    http://bbshowcase.org/forums/?bbtheme=bb-modmat

    One problem I noticed is your hard coded the feed icon image on several of the templates to point to your site – you’ll want to change that to the local image (calculate it based on the bb_get_option('uri') or use a CSS background image instead )

    #3854
    lstelie
    Member

    Hello,

    I’d like to be able to use in my forum posts, any type of medias, pictures of course but also video (flash code)

    How can I do this ?

    Thanks in advance

    #66699

    In reply to: bbPress 1.0 alpha

    lstelie
    Member

    @ _ck_

    Any series of steps you do via phpmyadmin can be saved in sql code and made into a converter. Give me the sql commands and I’ll make you a script.

    In fact I’m not by far enough PHP and sql fluently to use sql commands.

    My SimplePress forum is rather young so I don’t have thousands of messages (274 in fact).

    I proceed in a very manual way :

    On my Mac / Firefox I have 4 tabs, the old forum, the BBPress forum, the Old forum phpmyadmin and BBpress php myadmin

    I copy a message in the old forum, craete a new message in BBpress then correct in phpmyadmin the time poster id and so on.

    Old forum :

    http://luc.saint-elie.com/echanges/

    BBpress 1.0 install

    http://luc.saint-elie.com/bbpress/

    Its long but it works.

    Luc

    #66880

    In reply to: Blank Screen

    chrishajer
    Participant

    The problem with editing your bb-config.php and posting it here is that you likely edited out anything in a password or secret key that is causing you a problem. So posting the edited version is mostly useless.

    You use the php -l bb-config.php from a Linux command line. The edited version you posted here checks out fine, but I suspect your live, unedited version does not.

    #66698

    In reply to: bbPress 1.0 alpha

    _ck_
    Participant

    There is at least one person I found via google who has done the simple:press conversion but they didn’t say how. I suspect it was the phpbb2 process.

    Any series of steps you do via phpmyadmin can be saved in sql code and made into a converter. Give me the sql commands and I’ll make you a script.

    #66878

    In reply to: Blank Screen

    hanjra
    Member

    code

    <?php

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘*******’); // The name of the database

    define(‘BBDB_USER’, ‘*****’); // Your MySQL username

    define(‘BBDB_PASSWORD’, ‘******’); // …and password

    define(‘BBDB_HOST’, ‘localhost’); // 99% chance you won’t need to change these last few

    define(‘BBDB_CHARSET’, ‘utf8’); // If you are *upgrading*, and your old bb-config.php does

    define(‘BBDB_COLLATE’, ”); // not have these two contstants in them, DO NOT define them

    // If you are installing for the first time, leave them here

    // Change BB_SECRET_KEY to a unique phrase. You won’t have to remember it later,

    // so make it long and complicated. You can visit https://www.grc.com/passwords.htm

    // to get a phrase generated for you, or just make something up.

    // If you are integrating logins with WordPress, you will need to match the value

    // of the “SECRET_KEY” in the WordPress file wp-config.php

    define(‘BB_SECRET_KEY’, ‘*************************************’); // Change this to a unique phrase.

    // If you are running multiple bbPress installations in a single database,

    // you will probably want to change this.

    $bb_table_prefix = ‘bb_’; // Only letters, numbers and underscores please!

    // Change this to localize bbPress. A corresponding MO file for the

    // chosen language must be installed to bb-includes/languages.

    // For example, install de.mo to bb-includes/languages and set BB_LANG to ‘de’

    // to enable German language support.

    define(‘BB_LANG’, ”);

    /* Stop editing */

    if ( !defined(‘BB_PATH’) )

    define(‘BB_PATH’, dirname(__FILE__) . ‘/’ );

    require_once( BB_PATH . ‘bb-settings.php’ );

    ?>

    That is my bb-config.php

    #66877

    In reply to: Blank Screen

    chrishajer
    Participant

    Sounds like you have a syntax error in the secret keys or cookie path that is creating trouble for bbPress creating the cookies. Line 188 of pluggable.php (in the 0.9.0.2 release, anyway) looks like this:

    setcookie($bb->authcookie, $cookie, $expire, $bb->cookiepath, $bb->cookiedomain);

    Can you post your bb-config.php with as little editing as possible? There’s probably something wrong in that file.

    Alternatively, check bb-config.php with the php command:

    [~pimpforum ] php -l bb-config.php
    No syntax errors detected in bb-config.php

    That’s an L, like php -L, but lowercase, in the command.

    #67045
    chrishajer
    Participant

    I think each plugin is going to be different. In general though, if the plugin needs to be activated by a user by changing a setting, I don’t know how you could modify the plugin to default to already on.

    I think it will be different for each plugin though. I don’t use any of those plugins, so I’m not sure. If you post the URL for each plugin, maybe someone can look at the code and see if it’s possible to default them to active for everyone.

    #66584
    djp
    Member

    my site has more posts than the lower half of the listing. Why’m I not in there?

    http://www.mastercleanse.co.za/forum/

    username: bbpress

    Login: bbpress

    just asking… :)

Viewing 25 results - 27,026 through 27,050 (of 32,481 total)
Skip to toolbar