Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'code'

Viewing 25 results - 23,201 through 23,225 (of 32,481 total)
  • Author
    Search Results
  • #76129
    panchz
    Member

    I had that same problem when trying to make only one register & only one login from my site with bbpress integration.

    register is easy, I just wrote directly to the db from php using the hash classes included. but for login i made a kind of webservice. When I login from tomcat I just request the next url…

    http://www.mysite.com/bbpress-root-dir/bb-login-check.php?user_login=USER&password=PASSWORD&remember=yes

    and i wrote the next code for bb-login-check.php

    <?php

    // Load bbPress.

    require(‘./bb-load.php’);

    // Redirect to an SSL page if required.

    bb_ssl_redirect();

    $user = bb_login( @$_GET, @$_GET, @$_GET );

    if ( $user && !is_wp_error( $user ) ) {

    echo “0”;//login successfully

    exit;

    }else{

    echo “1”; //login fail

    exit;

    }

    ?>

    i hope that’s usefull…

    for any question or help needed for bbpress or wordpress try fran.rod.rod [at] gmail.com

    #80052
    anaon
    Member

    Oh Kawauso, thank you so much!! This code works perfectly!!

    But do you mean that normally, I should have just one profile page for WordPress and BBpress?

    #56793

    In reply to: Plugin: Avatar Upload

    Billy Wilcosky
    Participant

    Does anyone have any suggestions for showing the bbpress avatar next to comments in wordpress. I know a couple suggestions were given here, but, I don’t want to try the first suggestion, because they say to delete a file in my plugins, and I have a feeling that will cause more trouble than it’s worth. I saw another suggestion, tried it, but the avatar didn’t show. This probably won’t happen, but, it would be nice if there was a sister plugin to this one for wordpress… and you installed it and magically the bbpress avatars showed up. :) Wouldn’t that be nice. Unfortunately I don’t know php very well.

    Here’s hoping someone can come up with a solution!

    #80051

    <?php if ( $wp_profile_user = bb_get_user( get_post_author_id( $post_id ) ) ) : $wp_profile_link = esc_attr( "/members/{$wp_profile_user->user_nicename}/" )?><a href="<?php echo $wp_profile_link?>">View profile</a><?php endif?>

    Your profile pages from bbPress and WordPress should be in sync anyway if you’ve integrated properly…

    #80117

    Read through register.php in bbPress’ base directory and function bb_new_user under functions.bb-pluggable.php in bb-includes to get an understanding of how normal registration works.

    Normally the user is given an auto-generated password, but the function used in the registration function will hash anything anyway.

    #80043

    Ah…. add a sidebar capability ;)

    #80131

    In reply to: How to fix it

    chrishajer
    Participant

    You can limit it on input with that javascript, which will take care of most of the people who use a long name by mistake, not knowing what it will affect. You could also just limit the field maxlength, which will prevent people from entering more characters than you want. Either of those client side ways can be circumvented by someone who is really determined, but really, you just want to prevent people from doing it be accident.

    You could also just add overflow:hidden to the display of that field in your style.css and have the displaye truncated rather than have it mess up your layout.

    #31967
    CraigElias
    Member

    I want to use Wishlist member to protect a page called Forum – with the slug shiftselling.com/forum.

    That means I need to move the files for the forum to a different directory – currently shiftselling.com/forum.

    Should I move it or rename it?

    Should it be moved to a directory or a sub domain?

    I am also trying find what code I could put into a the page called forum that would display the forum inside my page.

    Regards,

    Craig

    Cell: +1.403.874.2998

    #31966

    Topic: How to fix it

    in forum Troubleshooting
    harakiri1
    Member

    I have some problem with display name, how to set the maximun characters in First name and Lastname, also in displayname =))

    #31965
    carlosdelab
    Member

    Saludos a todos,

    hace poco he instaldo mi foro y he instalado tambien bb-attachments. Segun he entendido, creo haber instalado todas las carpetas como debería ser.

    sin embargo no consigo visualizar las imagenes dentro del foro, sólo un icono que dice que es una imagen. las imagenes las puedo descargar y las puedo ver desde el ftp.

    direccion al foro si puede ayudar con información extra.

    http://www.designemergente.org/foro/

    Asi es como las tengo dentro de mi ftp:

    raiz/


    bb-attachments/(con los permisos 777)



    0(carpeta donde están las imagenes)


    errors


    logs


    tmp


    web/



    foro



    bb-admin



    bb-includes



    bb-plugins



    bb-templates



    my-plugins/(permisos 777)


    bb-attachments(carpeta con el codigo, permisos 777)


    wp-admin



    wp-content



    wp-includes

    #80093

    Try matching the code with the default theme and if you need to show more additional info then you can take a look at this too https://bbpress.org/forums/topic/unhide-profile-email-adresses

    #31962
    NuMaverick
    Member

    how I can add a new option in admin panel for my new plugin?

    I don’t speak english, try

    someone have a default code for a admin or settings to a plugin

    #31961
    Jim R
    Participant

    I’m not getting a lot of help where the plug-in is actually posted. As best I can tell my settings are correct. I’m getting this response though:

    URL is incorrect or connection error, please verify it (full variant): http://hoosierhoopsreport.com/bbpress/my-plugins/wordpress-bbpress-syncronization/bbwp-sync.php

    When you click on that link, it brings up a 404 page, but having checked my server files, it’s there. The plugin has been uploaded in the my-plugins folder of my bbPress folder.

    #80116
    ggwarpig
    Participant

    I tried =( i cant even find bb_generate_password. Where is it!?

    If I do figure out how to encrypt the password correctly and add it to the user table am I going to run into any other issues?

    #80115

    Why not just use bbPress native functions and adapt code? :)

    #76545

    Any chance of a user/password login for the demo? :)

    #76543
    Gautam
    Member

    Sorry for the “month long” late reply as I forgot about this topic after writing my previous reply.

    Here it is:

    http://gaut.am/uploads/live-comment-preview.zip

    Now as the user types, the preview will also refresh itself (I have jQueryised the js code)

    #80103

    Both the “Freshness”/latest reply and normal links in the Search function should be including the page number in links, as that’s allowed for in the function used, get_topic_link() .

    Sort’ve worrying if it’s not including it! bbPress.org includes the page number…

    It’s not included for any page 1 links though.

    #73217
    johnhiler
    Member

    There was a great plugin called “Move It” that did a lot of what you described:

    https://bbpress.org/plugins/topic/move-it/

    But it was designed for bbPress 0.8x I believe… ck recommended that 0.9 and 1.0 users not use it.

    But if you’re interested in coding something similar, her code might be a good place to start.

    Good luck!

    #80076
    johnhiler
    Member

    Line 48 in the plugin has the following setting:

    $bb_attachments=true; // auto insert uploaded images into post49

    source: https://plugins-dev.bbpress.org/browser/bb-attachments/trunk/bb-attachments.php

    Is that set to true? I noticed that the image wasn’t showing up in your post at all (only in the list of attachments at the end of the post).

    Also… you mentioned, “I modify the line in both folders, in the root and the other in my-plugins folder, and nothing happend”.

    What do you mean, both folders… the code should only be in the /bb-attachments/ folder under /my-plugins/.

    The bb-attachments folder over the root is meant to hold the uploads… the one in /my-plugins/ is designed to hold the code. :-)

    #78339

    In reply to: snowski theme released

    chandersbs
    Member

    Its looking good. However, I do think you have make some changes in this area:

    .num, #forumlist small {
    font: 11px Verdana,Arial,Helvetica,sans-serif;
    text-align: center;
    white-space: nowrap;
    }

    Ben L.
    Member

    error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED should actually remove those errors. Something must be wrong with your server configuration.

    Mark Kehn
    Member

    Hmm, okay that isn’t working.

    Using error_reporting = E_ALL & ~E_NOTICE still shows the warnings for my bbPress

    How do I do this properly?

    I’m not even sure php.ini is the place to do this because even if I totally remove the error_reporting line from the php.ini file it still shows the errors. Even if I set: display_errors = Off it still shows errors.

    So what file am I supposed to be editing?

    Mark Kehn
    Member

    Hi Nightgunner5,

    Can you tell me how to turn that off? Is there a file somewhere in the PHP folder that I would change this?

    EDIT:

    I found this in the php.ini file.

    So all I have to do is change –

    error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

    to this –

    error_reporting = E_ALL & ~E_NOTICE

    Would that be correct? Anything else I should do? Also, does this mean that I can turn ON error logging again via my .htaccess file for everything else? I like to have the error logging enabled in case I install a plugin or something this way I would know when it is broken.

    This is the code I use in the .htaccess –

    # SUPPRESS PHP ERRORS FROM SHOWING PUBLICLY:

    php_flag display_startup_errors off

    php_flag display_errors off

    php_flag html_errors off

    So again I would like to turn the switches back to ON but at the same time not show the errors in bbPress regarding the DEPRECATED stuff.

    Thanks

    #79973

    In reply to: removing tags

    InvTrdr
    Member

    Where is the function code to delete tags? Maybe I can look at that and check to see if it right or missing.

    Thanks.

Viewing 25 results - 23,201 through 23,225 (of 32,481 total)
Skip to toolbar