Search Results for 'buddypress'
-
AuthorSearch Results
-
December 31, 2010 at 1:47 am #101580
bgrun80
ParticipantCheers @boonebgorges.
So, if I can clarify the whole process. Please tell me if I’m right or if I’m wrong,
and I’ll post it up on my forum, and make a page in the codex if you want.When a visitor loads the URL of a Buddypress-supported site:
1. the WordPress environment loads and loads the Buddypress plugin
2. buddypress/bp-themes/bp-default is loaded (if you have activated that theme)
3. as the visitor browses through different pages, functions are activated in those pages
4. these functions draw their code from the core files (checking first if bp-custom.php contains same-named functions that will overwrite code in the core files)
5. there are 9 core files
6. these 9 core files require/include other groups of code from folders that are named the same way
e.g. ‘bp-core.php’ requires/includes the files from the ‘bp-core’ folder
7. The files in these folders are groups of code that share a similar category (e.g. classes) (e.g. bp-core/bp-core-classes.php)
because modularizing them this way makes it easier to find the code you need.
8. extra code that is hard to categorize clearly is simply put into the main file (e.g. bp-core.php)Questions:
a. Is the above list right?
b. Do the core files need to be loaded every time a user visits a page and activates a related function?
e.g. if a user activates a function related to friends, does bp-friends.php need to be loaded?December 31, 2010 at 1:28 am #101578In reply to: Important Buddypress Function not working
luvs
Memberput in bp-custom.php, and functions.php, i get Parse error: syntax error, unexpected T_VAR in /home/content/47/6114047/html/wp-content/themes/*****/functions.php on line 116
December 31, 2010 at 1:22 am #101577In reply to: Important Buddypress Function not working
luvs
Memberput this where?
December 30, 2010 at 11:58 pm #101574@mercime
ParticipantCheck out this walkthrough to get a bird’s eye view of what kind of work is entailed and some tips to ensure compatibility with BP Template Pack.
https://codex.buddypress.org/theme-development/bp-template-pack-walkthrough-level-easy-2/Btw, BP Template Pack still needs to be upgraded to BP 1.2.7 version.
December 30, 2010 at 11:31 pm #101573modemlooper
ModeratorYou have to edit the part about the server. On mamp it will be localhost and your user name and password is usually root. This is so WP can connect to your local database.
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘buddypress’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘root’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);As for creating a database you go to phpmyadmin enter a name of the db in the create database input and hit create.
Then in the wp-config file you enter the name you entered here define(‘DB_NAME’, ‘ PUT YOUR DB NAME HERE’);
December 30, 2010 at 11:17 pm #101572Boone Gorges
KeymasterI would like to see a full fidelity import-export tool, but it’s a lot of work. Look for it in 2011.
December 30, 2010 at 11:16 pm #101571In reply to: Important Buddypress Function not working
Boone Gorges
Keymaster`var jq = jQuery;
jq(document).ready( function() {
/* @mention username help button display */
if ( jq( ‘span.highlight span’ ).length )
jq( ‘span.highlight span’ ).toggle();
});`December 30, 2010 at 10:15 pm #101570In reply to: Require Avatar for approving users?
victor_moura
ParticipantReally? Is this still the case with the new versions of buddypress?
I thought that allowing avatar uploads in open registration installs was the default.
If that is still risky, which solutions would you recomment, @mercime ?
December 30, 2010 at 10:12 pm #101569victor_moura
ParticipantHey @boonebgorges – I’d love to suggest a standalone import/export – doing all these database imports and exports is definitely not an easy task for the below-average user like me, who became pampered with WordPress turn-key solutions

If you can share some light on the 3 questions I made on my reply to @aljuk that would be fantastic! Sorry to bother with these simple questions…
December 30, 2010 at 10:10 pm #101568victor_moura
ParticipantHey @aljuk – this was superb!
I am a newbie, but a newbie with endurance

I confess I was puzzled by your answer, but then asked the support staff of my hosting company to help me with steps one and two you listed.
But now I am stuck. On step 3, I understand I should use Notepad (Text Editor on MAC OS) to edit the wp-config.php file that I have downloaded doing step 1 (I’m copying the entire public_html folder using FTP).
Questions:
a) what are the specific modifications I should do on the wp-config.php file in my hard disk after the copying of the remote files?
b) how do I create a new local database? With MAMP? Which configurations should be set for this new database (never did that before)
c) how do I import the gzip backup of the remote database I made with phpMyAdmin?December 30, 2010 at 10:05 pm #101567In reply to: Important Buddypress Function not working
luvs
Memberbump since the flood last night
December 30, 2010 at 8:52 pm #101564In reply to: Persistent Caching and Private Messaging
gregfielding
ParticipantThanks @r-a-y
This is a better solution. Any thoughts on how to solve the same problem with @mentions?
December 30, 2010 at 8:40 pm #101562In reply to: [Resolved] @mention appears on activity stream?
luvs
MemberThank you! It worked to perfection.
Thanks a ton @gunju2221
December 30, 2010 at 8:39 pm #101561In reply to: Buddypress Text to all caps
johanne_lewis
MemberDon’t seem to work for me, but I may have added code in the wrong stylesheet. Also is there a way to add another url link to buddypress profile? For example i have a custom login page with information about the site that i would like users to refer back to. Somehow i cant get the widgets to display on buddypress pages
December 30, 2010 at 8:27 pm #101559In reply to: [Resolved] @mention appears on activity stream?
Virtuali
Participant@luvs123, Here is a fix that might work. In bp-activity-classes.php, change
`if ( !empty( $filter_array ) ) {
$user_filter = explode( ‘,’, $filter_array );
$user_sql = ‘ ( a.user_id IN ( ‘ . $filter_array . ‘ ) )’;
$filter_sql[] = $user_sql;
}` With…
`if ( !empty( $filter_array ) ) {
$user_filter = explode( ‘,’, $filter_array );
$user_sql = ” ( a.user_id IN ( ” . $filter_array . ” ) “;
foreach ( $user_filter as $user_id ) {
$search_terms = ‘@’ . bp_core_get_username( $user_id ) . ‘<';
$user_sql .= “OR ( a.content LIKE ‘%%”.like_escape($search_terms).”%%’ ) “;
}
$user_sql .= ” ) “;
$filter_sql[] = $user_sql;
}`December 30, 2010 at 7:02 pm #101556luvs
Member@nahummadrid, does not work, post from simply does not appear. You are missing pieces.
December 30, 2010 at 6:11 pm #101553In reply to: MediaWiki edits -> BP activity streams
Mark
Participant@boonebgorges @LPH2005 Great work on this guys,
I’m bringing up errors on file uploads after activating the extension as detailed on the mediawiki extension page:
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/collabbo/public_html/figshare.com/figures/extensions/buddypress-activity/buddypress-activity.php on line 61
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/collabbo/public_html/figshare.com/figures/extensions/buddypress-activity/buddypress-activity.php on line 68
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/collabbo/public_html/figshare.com/figures/extensions/buddypress-activity/buddypress-activity.php on line 75
Table ‘collabbo_figures.wp_bp_activity’ doesn’t existLines 61, 68 and 75 are as follows:
‘$resultarray = mysql_fetch_array($result);’
‘$bpresultarray = mysql_fetch_array($bpquery);’
‘$checkRecentArray = mysql_fetch_array($checkrecent);’WP 3.0.1 bp1.2.6
Any ideas and help would be much appreciated. Thanks
December 30, 2010 at 6:01 pm #101552In reply to: Activity stream ”Load More” looping content
Boone Gorges
KeymasterPlease go ahead and open a bug ticket on trac.buddypress.org with a detailed description of what you know, steps to reproduce, and a link back to this thread. You can use the same user name and password as on this site. Then I or another dev can have a look at whether there is a bug in the way that that cookie works.
Thanks!
December 30, 2010 at 5:19 pm #101549In reply to: Editing Creat New Blog Signup
@mercime
ParticipantYou’re welcome.
P.S. Just in case you were thinking of changing the text about the blog creation in core file, you should instead change it either this way – http://blog.ftwr.co.uk/archives/2010/01/02/mangling-strings-for-fun-and-profit/ – or this way – https://codex.buddypress.org/extending-buddypress/customizing-labels-messages-and-urls/
December 30, 2010 at 5:18 pm #101547In reply to: Important Buddypress Function not working
luvs
MemberHey look at this, Same problem that I have.
December 30, 2010 at 5:18 pm #101546In reply to: WordPress Upgrades vs WP MultiSite vs BuddyPress
Ehegwer
ParticipantYep, I just did the update, and so far so good. But if you are concerned, you should do a backup just in case.
December 30, 2010 at 5:13 pm #101543Boone Gorges
KeymasterThe procedure suggested by @aljuk is probably as good as you’re going to get right now. For now, the WP import/export process does not recognize the majority of BP content, and there is no standalone BP import/export tool yet.
December 30, 2010 at 5:10 pm #101542In reply to: WordPress Upgrades vs WP MultiSite vs BuddyPress
Boone Gorges
KeymasterWP upgrades, especially security and maintenance releases (ie when the version number is 3.x.x rather than 3.x), are generally very unlikely to break any plugins, including BP. I’d recommend that you upgrade to maintenance releases immediately.
Feature releases, like WP 3.0 and 3.1, are somewhat more likely to cause problems with plugins like BP. But the BP core team works closely with the WP core team to ensure that BuddyPress is ready for whatever changes come along ahead of time. If there is something in BuddyPress that absolutely cannot be fixed prior to a major WP release, we’ll do our best to warn you about it before you upgrade.
December 30, 2010 at 4:16 pm #101541aljuk
MemberI work with local mirrors on MAMP Pro. This is what I do :
1. Copy the remote files (the whole install) to my local machine (I do this so the file creation dates are the same).
2. Backup the remote database with phpMyAdmin (be sure to select Add DROP TABLE) as a gzip file.
3. Edit the local copy of wp-config.php for my local machine’s database connection.
4. Create a new local database and import the remote backup (I personally always destroy the local db and create a new empty one to import into – then I know it’s clean).
5. Use this tool to change all absolute URLs from remote to local: http://spectacu.la/search-and-replace-for-wordpress-databases/Then I’ll test new plugins locally before deploying. Also I update plugins locally, and then manually copy them to the server, having had a few past failures updating plugins on production servers. Once it’s running, the only files I normally have to backup from remote to local are all in wp-content (avatars etc., which can easily be sync’d).
Hope that helps.
December 30, 2010 at 4:07 pm #101540In reply to: Buddypress Text to all caps
modemlooper
Moderator.profile{
text-transform: uppercase;
}Add that to your CSS file
-
AuthorSearch Results