Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,526 through 5,550 (of 22,687 total)
  • Author
    Search Results
  • shanebp
    Moderator

    also, the 1 in this:
    add_action( 'bp_core_activated_user', 'send_message_to_new_member', 1 );

    Is the priority, not the number of args.

    https://codex.wordpress.org/Function_Reference/add_action

    #243350
    danbp
    Participant

    BP’s registration template is in: https://buddypress.trac.wordpress.org/browser/tags/2.3.2/src/bp-templates/bp-legacy/buddypress/members/register.php

    Copy it to your child-theme, /your-theme/buddypress/members/register.php, and make your change in that copy.

    In some case, you could also use bp_get_template_part filter.

    #243328

    In reply to: Photo upload

    danbp
    Participant

    if the developer ceases to update them This problem is the same for official or unofficial plugins.

    Brajesh is a long year and well knowed buddypress plugin developper, you can trust his awesome work !
    https://profiles.wordpress.org/sbrajesh#content-plugins

    #243322
    danbp
    Participant

    Here an example for profile field lenght with some comments.

    function bpfr_custom_textfield_length() {	
    	
    	//Check if user is logged in & if xprofile component is activated
    	if ( is_user_logged_in() && bp_is_active( 'xprofile' ) ) :	
    	$my_custom_textfield = bp_get_member_profile_data( 'field=Brief Biography&user_id='.bp_get_member_user_id() );	
    	
    	/* 
    	 * The length = number of characters, not words.
    	 * Set the number of caracters to show. 
    	 * The 3 dots are the appended text ending the excerpt.
    	 * Don't remove the quotes if you change this
    	 * BuddyPress 2.1 will add new class and id for custom fields. 
    	 * The span can be omited to style this part. See ticket #5741
    	 */
    	if ( strlen($my_custom_textfield) > 20) :  //adjust to your need
    	$my_custom_textfield = substr($my_custom_textfield, 20).'...'; //adjust to your need
    	endif;
    	// uncomment the following line to get a span around the displayed field content
    	// echo '<span class="short-custom">'. $my_custom_textfield; .'</span>';
    	// comment the following line if you use the span
    	echo $my_custom_textfield;	
    	
    	endif; // is_user_logged_in
    }
    add_action( 'bp_directory_members_item', 'bpfr_custom_textfield_length' );

    Ticket #5741

    #243305
    deanljbirch
    Participant

    Thank you, the plugin I used to embed the nocaptcha recaptcha is “Are you robot google recaptcha for wordpress” available on the WP Plugin Directory https://wordpress.org/plugins/are-you-robot-recaptcha/

    #243304

    In reply to: Photo upload

    Ricsca2
    Participant

    this latest model seems the most comprehensive. because it is not about wordpress.org? I’m afraid to use extensions unofficial because if the developer ceases to update them as is?

    danbp
    Participant

    @ch1n3s3b0y,

    A username is not a real name and wordpress use only username, email and password (the only real security point) to allow access.
    And the default behavior of WordPress is to set the nicename equal to the username. So, where is the security issue ?

    If you’re affraid by the Name field coming with BuddyPress during registration, rename it to Pseudonyme and you’re done. The field must contain a value, which can be first name, last name or whatever. The value is mandatory, not the name as name… ch1n3s3b0y is certainly not your name !

    You’re asking to replace the username by a another value collected with the same register form. Do you think that such other field has less importance in regard of security ? Why would the username be critical and the custom field not ?

    You can even disallow dashboard access to your subscriber, so they never can change anything outside of what is on hand on front-end profile management.

    Please read here to calm you down (hopefully) πŸ™‚

    Why Showing The WordPress Username Is Not A Security Risk

    #243253
    danbp
    Participant

    Reference file: buddypress\bp-groups\bp-groups-widgets.php

    To make your own version of the widget: https://codex.wordpress.org/Widgets_API

    HTML definition target="_blank"

    Or maybe this plugin ?
    https://wordpress.org/plugins/bp-extend-widgets/

    #243249
    danbp
    Participant

    @sismis,

    Howdy [username] is part of WordPress Toolbar. When BP is activated, it add a sub-menu to this menu.

    If you want it elswhere, it’s not really possible as the BP part of it was written to go to the admin_bar only.

    To get a similar menu, you simply add buddypress menu to your theme main menu (explained on above codex link). But this menu will be static and you cant get same details.

    Another solution is to recode that menu, so you can add it with a filter function to wp_nav_menu, which handles the main menu or the header menu.

    To do this, you can use a new Walker Class extention or the existing filter. Possibly also some other ways to do this, but i don’t know them.

    To remove the Howdy menu and the attached BuddyPress Profile sub menu from the Toolbar, you can use this snippet (in functions.php or bp-custom.php):

    function bpfr_remove_my_account_menu() {  
        global $wp_admin_bar;  
        $wp_admin_bar->remove_menu('my-account');  
    }  
    add_action( 'wp_before_admin_bar_render', 'bpfr_remove_my_account_menu' );

    Codex References
    https://codex.wordpress.org/Function_Reference/wp_nav_menu
    https://codex.wordpress.org/Navigation_Menus

    djsteveb
    Participant

    I would GUESS that you could edit that plugin to add in the code as mentioned above https://buddypress.org/support/topic/how-users-can-link-to-their-profile/

    Or ask the plugin author for clarification.

    I stopped using that plugin when they added the extra security stuff for strong passwords that broke things for me.. however the plugin’s support page is pretty active, and given that he/she has options for redirecting users after login based on role – there may be an easy way to add such functionality to the plugin by asking the plugin author.

    There is a bit of info with some of the functions here ->https://codex.buddypress.org/themes/members-navigation-menus/

    I see others are asking about bp xprofile fields and such within the them my login support forum,
    ( wordpress.org/support/plugin/theme-my-login )
    so hopefully this plugin author will add more and more BP options – I enjoyed using that plugin some time ago – hope it continues to mature.

    #243229
    djsteveb
    Participant
    danbp
    Participant

    @djsteveb +1 !


    @atfpodcast
    ,

    – you go to your menu dashboard and select the menu of your theme (if exist, it should be there)
    – you open screen option (top right) on menu admin and select BuddyPress
    – you select profile in the left column where BuddyPress appeared and give it a title XYZ
    – save and you’re done !

    Now you have a XYZ button near Home, About and whatever is already on your theme menu.
    Doc is here https://codex.buddypress.org/getting-started/buddypress-links-in-wordpress-menus/

    #243179
    djsteveb
    Participant

    first test with default 2014 or 2015 theme – and all other plugins disabled except bp – does it work then? If not…

    previous forum posts maybe helpful –
    (let us know what you find works!)

    With a new bp setup I usually check these things first if email are not seeming to send or go through ->https://buddypress.org/support/topic/activation-e-mail-failing-to-send/#post-241079 (From a recent similar thread)

    Better to check the basics before digging into whether it’s a email header config on the server, php settings limiting functionality – need for wp to send as smtp plugin – something just with gmail blackhole filtering –

    so many different things can affect wp sending, bp sending, your web serving sending email as php, or an email service accepting something that was sent, much less put in the actual inbox instead of junk mail / promotions box or whatever…

    =-=- also from danbp about 8 months ago:
    When encountering a registration problem, first thing to do is to test your install without any plugins and one of WP’s Twenty default theme. Ensure that your site send correctly emails. Before activating any plugin, your base WP install must work.

    Once WP is OK – you can install BuddyPress and check your permalinks. Pretty permalinks must be activated to get the plugin working correctly.

    This point is important, especially if you have redirection issues after BP is activated.

    Second point to check is your theme installation.

    Proceeding like this will help you to isolate easely the culprit. If:
    – WP install: OK
    – BP install: OK
    – theme activation: problem

    So you know here the problem comes from.

    While testing your install, you can activate wp_debug (set to TRUE) in the wp-config file. This can give you a lot of information about conflict and/or errors.

    Just keep in mind that these information have 2 levels of importance: notice and warning.
    While notice are generally harmless, warnings should be taken seriously in account and solved.

    If WP is the problem, see first the wordPress support
    If it’s BuddyPress, see the BP support
    If it’s the theme, see the theme support
    If it’s any other plugin, see first the plugin support.

    #243157
    danbp
    Participant

    hi @kostasbarkas30,

    i even tried to copy some functions from bp default theme in my functions php theme but still nothing.

    Revert back to the original install by deleting that custom work. then follow @djsteveb advice.

    Keep in mind that you should never install something on WordPRess before WP is working correctly. Same thing when you add, let’s say BuddyPress. In this case, WP and BP should work flawlessly together. Once you hace the built your house, you can add the wallpaper. OMG ! Like IRL ! πŸ˜‰

    That way, it’s much easier to debug if an issue occurs. 1 is ok, add 2. 1 & 2 are ok. Add 3. 1 & 2 & 3 are ok, and so on.

    Note also that BP-Default theme is no more maintained and is only in for backward compatibility. BuddyPress works on slightly any theme !

    BP has no theme, just some templates with minimal styles. This stuff is stored in bp-templates/bp-legacy/buddypress/. If you need to modify some theme functions, you do it from within a child-theme, in which you copy what you want to change from bp-legacy.

    All this and more, is explained on Codex. Don’t hesitate to read through it, if you’re new to BP !

    We all started a day. Rome wasn’t built in one day. It’s a Long Way to Tipperary . Facebook is unique and BuddyPress is great. Hold on, it’s just the begin ! πŸ™‚

    #243147
    danbp
    Participant

    @seore, please search a bit before asking ! For example “add profile tab to nav bar”
    https://buddypress.org/support/search/add+profile+tab+to+nav+bar/

    BP use slgihtly same technique as WordPress to build menus.
    https://codex.wordpress.org/Function_Reference/wp_nav_menu

    #243135
    Roger Coathup
    Participant

    Hi Ollie,

    this is all achievable with a custom build on top of BuddyPress and WordPress.

    We’ve built similar marketplace type sites on the platform in the past. BP is a useful base for the profiles in this scenario, but also the messaging, and the activity items (which can help with audit trails and transaction history).

    However, 50 hours is not a lot for a site build — a basic well designed & written portfolio site can take that in excess of that. Once you add custom functionality, the multiple screens, the security and transactional aspects of a marketplace site — you’ll be considerably more.

    When looking to engage a developer bear in mind you will get a better quality site in less time from expert developers. Of course, you’ll also be paying higher hourly rates for their expertise. An expert should also advise you at the start whether what you want to achieve is reasonable within your budget.

    Suggest you should post this on the job board along with contact details.

    Roger

    #243132
    danbp
    Participant

    No thank you ! If you need someone to get the job, hire a dev. You could post at the official WordPress Jobs Board at https://jobs.wordpress.net and/or here at https://buddypress.org/support/forum/plugin-forums/bp-jobs-board/

    atfpodcast
    Participant

    Yes sir the bar is there when are not logged on. I added show_admin_bar( true ); in a function plugin and that did not work. I tried the 2014 theme with the same results. no tool bar. THe one i deactivated was the one from stranger studios hid admin bar to non admins and and I deactivated that.
    https://wordpress.org/plugins/hide-admin-bar-from-non-admins/

    #243100
    danbp
    Participant

    Please use the code button when you publish code !

    First, you can’t use a function name twice. (setup_globals)
    Second, it’s more easier to do after reading the correct documentation:

    bp_notifications_add_notification

    And to find some answers once you have this information:
    http://stackoverflow.com/questions/23148948/add-a-custom-notification-in-buddypress

    The dev discussion around the new notification system:
    https://buddypress.trac.wordpress.org/ticket/5148

    And the appropriate filter bp_notifications_get_notifications_for_user which let non BP component hook into notification:
    https://buddypress.trac.wordpress.org/changeset/7578

    #243099
    Henry Wright
    Moderator

    You could try looking through the WordPress Plugin Directory first to see if any of the functionality you need has already been made available. Once you’ve exhausted the free options, recalculate your development requirements and hopefully the developer effort needed will have reduced somewhat.

    #243098
    danbp
    Participant

    Hi,

    i’m not familiar with bp-attachment yet, so sorry in advance.
    First, I would check that BP is installed and setup correctly and test it with Twenty something theme, and all other plugins deactivated.

    An error occurred. Please try again later. is only used in one place: bp-core/bp-core-attachment.php
    This error is related to bp_attachments_get_plupload_default_settings function, which controls some default settings to get plupload to work on your install.

    Read through it to see what is checked by this function, and maybe you will have an idea of which plugin or theme is messing up the upload process. It’s probably nothing important (pictures are uploaded), but you see that message, which is weird, of course. A little js conflict perhaps. Or a plugin with some bad code or not correctly updated…

    The other reason i tell you to re-check BP settings, is this URL to a profile.
    http://www.adventureridingnz.co.nz/members/members-2/martin_worswick/
    Can you explain why you use /members/members-2/ and how you built it ?

    Usually, a profile URL looks like this: `http://www.adventureridingnz.co.nz/members/martin_worswick/
    `
    As the attachment API use js, it is possible that the uploader doesn’t find the correct way to end the upload, or something like that, due to this URL.

    Headlights call from a Guzzi. πŸ˜‰

    #243094
    djsteveb
    Participant

    @olliecard – I’m sure there are many ways to accomplish this, however I am not sure that buddypress is easily adaptable to some of the requirements – privacy for certain things, restricting profiles and such. I hope someone can chime in an share methods for using BP in this way, I’d love to see those options.

    You could play with things like s2member for some restrictions and payments even – but restricting BP stuff is a challenge I think. Using other member and restrictions plugins with regular wordpress is pretty solid.

    I believe you may be able to achieve your goal using some other WP plugins – there are many others that get into profiles, membership, restrictions, classifieds and such.

    It might be 50 hours of work to mash all the various components together in a perfect way – and if so you may want to look at what wpmudev has withe their “membership 2” plugin and others that mix with it. wpmudev peeps had quick answers and solutions for something similar I posted about there years ago. I think their prices are double what they should be – but the support there exists, and if you are looking at a serious project it may be best to get into a professional support system like that.

    Of course you would mix and match some of the free plugins in the wp-repo and probably come out with something – press permit, profile plugins, s2member – custom fields, tweak some themes – maybe even go WP-MS multi site for some semi-separated static things – and you may achieve what you are describing as well.

    I’d love to see others post about other options, and I’d love to see BP have more fine grained control over things – it’s moving in that direction with things like user levels and such so the future with bp is possible, I just don’t think it’s there yet, and likely won’t be playing well with others anytime soon – and getting code help with BP – even if you offer to pay for it – is not the easiest thing in the world.

    2 cents from a random user – not an expert

    #243091

    In reply to: Photo upload

    chicho1969
    Participant

    You may try this pluging: BuddyPress Activity Plus, I am pretty sure that it doews what you are looking for. link; https://wordpress.org/plugins/buddypress-activity-plus/

    #243090
    Jenny
    Participant

    Hi there,
    Unfortunately the website I used wp album plus on, is my client’s private social networking website,by invitation only, so I can’t share his website link here.

    However I assure you that it does indeed work properly with Buddypress. If you see this support thread below, I added a tinypic link in one of the posts there, which shows a screenshot of how albums look on the front end, using buddypress and wp photo album plus plugin. If you use the echo code in this support thread, then it will work with Buddypress, no problem.

    https://wordpress.org/support/topic/option-to-upload-create-edit-or-delete-albums-not-showing-on-frontend?replies=3

    #243087
    chicho1969
    Participant

    Ok, now I am trying this:

    //function class
    
    function setup_globals( $args = array() ) {
    global $bp;
    $sr_notifications_test_slug = 'sr_notifications_test';
    parent::setup_globals( array(
    'id' => 'sr_notifications_test',
    'slug' => $sr_notifications_test_slug,
    'notification_callback' => array( $this, 'sr_format_notifications_test' )
    ) );
    /* Register this in the active components array */
    $bp->active_components[$sr_notifications_test_slug] = 'sr_notifications_test';
    // do_action( 'setup_globals' );
    }
    
    //format notofication
    function sr_format_notifications_test( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    switch ( $action ) {
    case 'my_test':
    $link = get_permalink( $item_id );
    $text = 'Test Notification';
    
    $return = apply_filters( $filter, array(
    'text' => $text,
    'link' => $link
    ), $link, (int) $total_items, $text, $link, $item_id, $secondary_item_id );
    break;
    }
    
    do_action( 'sr_format_notifications_test', $action, $item_id, $secondary_item_id, $total_items );
    return $return;
    }
    
    //Notification added to DB:
    bp_notifications_add_notification( array(
    'user_id' => $user_id,
    'item_id' => $activity->id,
    'secondary_item_id' => $activity->user_id,
    'component_name' => buddypress()->activity->id,
    'component_action' => 'my_test',
    'date_notified' => bp_core_current_time(),
    'is_new' => 1
    
    ) );
    print_r ($bp->active_components[$sr_notifications_test_slug]);

    and this is the error I have: (still the same)

    
    WordPress database error: [Table 'WP_db_funs.n' doesn't exist]
    SELECT * FROM n WHERE component_name IN ('activity') AND component_action IN ('my_test') AND is_new = 1
    WordPress database error: [Incorrect table name ”]
    INSERT INTO (user_id,item_id,secondary_item_id,component_name,component_action,date_notified,is_new) VALUES (0,0,0,'activity','my_test','2015-08-12 15:57:21β€²,1)

    Please if anybody Knows about this I will apreciate any help πŸ™

    Table ‘WP_db_funs.n’ doesn’t exist how come?? table n ??

Viewing 25 results - 5,526 through 5,550 (of 22,687 total)
Skip to toolbar