Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,101 through 5,125 (of 32,690 total)
  • Author
    Search Results
  • samurdhilbk
    Participant

    When I try to go to the Register page while already logged-in, BuddyPress redirects to the home page. How can I change where it redirects to, in such an occasion?

    WordPress version – 4.7.2
    BuddyPress version – 2.7.4

    #263358
    maccast
    Participant

    Thanks @shanebp. Yes for sure we would want to avoid the scenario where we are “re-uploading” the default choosen image for each user. I guess I was sort of hoping there was a way in the uploader to just offer them to choose images from our custom library. Sort of like when you use the WordPress media uploader and can choose to pick from the library limiting it to “uploaded to this post”. Overloading the template and using our own custom image picker will work fine. By it being stored in another custom user meta data field it does add some complexity in figuring out how to decide which cover image to use. Meaning that if they upload an image and have also chosen one of our images I need to decide which image takes priority. I’m not sure how I’d do that since meta data fields don;t maintain an “updated” timestamp.

    #263307
    rgrober
    Participant

    Thank you very much for the reply @shanebp!

    I found this on the member-header.php file.

    On a member’s profile page, I’m attempting to insert an element before the user’s name (directly before, not above), but I’m not sure which hook I’m supposed to use.

    I’m successfully adding content after/below the User’s name by using bp_before_member_header_meta

    Do plugins and themes create custom hooks in addition to the standard wordpress hooks?

    Again, I really, really appreciate your help!

    #263297
    ptangen
    Participant

    I have been trying to get sweet date working. It requires buddy press so I have tried to install the new version of that – 2.7.4, I believe. After it is activated, I get the white screen of death. After enabling debugging, I get the message below after activating buddy press. I switched back to the twenty fifteen theme and the behavior is the same.

    Any ideas about how to get around this issue?

    Thanks,
    Paul

    Fatal error: Uncaught Error: [] operator not supported for strings in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php:281 Stack trace: #0 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php(298): BP_Activity_Component->setup_admin_bar(”) #1 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #2 /Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #3 /Applications/MAMP/htdocs/wordpress/wp-content/plugins/buddypress/bp-core/bp-core-dependency.php(143): do_action(‘bp_setup_admin_…’) #4 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php(298): bp_setup_admin_bar(Object(WP_Admin_Bar)) #5 /Applications/MAMP/htdocs/wordpress/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array) #6 /Applications/MAMP/htdocs/wordpress/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #7 /Applications/MAMP/htdocs/wordpress/wp-includes in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/buddypress/bp-activity/classes/class-bp-activity-component.php on line 281

    #263290
    rebekahltc
    Participant

    Hello,

    I’m so sorry to ask, and I’ve tried so hard to get to the bottom of this myself. I’ve come to the end of my knowledge and our site is launching tomorrow.

    Background – I work for a charity which puts older people in schools to help with reading. We’re poorly funded, and creation of the site has fallen to me. As our audience is older people, often reluctant with new technology, I need this to be as user friendly as possible.

    I’m running latest version of WordPress, latest BuddyPress, with ColorMag as a theme (I have a child theme running)

    My problem is the groups page – it’s not presently as clearly as I’d like. My weak spot is CSS, I’m a bit clueless.

    When I go onto the page – the text for Group Admins/Group Mods is massive, meaning the user need to scroll down to see the content for the group. I’ve used an element inspector and I can see its H2, but where to change it and how? It’s way out of proportion.

    The other thing on my wish list, is to add a colour behind the group menu (Home/Forum/Members etc) – I’d like this to appear as a nav bar, to make it clearer, but I don’t know how.

    I would so appreciate some help. We’re on such a shoe-string that development ust fall to little old me, and although I’ve done pretty well so far, I’m stumped. I’ve searched and fiddled with it to no avail.

    Thanks so much in advance for any pointers.

    #263286
    shanebp
    Moderator

    In which file are you seeing bp_before_displayed_user_fullname ?

    It’s probably a wordpress do_action hook.
    https://developer.wordpress.org/reference/functions/do_action/

    #263281
    danbp
    Participant

    You can activate wp_debug mode.

    #263280
    danbp
    Participant

    Hi,

    BuddyPress follow your wordpress registration settings. Some other details can be found here:

    Registration

    Modifying the Registration Form

    #263277
    Glowball
    Participant

    I’ve just installed BuddyPress 2.7.4 on WordPress 4.7.2 and I have a question about functionality. I have this configuration working and I was hoping to replace the standard user capabilities with BuddyPress.

    1. There is an Event custom post type
    2. There is a Member custom post type, and each Member has a single post associated with them
    3. Each Event will have 1 to many Members, and each Member will have attended 1 to many Events
    4. The bridge between Events and Members is another custom post type, Attendees

    I’d like to allow Members (WP Contributors) to have the additional functionality that BuddyPress provides. In addition, I’d like to add WP Subscribers to the list of BuddyPress users but they will not have the additional Member post or any of the associations I mentioned above. They’d be limited to BuddyPress functionality.

    Is this possible? Thanks!

    #263221
    danbp
    Participant

    Hum, i have not noticed such an issue on any of my BP sites, what ever theme i use…
    Have you tested with all plugins deactivated ?

    Afaik you have to debug properly.
    Use WP and BP only, with Twenty Sixteen and wp_debug activated.

    https://codex.wordpress.org/Debugging_in_WordPress

    Read also here and give details.

    #263218
    danbp
    Participant

    @deunit,

    it’s not an issue but eventually an enhancement.
    As nothing new appeared in the plugin sphere, and if you don’t know further, follow Shane’s recommendation.

    To monetize your BP, perhaps you can consider MyCred ?

    Closing this tread now.

    #263217
    danbp
    Participant

    Hi,

    you have many errors in your code.

    – in the css you declare a class (a dot ) while you use an ID (#) in the html
    – in the code, you omit to close a p tag, and you need also a user_id and a way to get the displayed user (WordPress) role. Both are missing.

    Here, the whole thing corrected.
    – we don’t need a extra div, as we only add a p tag in an existing div.
    – the code to get the role holds in 2 small lines.

    The CSS (goes into child theme’s style.css)

    #item-header-avatar p {
    margin: auto;
    border:1px solid green;
    background: yellow;
    width: 110px;
    text-transform: capitalize;
    }

    The html and php for the template (starts aroud line 24 of cover-image-header.php)

    <div id="item-header-avatar">
    	<a href="<?php bp_displayed_user_link(); ?>">
    
    	<?php bp_displayed_user_avatar( 'type=full' ); ?>
    	</a>
    
    	<?php
    	$user = new WP_User( bp_displayed_user_id() );
    	echo '<p>'. $user->roles[0] .'</p>';
    	?>			
    	
    </div><!-- #item-header-avatar -->

    Do it simple ! 😉

    #263216
    Masoud
    Participant

    hi,
    i am using latest version of wordpress and buddypress.
    in site, i want the users to know who is admin of website.
    so i decided to create a small box under profile picture, which should say the current user role.
    (just like the one, here on buddypress)(you can see my user role as Member)(Participant)(Moderator)…

    1 – i created a css property :
    .buddypress-under-avatar-img-txt {height:auto;width:90px;background:green;border:1px;color:black;padding-bottom:3px;text-align:center;}

    2 – copy/paste ” cover-image-header.php ” file
    From:
    wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single
    To:
    wp-content/themes/my-theme/buddypress/members/single

    3 – and added my code on line 27:

    <?php bp_displayed_user_avatar( 'type=full' ); ?>
       <div id="buddypress-under-avatar-img-txt">
         <?php if (current_user_can('administrator')) ?>
           <br /><p <?php printf ('Admin of site'); ?> </p>
        </div>

    but the box is not showing.
    can anyone please help me on this? which part of my code is wrong? how can i correct it?

    any help would be appreciated.

    #263214
    netixel
    Participant

    Hi everybody,

    I use the last version of WordPress and Buddypress and this is the issue reported :

    When I connect to my website via Facebook sometimes I’m connected and sometimes I’m not and I am forced to refresh the page so that to be connected…

    This the answer of my author theme : This usually happens because of caching, unfortunately there is not much we can do about it as we’re using BuddyPress member system for everything.

    Thanks for your help.
    Chris

    #263207
    kairei
    Participant

    I have a Japanese site that uses an IDN (International Domain Name) with Unicode characters. BuddyPress works fine, except when emails go out that contain links back to the site, such as {{{activate.url}}} the URL that shows up in the email is the Punycode version of the domain, not the Unicode characters (all Unicode IDNs have an ASCII encoding called “Punycode”). This isn’t recognizable to the end user and even worse, some email clients (Outlook in my case) display a security warning about the IDN link suggesting it might be a suspicious link – not exactly the experience I want for people just signing up for my site.

    I want to try making activate.url use the Unicode characters to see if that makes the warning go away. If that doesn’t work I’d like to replace the Punycode url with an ascii domain that redirects to the Unicode one so at least the warning goes away. Is there any way to (1) modify how activate.url behaves, (2) create custom tokens, or (3) post process the whole email text after it is built so I can just find/replace the Punycode domain text?

    In my research I don’t see any way to do any of the above. I saw there are some hooks before/after the header and footer are created but not sure if I have access to the HTML or text email content. I’d think 3 should be possible but I don’t know that much about WordPress/BuddyPress or PHP to even know where to start.

    sugury
    Participant

    Hello,

    As far as I understand on the learndash edit group section in wordpress I can select which member types I add automatically to that group.

    Is it correct?

    A group I created says that has 7 members but only 2 have access to it.
    Am I missing something?

    #263178
    urglik1
    Participant

    rather a bummer…
    i’m running wordpress 4.7, buddypress 2.7.4.
    my theme is klean, though the same issue exists with
    twenty seventeen theme.

    any cover photo plugin i’ve tried does not help

    does this say anything to anyone?

    thank you

    #263176
    ecodemy
    Participant

    I have a problem concerning Wishlist Member and Buddpress.
    The custom post types forums, topics and replies are protected by wishlistmember and the respective WLM levels are applied to them. Regarding general forums (bbPress) the pagination and protection works very well as expected but not in Buddypress group forums.

    Unfortunately members can not access the second or any other than the first page of a group forum topic (Buddypress). If a member (who has no admin rights) clicks on [2] or [->] of the pagination, they always get the first page displayed although the permalink is correct and the URL states that they are apperantly on page 2.

    Group forum pagination

    As soon as I deactivate wishlistmember, the pagination in the group forums works as expected and all pages of a topic can be accessed.

    As group forum is a key feature in my closed community, I kindly request help to get this fixed.

    I tested it on a subdomain with Twenty sixteen and all plugins disabled except:
    WordPress 4.7.1
    bbPress 2.5.12
    BuddyPress 2.7.4
    WishList Member 2.91.3153

    I appriciate your afforts and any information I can pass to the WLM developers why this isn’t working as it should be.

    Thank you very much

    Philipp

    #263175
    shanebp
    Moderator

    Please use the support forum for that plugin –
    https://wordpress.org/support/plugin/bp-registration-options

    suris
    Participant

    Buddypress version: 2.3.2.1
    Wordpress version: 4.2.10
    Theme: Kleo

    I’m using the activity loop for show the groups activity_update with this parameters:


    $params = array(
    'scope' => 'groups',
    'object' => 'groups',
    'action' => 'activity_update'
    );

    if ( bp_has_activities( bp_ajax_querystring( 'activity' ). '&' .http_build_query($params) ) ) :

    All works ok, but now i want to show only one group per comment.
    In other words, show the last activity update of every group and no repeat groups in a loop.

    ¿How can i do that?

    Thank’s

    #263163

    In reply to: Update user Role?

    danbp
    Participant

    Hi,

    guess you confuse member types and user roles. MT where introduced to allow site owners to “categorize” their users. WP user role is slightly different, as it defines what user can do on a site, a kind of access management. So in brief, roles are independent from BP member types.

    MT and roles are also stored in different tables: MT in wp_terms and roles in wp_usermeta – with the denomination of wp_capabilities…

    By default, roles are automatically attibuted at registration level or manually by a site admin. Member types follow the same logic, under condition the xprofile component is activate.

    Now the question is: what do you want to do exactly after registration ? Change the role or change the type ?

    Roles can be affected from the admin user list page. I would recommand to not modify this behave at registration level, to avoid abuse by promoting fake user for example.

    MT can be changed from the xprofile admin interface. There is also this plugin for a more in depth management.

    Using a custom function is of course possible. But just to clarify, the one you give as example let’s suppose you have a need for bulk action over user status. Automated task is well and good, but in this case, why not attribute a higher role or type to all by default ?
    And if it is not intended for “all” (what i suppose is the case), do you have so many exception that you need such a function ? Can’t you do that manually ? Just my 2 cents. 😉

    #263151
    #263145
    shanebp
    Moderator

    Did you try using the meta function?
    https://codex.wordpress.org/Function_Reference/get_user_meta

    And you don’t need user_can.
    Just request the meta and show if it exists.

    #263143
    tanxim
    Participant

    This function of a plugin

    function wpjj_run_script() {
    $post_id = get_the_id();
    $file_url = get_post_meta($post_id, ‘custom_file’, true );
    $site_parameters = array(
    ‘file_url’ => $file_url,
    ‘plugin_url’ => plugins_url(),
    ‘theme_directory’ => get_template_directory_uri(),
    ‘post_id’ => $post_id,
    );
    wp_localize_script( ‘customjs’, ‘wpjj_var’, $site_parameters );
    }
    add_action( ‘wp_footer’ , ‘wpvr_run_script’ );

    add_action( ‘comment_form_logged_in_after’, ‘additional_fields’ );
    add_action( ‘comment_form_after_fields’, ‘additional_fields’ );

    Customize the wordpress default comment system
    what can i do to run the same function so it can replace buddypress default comment system

    I am a newbie in php
    Thanks in advance

Viewing 25 results - 5,101 through 5,125 (of 32,690 total)
Skip to toolbar