Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 28,951 through 28,975 (of 32,458 total)
  • Author
    Search Results
  • jolaedana
    Member

    I’m getting the vibe this is a mystery. :( I haven’t been able to find anything similar so far, and looking through the source hasn’t helped out at all either.

    #57907
    Jaithn
    Member
    And this line to use the user table from wpmu.

    define('CUSTOM_USER_TABLE', 'wp_users');

    And IIRC, that's already in the config file, just commented out.

    i don’t have these lines in my bbpress config file…do i need them?

    jaithn

    #60517
    Jaithn
    Member

    hello…

    after upgrading to .83 the error-message changed…

    maybe somebody could help me!!! please!!

    Fatal error: Call to undefined function __() in /home/www/kunden/fsj-community.de/wordpress/forum/bb-includes/default-filters.php on line 81

    jaithn

    #60959

    In reply to: Cannot select DB

    lookfab
    Member

    Thanks Chris.

    > can you try connecting to that database

    Yes, I did this with the MySQL cmd line client and I can connect fine. The bbpress settings are really simple:

    // ** MySQL settings ** //

    define(‘BBDB_NAME’, ‘wordpress’);

    define(‘BBDB_USER’, ‘wordpress’);

    define(‘BBDB_PASSWORD’, ‘XXXXXXXX’);

    define(‘BBDB_HOST’, ‘localhost’);

    define(‘BBDB_CHARSET’, ‘utf8’);

    define(‘BBDB_COLLATE’, ”);

    And for WP:

    // ** MySQL settings ** //

    define(‘DB_NAME’, ‘wordpress’);

    define(‘DB_USER’, ‘wordpress’);

    define(‘DB_PASSWORD’, ‘XXXXXXXX’);

    define(‘DB_HOST’, ‘localhost’);

    Here is the info from the MySQL database after connecting as the ‘wordpress’ user:

    mysql> show databases;

    +


    +

    | Database |

    +


    +

    | information_schema |

    | wordpress |

    +


    +

    3 rows in set (0.00 sec)

    Is there any way to get more detailed diagnostic info from the install process?

    #55933

    In reply to: Show off your Forum !!

    Hi all.

    Great forum app. Just started using it a few days ago and couldn’t believe how easy it is to configure. I am currently building a forum for our members in our Swim & Fitness Centre. So, still all empty as I am still playing with the look, plugins and so on. Feedback always appreciated…. thanks

    http://www.getfitcentre.com/forum

    =)

    #60915

    Well, I did change to “mysqli” on line 80 in db-mysqli.php.

    Those latter warnings appeared during Step2 in the installation process, and is related to line 6 in upgrade-schema.php.

    I have changed line 6 to

    if ( version_compare($this->$dbhname, '4.1.0', '>=') )

    but still get this warning:

    Warning: mysqli_get_server_info() expects exactly 1 parameter, 0 given in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/upgrade-schema.php on line 6

    PS. When I added $this->$dbhname inbetween the brackets “mysqli_get_server_info()” I got a fatal error during installation.

    #60914
    chrishajer
    Participant

    The important thing to change in line 80 is from

    mysql_get_server_info

    to

    mysqli_get_server_info
    ^

    There’s a letter I in there and it does not look like you changed that based on your error message. You also still need to have the $this->$dbhname as the parameter as well (maybe you already did that, but did not catch the I part.)

    #60913

    Fine, now the first step of the installation works.

    During the second step the following warnings appear:

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user 'nicuuorg'@'localhost' (using password: NO) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/upgrade-schema.php on line 6

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: A link to the server could not be established in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/upgrade-schema.php on line 6

    But the forums seems to run ok now!

    #60912
    Sam Bauers
    Participant

    Try changing line 80 from this:

    if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') )

    to this:

    if ( !empty($this->charset) && version_compare(mysqli_get_server_info($this->$dbhname), '4.1.0', '>=') )

    #2454
    warmechoco
    Member

    Hi,

    I would like to work with subforums and sub-sub forums,

    but obviously that takes a lot of room on my front page..

    Does anyone have the same problem and has a solution for that?

    I suggest doing something like this:

    Forum

    – Subforum1

    –Subsubforum1, Subsubforum2, Subsubforum3, Subsubforum4

    -Subforum2

    –Subsubforum1,Subsubforum2

    does anyone know how to? :)

    thx!

    #60911

    The first warning disappeared!

    Only three warnings left:

    Warning: mysqli_get_server_info() expects exactly 1 parameter, 0 given in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php on line 80

    Warning: Cannot modify header information - headers already sent by (output started at /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php:80) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-admin/install.php on line 10

    Warning: Cannot modify header information - headers already sent by (output started at /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php:80) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/functions.php on line 1898

    chrishajer
    Participant

    Line 78 in db-mysqli.php looks like this:

    $this->$dbhname = @mysqli_connect( $server->host, $server->user, $server->pass, null, $server->port );

    I thought the order of the parameters was important, and should be:

    host, user, pass, dbname, port, socket

    From looking at line 78, it would seem that the dbname is set to null, and the socket is not used since it’s just not there. Is that intentional? Maybe the database name is set someplace else and is not needed here for this connection? Just asking because it seemed weird to me.

    Thanks.

    #60909
    chrishajer
    Participant

    I just checked out r951 and I can duplicate this on a vanilla install without integration. I think the problem is with line 80 in db-mysqli.php:

    if ( !empty($this->charset) && version_compare(mysql_get_server_info(), '4.1.0', '>=') )

    I think mysql_get_server_info() should be mysqli_get_server_info()

    Since the connection was made a couple lines earlier with @mysqli_connect, there is no mysql_connect link identifier, and none is passed in, so line 80 generates a warning and the setting of the charset errors out, and would never happen.

    If you add the i to line 80, the warnings go away. I added my comments to the trac ticket.

    #60845

    From lasir’s config file, it looks like a common theme may be that the error message says:

    Access denied for user 'thechamp'@'localhost' (using password: NO)

    but the config file specifies a different user: thechamp_risal. (Can the others who are experiencing this problem please post the DB details of their setup as well?).

    This often indicates that the specified user doesn’t exist (or possibly doesn’t have access) in the specified database.

    Lasil, I’m not sure what this post is showing. Are you looking at users in the wrdp1 database or in thechamp_wrdp1?

    The other commonality here may be that all of you are using the mysqli extension. It could be that there’s a bug there that’s only now popping up since most people use the mysql extension.

    You can try overwriting /bb-includes/db-mysqli.php with /bb-includes/db.php (so that you have two copies of db.php) to see if that helps.

    #60843
    miraploy
    Member

    I would like to use bbpress as soon as possible, I would appreciate it if some adventerous soul took a crack at it and made a few code edits.

    Thanks.

    #2444

    Hi!

    I am trying to install bbpress with WP 2.3.

    In the config-file for bbpress I have written EXACTLY the same databasename, username and password as in the config-file for WP.

    Still, when I run the install.php for bbpress I get several lines of “warnings”/error messages before the installation text “Welcome to…”

    Warning: mysql_get_server_info() [function.mysql-get-server-info]: Access denied for user ‘nicuuorg’@’localhost’ (using password: NO) in /home/nicuuorg/public_html/neonatologyforparents/wp/bbp/bb-includes/db-mysqli.php on line 80

    Anyone understanding what’s going on.

    The WP runs without any problems.

    Could it be related to that the username is not correctly read from the config.php-file. The username is nicuuorg_stefanj, but access is denied for 'nicuuorg'@'localhost' according to the warning above.

    #60833
    intellivision
    Participant

    Ok, thanks for the post.

    I wish I could “sick” it on account creations and not posts. All my spam is in new spam accounts.

    I know I know… write a plugin ;-)

    #60744
    Trent Adams
    Member

    Sorry about that folks! It is back online obviously! :)

    #2434

    At my site http://www.doublepeace.se , when you log in, I’d like to have the users forum avatar displayed in the header. I tried just pasting <?php post_avatar(); ?> up there, and that didn’t work :D

    #60824

    In reply to: Trouble Logging Out

    chrishajer
    Participant

    To get Akismet working, you need an Akismet key. You need to register at http://wordpress.com/signup/ – you can check the radio button that says “Just a username, please.” and once you have an account, your Akismet key is in their somewhere (been a while since I had to look for it – but I think it’s “My Account > Edit Profile” and they “wordpress.com” key is there.) Once you have the key, you put it in your config.php like this:

    $bb->akismet_key = ''; // Example: '0123456789ab

    Just put your key in between those quotes, and you’re done.

    #2433
    neyoung
    Member

    I have both the My Views and Support Forums plugins installed. They work well together except for 1 thing. Both plugins add a new filter to bb_views.

    If both plugins are running the new views from My Views are the only ones to show up. The Support Forums views are not listed. After poking through the code I was able to fix it by making sure that the Support Forums bb_views filter was added AFTER the My Views bb_views filter. To do so edit support-forum.php .

    Replace line 432


    add_filter('bb_views', array(&$this, 'addViews'));


    With


    add_filter('bb_views', array(&$this, 'addViews'), 200);


    You should now be able to see the views from both plugins.

    I’m no expert, but it seems like when My Views is adding my_views_init to the bb_views filter its overwriting whatever Support Forums has already added to the filter. Just a guess. I’m sure ck, so1o, mdawaffe, or SamBauers will know exactly what is going on.

    Enjoy!

    #2429
    andorko
    Member

    bbPress is installed in /forums and WPMU is installed in /blogs .

    The cookie and database integration works fine.

    I am able to access bbPress functions from within WPMU by adding this to the end of /blogs/wp-config.php

    // Include bbPress functions in WPMU

    define('WP_BB', true); // Avoid duplicate function declarations

    require_once( ABSPATH . '../forums/bb-load.php');

    I’m trying to add WPMU functions to bbPress. I’ve tried adding this to the beginning of /forums/config.php . I’ve also tried putting this in the beginning of the file.

    require_once( dirname(__FILE__) . '/../blogs/wp-blog-header.php')

    When I go to /forums/ I’m redirected to the WPMU sign up page (/blogs/wp-signup.php?new=%2F).

    I’ve also created a simple file ( /test.php ) and tried to integrate it with wpmu. It it also redirected to the WPMU sign up page.

    Test Start

    <?php

    require_once( dirname(__FILE__) . '/blogs/wp-blog-header.php');

    ?>

    Test End

    Do I need to create a WPMU rewrite rule in the wp_1_options rewrite rulerecord? There shouldn’t be any need for an .htaccess rewrite rule since /forums and /blogs are not in subfolders of either.

    Any ideas how to make this work?

    #60502

    In reply to: Unread Topics

    henrybb
    Member

    Hey neyoung! Cool to know you use the plugin ;D

    I don’t use stickies or those poll or bugtracking plugins so I didn’t know. Thanks for the info, I’ll include your stuff in the next release. =)

    #60748
    chrishajer
    Participant

    You have tried to include this javascript:

    http://www.popcultureshock.com/forum/my-plugins/js_quicktags.js

    But that file cannot be found. So, where is that js_quicktags.js file?

    Looks like you added the proper code to your template. Did you activate the plugin in your admin panel? Or is it in a different location?

    #55810
    Detective
    Member

    I use this plugin ported from a Vanilla Extension:

    <?php
    /*
    Plugin Name: Video Tags
    Plugin URI: http://lussumo.com/addons/index.php?PostBackAction=AddOn&AddOnID=33
    Description: Ported from SirNot's HtmlFormatter for Vanilla
    Author URI:
    Version: 0.1
    */

    //allow youtube and google videos to be posted, tags are:
    //<video type="google">docid</video> (google video) -or-
    //<video type="youtube">video id</video> (youtube) -or-

    function video_embed($texto){
    $sReturn = preg_replace_callback(
    '/<video(?>s+)type=(["'

    ])((?>w+))1(?>s*)>([A-Za-z-_d]+?)</video>/is’,

    ‘VideoLink’,

    $texto

    );

    return $sReturn;

    }

    function VideoLink($Matches)

    {

    $Type = strtolower(trim($Matches[2]));

    $ID = $Matches[3];

    switch($Type)

    {

    case ‘google’ : return (‘<embed style=”width: 400px; height: 326px;” id=”VideoPlayback” ‘.

    ‘type=”application/x-shockwave-flash” src=”http://video.google.com/googleplayer.swf?docId=&#8217;.$ID.'”></embed>’);

    case ‘youtube’ : return (‘<object width=”425″ height=”350″><param name=”movie” value=”http://www.youtube.com/v/&#8217;.$ID.'”></param>’.

    ‘<embed src=”http://www.youtube.com/v/&#8217;.$ID.'” type=”application/x-shockwave-flash” width=”425″ height=”350″></embed>’.

    ‘</object>’);

    default : return $Matches[0];

    }

    }

    function allow_video_tags( $tags ) {

    $tags = array(‘type’ => array(‘maxlen’ => 10));

    return $tags;

    }

    add_filter( ‘bb_allowed_tags’, ‘allow_video_tags’ );

    add_filter( ‘post_text’, ‘video_embed’ );

    ?>

    `

    It allows you to embed video only from YT or Google Video.

Viewing 25 results - 28,951 through 28,975 (of 32,458 total)
Skip to toolbar