Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'questions'

Viewing 25 results - 626 through 650 (of 2,115 total)
  • Author
    Search Results
  • #174985

    In reply to: No Activation email

    Soccercoach12345
    Participant

    @mercime,

    Thank you for the support questions.

    I use the newest versions of both (WP 3.7.1 and BP 1.8.1)

    I am hosted at Hostgator, domain through GoDaddy.

    I have checked, if I deactivate BuddyPress all email work fine.

    #174704
    mattg123
    Participant

    @pjbursnall yeah that code replicates the notification element only (the only part that is somewhat confusing to replicate) you place the code in the plugins directory in bp-custom.php you may have to create the file yourself.

    http://stackoverflow.com/questions/9953482/how-to-make-a-pure-css-based-dropdown-menu – shows you how to create a drop down menu, https://codex.wordpress.org/Function_Reference/get_currentuserinfo get the current users info so you can create links to their profile pages, etc.

    Just a note, to add the notifcations to your custom bar your code will look something like <li><?php bp_notification_badge(); ?></li>

    #174574
    focallocal
    Participant

    i think i’ve tracked it down. there seems to be a conflict between buddypress and ‘Take Control Of The WordPress Toolbar’ plugin.

    i’ve posted a support question but it doesnt look like the author is answering support questions any more. if anyone has any idea of how i might be able to fix this it would be brilliant as i am reluctant to delete the plugin, although i expect that will be the only option in the end.

    #174489

    In reply to: Small issue

    mattg123
    Participant

    @clanvision use the default buddypress theme and see if the error still exists, my site doesn’t have this error.

    Also, I’ve used shared hosting for a Buddypress site before, it’s fine for getting a site online and tested but beyond that it will be useless. Your site takes 4 seconds to load <!– Generated in 4.036 seconds. (294 q) –> and that’s without many concurrent users.

    This laggy slider of yours would be the last of my concerns, you need to optimize your site quite badly. (btw Buddypress is free, and so is the support if no one answers your questions, it’s because they don’t have an answer. If that’s the case it’s YOU who should do the research to fix the problem, not complain about the lack of free support)

    Henry
    Member

    @mercime I should have added more info

    It is default behaviour when the WP static front page is set to “Register”. I actually came up with a way of doing what I needed with the help from folks over at Stack Overflow:
    http://stackoverflow.com/questions/20039607/different-wordpress-front-page-for-logged-out-and-logged-in-users

    My final code after some minor tweaks to the accepted answer is:

    function bp_custom_front_page() {
    	if ( ! is_admin() ) {
    		if ( is_user_logged_in() ) {
        		$page = get_page_by_title( 'Contact' );
        		update_option( 'page_on_front', $page->ID );
        		update_option( 'show_on_front', 'page' );
    		} else {
       			$page = get_page_by_title( 'About' );
        		update_option( 'page_on_front', $page->ID );
        		update_option( 'show_on_front', 'page' );
    		}
    	}
    }
    add_action( 'init', 'bp_custom_front_page' );
    #174263
    Henry
    Member

    After taking a look at how BP does it my questions 1 and 2 have been answered. Now facing a new but related problem:

    When I redirect the user back to the edit profile page to display the “Too many characaters have been entered” message – any new text the user may have entered into the input fields is lost.

    For example – the max characater limit for location is 10

    1. Location value is currently: London
    2. The user updates the location field to: London, United Kingdom
    3. The field validation kicks in – the page is refreshed with error message displayed “Too many characters”
    4. Location value reads: London

    So, you can see the illegal value the user has entered “London, United Kingdom” has been lost. My aim is to redisplay the illegal value so the user can modify it under 10 characters.

    Perhaps location isn’t the best example. Imagine if the user has written an about me paragraph which is over the character limit – on clicking submit the page refreshes and they are told they’ve entered too many characters. Their old about me text is displayed and all their new hard work has been lost.

    #174258
    danbp
    Participant
    #174145

    In reply to: Confirmation Message

    @mercime
    Participant
    #173805
    Hugo Ashmore
    Participant

    Cheers for the vote of thanks to all those that plough hours of their time into providing you with free software to use, it’s most generous of you. As to the question learn a little about the software you’re using as you’ll find you won’t need to waste time asking questions on how to remove a simple piece of hardcoded markup.

    #173533
    DennisH
    Participant

    I hate to break the bad news but spammers already know about it. The problem is no one here seems to care.

    Others have also reported this:

    http://wordpress.stackexchange.com/questions/113255/spammers-are-bypassing-buddypress-registration-form

    #173505
    Hugo Ashmore
    Participant

    Please don’t post duplicate questions, once is sufficient.
    Closing.

    #173369
    cyndimarie
    Participant

    @jaxdestroyer This looks EXACTLY how I was hoping. I’ll look over the code you sent me tonight, and I’ll let you know if I have any questions. Thanks so much, you just saved me a ton of time figuring this out myself.

    #173367
    jaxdestroyer
    Participant

    I have Actually done this on my own site that I am developing. I at first Used Buddypress Facebook, Buddypress Googleplus and Buddypress Twitter and they work well enough but I wanted to be able to add some other sites as well as use my own icons. So I figured out what they did and updated it for my needs.
    Here is what I came up with. The following code will go into your themes functions.php.

    <?php
    //Social Media Icons based on the profile user info
    function member_social_extend(){
    		$dmember_id = $bp->displayed_user->id;
    		$fb_info = xprofile_get_field_data('facebook', $dmember_id);
    		$google_info = xprofile_get_field_data('googleplus', $dmember_id);
    		$twitch_info = xprofile_get_field_data('twitch', $dmember_id);
    		$twitter_info = xprofile_get_field_data('twitter', $dmember_id);
    		echo '<div class="member-social">';
    		if($fb_info||$google_info||$twitch_info||$twitter_info){
    			echo 'My Social: ';
    		}
    
    		if ($fb_info) {
    		?>
    		<span class="fb-info"><a href="https://www.facebook.com/<?php echo $fb_info; ?>"  title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/facebook.png" /></a></span>
    	<?php
    	}
    		?>
    		<?php
    		if ($google_info) {
    		?>
    		<span class="google-info"><a href="https://profiles.google.com/<?php echo $google_info; ?>" title="My Googleplus" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/google-plus.png" /></a></span>
    	<?php
    	}
    		?>
    		<?php
    		if ($twitch_info) {
    		?>
    		<span class="twitch-info"><a href="http://www.twitch.tv/<?php echo $twitch_info; ?>" title="My Twitch" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/twitch.png" /></a></span>
    	<?php
    	}
    		?>
    		<?php
    		if ($twitter_info) {
    		?>
    		<span class="twitter-info"><a href="https://twitter.com/<?php echo $twitter_info; ?>" title="My Twitter" target="_blank" class="twitter-follow-button""><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/twitter.png" /></a></span>
    	<?php
    	}
    	echo '</div>';
    }
    add_filter( 'bp_before_member_header_meta', 'member_social_extend' ); ?>

    I will explain the code to you so that you can use it for more than just these 4 sites.
    First the Variables

    $dmember_id = $bp->displayed_user->id;
    $fb_info = xprofile_get_field_data('facebook', $dmember_id);
    

    $dmember_id grabs the currently displayed user id.
    $fb_info gets the data that was placed the facebook text box I created in extended users profiles.
    The same goes for $google_info, $twitch_info, and $twitter_info all you need to do is change 2 simple things.
    $your_variablename_here = xprofile_get_field_data('your_textbox_field_name_here', $dmember_id);

    That textbox field name can be anything you want it to be as long as it is the same as the extended profile field name. For each different site you will need to do that line.

    echo '<div class="member-social">'; All this does is start a div with a class of member-social so you can box all the different icons in one place.

    The below code is optional but may be important if you want to prefix the icons with something.

    if($fb_info||$google_info||$twitch_info||$twitter_info){
    			echo 'My Social: ';
    		}

    This asks if any of the variables have data in them. If so then prefix the icons with “My Social: ” if not then show nothing. You will need to add your new variables each seperated with the horizontal bars as shown. So that it will show as long as any of them have one field filled in.

    if ($fb_info) {
    		?>
    		<span class="fb-info"><a href="https://www.facebook.com/<?php echo $fb_info; ?>"  title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/facebook.png" /></a></span>
    	<?php
    	}
    		?>

    This asks if $fb_info has any data then show the icon.

    The Below code can differ based on your preference.
    <span class="fb-info"><a href="https://www.facebook.com/<?php echo $fb_info; ?>" title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name/images/facebook.png" /></a></span>
    I wrapped each icon in its own span HTML tag. Then create the link.
    <a href="https://www.facebook.com/<?php echo $fb_info; ?>" title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name/images/facebook.png" /></a>
    In this example I am linking to facebook.com with the $fb_info data. Here is where the preference comes in if you want them to just put their whole social profile link in the profile field then all it needs to look like is
    <a href="<?php echo $fb_info; ?>" title="My Facebook" target="_blank"><img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name/images/facebook.png" /></a>
    the title=”put_hover_text_here” is what you want to show when hovering over the link the target= “_blank” makes the link open in a new tab.

    <img src="<?php bloginfo('wpurl'); ?>/wp-content/themes/your_theme_name_here/images/facebook.png" />
    This is where you placed the image of the icon. Currently this will point to the images folder of your theme and the image name of facebook.png as long as you updated the theme name.

    <?php
    	}
    	echo '</div>';
    }
    add_filter( 'bp_before_member_header_meta', 'member_social_extend' ); ?>

    this closes the if statement and closes the div that I made earlier. Then adds the function to the buddypress profile.

    here is an image of the results:
    social Results

    The Twitch icon I made myself but the others are free here http://icondock.com/free/vector-social-media-icons along with many more social sites. I used the 32px images.

    If you have any questions or need some extra explanation of this or want to add these social icons to the group header,or even add them to a users authorbox(this will require you to change your themes code) just PM Me or reply. I hope this helps anyone else looking to do something similar Note this will only send people to their respective social media profiles not allow them to follow or friend straight from your site.

    #173110

    In reply to: Pagina registrazione?

    Asynaptic
    Participant

    Please use English or at least use google translate or babelfish so we know what you’re talking about!

    http://translate.google.com/#auto/en/Potreste%20aiutarmi%20a%20creare%20un%20modulo%20di%20registrazione%3F

    “Could you help me create a registration form?”

    https://buddypress.org/support/topic/newbie-buddypress-questions-about-registration-forms-and-more/

    I believe you can also use membership plugins like S2 (free and premium) or membership (premium) from wpmu to customize the register.php

    #173017
    David Jay
    Participant

    I was able to get this (create a link to the post author’s BP profile) to work using Boones suggestion here http://wordpress.stackexchange.com/questions/43528/how-to-get-a-buddypress-user-profile-link-and-a-certain-user-profile-field-for-t

    To get it to work in the sidebar (running Genesis and the Content Aware Sidebar plugin) I had to use the code below to pull the author id outside the loop. I am strictly an amateur but this may be where folks are having trouble adding a link in sidebars, plugins or widgets?

    http://wordpress.stackexchange.com/questions/39493/getting-user-id-for-the-author-meta-outside-the-loop-in-multisite

    If you are like me, and not a coder, below is the exact code I used:

    <?php
    $temp_post = get_post($post_id);
    $user_id = $temp_post->post_author;
    $author_bp_profile = bp_core_get_user_domain( $user_id );
    ?><a href="<?php echo $author_bp_profile;?>">View the author's profile</a>
    #173015

    In reply to: PHP Errors

    danbp
    Participant

    Hi @keiser-media @celticdancer,

    The usual answer in this case is: these notice are only notice. A kind of weather report: all hear and read about, but who cares ?

    If you see the notice on a production site, deactiveate the debug define in wp-config.

    Don’t be afraid by “strict standards” messages. It’s probably because you use PHP 5.4.x or higher. These versions are a little bugy actually. And most shared server are yet under 5.3.x

    More here

    PS: i encounter the same problem (php 5.4.12) 😀

    #172915
    bp-help
    Participant

    @jiminps
    Even though the first question deals with bbPress the answer is it depends on what you mean by capabilities. You can can assign user roles like keymaster, moderator, participant, spectator, or blocked.
    Yes, private messages can be sent and received. If you only want messages to be sent between a member and the admin that would require use of a plugin, or some custom code but it can be done!
    Hope that answers your questions!

    #172749

    In reply to: 'Survey' Project

    @mercime
    Participant

    I would like to create a section where people can sign in and answer questions and add their image and then have people see their answers.


    @cortttt
    Sure. Use BuddyPress Extended Profile Fields to highlight the best of your community https://codex.buddypress.org/buddypress-components-and-features/extended-profiles/
    Make sure that Extended Profiles is checked in wp-admin Settings > BuddyPress > Components

    At the top of the sections would be a running total…total years lost to illness

    Check out https://wordpress.org/plugins/buddypress-xprofile-custom-fields-type/ and then customize the plugin to include the running total years lost to illness or use/rename birthday field

    #172723
    @mercime
    Participant

    @zane 1a.) There is a reply link in every topic post if you’re using default bbPress forums in your installation.

    e.g.1. In this topic you started, when you hover a post a line shows up on the bottom right corner of each post with different links including the “Reply” link which will bring you to the reply form at the bottom.

    e.g.2. In this screenshot of a default forum topic layout you’ll see the “Reply” link along with other links are shown at the top of every post in that page.

    Please check with your theme author why you’re not seeing the Reply link in your theme.

    #172716
    Zane
    Participant

    Hey Mercime,

    1a. Forum. It is not very intuitive to scroll to the bottom to make a new post.
    1b. http://themeforest.net/item/cinematix-buddypress-theme/4959387 – Love this theme 🙂

    2. Thanks! I knew I saw this somewhere. I even checked there (doh!). Worked like a charm. Thanks!

    #172652
    @mercime
    Participant

    @zane

    1) Reply button on what page exactly? Forum post or blog post? What theme are you using?

    2) Group Forum posts do appear in that Group’s Activity Stream. If you want to disable forum/blog post commenting in the Activity Stream to prevent confusion and to have all the forum/blog post comments in one location, then go to Settings > BuddyPress > Settings – Activity Settings, and make sure that Blog & Forum Comments are not enabled (not checked).

    #172269
    martinbeaulne
    Participant

    I have the same question as Ben.

    I know we shouldn’t modify core files. I know there are .po and .mo files for translations. But creating an entire .mo file for only one ( 1 ) more translation is overkill ( since poedit doesn’t let you just “add” an entry to an existing .po file ). ( http://stackoverflow.com/questions/7680021/how-to-add-a-new-string-to-a-po-file-w-a-po-editor )

    I have a third-party theme, and I’ve copied the buddypress folder in it. In members/ there is an “activate.php” file where I changed some text.

    But the “Check Your Email To Activate Your Account!” is not in activate.php, nor register.php, nor anywhere else.

    So, the question is simple: where is located the string “Check Your Email To Activate Your Account!” ?

    ( Let me guess something else: there is no translation in the official translation files for this specific string, maybe, because it just isn’t in the registration php files ? )

    I think that’s what Ben wanted too.

    #172104
    xKroniK13x
    Participant

    I wrote this while I was tired last night, you should cleanse the input on line 15 with:
    $input = htmlspecialchars($_POST['input']);

    That should prevent SQL injections by converting quotes and other special characters into their HTML values… See here for more details.

    Any questions, feel free to ask, I’ll keep an eye on this thread for ya.

    #172005
    martinbeaulne
    Participant

    By “easy”, I meant “There must be simple functions for posting things to the database; but I don’t know them”. I often see people answering to questions with pages and pages of code from outer space, so I thought my little question would be a very simple one….

    Well.. Let’s make my question “less general”.

    I want to get rid of the bottom tabs of the member profile page. Still, I want the members to be able to edit their profile. I want to style that directly in the member-header.php page.

    I want that kind of thing:

    
    <div><?php 
    if ( bp_is_my_profile() )
      echo "Hi there, since it's your profile, you can edit the value of field number 46";
      echo '<form id="formtochangefield46" name="updatefield46" onSubmit=" " action=" "  method="post" >
      <div>New value</p></div>
      <div><input type="text" id="updatefield46" name="field46" size="20" style="width:150px;"   maxlength="150" value="">
      </div>
      <div><input type="submit" name="submit" value="Submit"></div>
      </form>';
    endif;
    $embed = wp_oembed_get( xprofile_get_field_data('46'), array( ‘width’ => 400 ) );
    echo $embed;
    ?><br></div>
    

    I guess there must already exist wp functions to… call the database and update a field from a form’s submitted values… I mean, how does one creates a custom register page ? It must be the same functions after all…

    I hope my question is more precise… And sorry for my english, I don’t really speak it.

    #171997
    Paul Wong-Gibbs
    Keymaster

    Those two questions aren’t really relevant here. A quick Google search will suggest object caching solutions for WordPress:

    https://wordpress.org/plugins/apc/ is one of them, if your web host is using APC. You’ll have to ask them to find this out.

Viewing 25 results - 626 through 650 (of 2,115 total)
Skip to toolbar