Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'test'

Viewing 5 results - 11,451 through 11,455 (of 11,455 total)
  • Author
    Search Results
  • #698
    aloicious
    Member

    Hey all

    I’m testing a WP/BB install (on Segpub) and I’m having a hideous time trying to get it all up and running.

    Has anybody had any problems running on PHP5?

    #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');

    ?>

    #49695

    In reply to: Can’t Login!

    garymill
    Member

    I just downloaded the latest version, deleted the previous tables and did a new install.

    Same login problem is being encountered.

    the forum is at http://energizedeating.com/blog/forum/

    Anyone is welcome to register to confirm and hopefully help me solve this.

    When I arrive at the forum, I am greeted as signed in

    When I tried to post, I am prompted to login, , but the same login box appears again after and I remain not logined in.

    If I enter my login info wrong, I am given an error message.

    I hope someone can help.

    Gary

    #49693

    In reply to: Can’t Login!

    What webserver are you two using? This initial release didn’t receive much testing under IIS. There could still be some bugs there.

    Also, please try installing the official release, garymill. There were several changes between October 12th and the final version, some of which dealt with login issues.

    #49521
    febwa1976
    Member

    OK – This is what I did at the beginning.

    ASO has cpanel.

    I went to cpanel and created “subdomain” called “forum”

    When you do this cpanel automatically creates a directory “forum”

    I uploaded BBpress to this directory.

    I created a database in cpanel and completed the fields in config.php

    I tried $bb->domain = ‘http://forum.domain.com&#8217;;

    $bb->path = ‘/forums/’; plus a lot of others.

    Does not work.

    So,

    I went to a current subdomain I have http://test.domain.com and in cpanel physically created a directory /forum/.

    I populated config.php with the data and it WORKS! (looks good by the way!!).

    The only thing is that my forum is at

    test.domain.com/forum/

    I cannot get it to the root at

    test.domain.com

    (by the way when I install WP to testexample.domain.com it works first time every time and I do not have to install it to, and call it from testexample.domain.com/wpdirectory/

    Sorry for the long post and hope it is clear…

    What am I missing here?

Viewing 5 results - 11,451 through 11,455 (of 11,455 total)
Skip to toolbar