Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,251 through 32,275 (of 32,294 total)
  • Author
    Search Results
  • #49589

    In reply to: Emoticons For bbPress?

    ttech
    Member

    I tried the same code as above but it did not work for me. I’m not sure if htere is a get_settings in BBpress but, you can use $_SERVER;

    #49672
    bryanveloso
    Member

    Also when bbPress has a true template system, I’ll be making the default skin sort of like Andy’s Sandbox theme, so you won’t have to try to get around my CSS if you don’t want to. :)

    #690
    chanzero
    Member

    i saw in the “how to delete a forum?” thread that it has to be done from the backed db, is a post similar? i had expected to see this option in the admin, or an option on the post itself, but i’m not sure if this option isn’t available, or if something is wrong with my install

    thanks

    and let me just add i am so happy bbpress is ready to roll :)

    #49703

    In reply to: Can’t Login!

    astereo
    Member

    Solved my problem. It was coming from

    #

    $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 had set the urls only to domain.com/directory, when I added the http and www it worked fine.

    #49787

    There is currently no way to delete a forum without deleting it directly from the database (that is, using something like PHPMyAdmin).

    Tags can be removed from a particular topic by clicking the little x next to the tag in question.

    Tags can be completely deleted from the entire site by clicking the tag name, scrolling down, and clicking Destroy Tag. You must be an administrator or key master to destroy a tag.

    #49701

    In reply to: Can’t Login!

    This is what it should look like:

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

    I made the point about TRUE becasue it seems that you never set it to TRUE, you just add the correct prefix.

    #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 :(

Viewing 25 results - 32,251 through 32,275 (of 32,294 total)
Skip to toolbar