Search Results for 'buddypress'
-
Search Results
-
Topic: Bloging Function for users
How do i install the create a blog function in the buddypress admin panel im getting this message when i want to create one… “Blog registration is currently disabled”
Running WPMU 2.7 and BuddyPress 1.0.2
Checkout: http://painreliefnetwork.org/members/cody/
Notice in the activity feed, wire posts don’t render, not even in the activity rss feed.
This started after 1.0.1 was released.
This is what I’m using to call the activity:
<h4><?php echo bp_word_or_name( __( "My Activity", 'buddypress' ), __( "%s's Activity", 'buddypress' ), true, false ) ?></h4>
<?php if ( bp_has_activities( 'type=personal&max=5' ) ) : ?>
<div id="activity-rss">
<p><a href="<?php bp_activities_member_rss_link() ?>" title="<?php _e( 'RSS Feed', 'buddypress' ) ?>"><?php _e( 'RSS Feed', 'buddypress' ) ?></a></p>
</div>
<ul id="activity-list">
<?php while ( bp_activities() ) : bp_the_activity(); ?>
<li class="<?php bp_activity_css_class() ?>">
<?php bp_activity_content() ?>
</li>
<?php endwhile; ?>
</ul>
<?php else: ?>
<div id="message" class="info">
<p><?php echo bp_word_or_name( __( "You haven't done anything yet.", 'buddypress' ), __( "%s hasn't done anything yet.", 'buddypress' ), true, false ) ?></p>
</div>
<?php endif;?>
</div>I’m not sure if everyone’s facing this problem. But I recently upgraded my FF to 3.5 (latest). The buddypress site I’ve setup now looks distorted with different fonts, shrunken images etc.
Other sites are normal. What’s going wrong?
I’ll try to post a screenshot if you need.
Topic: page after activation
Can anyone point me to the file that contains the code for the page that shows up after users click the activation link in the email? Not sure if its a WPMU or a buddypress file. Thanks.
Hi ! First; WHY can’t I reply to my own post ???
Well, this is what I came to related to this subject. The ajax process succeed (don’t know if its good but it works); but now I can’t decode de JSON object sent… :
in the PHP admin page :
<script type="text/javascript">
//<![CDATA[
var blog_url='<?php echo site_url();?>';
//]]>
</script>in the JS :
jQuery(submit_button).click(function(){ //CLICK SUBMIT
var dataString = jQuery.toJSON(mainlist.get_tree_array());
jQuery.post(blog_url+'/wp-content/plugins/bp-classifieds/admin/bp-classifieds-ajax.php', {
action: 'bp_classifieds_update_tree',
'blog_url':blog_url,
'cookie': encodeURIComponent(document.cookie),
'_wpnonce': nonce,
'datas':dataString
},
function(response) {
console.log(response);
}, "json");
return false;
});the ajax file :
<?php
$page_path = getcwd();
$page_path_split = split('wp-content',$page_path);
$wp_path = $page_path_split[0];
include_once($wp_path.'/wp-load.php' );
$function = $_POST['action'];
$function();
function bp_classifieds_update_tree() {
global $bp,$wpdb;
if (!check_admin_referer('classifieds-settings') ) {
echo "NONCE error";
return;
}
$res = json_decode($json, true);
print_r($res);
}
add_action( 'wp_ajax_bp_classifieds_update_tree', 'bp_classifieds_update_tree' );
?>It works, I can use wpdb functions; the nonce is checked and is OK; but now I have problems with JSON :
If I “console.log” it in my JS, I got
{"0": {"id": "3", "order": 1}, "1": {"id": "4", "order": 2}, "2": {"id": "5", "order": 3}, "3": {"id": "6", "order": 4}, "4": {"id": "7", "order": 5}, "5": {"id": "8", "order": 6}, "6": {"id": "new", "order": 7, "deleted": true}}Once sent by POST in bp-classifieds-ajax.php;
$json = $_POST['datas'];
$res = json_decode($json, true);
print_r($json);gives
{"0": {"id": "3", "order": 1}, "1": {"id": "4", "order": 2}, "2": {"id": "5",
"order": 3}, "3": {"id": "6", "order": 4}, "4": {"id": "7", "order": 5}, "5": {"id
": "8", "order": 6}, "6": {"id": "new", "order": 7, "deleted": true}}but
$json = $_POST['datas'];
$res = json_decode($json, true);
print_r($res);outputs nothing. What is wrong here ?
Thanks !