Search Results for 'wordpress'
-
AuthorSearch Results
-
September 24, 2011 at 9:28 pm #120963
In reply to: Can’t reply to status updates
Connor
MemberHi, If its the problem I had then your website is not loading Global.JS you need to backup your functions.php file, (use your childthemes one if you have one) then edit it and add this code below near the bottom:
if ( !function_exists( ‘bp_dtheme_enqueue_scripts’ ) ) :
/**
* Enqueue theme javascript safely
*
* @see https://codex.wordpress.org/Function_Reference/wp_enqueue_script
* @since 1.5
*/
function bp_dtheme_enqueue_scripts() {
// Bump this when changes are made to bust cache
$version = ’20110921?;// Enqueue the global JS – Ajax will not work without it
wp_enqueue_script( ‘dtheme-ajax-js’, WP_PLUGIN_DIR . ‘/buddypress/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );// Add words that we need to use in JS to the end of the page so they can be translated and still used.
$params = array(
‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
‘comments’ => __( ‘comments’, ‘buddypress’ ),
‘close’ => __( ‘Close’, ‘buddypress’ ),
‘view’ => __( ‘View’, ‘buddypress’ )
);wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_scripts’ );
endif;September 24, 2011 at 9:25 pm #120962In reply to: Password Page on Buddy press pages pls
Connor
MemberSure, if i understand correctly you only want logged in users to see certain pages.
Private-buddypress should do the job:
https://wordpress.org/extend/plugins/private-buddypress/Hope that helps.
September 24, 2011 at 8:28 pm #120958demilio
ParticipantJust found the solution.
I added // in front of this line in the functions.php in bp-default:
‘wp_enqueue_script( ‘dtheme-ajax-js’, get_template_directory_uri() . ‘/_inc/global.js’, array( ‘jquery’ ) );’September 24, 2011 at 7:52 pm #120953Flora1234
MemberI want to emphaise that i want to RE-INSTALL WORDPRESS without losing my other plugins… it is possible through the dashboard.
September 24, 2011 at 7:45 pm #120951Flora1234
MemberSince i upgraded with buddypress 1.5 i dont have the login screen any more and i can see the wiget boxes underneath. I am wondering if i should reinstall wordpress, but how can i do it through the dashboard.
September 24, 2011 at 7:20 pm #120943In reply to: Widgets are not working BuddyPress 1.5
First Stop Design
MemberI had major issues recently and isolated the offending plugin to ‘bp registration options’. See this for more info: https://wordpress.org/support/topic/any-one-using-buddypress-please-help
We use ‘Block Spam by Math’ which seems to have cut down on robot reg’s quite a bit.
Get it here: https://wordpress.org/extend/plugins/block-spam-by-math-reloaded/Hope that helps?
September 24, 2011 at 6:59 pm #120942demilio
Participantyes, the problem dissapears when I deactivate buddypress
September 24, 2011 at 6:39 pm #120936In reply to: Activity stream showing my posts as being very old
r-a-y
KeymasterWhat version of BuddyPress are you using?
Have you tried changing the timezone settings in WordPress?
https://codex.wordpress.org/Settings_General_ScreenIf you change your timezone settings, try posting a new blog post and see if the time is fixed in the stream.
September 24, 2011 at 6:16 pm #120931r-a-y
KeymasterAre you sure you’re not using any other plugins that rely on javascript?
September 24, 2011 at 6:08 pm #120924Connor
MemberI know I added this code here:
if ( !function_exists( ‘bp_dtheme_enqueue_scripts’ ) ) :
/**
* Enqueue theme javascript safely
*
* @see https://codex.wordpress.org/Function_Reference/wp_enqueue_script
* @since 1.5
*/
function bp_dtheme_enqueue_scripts() {
// Bump this when changes are made to bust cache
$version = ‘20110921’;// Enqueue the global JS – Ajax will not work without it
wp_enqueue_script( ‘dtheme-ajax-js’, WP_PLUGINS_DIR . ‘/buddypress/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );// Add words that we need to use in JS to the end of the page so they can be translated and still used.
$params = array(
‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
‘comments’ => __( ‘comments’, ‘buddypress’ ),
‘close’ => __( ‘Close’, ‘buddypress’ ),
‘view’ => __( ‘View’, ‘buddypress’ )
);wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_scripts’ );
endif;I put this in the last section of functions.php
September 24, 2011 at 5:46 pm #120914In reply to: (RESOLVED) Fatal Error After Upgrade to 1.5
Paul Wong-Gibbs
KeymasterHi. I’m not sure. Can you create a bug report on http://buddypress.trac.WordPress.org/ please? Same username and password as on here.
September 24, 2011 at 12:19 pm #120885Paul Wong-Gibbs
KeymasterIt’s as simple as adding one exclamation mark. Look at https://buddypress.trac.wordpress.org/changeset/5187 — red is deleted, green is added or modified.
September 24, 2011 at 10:56 am #120874In reply to: Widgets are not working BuddyPress 1.5
First Stop Design
MemberHi, We have a related problem:
The widget menu options and general WordPress admin options are not expanding.
This means we are unable to adjust widget settings. In the latter, we have to click the title of an item to open it, but then we cannot close it again.Any thoughts?
September 24, 2011 at 10:24 am #120870Paul Wong-Gibbs
KeymasterHey guys
Regarding /activity/post/ being broken. If you are using the default theme, and have javascript disabled, you will get this problem. If you are using a 3rd party theme without BP-Default’s javascript, problem will also occur. I’ve just fixed this bug in core: https://buddypress.trac.wordpress.org/ticket/3612
It will be in BP 1.5.1
September 24, 2011 at 10:10 am #120869In reply to: WordPress vs. buddypress theme
Tammie Lister
ModeratorUltimately you have one theme, you can probably hack a theme switch but I’d also say that tends to lead to not only user but also general confusion. A cohesive look is far better.
Now of course if you’ve hit a case where the styling is an issue my first question would be are you using the template pack? I would assume so if it was a WordPress theme?
Now, what you could do is copy over the styling for those sections into your theme and use in those cases. Whilst keeping the wrapper of your site. However that would require some coding and I don’t know how you feel about that – some may not feel comfortable so hence asking?
I just would not suggest even with a hack to do it loading a different theme depending on where you are as it ruins the experience for users.
September 24, 2011 at 9:18 am #120866In reply to: bad admin bar links in bp 1.5
Paul Wong-Gibbs
KeymasterWe saw this in an early beta release, but no-one could recreate it. Are you all using domain mapping? Can you all share some more information about your WordPress, what plugins you have, version numbers, etc
September 24, 2011 at 12:02 am #120846In reply to: Buddypress version of wordpress 'mystique' theme?
@mercime
Participant@stripedsquirrel I don’t believe it would be compatible unless theme dev updated it. You could make Mystique BP-Compatible with the BP Template Pack, a future-proof solution.
September 23, 2011 at 10:37 pm #120836Connor
MemberHi it does not appear to have worked, I put it in the child theme currently in use and the main theme. Below is my functions.php with the code in it, does that seem correct?
<?php
add_action( ‘widgets_init’, ‘bptc_login_out_widget’ );function bptc_login_out_widget() {
register_widget( ‘BP_Theme_Converts_LogIn_Box’ );
}
class BP_Theme_Converts_LogIn_Box extends WP_Widget {/**
* Widget setup.
*/
function BP_Theme_Converts_LogIn_Box() {
/* Widget settings. */
$widget_ops = array( ‘classname’ => ‘bptc-login-out’, ‘description’ => __(‘BuddyPress Log In/Out Widget.’, ‘bptc-login-out’) );/* Widget control settings. */
$control_ops = array( ‘width’ => 300, ‘height’ => 350, ‘id_base’ => ‘bptc-login-out-widget’ );/* Create the widget. */
$this->WP_Widget( ‘bptc-login-out-widget’, __(‘BuddyPress Log in/out widget’, ‘bptc-login-out’), $widget_ops, $control_ops );
}/**
* How to display the widget on the screen.
*/
function widget( $args, $instance ) {
extract( $args );/* Before widget (defined by themes). */
echo $before_widget;buddyPressLoginBox();
/* After widget (defined by themes). */
echo $after_widget;
}}
function buddyPressLoginBox() {
?><a href="”><a class="button logout" href="”>
<?php printf( __( ' You can also create an account.’, ‘buddypress’ ), site_url( BP_REGISTER_SLUG . ‘/’ ) ) ?>
<form name="login-form" id="sidebar-login-form" class="standard-form" action="” method=”post”>
<input type="text" name="log" id="sidebar-user-login" class="input" value="” />
<input type="submit" name="wp-submit" id="sidebar-wp-submit" value="” tabindex=”100″ />
<?php /* Show forum tags on the forums directory */
if ( BP_FORUMS_SLUG == bp_current_component() && bp_is_directory() ) : ?><?php
}
if ( !function_exists( ‘bp_dtheme_enqueue_scripts’ ) ) :
/**
* Enqueue theme javascript safely
*
* @see https://codex.wordpress.org/Function_Reference/wp_enqueue_script
* @since 1.5
*/
function bp_dtheme_enqueue_scripts() {
// Bump this when changes are made to bust cache
$version = ‘20110921’;// Enqueue the global JS – Ajax will not work without it
wp_enqueue_script( ‘dtheme-ajax-js’, WP_PLUGINS_DIR . ‘/buddypress/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );// Add words that we need to use in JS to the end of the page so they can be translated and still used.
$params = array(
‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
‘comments’ => __( ‘comments’, ‘buddypress’ ),
‘close’ => __( ‘Close’, ‘buddypress’ ),
‘view’ => __( ‘View’, ‘buddypress’ )
);wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_scripts’ );
endif;
?>September 23, 2011 at 10:11 pm #120833Boone Gorges
KeymasterOK, sure. You should be able to drop this in your theme’s functions.php.
`if ( !function_exists( ‘bp_dtheme_enqueue_scripts’ ) ) :
/**
* Enqueue theme javascript safely
*
* @see https://codex.wordpress.org/Function_Reference/wp_enqueue_script
* @since 1.5
*/
function bp_dtheme_enqueue_scripts() {
// Bump this when changes are made to bust cache
$version = ‘20110921’;// Enqueue the global JS – Ajax will not work without it
wp_enqueue_script( ‘dtheme-ajax-js’, WP_PLUGINS_DIR . ‘/buddypress/bp-themes/bp-default/_inc/global.js’, array( ‘jquery’ ), $version );// Add words that we need to use in JS to the end of the page so they can be translated and still used.
$params = array(
‘my_favs’ => __( ‘My Favorites’, ‘buddypress’ ),
‘accepted’ => __( ‘Accepted’, ‘buddypress’ ),
‘rejected’ => __( ‘Rejected’, ‘buddypress’ ),
‘show_all_comments’ => __( ‘Show all comments for this thread’, ‘buddypress’ ),
‘show_all’ => __( ‘Show all’, ‘buddypress’ ),
‘comments’ => __( ‘comments’, ‘buddypress’ ),
‘close’ => __( ‘Close’, ‘buddypress’ ),
‘view’ => __( ‘View’, ‘buddypress’ )
);wp_localize_script( ‘dtheme-ajax-js’, ‘BP_DTheme’, $params );
}
add_action( ‘wp_enqueue_scripts’, ‘bp_dtheme_enqueue_scripts’ );
endif;
`September 23, 2011 at 9:50 pm #120831In reply to: Buddypress version of wordpress 'mystique' theme?
stripedsquirrel
ParticipantDoes anyone know if Mystique for BP works with the new 1.5?
September 23, 2011 at 9:48 pm #120830Connor
Memberlol tracking each other down :L
Thank you for replying, the code didn’t show up on the post on the wordpress.org one, it says it was moderated, is there any chance you could post it here
September 23, 2011 at 9:41 pm #120828Boone Gorges
KeymasterI just left a comment telling you how to do it on your wordpress.org post
September 23, 2011 at 6:14 pm #120793@mercime
Participant@kkradel bp.css is enqueued after your style.css and bp.css has this in stylesheet
`#wp-admin-bar .padder {
width: 95% !important; /* Line up the admin bar with the content body in this theme */
}`The easiest thing to do is to
1 – download a copy of bp.css https://plugins.svn.wordpress.org/bp-template-pack/tags/1.2/bp.css
2 – correct the width of #wp-admin-bar .padder to 100%
3 – upload to server in plugins/bp-template-pack to override old bp.cssSeptember 23, 2011 at 1:46 pm #120761jjstreat
Member“
…was the code I tried to blockquote above. New to the forums. Heh.
September 23, 2011 at 9:38 am #120746In reply to: How do you add a Favorite Button to Blog Posts?
Tammie Lister
ModeratorIt depends what you want to happen on favourite.
https://wordpress.org/extend/plugins/add-to-any/ works for social / bookmarking.
If you wanted to add the BuddyPress style favorites though that would be:
https://wordpress.org/extend/plugins/bp-favorites/
Or perhaps likes with this plugin:
https://buddypress.org/community/groups/buddypress-like/
I am not 100% sure how updated any of those plugins are though.
-
AuthorSearch Results