Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,276 through 32,300 (of 32,313 total)
  • Author
    Search Results
  • #49700

    In reply to: Can’t Login!

    Aaron
    Participant

    When I use this option

    $bb->wp_table_prefix = false; // 'wp_'; // WordPress table prefix.

    Set it to true, and use my prefix, I am running into this error:

    bbPress database error: [Table 'dbname.1users' doesn't exist]

    SELECT * FROM 1users WHERE user_login = 'ergate' AND SUBSTRING_INDEX( user_pass, '---', 1 ) = '*****[moderated]*****'

    bbPress database error: [Table 'dbname.1users' doesn't exist]

    SELECT * FROM 1users WHERE user_login = 'ergate'

    Even if I intentionally put the wrong db prefix, it still gives this same error.

    But as long as I use keep using the old integration code in the config file

    // use the WP user table for your bbpress user list

    define('CUSTOM_USER_TABLE', 'wp_users');

    the login works just fine.

    #49774

    In reply to: Permalinks?

    mozey
    Member

    Ohhh, :) hehehehe, thank you!

    #49747

    In reply to: Using WP template tags

    Try

    require_once(dirname(dirname(__FILE__)) . '/wp-config.php');

    in bbPress’ config.php.

    #49699

    In reply to: Can’t Login!

    I had the same problem, but after reading the Ulitmate bbPress Guide (http://www.devlounge.net/articles/the-ultimate-bbpress-guide/1/) I realised I had made mistakes on these lines of my config file:

    #

    $bb->wp_table_prefix = false; // 'wp_'; // WordPress table prefix.

    #

    $bb->wp_home = false; // WordPress - Options->General: Blog address (URL) // No trailing slash

    #

    $bb->wp_siteurl = false; // WordPress - Options->General: WordPress address (URL) // No trailing slash

    I replaced the FALSE with TRUE instead of adding the actual urls and the'wp_'. Your problem might be completely different but maybe you made the same mistake as I did?

    As a side note it seemed obvious to me that if it wasn’t FALSE then I should set it to TRUE, but maybe not everybody agrees.

    hth

    #687
    remouk
    Member

    Everything is said in the title. :) I don’t see this option in the current version. Is it a future feature, or must it be done via a plug-in?

    #49719

    In reply to: email subscription

    jaggs
    Member

    Ah thanks. Better ask for a plug-in then. :-)

    #682
    jazzle
    Member

    I think it needs to use tables for the User Activity sections.

    I say this because there’s a lot of redundant text: You last replied: / User last replied: / Most recent reply:

    and it is confusing to look at.

    #681
    jazzle
    Member

    I’d like to see the following plugins:

    Since HTML is long-winded to type:

    Which could convert the posts’ content before DB storage, and ‘unconvert’ before editting. (in case the plugins are removed, or if users don’t like them)

    • Emoticons

    #49755
    jazzle
    Member

    This is probably because you have have $bb->mod_rewrite = true; but no .htaccess file.

    Have a look at https://bbpress.org/forums/topic/13

    #49461

    Potter_System – your update did the trick – thanks :)

    #49585

    In reply to: Emoticons For bbPress?

    gnawph
    Member

    I wanted that functionality as well so I ripped some WP code, played around, and finally got something I could use. This is a highly sloppy work as I am out of practice and not really a great PHP programmer anyway. The plugin is mostly a rip of the WordPress code with a filter. It is not elegant or tested completely but so far it has been getting the job done.

    Note: This plugin will not work without a default install of WordPress.

    You have to create a directory called /my-plugins/, copy this code into a file called whatever-you-want.php, upload and enjoy!

    Feedback appreciated! Maybe I can improve on this and increase my PHP/*press skills. ;)

    <?php

    /*

    Plugin Name: WordPress Smiley Integrator .0002

    Plugin URI: none

    Description: Gives WordPress Smiley Functionality to bbPress

    Author: John Farrell

    Version: 1.0

    Author URI: none

    */

    function convert_smilies($text) {

    $wpsmiliestrans = array(

    ':mrgreen:' => 'icon_mrgreen.gif',

    ':neutral:' => 'icon_neutral.gif',

    ':twisted:' => 'icon_twisted.gif',

    ':arrow:' => 'icon_arrow.gif',

    ':shock:' => 'icon_eek.gif',

    ':smile:' => 'icon_smile.gif',

    ' :???:' => 'icon_confused.gif',

    ':cool:' => 'icon_cool.gif',

    ':evil:' => 'icon_evil.gif',

    ':grin:' => 'icon_biggrin.gif',

    ':idea:' => 'icon_idea.gif',

    ':oops:' => 'icon_redface.gif',

    ':razz:' => 'icon_razz.gif',

    ':roll:' => 'icon_rolleyes.gif',

    ':wink:' => 'icon_wink.gif',

    ':cry:' => 'icon_cry.gif',

    ':eek:' => 'icon_surprised.gif',

    ':lol:' => 'icon_lol.gif',

    ':mad:' => 'icon_mad.gif',

    ':sad:' => 'icon_sad.gif',

    '8-)' => 'icon_cool.gif',

    '8-O' => 'icon_eek.gif',

    ':-(' => 'icon_sad.gif',

    ':-)' => 'icon_smile.gif',

    ':-?' => 'icon_confused.gif',

    ':-D' => 'icon_biggrin.gif',

    ':-P' => 'icon_razz.gif',

    ':-o' => 'icon_surprised.gif',

    ':-x' => 'icon_mad.gif',

    ':-|' => 'icon_neutral.gif',

    ';-)' => 'icon_wink.gif',

    '8)' => 'icon_cool.gif',

    '8O' => 'icon_eek.gif',

    ':(' => 'icon_sad.gif',

    ':)' => 'icon_smile.gif',

    ':?' => 'icon_confused.gif',

    ':D' => 'icon_biggrin.gif',

    ':P' => 'icon_razz.gif',

    ':o' => 'icon_surprised.gif',

    ':x' => 'icon_mad.gif',

    ':|' => 'icon_neutral.gif',

    ';)' => 'icon_wink.gif',

    ':!:' => 'icon_exclaim.gif',

    ':?:' => 'icon_question.gif',

    );

    // generates smilies' search & replace arrays

    foreach($wpsmiliestrans as $smiley => $img) {

    $wp_smiliessearch[] = $smiley;

    $smiley_masked = htmlspecialchars( trim($smiley) , ENT_QUOTES);

    $wp_smiliesreplace[] = " <img src='/wp-includes/images/smilies/$img' alt='$smiley_masked' class='wp-smiley' /> ";

    }

    $output = '';

    // HTML loop taken from texturize function, could possible be consolidated

    $textarr = preg_split("/(<.*>)/U", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between

    $stop = count($textarr);// loop stuff

    for ($i = 0; $i < $stop; $i++) {

    $content = $textarr[$i];

    if ((strlen($content) > 0) && ('<' != $content{0})) { // If it's not a tag

    $content = str_replace($wp_smiliessearch, $wp_smiliesreplace, $content);

    }

    $output .= $content;

    }

    return $output;

    }

    //add the filter

    add_filter('post_text', 'convert_smilies');

    ?>

    #49723

    In reply to: installing … error

    chaaban
    Member

    no it cant be this because i used the same folder on both , 1 worked great but it was on root the other dident work because it wasnt on root …

    is there any error in those 2 lines ?

    $bb->domain = ‘http://www.thai-boxing.org&#8217;;

    $bb->path = ‘/muay-thai-forum/’;

    if i’m installing it on a folder called : muay-thai-forum ?

    here is what i will make to make it easy on my self , i will take the exported .sql database of the bbpress that worked and install it and see what it will do … i’ll let u updated ;)

    thank’s

    #678

    Topic: Using WP template tags

    in forum Themes

    Can I use my own WP template tags (or functions) into the bb templates?

    I tried to add require_once('http://www.mydomain.com/wp-config.php'); into the config.php file, but don’t work.

    If I add require_once('../wp-config.php');, it works, but crash the bb-admin panel.

    Can anyone help me?

    #49460

    lstelie: The Views links’ names are used in another place (view.php), so at this time it’s difficult. I think it’s possible to add another array value to make the names get-text-able, or even use the values the array currently have for next version

    == Update ==

    BTW, if you don’t want to wait, you can replace the echo $view in your front-page.php file with echo $title

    #49404

    In reply to: Importing from phpBB

    spencerp
    Member

    Thanks for sharing that Detro, the thought saving the PMs is important as well, now if *only* there was a way to grab ALL of the informations from a phpBB board, that’d be awesome.

    If no one around here can do one up, I’ll see if I can get *someone* I know, to do it.. ;)

    spencerp

    #49721

    In reply to: installing … error

    chaaban
    Member

    this is so sick , i tried to install it on another website on the root and it work , but when installing on a sub directory it dont :)

    ahhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

    hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

    hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

    hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh

    i feel better now

    #49458

    lstelie,

    These strings are hard-coded in:

    bb-includes/functions.php

    line 1394:

    $views = array(‘no-replies’ => __(‘Topics with no replies’), ‘untagged’ => __(‘Topics with no tags’), ‘unresolved’ => __(‘Unresolved topics’));

    Just translate them in the code and you are done :)

    #49565
    bpartch
    Member

    I did the “bb-admin/rewrite-rules.php” and all is fine except the “tags” links give me a internal server error.

    ergate yours seems to work perfectly. :)

    #49449

    You need to translate the po file (see 4 messages above). Then the mo file should go to bb-includes/languages.

    But… I could not get it to work :(

    #671
    #49562
    Aaron
    Participant

    This is what I am using

    # BEGIN BBPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /location_of_install/

    Options +MultiViews

    </IfModule>

    # END BBPress

    #49675

    In reply to: Akismet key

    kyte
    Member

    Ahhhh so it actually requires quote marks. Well I am no php person so I did not realise that. Thanks, Jeremy :)

    #49669
    kyte
    Member

    arghhhh! I had actually already posted here (well I thought I had) to say I needed new specs because I had not noticed that I had uploaded the altered style.css to the admin directory (god knows why, I must have looked in there for something and forgotten to select the templates dir afterwards.).

    anyway, all is well now.

    Thanks for your reply :)

    #49674

    In reply to: Akismet key

    JeremyVisser
    Member

    This is due to a PHP syntax error. My Akismet line looks like this:

    $bb->akismet_key = "12345678"; (key censored)

    #49522
    Matt Mullenweg
    Keymaster

    The path is for the URL.

    So if forums.example.com is public_html/forums/ on your server, you still just want / to be your path because when you load it in a browser it’s: http://forums.example.com/.

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