Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 32,301 through 32,325 (of 32,334 total)
  • Author
    Search Results
  • #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/.

    #49402

    In reply to: Importing from phpBB

    spencerp
    Member

    I just had a chat with Patrick on Live Messenger, the guy that runs phpBBhacks.com , and he said, you’ll mostly have to work directly with the database.

    Or atleast that’s how he does it, he said. Also, I’m not sure if this would, or could possibly help in any way, but.. they wrote up this article: “Write a converter with the Unified Convertor System.”

    Of course, like anyone would do, they made it up for the people to convert from their current forum software, to their’s, but, wasn’t sure if maybe you devs could use it to benefit yourselves or not?

    Just wanted to throw this out onto the table for ya’ll.. ;) I think it’s great that bbPress made a official release finally.. and *hopefully* soon, I’ll get to making themes for it. ;)

    spencerp

    /Sidenote quick: I had dealt with phpBB before, for a few good years, installed it for peoples, for money, and shot out a few themes too. Submitted them to the phpBBhacks.com site, and had patrick in the MSN mess list for a few years.. ;) =)

    #49520

    What is the url you’re tring to install it to?

    http://subdomain.domain.com/forums/ ?

    If that’s the case, you need to install bbPress in the directory on your server that that url points to. You config should then look like:

    $bb->domain = 'http://subdomain.domain.com';

    $bb->path = '/forums/';

    #49444

    Can you please send me the po file:

    selad at optiwater dot com

    thanks :)

    #49442

    SteveAgl,

    What exactly did you enter in the config file?

    If you do get it to work please post here how.

    Thanks :)

Viewing 25 results - 32,301 through 32,325 (of 32,334 total)
Skip to toolbar