Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'register'

Viewing 25 results - 4,001 through 4,025 (of 4,248 total)
  • Author
    Search Results
  • Trent Adams
    Member

    Yeah, they are integrated and so is the WordPress MU forums.

    Trent

    gspark001
    Member

    is wordpress.org and bbpress.org login intergrated?

    M
    Member

    I registered as ‘M’ on the wp forums ages ago. ;)

    And I run all my registrations through wp instead of bbpress, so I’m no help with this one other than that.

    gspark001
    Member

    well i registered with gspark and it said invalid username so i assumed it was too short then i added 001 to it and it took

    Trent Adams
    Member

    In fact, there is a user of just “M” in this forum and has been for ‘quite a few’ versions of bbPress running this forum…..hmm….

    Trent

    Trent Adams
    Member

    If I am reading this right, the username was too short? I just registered a user with a single letter as the username on the recent TRAC version and it worked. Others seeing this as well?

    Trent

    #58077

    In reply to: bbSync

    fel64
    Member

    http://rapidshare.com/files/39528542/bbsync.zip.html

    New release time! Woo. Comments made via the regular wp-comment form will be picked up and sent into the forums as replies (for registered and logged-in members only! Please set commenting for registered members only in Options > General). Also I think that there are bugfixes in there which could solve your weird IP problem starrett and I implemented something or other so that you can do what your buddy says … I think instructions are on the admin page. It’s been a long day, no sleep in 36 hours, and I’m no longer entirely with it – all I know is it finally seems to work to satisfaction.

    Sneaky, you still with us?

    gspark001
    Member

    bbpress registration did not indicate there was a set minumu for how many characters in username, might be a good idea if there was a note in the register form

    i kept getting a username not valid and did not know why, how come with wordpress the username was ok but not on bbpress ?

    #58614

    In reply to: as was

    fel64
    Member

    Yeah, in your theme’s template file register-success.php. It’s not bad grammar, it’s actually a bug; it should read

    Your registration as Username was successful.

    I’ll go submit a trac ticket.

    Make that “I’ll go have submit a trac ticket which are #669.”

    #55645

    In reply to: What’s integration?

    gostallion
    Member

    Hihi,

    Unfortunately things did not work out. After adding those lines, I lost all privileges to post or even log out on wp and on bb registered users on wp are still experiencing failed log ins.

    And on bb, after the new config.php was reloaded, it went into re-install.

    $bb->cookiepath = ‘/’;

    $bb->cookiedomain = ‘.website.com’;

    and this in wp-config.php for wordpress:

    define(‘COOKIE_DOMAIN’, ‘.website.com’);

    define(‘COOKIEPATH’, ‘/’);

    #1988
    peter-b
    Member

    The user count in Admin Users shows the total number of users that have ever been created, rather than the total number of registered users. (I guess it uses the index of the users table rather than a row count). It would be more useful if the actual number of registered users was reported. (so deleted users aren’t included )

    #58359
    ganzua
    Member

    It works!!!!!!

    The working whole code is;

    function wp_registro( $before = '<li>', $after = '</li>' ) {

    if ( ! is_user_logged_in() ) {
    if ( get_option('users_can_register') )
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after;
    else
    $link = '';
    } else { if( current_user_can('activate_plugins') ) {
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;}

    else {global $current_user; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $current_user->ID . '">' . __('Profile') . '</a>' . $after;
    }
    }

    echo apply_filters('register', $link);
    }

    Now when any user logs in, wordpress sidebar displays a link to his profile in bb, but when is the admin the one who logs in he get a link to wp control panel. :)

    Thanks a lot fel64!

    #58351
    ganzua
    Member

    Hi fel64, thanks for the explanation.

    I tested and the function works but there are two errors in the code.

    First, the id user line displays “21” for every user

    global $id; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $id . '">' . __('Profile') . '</a>' . $after;

    Next, if( current_user_can('administrate') doesn’t seem to work because it display a link to bbpress profile instead to /wp-admin/

    This is the whole function so far;

    function wp_registro( $before = '<li>', $after = '</li>' ) {

    if ( ! is_user_logged_in() ) {
    if ( get_option('users_can_register') )
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after;
    else
    $link = '';
    } else { if( current_user_can('administrate') ) {
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;}

    else {global $id; $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $id . '">' . __('Profile') . '</a>' . $after;
    }
    }

    echo apply_filters('register', $link);
    }

    did I made a mistake in the second “else” ?

    #58350
    fel64
    Member

    Yeah, you could copy the wp_register() function into your functions.php file, modify it (and its name), and then use the modified function instead.

    Actually it should be

    global $id;

    Sorry. And for the last line, you have the right idea but you have to use the string concatenation (putting together into one) operator: the dot . This part is gonna be a bit more complicated, but solution at the bottom.

    Strings are indicated by using apostrophes ' ... ' or quotation marks " ... ". If you start a string with one of them, the other one doesn’t affect anything. Variable names inside the quotation marks " will be replaced with their value, but inside ' they will not. The strings here are made using apostrophes ', so you can have valid HTML code without problems: '<a href="..."' works, but "<a href="..."" doesn’t. But that means variable names inside the string won’t get replaced with their value. So you have to concatenate the strings, like this: '<a href="...' . $id . '"> ...';

    $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php?id=' . $id . '">' . __('Profile') . '</a>' . $after;

    Should work. Bit tired and therefore also inclined to ramble; sorry about that.

    #58349
    ganzua
    Member

    “you could just copy all of wp_register() into your theme (everything from function wp_register() { to the final }”

    -> do you mean copying in my theme functions.php file and then calling the fuction in the sidebar?

    “WordPress sets $id to be the user ID. It should be available, so just try it. If it’s not, you will need to put global: $id; in the line of code above it, so it knows you mean the global variable $id and not a new one.”

    -> I didn’t understand this. Do you mean something like this?

    global: $id;

    $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php$id">' . __('Profile') . '</a>' . $after;

    #58348
    fel64
    Member

    Ah, whooami. She’s a pleasant one. What she probably meant is, you could not use wp_register() and do your own new function in your theme that does what you want; that’s probably a better solution than changing core code. It’s easy; you could just copy all of wp_register() into your theme (everything from function wp_register() { to the final }, change its name and then make the changes you want, and use that instead. Probably worthwhile, too.

    There’s a very easy way! WordPress sets $id to be the user ID. It should be available, so just try it. If it’s not, you will need to put global: $id; in the line of code above it, so it knows you mean the global variable $id and not a new one.

    #58347
    ganzua
    Member

    Hey fel64! thanks for the answer;

    “If you’re not comfortable writing a plugin I’d be worried about hacking core files.”

    -> I’m not skilled enough, I’m learning like you, through wordpress, but it is too much for just half month and I’d like to upload the new web by the end of next week.

    Regarding the code, I asked this same question in wp forums and user whooami told me that;

    “youre doing that assbackwards. The smart way to do what you want to do is to use an if/else statement inside your theme.”

    :)

    The original code is like this;

    function wp_register( $before = '<li>', $after = '</li>' ) {

    if ( ! is_user_logged_in() ) {
    if ( get_option('users_can_register') )
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after;
    else
    $link = '';
    } else {
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;
    }

    echo apply_filters('register', $link);
    }

    so bearing in mind the code you provided and guessing that I need to generate both links in the same way;

    function wp_register( $before = '<li>', $after = '</li>' ) {

    if ( ! is_user_logged_in() ) {
    if ( get_option('users_can_register') )
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-login.php?action=register">' . __('Register') . '</a>' . $after;
    else
    $link = '';
    } else { if( current_user_can('administrate') ) {
    $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;}
    else { $redirect_to = $bb_profile_link;
    }
    }

    echo apply_filters('register', $link);
    }

    or replacing that $redirect_to = $bb_profile_link; for;

    $link = $before . '<a href="' . get_option('siteurl') . '/bbpress/profile.php<!--call id user here --> ">' . __('Profile') . '</a>' . $after;

    What I don’t know is how to add the id user to the link ??? Since it is the same id user than in wordpress the must be a way

    #58345
    ganzua
    Member

    Well, I have think in a more elegant solution, but this is for wordpress users that inserted bbpress in their wordpress interface. I have it half working though. First of all, my wp-login and wp-registering forms are integrated in my custom theme because I hacked wb-login.php.

    Whenever you login in wordpress there is a function in the sidebar, that displays two links;

    Site Admin -> link to wp profile.php

    Logout

    This links are defined in /wp-includes/general-template.php -> line 50

    $link = $before . '<a href="' . get_option('siteurl') . '/wp-admin/">' . __('Site Admin') . '</a>' . $after;

    You can change /wp-admin/ for bbpress/profile.php

    The first failure of this theory is that bbpress uses an id to show user profiles; bbpress/profile.php?id=1 and I have no idea how to add this id to the link plus I don’t know if bbpress user id are the same that in wordpress.

    The second failure is that if you are the admin you should get the original link to /wp-admin/

    this should be something like if user = admin then “link to /wp-admin/” else “link to /wp-admin/profile.php?id=n user”

    but since I have no idea of how to code all this I can’t go further

    :)

    #58344
    ganzua
    Member

    “You’re the admin, right? You could just bookmark the page.”

    -> Well, this is an option that I have in mind, but then all users that registered through bbpress will appear with “undefined” role in wordpress. And I can’t insert bbpress <?php login_form(); ?> in wordpress sidebar because it doesn’t work :(

    “Otherwise I suggest you write a plugin that uses the WP wp_login hook and changes the hopefully global $redirect_to depending on whether or not the user is admin. That’s for wp. bb default login behaviour is okay?”

    -> Unfortunately, I have no idea of how to write a plugin or a simple function :( I can badly modify already made code.

    #58342
    ganzua
    Member

    “I’m not sure what you’re trying to do. “

    -> I’ll try to explain better :) My web will be made with wordpress and bbpress. Only registered users can comment wp blog entries and post topics in the bbpress forum.

    Login tables are integrated and bbpress is inside the wordpress interface. When you go to bbpress you can see there the wordpress header, footer and sidebar.

    So, right now users could log in through two gates; wordpress sidebar or through bbpress frontpage.

    Well, I want to get rid of of these two gates and I want to avoid users can access wordpress dashboard and profile because the interface of these two pages is different. However, admin still needs access to wp control panel.

    #58279
    fel64
    Member

    Not really familiar with drupal or Cron. What you’ll need to do is start your function using a hook when someone registers, probably register_user, add your information for the email to a new table, schedule the cron job (no idea about that at all), and send the email however it’s done. bbPulp will be helpful when writing the plugin. Sorry I can’t help you more than that.

    #1952
    ganzua
    Member

    After integrating wp and bb and having wordpress header, footer and sidebar for both, wp and bb, I have these wordpress functions in my sidebar;

    <?php wp_register(”); ?>

    <?php wp_loginout(); ?>

    <?php wp_meta(); ?>

    And in bb press frontpage I have this one;

    <?php login_form(); ?>

    First, I thought I could replace wp functions in the sidebar for bbpress’ <?php login_form(); ?> but this function it is not defined for wordpress and I have got an error.

    Besides there are two other problems;

    * if users register through bbpress, their roles are not defined in wordpress

    * if I remove wordpress meta functions from the sidebar I lose the link to the admin control panel.

    Well, another option would be using the wp functions for login;

    <?php wp_register(”); ?>

    <?php wp_loginout(); ?>

    <?php wp_meta(); ?>

    and then changing their beaviour so;

    * whenever you login you are not taken to the control panel unless you are the admin

    * whenever you are an user and you click in “site admin” link wich appears above the log-out link, you are taken to the bbpress profile.php

    My questions are; first of all, do you find any sense in all of this or is it just crap? :)

    does anybody know where is defined wordpress login meta links so I can change them?

    and finally, does anybody have a better idea?

    #1939
    zapata
    Member

    I would like to stop using Akismet in bbPress only and keep it running for my WordPress blog. The reason is only registered authors of the blog can access bbPress and hence there is no need to check spam from them. What Akismet ends up doing is blocking sometimes authors’ messages in bbPress.

    Is there a simple way to do this without upsetting Akismet in my WordPress blog?

    fel64
    Member

    Pop this in at the top of your register.php file:

    header("Location: http://www.example.com/"); /* Redirect browser */
    /* Make sure that code below does not get executed when we redirect. */
    exit;

    In the long term it might be good to solve why bb users don’t work with WP, but I can’t think of anything off the top of my head.

    gjaw88
    Member

    I’m not a php coder yet and am learning. How would I go about making when I click “register” on bbpress to shoot it to my wordpress registration instead?

    The reason why is because I have it setup so that WP users can also log on the forum, but bbpress signups don’t work with WP.

    Thanks

Viewing 25 results - 4,001 through 4,025 (of 4,248 total)
Skip to toolbar