Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 28,901 through 28,925 (of 94,567 total)
  • Author
    Search Results
  • #172371
    ashlaw
    Participant

    Hi, I also do have the issue.
    Tired two method, one is what you have suggested, instead the code into theme.css

    #buddypress .standard-form div.submit input {
    color: #000 !important;
    }
    It does not work.

    I have a also come across a post stating about the height under” what-new-option”. Currently it is state 0px, so I change it to 40px first using firebug to try, and it actually appear, so I ask my friend to change it in my theme css(I do not know coding actually), and save the file. It doesn’t reflect again. Now I know it is actually visible, but it wont allows any changes in the less theme css.

    Any help in this? Really appreciate.

    #172370
    bp-help
    Participant

    @tse11
    Patience please! Deactivate the plugin you was using for redirecting and try this in bp-custom.php https://codex.buddypress.org/plugin-development/bp-custom-php/ :

    
    function bphelp_redirect() {
      if( is_user_logged_in() && is_super_admin && is_home) {
        // redirect to dashboard code
        bp_core_redirect( get_option( 'home' ) . '/wp-admin/' );
      }else {
          if( is_user_loggedin() && !is_super_admin  && is_home) {
        // redirect to activity code
        bp_core_redirect( get_option( 'home' ) . '/activity/' );
          }
       }
    }
    add_action( 'template_redirect', 'bphelp_redirect', 1 );
    
    #172367
    excesscaravan
    Participant

    Thanks Rishikant.

    Could I create a Buddypress group that only shows up on one post?

    For post A, only certain Buddypress groups are displayed on the post.

    For post B, another set of Buddypress group is displayed.

    i.e. if I have a post “Cooking Class on Sunday” – I would like my users to be able to create groups under this post and invite other users to join.

    “Cooking Class on Sunday” groups will only display on the page, and not another page such as “Music Class on Sunday”

    THANKS SO MUCH!!!

    #172366
    tse11
    Participant

    @bphelp
    Thanks! I have scoured the forums and have not found the exact thing that I need, but I guess it’s all in the wording of search terms 😉

    This is the code I have for the plugin I am using:

    function buddypress_login_redirection($redirect_url,$request_url,$user)
    {
    	global $bp;
    	$selected_option = get_option('blr_select_redirection');
    	if($selected_option == 'one')
    	{
    		return bp_core_get_user_domain($user->ID);
    	}
    	elseif($selected_option=='two')
    	{
    		$activity_slug = bp_get_activity_root_slug();
    		$redirect_url = $bp->root_domain."/".$activity_slug;
    		return $redirect_url;
    	}
    	elseif($selected_option=='four')
    	{
    		//$activity_slug = bp_get_activity_root_slug();
    		//$redirect_url = $bp->root_domain."/".$activity_slug;
    		$redirect_url = $_SERVER['HTTP_REFERER'];
    		return $redirect_url;
    	}
    	else
    	{
    		$activity_slug = bp_get_activity_root_slug();
    		$friends_activity = bp_core_get_user_domain($user->ID).$activity_slug."/friends/";
    		return $friends_activity;
    	}
    }
    function buddypress_login_redirection_menu()
    {
    	add_options_page(__('BP Login Redirect Settings','blr-menu'), __('BP Login Redirect Settings','blr-menu'), 'manage_options', 'blrmenu', 'blr_settings_page');
    }
    function blr_settings_page()
    {
    	if (!current_user_can('manage_options'))
        {
          wp_die( __('You do not have sufficient permissions to access this page.') );
        }
    	$opt_name = 'blr_select_redirection';
    	$hidden_field_name = 'blr_submit_hidden';
    	$data_field_name = 'blr_select_redirection';
    	
    	$opt_val = get_option($opt_name);
    	
    	if( isset($_POST[ $hidden_field_name ]) && $_POST[ $hidden_field_name ] == 'Y' )
    	{
    		$opt_val = $_POST[ $data_field_name ];
    		update_option( $opt_name, $opt_val );
    ?>

    Any idea where I would add those conditions you mentioned?

    #172365
    bp-help
    Participant

    @tse11
    Search the forum. This has been covered before! You could create a conditional to do this. Basically an if and else statement. You would need to include is_super_admin in the conditional check and the user would be redirected appropriately. For instance:

    
    function bphelp_redirect() {
      if( is_user_logged_in() && is_super_admin ) {
        // redirect to dashboard code
      }else {
          if( is_user_loggedin() && !is_super_admin ) {
        // redirect to activity code
          }
       }
    }
    add_action( 'template_redirect', 'bphelp_redirect', 1 );
    

    This would go in bp-custom.php:
    https://codex.buddypress.org/plugin-development/bp-custom-php/

    tse11
    Participant

    Hi all, I am running WP 3.6.1 and BP 1.8.1

    I am trying to redirect a user to their activity page when they log in.

    I was able to do this by using this plugin: http://wordpress.org/plugins/buddypress-login-redirect/

    However, because I am using a multisite, when an admin logs in to edit their site in dashboard, they too are redirected to the bp activity page.

    SO, what I am looking for is a way to redirect main site users (subscribers) to their activity page, but NOT redirect them when they are logging in to theirsite.mydomain.com/wp-login.php

    *my site is in production mode, so I cannot provide a link TIA for any help

    3rdaxis
    Participant

    Iv been searching and found some things here and there with not much explanation of where to place code.

    There are a ton of plugins that display an author box with their Bio in a post, but only problem is they all pull the bio info from wordpress rather than the way buddypress uses xprofile fields.

    Iv set up a Bio field but really need to know how to call this field into a post and where to place the code to make this work.

    If there is anyone who can shed some light on this it would be greatly appreciated.

    #172362
    rpatwall1206
    Participant

    Hello all. I know there have been several discussions regarding creating a forum in buddypress that is not attached to groups. That actually works ok, but this is no longer acceptable as a general forum. As admin I created a general group for different topics, this is not working out like a regular forum because of the unavailability or multiple categories that are independent of groups.

    So after reading the struggles that others are experiencing with this buddypress/bbpress/group collabo I ventured out to find a compatible second forum solution. Although Simple-press is working on a BuddyPress/simple-press integration plugin. http://simple-press.com/buddypress-integration-plugin/ However, it appears you have to pay $39.00 to learn how that is working out. If you go to support and type in buddypress and click on the first item “buddypress beta” you are directed to a pay membership page. Don’t really want to buy a membership for a plugin I don’t have or is not yet available.

    So I am asking if anyone has any news or ideas as to what other forums/bulletin boards may work as a second independent forum within a Buddypress site?

    Any and all help would be greatly appreciated…Thanks.

    @mercime
    Participant
    #172354
    @mercime
    Participant

    Did you remove it from this file https://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-themes/bp-default/groups/single/activity.php

    I hope you’re using a child theme of the BP Default theme instead of making those changes on that theme in your server. Otherwise, your changes will be overwritten when BP is updated.

    #172353
    @mercime
    Participant

    @kvschwartz name of file should be bp-custom.php and not bp-customs.php
    https://codex.buddypress.org/plugin-development/bp-custom-php/

    #172347
    mewrd
    Participant

    hi,
    I’m using buddypress to build a dating website.

    estimated Members -6000,estimated visitors per day 500-600.

    Major part of this website will be a kind of matching questionnaire ,
    each time you or other member answer a question a constantly updating list of your best matches (from all the members), will be displayed in the questionnaire page in the website .

    That means a lots of simultaneous database connections /requests.

    now I was told by a colleague that developing such questionnaire plugin for wordpress /buddypress is a big mistake.

    • First because processing all this data in real time, meaning answers sent to database ,compared ,calculated and send back to the page will exceed the server capacity very soon.
    • Second because each request Invokes loading of the whole WordPress (wp-load.php).

    His solution was to manage all the calculations outside wordpress like in some kind of SOAP web service,
    My question is simple:
    how to avoid overloading in this plugin and is webservice really the solution?

    GearMX
    Participant
    #172333
    bp-help
    Participant

    @kvschwartz
    bp-custom.php should reside in http://www.your-site/wp-content/plugins or if your on localhost it would be http://localhost/your-site/wp-content/plugins. It is not in a folder like other plugins would be. It is just a php file named bp-custom.php that occupies the same directory as a plugin. Please review:
    https://codex.buddypress.org/getting-started/bp-custom-php/

    #172331
    uabassguy
    Participant

    Hello everyone. Relatively new to Buddypress, but not new to PHP at all. I have a particular question that has had me baffled for quite some time now.

    I’m using Firmasite with BuddyPress + bbPress. The Plugin I’m having issues in particular with is rtMedia.

    When I use the profile editor on the frontend, all of the tabs are using members/single/home.php, except rtMedia’s Media tab, which is using page.php for some reason. I have not been able to find the junction point that decides which template file to use for this, or why it’s only behaving this way for one plugin, yet when any other plugin adds tabs to the profiles, it works just fine. Any help or advice would be greatly appreciated, or if you need any code samples or screenshots to get a better picture, let me know. I really like how far BP has come since I first tried it years ago, kudos to all of the devs.

    Thanks in advance.

    #172328
    jslucas
    Participant

    I realised that the comments for buddypress will hide comments that has 5 or more. However, when clicking to reveal the rest of the comments, all the comments will be unhidden. As such, if there are 100 comments, it did fill up the activity screen immediately.

    I am wondering if there is anyway to load more instead of load all the comments on the screen.

    GearMX
    Participant

    Hi –

    The BuddyPress Activity Plus plugin is a must have add-on for BuddyPress in my opinion. However, due to its current design, it allows uploads of any image size that stays there. That means that a user can upload a 10MB image file and it will stay on your server as a 10MB file in the ‘bpfb’ folder. You can edit the Activity Plus code to limit the upload size, but this will soon become a massive hassle for users to reduce file sizes on their own (especially if a user wants to snap a shot with their mobile phone and upload to the activity stream). Here is my current solution:

    1) Install ImageMagick on your server
    2) Set up a cron job with the following command: cd “public_html/wp-content/uploads/bpfb/” && mogrify -strip -resize 800×800\> *.jpeg *.jpg
    (This will look at the directory and resize all jpegs image to 800×800 and not increase (blow up) images that are smaller).

    Works perfect, with one drawback: This solution will keep re-compressing files that have already been resized)… So if I set cron to resize once a week, it will recompress the file 52 times a year. In my situation I don’t really mind, but to make this solution better, I am working on a PHP script to SKIP files that have already been resized and re-compressed… but this is the solution I’m using right now and it works. If someone wants to help & co-build a PHP script with me please let me know (or if someone has a better overall solution)

    Henry
    Member

    @cambridge15 Run your website through http://tools.pingdom.com to see which resources are being loaded. That should show you which scripts you need to focus on.

    cambridge15
    Participant

    Hmm didn’t seem to work for me, maybe i’m still calling jquery somewhere and not realizing it?
    thanks for posting Henry!

    #172324
    Halo Diehard
    Participant

    @cpagan2000 thanks SO much for coming back and posting that code! I have literally searched for hours to try and fix my problem that my site, which has been running over a year spam free, all of a sudden was getting SLAMMED with spam registrations because BuddyPress hijacked my registration page and I couldn’t figure out how to make it stop.

    For anyone else who finds this thread, you have to create the bp-custom.php file and put it in your wp-content/plugins folder (contrary to all the other information out there on the web – – SO CONFUSING!!) I tried to put in in my functions.php and it just wouldn’t work. You can find more information on customizing BuddyPress by following the link above that @bp-help posted above.

    This information should really be easily accessible. No one should ever have to search this hard to fix this type of issue. That is why I made a point to come back and thank pagan and add the missing info that I had to track down to fully understand the situation.

    #172323
    bp-help
    Participant
    Henry
    Member

    @eossipov I think the jQuery being enqueued was v1.10? I’m using BP 1.8.1 and WP 3.6.1

    Hugo Ashmore
    Participant

    No what you are describing having started is a theme compat approach renaming page.php to buddypress.php ( that can be located for neatness in /buddypress/ or /community/; mercim’s post directly related to using the now older bp-default theme files copied over now you have started on theme compat stick with it, your issue is going to be that the theme does something to mess up page.php BP needs that file to adhere to WP template principles you must have a proper loop with the_title() and the_content() tags in place

    elaine ossipov
    Participant

    You should be able to just add googles
    wp_enque(the version I posted)

    And they should work together.

    Henry
    Member

    @eossipov thanks for the help. My problem was resolved with the code I just posted. Just had to dequeue jQuery and use Google’s latest copy instead.

Viewing 25 results - 28,901 through 28,925 (of 94,567 total)
Skip to toolbar