Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 30,001 through 30,025 (of 32,432 total)
  • Author
    Search Results
  • #49938

    In reply to: En español

    Covi
    Member

    Ganzua, la cuestión es más o menos esa, al activar la integración con WordPress se incluyen archivos idénticos tanto desde WordPress como BBpress. A mí me ocurre con el primer archivo que se incluye streams.php y a tí con otra función también “redeclarada”, en este caso clase: CachedFileReader.

    Esto ocurre porque son archivos necesarios para la traducción, si alguien no traduce el sitio: “BBLANG sin definir, es_EN por defecto” imagino que no se usan.

    Tal y como funciona el asunto, la solución inminente sin indagar algo más en el tema es no incluir estos archivos desde alguo de los sistemas, yo prefiero quitarlo de bbpress.

    Cómo solucionar la traducción??…

    No caigo ahora mismo ^^! , si no incluimos esos archivos desde bbpress me temo que no traduce la aplicación a no ser que… podamos meter el archivo de traducción a mano.

    En definitiva, personalmente y hasta la fecha las funciones de WP solo las quería para los templates así que me basta con “alargar” las rutas a los archivos necesarios.

    Para las funciones genéricas bbpress usa practicamente las mismas funciones.

    Para integración de usuarios no es necesaria: son los mismos.

    Para integración de post, etc… se tendrían que hacer a mano y puesto que es la misma DB no es gran cosa :)

    Además, el config.php es bastante flexible a la hora de crear variables ;)

    …pedazo tocho :(

    #53360
    Covi
    Member

    Doesn’t work on my site :___( :

    Can’t show on Panel Presentation, doesn’t work with

    Theme Name: Refresh

    Theme Name: refresh the path of template.

    I’m trying it…

    PD: Some plugin is required?

    Edit1:

    After 1 minute …

    Checking permissions of path…

    LoL, soooorry ^^!

    #57826
    howtogeek
    Member

    Ok, this version fixes the issue with spaces in the profiles… it’s mostly a hack, but I haven’t found any issues with it.

    <?php

    /*

    Plugin Name: HowToGeek Functions

    Plugin URI: http://www.howtogeek.com

    Description: Cleanup functions for bbPress issues

    Author: The Geek

    Author URI: http://www.howtogeek.com/

    Version: 0.0.1

    */

    function htg_resanitize( $text, $raw ) {

    return preg_replace(‘/[^ ta-z0-9_-]/i’, ”, str_replace(“%20″,” “,$raw));

    }

    function htg_repermalinkfix($permalink){

    return str_replace(” “,”%20”,$permalink);

    }

    function htg_wp_redirect($location,$status){

    global $is_IIS;

    if(!stristr($location,’ ‘)){

    return $location;

    }

    $location = preg_replace(‘|[^ ta-z0-9-~+_.?#=&;,/:%]|i’, ”, $location);

    $location = wp_kses_no_null($location);

    $strip = array(‘%0d’, ‘%0a’);

    $location = str_replace($strip, ”, $location);

    if ( $is_IIS ) {

    header(“Refresh: 0;url=$location”);

    } else {

    if ( php_sapi_name() != ‘cgi-fcgi’ )

    status_header($status); // This causes problems on IIS and some FastCGI setups

    header(“Location: $location”);

    }

    return false;

    }

    add_filter(‘wp_redirect’,’htg_wp_redirect’,1,2);

    add_filter(‘bb_repermalink_result’,’htg_repermalinkfix’,1,1);

    remove_filter(‘bb_user_sanitize’,’bb_user_sanitize’);

    add_filter(‘bb_user_sanitize’,’htg_resanitize’,1,2);

    ?>

    #57824
    howtogeek
    Member

    I created a plugin that allows usernames with spaces… not in the most elegant way, but it seems to work for me.

    <?php

    /*

    Plugin Name: HowToGeek Functions

    Plugin URI: http://www.howtogeek.com

    Description: Cleanup functions for bbPress issues

    Author: The Geek

    Author URI: http://www.howtogeek.com/

    Version: 0.0.1

    */

    function htg_resanitize( $text, $raw ) {

    return preg_replace(‘/[^ ta-z0-9_-]/i’, ”, str_replace(“%20″,” “,$raw));

    }

    function htg_repermalinkfix($permalink){

    return str_replace(” “,”%20”,$permalink);

    }

    add_filter(‘bb_repermalink_result’,’htg_repermalinkfix’,1,1);

    remove_filter(‘bb_user_sanitize’,’bb_user_sanitize’);

    add_filter(‘bb_user_sanitize’,’htg_resanitize’,1,2);

    ?>

    #58002
    jetson
    Member

    Hehe, hi fel64. ;-) Thanks for your reply!

    I just put an underscore at the end of the folder name and it worked.

    Yes, there wasn’t any change before concerning my language problem. I tried to switch to the spanish language file but it doesn’t get recognized by bbpress, too. No change.

    #58001
    fel64
    Member

    Dear individual,

    that is strange. What did you change the name of that made it work? my-templates to what, or was it the name of the forum?

    There is no such DB entry as far as I know.

    There was absolutely no change just before bb switched to english?

    #57997
    ganzua
    Member

    Thanks fel64!

    I won’t give up bbpress by now :)

    Regarding Quicktags, can you use it for wordpress as well? I’d like to display the same forms in both, wordpress and bbpress.

    #57996
    fel64
    Member

    Not as far as I know. The worst is behind you, and if you’ll be administrating the site in the future then it’s a good idea for you to do this yourself anyway. Cursing about implementing it now will save you a lot of cursing in the future when something breaks, because you’ll roughly know where things are and how they work. Everything you’ve mentioned there has been done, though, or has a plugin for it. Plus we’re willing to help.

    I recommend Quicktags over tiny mce, but it’s a personal thing really. :)

    ganzua
    Member

    “It is just nice to know where things are going if you are interested!”

    -> you’re right :) I’ll join

    ganzua
    Member

    Hi Trent! Thanks for your message;

    Dou you mean this list? -> https://lists.bbpress.org/mailman/listinfo/bbdev

    I am not a developer anywhere, just a bb/wordpress theme clumsy modifier, not sure if I should join. :)

    #1932
    ganzua
    Member

    I integrated wordpress and bbpress; I succeded in displaying wordpress header, footer and sidebar in bbpress, and user logins are integrated which is great :)

    However, each bbpress modification is being a big step for me and I’m finding quite difficult to add things like emoticons beside post-forms, tiny mce in forms, avatars, ranks, quote buttons…

    Is there any theme with this kind of stuff already implemented?

    ganzua
    Member

    Feedback for bbpress developers;

    Regarding wordpress-bbpress integration, don’t you think wordpress and bbpress projects are starting to overlap?

    I’ve been trying to integrate wordpress and bbpress and now I have;

    * two login forms and profiles

    * there are some css properties in the style sheet that are defined with same names that in wordpress; h2, h3, .alt …

    * Afer adding <?php require_once(‘/wamp/www/wordpress/wp-blog-header.php’); ?> for integration, I load wordpress functions again if accessed the web through wordpress frontpage.

    * Some times I’d like to use the same plugins in both; wordpress and bbpress, or any other feature/modification, so I need to duplicate the work. You activate a wordpress plugin and you have to find a similar plugin that could work in bbpress or any workaround.

    I wonder if developers are considering a bbpress version as a plugin for wordpress :)

    imho

    #57981
    ganzua
    Member

    Thank you very much Schmuck :-)

    this one is working ok so far as well;

    </div> <!– moved here –>

    <?php if ( bb_is_user_logged_in() ) : ?>

    <div id=”viewdiv”>

    #57980
    Schmuck
    Member

    Try this one:

    <?php endif; else : ?> line. Below this it should have code for <h3 class=”bbcrumb”> … and then <?php post_form(); endif; ?>

    It will help!

    Greetz

    #57988
    fel64
    Member

    Relevant also is #thread li.

    Note that threadauthor has position: absolute; so it won’t affect the height of the post. As soon as you get rid of that it, the post is pushed to full height.

    Alternatively, you could give #thread li the min-height: 200px property, which will make sure it’s at least 200 pixels high which should be sufficient to accomodate for avatar and username. However IE6 does not support the min-height property.

    margins will push things apart, which might be what you’re looking for. Also .post needs to have a bigger margin.

    Both approaches will give you a workable design. However when you’re working on these things there are really two things you should do:

    1. Change one thing at a time. Check result.
    2. Use Firebug.

    Both of those are lifesavers and greatly reduce the amount of work and panic you’ll have. Switch to FF if you have to, Firebug is pure gold and absolutely worth it when you’re making websites.

    #1929
    mikeh269
    Member

    I’m just fiddling around with the Crystal theme and trying to get it to match my installation of Unsleepable on wordpress.

    I also decided to put in avatars.

    I’ve made a bit of a mess of it.

    http://www.mikeh269.com/forum/topic.php?id=1&page&replies=3

    As you can see, all the posts are somewhat pushed up so they are all together. I would appreciate it if I could get some help.

    Here’s my post.php

    <div class="threadauthor">
    <p><strong><?php post_author_link(); ?></strong><br />
    <small><?php post_author_title(); ?><br /><?php post_avatar(); ?></small></p>
    </div>

    <div class="threadpost">
    <div class="post"><?php post_text(); ?></div>
    <div class="poststuff"><?php printf( __('Posted %s ago'), bb_get_post_time() ); ?> <a href="<?php post_anchor_link(); ?>">#</a> <?php post_ip_link(); ?> <?php post_edit_link(); ?> <?php post_delete_link(); ?></div>
    </div>

    And the relevant parts of style.css

    .poststuff{
    font:10px Verdana,Arial,Helvetica,sans-serif;
    text-transform:uppercase
    }

    .threadauthor small{font:11px Verdana,Arial,Helvetica,sans-serif}

    .post {
    margin-left: 100px;
    position: absolute;
    padding-left; 100px;
    padding-up; 50px;

    }

    .threadauthor {
    margin-left: 10px;
    overflow: hidden;
    position: absolute;
    max-height: 215px;
    width: 150px;
    }

    Any help would be appreciated.

    #57977
    ganzua
    Member

    I’ve been watching the resulting code with fire fox and I notice that

    a </div> appears and this one was not opened before;

    <p>Allowed markup: a blockquote br code em strong ul ol li.
    Put code in between backticks.</p>

    <input type=”hidden” name=”_wpnonce” value=”9e88410df1″ /><input type=”hidden” name=”_wp_http_referer”

    value=”/wordpress/bbpress/?new=1″ />

    </form>

    </div>

    but in post form there is not any div

    #1928
    willspill
    Member

    My bbpress is having trouble displaying stylesheets correctly. I am using the default style that bbpress comes with. I have it installed locally on a test environment.

    The admin section looks exactly how it should, but the forum itself does not. I have noticed that the path to the stylesheet is incorrect.

    <link rel=”stylesheet” href=”http://localhostbbpress/bb-templates/kakumei/style.css&#8221; type=”text/css” />

    notice how after localhost the “” is the wrong way.

    Not sure if anyone can tell me how to fix it.


    in the admin page, the stylesheet path is correct

    <link rel=”stylesheet” href=”http://localhost/bbpress/bb-admin/style.css&#8221; type=”text/css” />


    my config.php looks like this

    // If your bbPress URL is http://bbpress.example.com/forums/ , the examples would be correct.

    // Adjust the domain and path to suit your actual URL.

    // Just the domain name; no directories or path. There should be no trailing slash here.

    $bb->domain = ‘http://localhost&#8217;; // Example: ‘http://bbpress.example.com&#8217;

    // There should be both a leading and trailing slash here. ‘/’ is fine if the site is in root.

    $bb->path = ‘/bbpress/’; // Example: ‘/forums/’

    #57975
    fel64
    Member

    Alright. Split up the <?php endif; else : // $forums ?> into <?php endif; ?> and <?php else : ?> and put the </div> we were moving around between them. Could work.

    #55774
    fel64
    Member

    Did you actually go around to each user and set their bozo field to 0 and update? Otherwise the fix won’t work and neither would disabling akismet.

    I’m think $bb->akismet_key = 'anything other than a key' does disable it. Take a look at bb-includes/akismet.php.

    #57965
    fel64
    Member

    Hey, if that worked for you can you do me a big favour? (If it didn’t work, this is worth a try!) Put it back at the top like you had it and then underneath it add

    global $bbdb;

    and see if that works. Thank you very much!

    #1672
    ganzua
    Member

    Hi!

    I put es_ES .mo and .po translation files in this folder;

    bb-includes/languages/

    Then I changed config.php;

    define(‘BBLANG’, ‘es’);

    and as a result the whole forum stops working and I’m getting this message;

    Fatal error: Cannot redeclare class CachedFileReader in D:wampwwwwordpressbbpressbb-includesstreams.php on line 163

    Any idea of what’s wrong?

    I have another question;

    Is there anyway I can make bbpress to read wordpress language files in wordpress language folder?

    #55773
    tigrelog
    Member

    This fix didn’t work for me. Anybody else has an idea how to totally disable Akismet SPAM?

    Setting $bb->akismet_key = 'false' didn’t work for me either.

    #57973
    ganzua
    Member

    WARNING!!!!!! new error!

    I’ve just realized that after moving that div and when the user logouts the front page is messed.

    I moved the div to the former place and front page displays ok again.

    So;

    * div in former place + logged out user = front-page ok but add new link not working

    * div above <?php endif; else : // $forums ?> + logged in user = add new link working but frontpage messed. :(

    #57972
    fel64
    Member

    Cool, glad to help. :)

    Ticket #656

Viewing 25 results - 30,001 through 30,025 (of 32,432 total)
Skip to toolbar