Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 32,251 through 32,275 (of 32,678 total)
  • Author
    Search Results
  • Burt Adsit
    Participant

    Howdy. The ’10’ is the priority of the filter (normal) and ‘3’ is the number of arguments the oci_login_redirect() function takes.

    https://codex.wordpress.org/Plugin_API#Filters

    If you take a look at the apply_filters() call that is in wp-login.php it sends along 3 params. The second param is not so obvious:

    isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : ''

    Read it as:

    ‘if the redirect_to is set to something then use that as the 2nd param and if it isn’t set then pass along nothing as the 2nd param’.

    Just in case we want to do something fancy in the filter that has to do with where the redirection was supposed to go in the first place.

    Anointed
    Participant

    thank you!

    Can I ask what the 10, and 3 refer to in the very last line of code?

    I am just now learning how to understand code that I am reading, and I think I grasp everything but that part.

    Burt Adsit
    Participant

    Well, here’s an even better idea. Don’t create a file called just anything. Call it bp-custom.php and put it in there. Drop that in /mu-plugins. I looked at the SVN log and as of rev 1012 if that file exists in /mu-plugins it gets run before anything else in bp.

    Cool. Thanks Andy!

    Now I know how to launch all my little tweaks. The official way.

    Burt Adsit
    Participant

    I found a little filter hook in wp-login.php that seemed just right for this. It is buried in that mass of stuff in that file on line 436 (wpmu 2.7).


    $redirect_to = apply_filters('login_redirect', $redirect_to, isset( $_REQUEST['redirect_to'] ) ? $_REQUEST['redirect_to'] : '', $user);


    So I built a little plugin that hooks this filter.


    function oci_login_redirect($redirect_to, $set_for, $user){
    $redirect_to = bp_core_get_userurl($user->ID);
    return $redirect_to;
    }
    add_filter('login_redirect', 'oci_login_redirect', 10, 3);


    Create a file with the above code and drop it into /mu-plugins. It sends the user to their profile after logging in. You can send them wherever you want them to go by changing $redirect_to.

    Scotm
    Participant

    There’s no settings in the admin panel but you can change the redirect URL within the plugin file, line 21 if I remember correctly.

    Go to /wp-content/mu-plugins/bp-core/bp-core-admin.php and comment out line 73 (My Account sub-menus) as well as 148-151 and 153. I’ve also commented out the “create a blog” call which is on line 165.

    You may find it only works on new blogs created after installing Block Admin.

    Cheers

    life2000
    Participant

    Hi Scot:

    Thank you so much. Which sub-menus should I comment out from Buddypress admin bar?

    Also, I have uploaded the plug in “Block Admin”, but can’t find the settings related to this plugin anywhere in the dashboard.

    Seems like a tough day today. Thank you so much for your help.

    vida

    Scotm
    Participant

    I redirect to the same /URL/members.

    parkcityxj
    Member

    Thanks for insight. Scot M, where are you redirecting to? I was thinking to http:/yoursite.com/members

    #37148
    Trent Adams
    Participant

    @danielfelice this actually is a bug, but not of BP, but rather WPMU and WP. Problem is that users are registering on your server “in the future” or rather from a timezone that your server hasn’t hit yet. Judging by what you said, 5 or 6 timezones ahead of the server time. Since it doesn’t exist yet, WP and WPMU spit that out :)

    Make sense? Not sure of a solution, but I hear through grapevine that Otto, one of the WP mods maybe wrote a plugin that fixes this? Haven’t found it, but might be worth a search in the wordpress.org/support/ forums.

    Trent

    Trent Adams
    Participant

    There are workarounds for this, but the real issue is that this is the intended outcome for normal WP. Since it is the intended result for WP, it gets pulled into WPMU since it is synced off the WP development. Since BP works on WPMU, it gets the same result. See the pattern ;)

    That “block admin” plugin works well and if users login from the main site, it doesn’t direct them. Only when they hit wp-login.php will they get redirected to the dashboard. If you are a WPMUDEV.org premium subscriber, they have a plugin that changes this default behavior, so I would imagine there are other solutions out there as well.

    Scotm
    Participant

    I believe Andy is going to address this issue, but in the meantime I’ve found some success using the “Block Admin” plugin. This allows you to set a redirect URL when someone tries to access wp-admin. You also need to comment out a few of the Buddypress admin bar sub-menus to prevent users from accessing the backend.

    Works fine for me but I agree it’s an issue that should be addressed.

    Cheers

    life2000
    Participant

    All we need to do is to direct them to their profile page withing Buddypress site after they log in. Is there a way to modify the email messages that go out during and after activation process?

    This problem has burned a hole in my brain for the last 24 hours.

    HELP PLEASE!

    rishel
    Member

    I can see that its going to be an issue also, sending them to backend when they login, people look at that, especially first timers, and go… “welp, thats interesting… outta here”

    royak
    Member

    1) Upload WordPress Mu package

    2) open .htaccess and add :

    AddType x-mapp-php5 .php

    AddHandler x-mapp-php5 .php

    3) Install WordPress Mu with the subdirectory option ( subdomain option does not work)

    4) Enable blog+account creation from admin panel

    5) Test your installation by creating one test-user account+blog , then remove test-user account+blog

    6) Go to your PHPMyAdmin interface and create the following tables:

    CREATE TABLE wp_bp_activity_sitewide (

    id int(11) NOT NULL auto_increment,

    user_id int(11) NOT NULL,

    item_id int(11) NOT NULL,

    secondary_item_id int(11) default NULL,

    content longtext NOT NULL,

    primary_link varchar(150) NOT NULL,

    component_name varchar(75) NOT NULL,

    component_action varchar(75) NOT NULL,

    date_cached datetime NOT NULL,

    date_recorded datetime NOT NULL,

    PRIMARY KEY (id),

    KEY date_cached (date_cached),

    KEY date_recorded (date_recorded),

    KEY user_id (user_id),

    KEY item_id (item_id),

    KEY component_name (component_name)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_friends (

    id int(11) NOT NULL auto_increment,

    initiator_user_id int(11) NOT NULL,

    friend_user_id int(11) NOT NULL,

    is_confirmed tinyint(1) default ‘0’,

    is_limited tinyint(1) default ‘0’,

    date_created datetime NOT NULL,

    PRIMARY KEY (id),

    KEY initiator_user_id (initiator_user_id),

    KEY friend_user_id (friend_user_id)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_groups (

    id int(11) NOT NULL auto_increment,

    creator_id int(11) NOT NULL,

    name varchar(100) NOT NULL,

    slug varchar(100) NOT NULL,

    description longtext NOT NULL,

    news longtext NOT NULL,

    status varchar(10) NOT NULL default ‘open’,

    is_invitation_only tinyint(1) NOT NULL default ‘0’,

    enable_wire tinyint(1) NOT NULL default ‘1’,

    enable_forum tinyint(1) NOT NULL default ‘1’,

    enable_photos tinyint(1) NOT NULL default ‘1’,

    photos_admin_only tinyint(1) NOT NULL default ‘0’,

    date_created datetime NOT NULL,

    avatar_thumb varchar(250) NOT NULL,

    avatar_full varchar(250) NOT NULL,

    PRIMARY KEY (id),

    KEY creator_id (creator_id),

    KEY status (status),

    KEY is_invitation_only (is_invitation_only)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_groups_groupmeta (

    id int(11) NOT NULL auto_increment,

    group_id int(11) NOT NULL,

    meta_key varchar(255) default NULL,

    meta_value longtext,

    PRIMARY KEY (id),

    KEY group_id (group_id),

    KEY meta_key (meta_key)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_groups_members (

    id int(11) NOT NULL auto_increment,

    group_id int(11) NOT NULL,

    user_id int(11) NOT NULL,

    inviter_id int(11) NOT NULL,

    is_admin tinyint(1) NOT NULL default ‘0’,

    is_mod tinyint(1) NOT NULL default ‘0’,

    user_title varchar(100) NOT NULL,

    date_modified datetime NOT NULL,

    comments longtext NOT NULL,

    is_confirmed tinyint(1) NOT NULL default ‘0’,

    is_banned tinyint(1) NOT NULL default ‘0’,

    invite_sent tinyint(1) NOT NULL default ‘0’,

    PRIMARY KEY (id),

    KEY group_id (group_id),

    KEY is_admin (is_admin),

    KEY is_mod (is_mod),

    KEY user_id (user_id),

    KEY inviter_id (inviter_id),

    KEY is_confirmed (is_confirmed)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_groups_wire (

    id int(11) NOT NULL auto_increment,

    item_id int(11) NOT NULL,

    user_id int(11) NOT NULL,

    content longtext NOT NULL,

    date_posted datetime NOT NULL,

    PRIMARY KEY (id),

    KEY item_id (item_id),

    KEY user_id (user_id)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_messages_messages (

    id int(11) NOT NULL auto_increment,

    sender_id int(11) NOT NULL,

    subject varchar(200) NOT NULL,

    message longtext NOT NULL,

    date_sent datetime NOT NULL,

    message_order int(10) NOT NULL,

    sender_is_group tinyint(1) NOT NULL default ‘0’,

    PRIMARY KEY (id),

    KEY sender_id (sender_id),

    KEY message_order (message_order),

    KEY sender_is_group (sender_is_group)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_messages_notices (

    id int(11) NOT NULL auto_increment,

    subject varchar(200) NOT NULL,

    message longtext NOT NULL,

    date_sent datetime NOT NULL,

    is_active tinyint(1) NOT NULL default ‘0’,

    PRIMARY KEY (id),

    KEY is_active (is_active)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_messages_recipients (

    id int(11) NOT NULL auto_increment,

    user_id int(11) NOT NULL,

    thread_id int(11) NOT NULL,

    sender_only tinyint(1) NOT NULL default ‘0’,

    unread_count int(10) NOT NULL default ‘0’,

    is_deleted tinyint(1) NOT NULL default ‘0’,

    PRIMARY KEY (id),

    KEY user_id (user_id),

    KEY thread_id (thread_id),

    KEY is_deleted (is_deleted),

    KEY sender_only (sender_only),

    KEY unread_count (unread_count)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_messages_threads (

    id int(11) NOT NULL auto_increment,

    message_ids longtext NOT NULL,

    sender_ids longtext NOT NULL,

    first_post_date datetime NOT NULL,

    last_post_date datetime NOT NULL,

    last_message_id int(11) NOT NULL,

    last_sender_id int(11) NOT NULL,

    PRIMARY KEY (id),

    KEY last_message_id (last_message_id),

    KEY last_sender_id (last_sender_id)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_notifications (

    id int(11) NOT NULL auto_increment,

    user_id int(11) NOT NULL,

    item_id int(11) NOT NULL,

    secondary_item_id int(11) default NULL,

    component_name varchar(75) NOT NULL,

    component_action varchar(75) NOT NULL,

    date_notified datetime NOT NULL,

    is_new tinyint(1) NOT NULL,

    PRIMARY KEY (id),

    KEY item_id (item_id),

    KEY secondary_item_id (secondary_item_id),

    KEY user_id (user_id),

    KEY is_new (is_new),

    KEY component_name (component_name),

    KEY component_action (component_action)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_user_blogs (

    id int(11) NOT NULL auto_increment,

    user_id int(11) NOT NULL,

    blog_id int(11) NOT NULL,

    PRIMARY KEY (id),

    KEY user_id (user_id),

    KEY blog_id (blog_id)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_user_blogs_blogmeta (

    id int(11) NOT NULL auto_increment,

    blog_id int(11) NOT NULL,

    meta_key varchar(255) default NULL,

    meta_value longtext,

    PRIMARY KEY (id),

    KEY blog_id (blog_id),

    KEY meta_key (meta_key)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_user_blogs_comments (

    id int(11) NOT NULL auto_increment,

    user_id int(11) NOT NULL,

    blog_id int(11) NOT NULL,

    comment_id int(11) NOT NULL,

    comment_post_id int(11) NOT NULL,

    date_created datetime NOT NULL,

    PRIMARY KEY (id),

    KEY user_id (user_id),

    KEY blog_id (blog_id),

    KEY comment_id (comment_id),

    KEY comment_post_id (comment_post_id)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_user_blogs_posts (

    id int(11) NOT NULL auto_increment,

    user_id int(11) NOT NULL,

    blog_id int(11) NOT NULL,

    post_id int(11) NOT NULL,

    date_created datetime NOT NULL,

    PRIMARY KEY (id),

    KEY user_id (user_id),

    KEY blog_id (blog_id),

    KEY post_id (post_id)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_xprofile_data (

    id int(11) unsigned NOT NULL auto_increment,

    field_id int(11) unsigned NOT NULL,

    user_id int(11) unsigned NOT NULL,

    value longtext NOT NULL,

    last_updated datetime NOT NULL,

    PRIMARY KEY (id),

    KEY field_id (field_id),

    KEY user_id (user_id)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_xprofile_fields (

    id int(11) unsigned NOT NULL auto_increment,

    group_id int(11) unsigned NOT NULL,

    parent_id int(11) unsigned NOT NULL,

    type varchar(150) NOT NULL,

    name varchar(150) NOT NULL,

    description longtext NOT NULL,

    is_required tinyint(1) NOT NULL default ‘0’,

    is_default_option tinyint(1) NOT NULL default ‘0’,

    field_order int(11) NOT NULL default ‘0’,

    option_order int(11) NOT NULL default ‘0’,

    order_by varchar(15) NOT NULL,

    is_public int(2) NOT NULL default ‘1’,

    can_delete tinyint(1) NOT NULL default ‘1’,

    PRIMARY KEY (id),

    KEY group_id (group_id),

    KEY parent_id (parent_id),

    KEY is_public (is_public),

    KEY can_delete (can_delete),

    KEY is_required (is_required)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_xprofile_groups (

    id int(11) unsigned NOT NULL auto_increment,

    name varchar(150) NOT NULL,

    description mediumtext NOT NULL,

    can_delete tinyint(1) NOT NULL,

    PRIMARY KEY (id),

    KEY can_delete (can_delete)

    ) TYPE=MyISAM ;

    CREATE TABLE wp_bp_xprofile_wire (

    id int(11) NOT NULL auto_increment,

    item_id int(11) NOT NULL,

    user_id int(11) NOT NULL,

    content longtext NOT NULL,

    date_posted datetime NOT NULL,

    PRIMARY KEY (id),

    KEY item_id (item_id),

    KEY user_id (user_id)

    ) TYPE=MyISAM ;

    7) Replace site name and site description and insert to database:

    INSERT INTO wp_bp_user_blogs VALUES (1, 1, 1);

    INSERT INTO wp_bp_user_blogs_blogmeta VALUES (1, 1, ‘name’, ‘site Name’);

    INSERT INTO wp_bp_user_blogs_blogmeta VALUES (2, 1, ‘description’, ‘Site Description’);

    INSERT INTO wp_bp_user_blogs_blogmeta VALUES (3, 1, ‘last_activity’, ‘1’);

    INSERT INTO wp_bp_xprofile_fields VALUES (1, 1, 0, ‘textbox’, ‘Full Name’, ”, 1, 0, 1, 0, ”, 1, 0);

    INSERT INTO wp_bp_xprofile_groups VALUES (1, ‘Base’, ”, 0);

    8) Upload BuddyPress and install it.

    Now you can create profiles & groups.

    life2000
    Participant

    I would like to avoid WordPress’s back-end and have my users go straight to Buddypress profile page or another customized page.

    How can I direct the longin page to any other page but WordPress back-end?

    Thank you so much.

    Vida

    Scotm
    Participant

    Has anyone tried TwitterDash plugin seen here: https://wordpress.org/extend/plugins/twitterdash/?

    This successfully places your Twitter timeline on the dashboard in wpmu 2.7/buddypress beta2 and enables you to post updates to Twitter from a post form. Could this not be modified to appear in the users’ Buddypress profile?

    Thx

    #3314
    neuromancer2701
    Participant

    I have been using Dyndns for my buddypress site. I had to change the dynamic dns they gave me and now the my site is totally unusable. I can get a messed up front page but all the links are still trying to use the old one.

    I figure I have to change something in the mysql db does anyone have good directions on how to update the url?

    Thanks

    #37110
    gpo1
    Participant

    There is a wordpress lifestream that can (not tested) display most social network like facebook.

    And it uses simplepie maybe if it could be adapted for BP?

    http://www.ibegin.com/labs/wp-lifestream/

    #37101
    svenwiesner
    Participant

    thank you!

    6) Delete the tables that are in format of wp_user_X_activity ….. Not wp_users, just those specific to BP

    – i found nothing like this in my wp_users, running a fresh installation for testing.

    #37097
    royak
    Member

    Hi zenseeker,

    You have the following error message on http://www.artistswap.com:

    Problem in wp-config.php – $base is set to BASE when it should be the path like “/” or “/blogs/”! Please fix it!

    In my opinion you are trying to install WordPress Mu manually , by editing wp-config.php file (just like WordPress) and I think that it’s not really a good method.

    #3304
    Decisionc
    Participant

    Hello,

    I have a simple question that I have spent the last hour trying to find a solution for.

    How do I change the default emails sent to new users who are only creating user accounts? (I have the “Only user account can be created.” setting enabled – I don’t want new users to create new blogs)

    I know that there is a “Welcome Email” setting in the Site Admin -> Site Options section. When I change these settings, the welcome email doesn’t change. That means, this setting is for new blog users I believe, and not new user accounts.

    Does that mean I have to change something in the core files??????

    I get this welcome email after the activation email when creating new user accounts (which I can’t change):

    Dear User,

    Your new account is setup.

    You can log in with the following information:

    Username: testingaccount

    Password: *******

    Thanks!

    –The WordPress Team

    #3303
    #37085

    In reply to: Facebook Integration?

    gpo1
    Participant

    Maybe you could adapt this FB connect

    https://wordpress.org/extend/plugins/wp-facebookconnect/

    #3300
    markb1439
    Member

    Are there any reliable Facebook integration components that work with WPMU and BuddyPress? Currently, the lack of FB integration is a dealbreaker for me. I’m setting up some niche social networks, and my research has shown that I will be a lot more successful if I integrate with FB. In surveys and focus groups, most people said they already spend too much time on FB, and they would not consider joining another social network unless it integrated smoothly with FB (so they could streamline things and not have to jump around).

    Other social networking platforms have good FB integration, especially Drupal, which enables you to publish your Drupal site as an FB app. Elgg also has some good good FB plug-ins. Ironically, WordPress also has good FB integration, but those components don’t seem to work with WPMU and/or BuddyPress (unless I’m mistaken about some of them).

    I’ll be starting to build my site next week, and I’d love to do it with WPMU/BuddyPress. But, without great FB integration, I can’t. My business partners won’t allow it, and I agree with them.

    Hopefully I’m wrong and there are Facebook components that will work in WPMU/BuddyPress. If someone can point me to any such things, I would greatly appreciate it.

Viewing 25 results - 32,251 through 32,275 (of 32,678 total)
Skip to toolbar