Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 5,401 through 5,425 (of 22,687 total)
  • Author
    Search Results
  • #244560
    shanebp
    Moderator

    – Is it possible as admin to change their username in the back office?

    No, WordPress does not allow it. Usernames must be unique.

    – Why the dot/period or special characters are allow in the username during the registration? and how i can block this?

    There are various methods to restrict the characters allowed in a username when registering. Here’s one example:
    http://wordpress.stackexchange.com/questions/124697/limit-username-to-specific-characters-a-z-and-0-9

    #244556
    shanebp
    Moderator

    Try adding a call to wp_mail.
    There are several examples of that in codebase.
    For example, see function bp_activity_at_message_notification
    in buddypress\bp-activity\bp-activity-notifications.php

    #244546
    danbp
    Participant

    @djsteveb

    i wrote: To make it work with BP, you add a copy of the original page.php of 2014 and rename it buddypress.php. And you add the condition into that copy.

    I’m not a 2014 specialist and never liked that theme with BuddyPress. The’re so many other out to discover, easy to use and configure, that i wouldn’t loose my (at least) time with it.
    2015 is already avaible and 2016 too, though 2014 is a dynosaur now. Beat’em ! 😉

    #244530
    djsteveb
    Participant

    @venutius – yeah wordpress is weird in that it uses a “theme” to handle how the backend admin dashboard does things, and I have no idea where those things are decided in the backend – but indeed it’s kind of weird how that is basically hidden from the backend – no notice of “your current theme is enhancing how the admin dashboard looks / behaves”

    #244529
    djsteveb
    Participant

    @yespapa – there have been several posts in the forums about restricting views of various pages based upon logged in / logged out. I can’t remember any of the solutions, if there were any at this moment.

    I think you need to establish first which pages will be viewable by public / not viewable unless logged in – and make sure your language is correct / thorough.

    eg – in wordpress world “pages” are like “static pages” – they end up in nav menus, not in the blog “loop” – etc.. blog posts are posts.. and in bp world stuff like profiles, groups, are kind of “pseudo pages” – which are not easy to hide with standard user role / permission plugins like “press permit core” – and I’m not sure if s2member has started to be able to lockdown bp’s psuedo pages..

    there are some details posted by others in the other threads that have alredy discussed this kind of thing.

    #244526
    danbp
    Participant

    @douglaslovin83

    You’re lucky !
    Download the latest version of the plugin, as it seems that this is now in since 101 minutes:
    Added support for Buddypress custom profile fields

    https://plugins.trac.wordpress.org/browser/wp-auto-affiliate-links/

    danbp
    Participant

    WordPress is the software behind buddyPress.
    If you need custom roles&capabilities on your site, you can add roles programatically as explained on your mentionned tutorial. If it works, site admin can attribute one of the additionnal role to members, within admin.

    BuddyPress, at this time, handles only member types. A member type is not a role or a capability à la WordPress, but only a way to sort better your members. In other words, a kind of a member category.

    To handle such behave from front-end while registering, you can associate a xprofile field value with an existing WP role. See here for a solution (untested) provided a few month ago.
    https://buddypress.org/support/topic/how-to-assign-a-wp-user-role-based-on-a-registration/#post-232887

    Add snippet to your child theme functions.php or into bp-custom.php and give it a try.

    #244502
    danbp
    Participant
    #244496
    djsteveb
    Participant

    @deklein – One more thing – have you taken the steps to “create a new menu” and save and all that?
    the wordpress menus thing is not the most eloquent as far as UX ihmo. Sometimes you gotta select a menu from the dropdown and click select and wait.. not everyone is going to know they need to click select to actually make something happen..

    #244494
    djsteveb
    Participant

    @deklein – it certainly would not hurt, and would be pretty fast and easy to make a backup of your entire wordpress install (all files on server, maybe a zipped folder) – then delete your buddypress plugin and all your default themes.. reinstall a fresh 2014 theme and buddypress – activate and test. Very strange that those do not show up with all other plugins disabled while switched to 2014 theme – and you even checked screen options..

    I would say before trying that I would try to mess with that menu using a different browser.. sometimes things work in firefox that do not work in chrome.. sometimes a browser plugin blocks something from loading somewhere that you may not find is an issue when using Internet Explorer..

    #244487
    bravenguyen
    Participant

    Well, I know how to create a page with WordPress. I did not know how to do with the content of the page:the code, the form… I can manage myself now.

    P/s: I am a newbie to WP and BP. Anyone has to learn and grow. I expect your instructions to help newbies like me.

    Thanks,

    #244469
    shanebp
    Moderator

    bbPress has it’s own support forums.

    As you probably know, PHP notices are not that critical.
    You might try looking at the file in the notice.
    I suggest you review the function and perhaps add a conditional to check if topic is empty before adding to $new_title
    You may have found a bug. You can create a ticket here.

    #244467
    danbp
    Participant

    @bigkahunaburger,

    i completed the snippet so it comes with pagination.

    Here a great tutorial about pagination.

    #244441
    danbp
    Participant

    @bravenguyen,

    you don’t know how to create a page with WordPress ? Hum… really ? 😉

    dashboard > pages > add new.
    Enter a title, save and you’re done .
    Go to BP page settings and select the one you created for activate. Do the same for register.

    #244431
    djsteveb
    Participant

    @swissprice – There are several “chat” plugins what “work with wordpress / buddypress” – it would be easy to establish a group chat room that allows registered and non-registered users to chat with each other via the main chat room – and they can private message each other there.

    As far as “begin chat with this user” – I think you would need something that says “User A” is online now – and a setting that would allow a non-registered, non-logged in person to send a “message”. I think I saw a thread a while back where someone was trying to adapt the “single user profile page” to allow guest comments, aka activity post on that profile / user’s activity page..

    Not sure exactly what you are going for here.

    #244416
    danbp
    Participant

    hi @bigkahunaburger,

    Give this a try (goes to bp-custom.php or child-theme functions.php)

    function bpfr_get_user_comments_on_profile() {
    
    // number of comments to show per page
    define( 'DEFAULT_COMMENTS_PER_PAGE', 3 );
    
    $page = (get_query_var('page')) ? get_query_var('page') : 1;
    
    $limit = DEFAULT_COMMENTS_PER_PAGE;
    
    $offset = ($page * $limit) - $limit;
    
    $param = array(
    	'user_id' 	=> bp_displayed_user_id(),
    	'status'	=> 'approve',
    	'offset'	=> $offset,
    	'number'	=> $limit
    );
    
    $total_comments = get_comments(array(
    	'orderby' => 'comment_date',
    	'order'   => 'ASC',
    	'status'  => 'approve',
    	'parent'  => 0
    ));
    
    $pages = ceil(count($total_comments)/DEFAULT_COMMENTS_PER_PAGE);
    $comments = get_comments( $param );
    
    $args = array(
    	'base'         => @add_query_arg('page','%#%'),
    	'format'       => '?page=%#%',
    	'total'        => $pages,
    	'current'      => $page,
    	'show_all'     => false,
    	'mid_size'     => 4,
    	'prev_next'    => true,
    	'prev_text'    => __('« backward'),
    	'next_text'    => __('onward »'),
    	'type'         => 'plain'
    );
    
    // Output pagination
     echo paginate_links( $args );
    ?>
    
    <ul>
    <?php
    
    	foreach($comments as $comment) {
    
    	// short version
    	//echo '<li>'. ($comment->comment_content .'&nbsp;<a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">View post</a></li>';
    	
    	// long version
    		echo '<li>'. ($comment->comment_content .'&nbsp;<a href="'. esc_url( get_permalink( $comment->comment_post_ID ) ) ).'">'. get_the_title( $comment->comment_post_ID ) .'</a> Comment: '. get_comment_date( '', $comment ) .'</li>';
    	}
    ?>
    </ul>
    <?php
    
    }
    add_action ( 'my_profile_comment', 'bpfr_get_user_comments_on_profile' );
    
    function bpfr_comment_profile_setup_nav() {
    global $bp;
    
    	$parent_slug = 'comments';
    	$child_slug = 'comments_sub';	
    	
    	// Add nav item
    	bp_core_new_nav_item( array(
    	'name' => __( 'My comments' ),
    	'slug' => $parent_slug,
    	'screen_function' => 'bpfr_profile_comment_screen',
    	'position' => 40,
    	'default_subnav_slug' => $child_slug 
    	) );
    	
    	//Add subnav item 	 
    	bp_core_new_subnav_item( array( 
    	'name' => __( 'My latest comments' ), // as content title
    	'slug' => $child_slug, 
    	'parent_url' => $bp->loggedin_user->domain . $parent_slug.'/', 
    	'parent_slug' => $parent_slug, 
    	'screen_function' => 'bpfr_profile_comment_screen'
    	) );
    }
    
    		function bpfr_profile_comment_screen() {	
    			add_action( 'bp_template_content', 'bpfr_profile_comment_screen_content' );
    			bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
    		}
    
    		function bpfr_profile_comment_screen_content() {
    			do_action( my_profile_comment );
    		}
    
    add_action( 'bp_setup_nav', 'bpfr_comment_profile_setup_nav' );

    Reference: https://codex.wordpress.org/Function_Reference/get_comments

    To do the same for user’s post, see here:
    https://buddypress.org/support/topic/creating-a-custom-tab-that-takes-in-the-info-from-wp-recent-posts/

    #244411
    djsteveb
    Participant

    – it’s the (or one of the) “default” wp themes ( https://wordpress.org/themes/twentyfourteen/ )
    about the only way you will get any kind of support with bp or / and rtmedia..

    it’s not the easiest thing to mod – but at least it works, and bp has some stylesheets included that massage it into something better than the average theme for some bp pages..

    I finally got deep into it to style some changes at the various media queries / screen sizes..

    btw – did you try changing your premium themes style.css to those changes to see if they work?

    if you search the bp forums for other premium themes you will see that even ones selling as “the best or the most popular buddypress theme” – seem to have issues and lack good support.. search the forums for “kleo” for example – lol

    I am sticking with twenty fourteen ’till things mature a bit (recent changes in wp and bp have made things complex in some ways) –

    #244366
    Prabin
    Participant

    may be it’s a permalink issue. Try editing your htaccess file.

    Navigation Links Return 404 Errors

    https://codex.wordpress.org/Using_Permalinks

    #244361
    danbp
    Participant

    No idea really, but see here if you find something
    https://wordpress.org/plugins/search.php?type=term&q=cookie+law

    #244347
    danbp
    Participant

    See this plugin, which is made for that:
    https://wordpress.org/plugins/buddypress-sitewide-activity-widget/

    WP’s comment widget is for main blog comments, not activity comments.

    #244338

    In reply to: Group Post support

    danbp
    Participant

    BuddyPress is a plugin dedicated to members, not blogs. On a multisite install, each member can get his separate blog, without limitation. These member blogs are then refrenced on a blog directory. An each membrer profile will show a blog directory with that member’s blog(s).

    Groups is a component to group members, not blogs. If you need a group blog, instead or in addition of individual member blogs, you can use BuddyPress Groupblog. Such blog will be for all group members and each group can have only one blog. But each group member can have his own blog. In this case, the network will have a main blog, group blogs and individual blogs.

    Whatever solution you use, a blog is always part of WordPress and will work exactly like the main site blog where you installed BuddyPress.
    This means that it’s the responsability of each member with a blog to admin his blog, even if the main site admin has priority and can allow/disallow plugins and themes. Usually disallowed, so members can only use what main site admin decided they can use.

    Enhancement can be asked on Trac. Read here about user participation and contribution to BuddyPress.

    Participate and Contribute

    #244331
    thenetking
    Participant

    Omg I just had a whole wall of text written up and while researching a link from earlier I found this:

    https://gist.github.com/jonasnick/6125869

    and it made my comments show up in activity, hopefully it’s what others need. Why I had to fight with buddypress and search the net for hours to make wordpress comments work is beyond me. I still don’t know if it’s supposed to out of the box or not, which I’ve tested.

    #244318

    In reply to: Fatal error

    djsteveb
    Participant

    @collinkemp – in this kind of situation I either ftp in or get to cpanel file manager.. either download a copy of your wp-content folder with http://ftp.. or make a zip / compressed folder of your wp-content folder to have a backup.

    Then go into your wp-content/plugins/
    – delete rtmedia err “buddypress-media” folder. Check if site comes back.
    – if not start deleting other plugins and checking.. and or
    – delete the non-default themes your have in you wp-content/themes folder

    This should get you back to basic wordpress and buddypress and default theme – then you should be able to get into your wp-admin section and go to appearance – themes and select one of the defaults..

    you may figure out what the hiccup was during the delete and check process.

    sometimes when my rtmedia updates I have to go into permalinks – change them, save, then change them back and save again.. don’t know why, but 50% of the time rtmedia updates causes a bunch of my static “pages” to be “404 not found” and the permalinks change then change back and save fixes it.. it’s a weird bloated plugin.. but glad it’s here.

    #244305
    danbp
    Participant

    Afaik there is nothing out to do this.

    As start point, this snippet which let you hide a profile by user_id. Add it to bp-custom.php

    
    function bpfr_hide_user_profile() {
    global $bp; 
    // hide user_id 35
    if(bp_is_profile && $bp->displayed_user->id == 35 && $bp->loggedin_user->id != 35) :
       wp_redirect( home_url() );
       exit;
    endif;
    }
    add_action( 'wp', 'bpfr_hide_user_profile', 1 );

    Also, from here
    https://buddypress.org/support/topic/temporarily-blocking-a-user-while-keeping-their-datanetwork/
    https://wordpress.org/plugins/buddypress-verified/

    danbp
    Participant

    I’m wondering what is a username for you.

    WP register only a user by username (aka pseudonym), email and password. BP add a Name field in which you can add anything: username, first or lastname. In the user table, there is also display_name, wich is the combination of first and last name from a WP user profile, before BuddyPress was installed or if you allow your users to enter the dashboard, and they start to play with their profile settings. IMHO, it’s better they haven’t that access when BP is activated. 👮

    When on the members directory, you (connected or not) can search a member by using his username.

    If you use WP’s site search from toolbar or the search widget (same thing), it doesn’t work, as members are not post types… 👣

    For now, i’m unsure what you want to fetch. Do you mean display_name ?

    All search forms available in BP are contextualized, as @henrywright expected.

    A BP class can be extended, a core function with a filter can be extended. You simply add your own to it.
    In other cases, like for bp_core_action_search_site function (in bp-core-classes.php)
    there is an action and a filter. Wow. 💪

    You can rewrite the whole function and use the action hook or only change a part of it by using the filter.

    remove_action( 'bp_init', 'bp_core_action_search_site', 7 );
    function my_custom_core_action_search_site() {
       bla bla bla....
    }
    add_action( 'bp_init', 'my_custom_core_action_search_site', 7 );

    or
    add_filter( 'filter_name', function_name');

    Theorie here:
    https://buddypress.org/support/topic/how-to-override-core-function/

    But before hacking to deep, read here:

    Members Loop

    Maybe you could find some interesting things about include or search_tems options. 👀

    If all this is too much for you, consider this plugin:
    https://wordpress.org/plugins/buddypress-global-search/


    @prabin04
    , @henrywright
    🚧 i’m really not an expert in matter of BP search, but thank you for your consideration.

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