Search Results for 'buddypress'
-
Search Results
-
Topic: Rename components
Hi –
I’m still in the dark ages, using bp1.03 and wpmu 2.8.4a. Be that as it may, can anyone shed any light on how to change the sender email address for the group news notifications?
Currently, our group updates come from an email address that seems to be created by Buddypress, in the format of [domainname]@hostingcompanysendmail.hostingcompanydomain.com
This causes many email inboxes to interpret the message as spam and discard it.
I would like to use your normal outbound admin email address? Has anyone succeeded in modifying this sending email address?
Thanks,
brian
OK Here’s what I’m trying to do:
In a member profile, a users status should be publicly viewable.
The only people who should be able to update a users status is Admin.
Even registered members shouldn’t be allowed to update their status.
Also this part: “18 hours, 1 minute ago” I want to edit so that the same text displays all the time. I want to change it to: “To xxxxxx. T&C’s [Hyperlink] apply”.
Can anyone tell me how I’d go about doing this?
I don’t see the relative ‘if’ tags in profile/index.php that allow logged in users to edit their status, so started looking elsewhere.
The only place I see something that maybe what I need to edit is-
/buddypress/bp-status/bp-status-templatetags.php
Here’s what’s there:
<?php
function bp_the_status( $args = false ) {
/***
* To support updating your status without JS, we can display the update form when the GET var "status" is set
* to "new".
*/
if ( 'new' == $_GET['status'] && is_user_logged_in() ) {
locate_template( array( 'status/post-form.php' ), true );
} else {
if ( 'clear' == $_GET['status'] && is_user_logged_in() )
bp_status_clear_status();
echo bp_get_the_status( $args );
}
}
function bp_get_the_status( $args = false ) {
global $bp;
$defaults = array(
'user_id' => $bp->displayed_user->id,
'clear_button_text' => __( 'Clear', 'buddypress' ),
'new_button_text' => __( 'Update Your Status', 'buddypress' ),
'no_anchor' => false
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
if ( !$user_id )
$user_id = $bp->displayed_user->id;
$status = apply_filters( 'bp_status_from_usermeta', get_usermeta( $user_id, 'bp_status' ) );
if ( empty($status) )
return bp_get_update_status_button( 'text=' . $new_button_text );
$time_since = sprintf( __( '%s ago', 'buddypress' ), bp_core_time_since( $status['recorded_time'] ) );
$content = apply_filters( 'the_status_content', $status['content'] );
if ( !(int)$no_anchor && $user_id == $bp->loggedin_user->id )
$content = '<a href="' . bp_core_get_user_domain( $user_id ) . '?status=new" id="status-new-status">' . $content . '</a>';
$content .= ' <span class="time-since">' . $time_since . '</span>';
$content .= ' ' . bp_get_clear_status_button( 'text=' . $clear_button_text );
return apply_filters( 'bp_get_the_status', $content );
}
function bp_update_status_button( $args = false ) {
echo bp_get_update_status_button( $args );
}
function bp_get_update_status_button( $args = false ) {
global $bp;
$defaults = array(
'user_id' => false,
'text' => __( 'Update Your Status', 'buddypress' )
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
if ( !$user_id )
$user_id = $bp->displayed_user->id;
if ( $user_id != $bp->loggedin_user->id )
return false;
return apply_filters( 'bp_get_update_status_button', '<div class="generic-button"><a href="' . bp_core_get_user_domain( $user_id ) . '?status=new" id="status-new-status">' . $text . '</a></div>' );
}
function bp_clear_status_button( $args = false ) {
echo bp_get_clear_status_button( $args );
}
function bp_get_clear_status_button( $args = false ) {
global $bp;
$defaults = array(
'user_id' => false,
'text' => __( 'Clear', 'buddypress' )
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
if ( !$user_id )
$user_id = $bp->displayed_user->id;
if ( $user_id != $bp->loggedin_user->id )
return false;
return apply_filters( 'bp_get_clear_status_button', '<a href="' . bp_core_get_user_domain( $user_id ) . '?status=clear" id="status-clear-status">' . $text . '</a>' );
}
function bp_status_form_action( $user_id = false ) {
global $bp;
if ( !$user_id )
$user_id = $bp->loggedin_user->id;
echo apply_filters( 'bp_status_form_action', bp_core_get_user_domain( $user_id ) . BP_STATUS_SLUG . '/add' );
}
function bp_the_status_css_class() {
echo bp_get_the_status_css_class();
}
function bp_get_the_status_css_class() {
return ( bp_loggedin_user_id() == bp_displayed_user_id() ) ? 'status-editable' : 'status-display';
}
?>Can anyone help, or even tell me if I’m looking in the correct place?
Topic: Creating a Page
So basically, I’d like to create a “sub directory” for my blogs.
On buddypress you get the default http://www.yoursite.com/blogs directory for all your blogs.
However, I just want to create another page where I’ll categorize a few of the blogs manually.
My problem is I need to know where to save my php file, and how to link to it?
Here’s how I would like to have the stuff laid out:
On mysite.com/blogs, in the side bar have a button that links to mysite.com/subblogs
On mysite.com/subblogs (the .php file I created) the code looks like this :
<?php get_header() ?>
<div id="content">
RED BLOG LINK
BLUE BLOG LINK
GREEN BLOG LINK
ETC LINKS
</div>
<div id="sidebar" class="directory-sidebar">
SIDE STUFF
</div>
<?php get_footer() ?>So where to I put this php file, and how do I get it set up so that the link for it is : mysite.com/subblogs
Thank you
I have installed the most recent version of BP. When I go the the themes section buddymatic is working but it says that the buddypress default theme and the avenue k9 theme are broken. Next to that it says that both are “Missing a template.”
What does this mean and how can I fix this issue?
Thanks for the help
Alex
Topic: system mailer
Have a Buddypress MU Blog system up and running but developed a problem with the “send mail” in general settings for site activities.
The e-mail could not be sent.
Possible reason: your host may have disabled the mail() function…
All other mail function on my server works fine.
Thanks for your help,
James
Topic: getting bb press to work
1. Which version of WPMU are you running?
A. You are using WordPress MU 2.8.6.
2. Did you install WPMU as a directory or subdomain install?
A. Directory (initially a subdomain on accident)
3. If a directory install, is it in root or in a subdirectory?
A. Was a sub directory and is now moved to the root
4. Did you upgraded from a previous version of WPMU? If so, from which version?
A. Fresh Installation
5. Was WPMU functioning properly before installing/upgrading BuddyPress?
A. Seemed to be an issues from installation
6. Which version of BuddyPress (BP) are you running?
A. Latest available from download section
7. Did you upgraded from a previous version of BP? If so, from which version?
8. Do you have any plugins other than BuddyPress installed and activated?
A. Yes ( I removed all issues ramain) it’s not plugins
9. Are you using the standard BuddyPress themes or customized themes?
I’m using a paid theme from WPMU DEV
10. Have you modified the core files in any way?
A. not at all
11. Do you have any custom functions in bp-custom.php?
A. Not that I have added
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
Running bbpress but ti’s not working showing blank screen with no options but to reinstall
13. Please provide a list of any errors in your server’s log files.
A. I don’t have any errors to show
14. Which company provides your hosting?
A. Godaddy Dedicated Server
QUESTION
I go to the forums options and all it’s showing is a re install option.
What am I supposed to do?
Topic: Getting started with bbpress
Hey Guys,
I’ve managed to get an install on WordPress MU + Buddypress + Facbeook Connect up and running. I’ve set up Forums and bp says everything is working right.
BUT – and maybe I’m being stupid here – where do I set up Forums? I.e. provide the initial category structure for everything to work within? From a user perspective I see no options to actually create a post.
M.
Okay Guys and Gals – I need a little MySql & PHP help to get comet chat running.
I’ve just recently purchased CometChat and Inorder for it to work with a Buddypress install one must manually configure it.
I’ve got everything working except the friends list.. I don’t know how to tell it to call the online users.
Here are my instructions from Comet Chat:
Next, we modify getFriendsList() function.
The getFriendsList() function returns all the users’ details part of the Who’s Online list. This list need not necessarily be friends of the logged in user. It may simply be all online users instead. You can customize this to return any set of users.
The default configuration assumes that you have a table called friends with the following fields:
toid integer
fromid integer
All entries are assumed to be two-way i.e. if user A (id:1) and user B (id:2) are friends, then there will be two entries in the table:
id toid fromid
13 1 2
14 2 1
function getFriendsList($userid,$time) {
$sql = (“select DISTINCT “.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_USERID.” userid,
“.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_NAME.” username,
“.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_LASTACTIVITY.” lastactivity,
“.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_USERID.” avatar, “.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_USERID.” link,
cometchat_status.message, cometchat_status.status
from “.TABLE_PREFIX.”friends join “.TABLE_PREFIX.DB_USERTABLE.”
on “.TABLE_PREFIX.”friends.toid = “.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_USERID.”
left join cometchat_status on “.TABLE_PREFIX.DB_USERTABLE.”.”.DB_USERTABLE_USERID.” = cometchat_status.userid
where “.TABLE_PREFIX.”friends.fromid = ‘”.mysql_real_escape_string($userid).”‘
order by username asc”);
return $sql;
}
I don’t know what I need to change in that function so that it’s getting a list of users from buddypress…
Any ideas?