Forum Replies Created
-
In reply to: After disabled buddypress, my site crashed.
rename the folder of your current theme, if not work ,
try to reset the theme from database : http://docs.appthemes.com/tutorials/how-to-change-wordpress-themes-directly-from-the-database/
Or
try rest all plugins from databse
UPDATE wp_options SET option_value = ” WHERE option_name = ‘active_plugins’;
http://perishablepress.com/quickly-disable-or-enable-all-wordpress-plugins-via-the-database/
In reply to: BuddyPress Register with SMS?There is any settings for email activation in buddypress,you must add some code in your functions.php to disable sending activation email after resgistration.
i was code for old version for buddypress, im not sure that will work. I will try to update it and i send u.
In reply to: Robots.txt removalwhy you want to remove robot.txt file
?In reply to: BuddyPress Register with SMS?Hi,
U can try to do like that :
1. disable sending activation link by email, and sending the link of payment insteed
2. after the payment was acomplished, you redirect the user to his activation linkHum…Ok isee thanks for answer and nice work again
In reply to: Share Activity on Social Network ….download this plugin
https://wordpress.org/extend/plugins/buddypress-share-it/
open the code source and analys it : )
In reply to: How to check if member has avatar ?Thanks @shanebp for answer,
I wanted a clean solution (just function from buddyrpess) but
– .
Any way, here is my function, i used bp_core_avatar_default() to return the default avatar.
/**
* Check if the current user has an uploaded avatar
* @return boolean
*/
function current_user_has_avatar() {
global $bp;
if ( bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'no_grav' => true,'html'=> false ) ) != bp_core_avatar_default() )
return true;
return false;
}
Hope this help some one.
Closed.In reply to: How to check if member has avatar ?Here is my code
This my code in functions.php
function user_has_avatar() {
global $bp;
if ( !bp_core_fetch_avatar( array( 'item_id' => $bp->loggedin_user->id, 'no_grav' => true ) ) )
return false;
return true;
}
I try to check this in header.php,
// test one with bp_get_user_has_avatar function
global $bp;
if( !bp_get_user_has_avatar()) :
// echo html message warning
endif;
// test two with user_has_avatar function
if( !user_has_avatar() ) :
// echo html message warning
endif;
bp_core_fetch_avatar( array( ‘item_id’ => $bp->loggedin_user->id, ‘no_grav’ => true, ‘html’=>false )
return this string :http://localhost/wordpress-buddypulse/wp-content/plugins/buddypress/bp-core/images/mystery-man.jpg
and not false like describe in buddypress docs ( when no_grav is true function will return false if no avatar is added)
bp_get_user_has_avatar() is used in memberssingleprofilechange-avtar.php , mybe i need to call a funtion to load the data of current member or somthing like that…
Thanks advance @shanebp for help
In reply to: URGENT Please – Register form not emptyI found a data in table wp_bp_xprofile_data with user_id = 0 , i delete it
i think there is bug or and exploit in the last version.
In reply to: problems with buddypress site hostingyoou use XML sitemap plugin, or stats plugins ?
if yes, try to disable it and contact Hosting if the CPU is normal
In reply to: How to Echo the page number in the page title?bp_groups_pagination_count()
In reply to: Can admin view private messages?No,
In reply to: Post button not appearing – please help!hi!
Install the last version of firefox, if buddypress work then it okelse
1, which version of buddypress you used ?
2, if you use the default buddypress theme, check if javascript is enabled,
if you use anther theme, use the default theme , if work then the prolem is in the theme3. try to clear the cache of your browser, and disable all plugins installed if exist
you should remove this line
from
activity/index.php
membres/index.php
forums/index.php
..
…..
In reply to: Security issueshi,
what security level you talk about, the front or backend ?Look in header.php of your theme , the code in header.php is look like that
Code:<?php
/**
* theme theme_name
*
* @package packagename
* @subpackage subpackagename
* @since my HTML 5 theme
*/
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="content-type" content="<?php bloginfo(‘html_type’) ?>; charset=<?php bloginfo(‘charset’) ?>" />
<title><?php bp_page_title() ?></title>
<meta name="home" content="<?php bloginfo(‘url’) ?>" />
<meta name="url" content="<?php bloginfo(‘wpurl’) ?>" />
<?php do_action( ‘bp_head’ ) ?><?php if ( function_exists( ‘bp_sitewide_activity_feed_link’ ) ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> | <?php _e(‘Site Wide Activity RSS Feed’, ‘buddypress’ ) ?>" href="<?php bp_sitewide_activity_feed_link() ?>" />
<?php endif;?><?php if ( function_exists( ‘bp_member_activity_feed_link’ ) && bp_is_member() ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> | <?php bp_displayed_user_fullname() ?> | <?php _e( ‘Activity RSS Feed’, ‘buddypress’ ) ?>" href="<?php bp_member_activity_feed_link() ?>" />
<?php endif;?><?php if ( function_exists( ‘bp_group_activity_feed_link’ ) && bp_is_group() ) : ?>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> | <?php bp_current_group_name() ?> | <?php _e( ‘Group Activity RSS Feed’, ‘buddypress’ ) ?>" href="<?php bp_group_activity_feed_link() ?>" />
<?php endif;?><link rel="alternate" type="application/rss+xml" title="<?php bloginfo(‘name’);?> <?php _e( ‘Blog Posts RSS Feed’, ‘buddypress’ ) ?>" href="<?php bloginfo(‘rss2_url’);?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo(‘name’);?> <?php _e( ‘Blog Posts Atom Feed’, ‘buddypress’ ) ?>" href="<?php bloginfo(‘atom_url’);?>" />
<link rel="pingback" href="<?php bloginfo(‘pingback_url’);?>" />
<?php wp_head();?>
</head><body <?php body_class() ?> id="bp-default">
<?php do_action( ‘bp_before_header’ ) ?>
..…
<:!– header content –>
….<?php do_action( ‘bp_after_header’ ) ?>
<?php do_action( ‘bp_before_container’ ) ?>In reply to: OpenSocial for BuddyPressIm working in new framework for wordpress+buddyperss for for building web services, the plugin expose functionality of wp and any other plugins installed in wp to other web sites and desktop applications. i will share a beta version soon.
In reply to: Problems with activity page and group pagesend the link of your site
In reply to: How embed a .Pdf document in profile fieldor this one
https://wordpress.org/extend/plugins/wp-resume/In reply to: How embed a .Pdf document in profile fieldIn reply to: [Resolved] Video embeddingjust copy and past the link (url or code) of the video ( youtube , vimo…
for example i past the link
http://vimeo.com/THE_CODE_OF_THE VIDEO
the result
In reply to: redirect to Profile and not ‘Activity’disable all plugins, and add this line in your functions.php
define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
try again, it work fine with bp 1.5.1
In reply to: SEO for BuddyPress 1.5.1You can try SeoPress plugin (not seoPress for buddypress), the last version support buddypress.
Hi, see here
http://bp-tricks.com/featured/give-every-buddypress-component-dedicated-sidebar/
and you can use the functions is_XXXXX__page() to test for page
https://buddypress.trac.wordpress.org/browser/branches/1.5/bp-core/bp-core-template.php
bp_is_user_friends_activity()
bp_is_user_groups_activity()
….… hope this help u:
In reply to: Form register data fieldHi,
mybe it is problem with php session’s in the server.