Save files.
Search Results for 'wordpress'
-
AuthorSearch Results
-
March 31, 2012 at 9:01 pm #132196
In reply to: Buddypress plugin of WordPress remote SQL Injection
shanebp
ModeratorReported to developers and fixed in version 1.5.5
March 31, 2012 at 8:17 pm #132195In reply to: [RESOLVED]Hide pages from non-members
aces
ParticipantOne way of doing that is by serving different menus depending whether someone is logged in or not such as
`
<?php
// https://codex.wordpress.org/Function_Reference/wp_get_current_user
$current_user = wp_get_current_user();
if ( 0 == $current_user->ID ) {
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘secondary-menu’, ‘fallback_cb’ => ” ) );
// Not logged in.
} else {
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ” ) );
// Logged in.
}
?>
`
or another approach:
`
<?php
if ( is_user_logged_in() ) {
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘primary’, ‘fallback_cb’ => ” ) );
} else {
wp_nav_menu( array( ‘container’ => false, ‘menu_id’ => ‘nav’, ‘theme_location’ => ‘secondary-menu’, ‘fallback_cb’ => ” ) );
}
?>
`
replacing the `wp_nav_menu` bit in the ( child ) theme’s header.php file. It may need adapting depending on theme etc. Remember to make backups before editing!Then use the walled garden or similar techniques to redirect users if they try to reach the page directly…
March 31, 2012 at 5:46 am #132181In reply to: Unified Profile Page?
@ChrisClayton
Participant@BossX – As in, similar to the wordpress profiles (https://profiles.wordpress.org/matt)?
Yes, it’s possible through a custom theme.The top part with the profile information is simply the members/single/member-header.php file with code to insert their bio and other info – See: http://bp-tricks.com/snippets/displaying-certain-profile-fields-on-your-members-profile-page/
The bottom part is the members/single/profile.php template (their activity is an external custom built activity stream, but the theory is the same… just add the activity loop) – See: https://codex.buddypress.org/developer-docs/custom-buddypress-loops/the-activity-stream-loop/
And then they changed the default profile view from the activity view to profile with – define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ );
March 31, 2012 at 2:02 am #132180In reply to: The Register Button goes to Home page?
aces
ParticipantI am also http://testbp.org/members/aces/ You should be able to pm me there, although I haven’t tested it with pm before and I’m not sure I can help…..
Did you use an auto installer provided by your host to install wordpress and/or buddypress etc? Autoinstallers have been the cause of many problems in the past.
March 30, 2012 at 1:58 pm #118377In reply to: Replies shouldn’t bump Activity Updates to top
Prince Abiola Ogundipe
ParticipantMarch 30, 2012 at 1:22 pm #118375@ChrisClayton
Participant@enderpal, don’t have time to actually look closely at the stackexchange atm. but if it helps, you actually don’t need to unhook it.
The way wordpress works is it will always look through your child theme first, so if you copy the function into your child theme – when wordpress goes through default and finds `if ( !function_exists( ‘bp_dtheme_comment_form’ ) ) :` since it DOES exist inside your child theme, it will pretend that the function inside the default theme doesn’t exist essentially doing the exact same thing as ‘removed all the filters’ would do.
March 30, 2012 at 6:43 am #118371In reply to: Does theme 2011 work with BuddyPress?
BOW
ParticipantUnfortunately as @mercime has stated to use 2011 you will have to go through the process of theme compatibility.
In a related question, is there a plan to try and make bpuddypress theme independent?
On the surface it looks to me like it should be possible using some smart and unique CSS class naming that buddy press could be installed as a plugin with a set of additional CSS files rather than replacement CSS files.
I see in the dev chats that some folk are working on yet another child theme, but to be honest having buddy press so tightly coupled to the theme has been one of the main setbacks of this project (imho)
Surely the resource and time of these talented and dedicated members would be better spent on decoupling buddy press from the theme rather than creating another theme that existing users are unlikely to benefit from and gives yet another unrequired decision (and potential dead end) during the early process of getting started.
Buddy press components appear typically in:
The top navigation (can be handled using the menu builder or manually)
The main content area
The side bar
The buddy bar (now the wordpress tool bar)Most themes contain these areas (to be compatible with other plugins) so we must surely be at the stage where serious thought is being given to starting the decoupling process?
Future versions of buddy press should be tested to death on the wordpress default theme and and let theme owners take it from there.
Is this possible or it the task immense?
March 30, 2012 at 2:49 am #132166In reply to: The Register Button goes to Home page?
walkingcloud
MemberI have WordPress experience, and after I installed BuddyPress there was no errors shown as I have seen on other plugins. I know from experience if a plugin has problems a message box appears stating an error of the plugin being installed. After I installed BuddyPress no error messages appear, yet we see the ‘You have no groups’ message, and it’s starange…
Perhaps the server “Godaddy” is not loading all theBuddyPress files properly?
March 30, 2012 at 1:22 am #132162In reply to: The Register Button goes to Home page?
walkingcloud
MemberI also noticed this post…?
https://buddypress.trac.wordpress.org/ticket/3725March 29, 2012 at 11:39 pm #132156In reply to: Members Directory Appearing Everywhere
thedzigner
MemberOkay, so upon trying everything I could think of, I deleted the entire WordPress install and started again.
The problem came up precisely the same!
However, when I changed the url from [link removed] to [link removed] all of a sudden I can see the content I’m supposed to see!!
What does that mean, and what on earth is going on?
March 29, 2012 at 10:38 pm #132150In reply to: API Request
Paul Wong-Gibbs
KeymasterBest place for this is https://buddypress.trac.WordPress.org as an enhancement ticket. Patches welcome!

Question, though: what happens if it inserts multiple items into the table_name_fields?
March 29, 2012 at 10:09 pm #132149In reply to: The Register Button goes to Home page?
aces
ParticipantThere is something wrong with your register page as, I think, it should have Name ( at least ) as a required field under the profile details section.
If I click on ‘complete sign up’ without filling anything in then it redirects to the home page whearas I think it should stay on the same page but with error messages.
What plugins are your using? Single or multi-site? Any unusual permalink or .htaccess settings?
Have you altered the Name field in any way from the default:

This seems to be similar to @allentan‘s problem: https://buddypress.org/community/groups/installing-buddypress/forum/topic/registeration-doesnt-work/
March 29, 2012 at 5:08 pm #132130@mercime
Participant@dsmndwng Based on the HTML structure of your theme, you’d need to use the first option, i.e., change 16 template files within the 6 BP folders transferred to your TheStyle theme folder in server during the compatibility process.
If you’ve previously changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility.
Download the 6 clean BP folders to your computer hard drive.
A. At the top of each of those 16 template files I linked to above, replace
``with
``March 29, 2012 at 1:43 pm #132122Etienne ROSENSTIEHL
ParticipantI made many changes. I probably did both. Now you know the problem, do you know a solution ?
(I use a very basic structure : WordPress, BussyPress, bd-default theme and Private BuddyPress.)March 29, 2012 at 10:13 am #132115In reply to: Search Buddypress Support Forums
richardpd
MemberHow do I find my BP forum posts here at BP support? I can find my WP forum posts at wordpress.org but not BuddyPress!
My ‘Your Activity’ link tells me the number of my posts but nowhere can I find a link to my posts (so I cannot review them!).
I follow Mercime (a moderator on this site)-but I cannot see a way to private message her for help?!
I am having lots of trouble running BP on my site and am finding help hard to get here.NB Why does my post say ‘Deleted User’ when I am logged in as richardpd?
NNB-Fixed ‘Deleted User’ issue…I was not logged in properly?! I am not sure how that happened but I changed my WP.org settings & relogged in & is fine now!!March 29, 2012 at 8:31 am #132112@mercime
Participant@faithcoach first of all, you’re using a theme which needs to be updated to recommended coding standards 🙂
At this point however, we will proceed with the original tags in your template files. Based on the HTML structure of your theme, you’d need to use the first option, i.e., change 16 template files within the 6 BP folders transferred to your WP DaVinci theme folder in server during the compatibility process.
March 29, 2012 at 8:30 am #132111In reply to: [Resolved] Is this the correct Registration Page?
allentan
MemberI have deleted the BP files and Reinstall back manually.
The result is still the same.? Is it due to my WP wordpress installation, how can i reinstall wordpress, can this be the issue?I tested with Twenty Eleven theme and there is NO changes, I can’t see the Name Field on registration page. See below.
http://learningdigitalphotography.net/registrationMarch 29, 2012 at 7:59 am #132110Hugo Ashmore
ParticipantAnd are permalinks working? You have to have them set to something other than the default i.e you cant have /?p=1234
It sounds as though your permalinks are not working so you may need to investigate that, establish that your .htaccess file can be writen to by the server.
I would have a read through of the WP Codex guide on permalinks:
March 29, 2012 at 1:47 am #132101In reply to: Only My Profile page 404ing after 1.5 upgrade … ?
Boone Gorges
Keymaster> By default on my install, BP_ENABLE_USERNAME_COMPATIBILITY_MODE was “true”. I’m not sure why.
I’m not sure why either. By default, BP does not define it at all, much less to `true`. It sounds like setting it to `false` has solved your problem. (In brief, when `BP_ENABLE_USERNAME_COMPATIBILITY_MODE` is true, BP uses the `user_login` to create URLs; otherwise it uses `user_nicename`.)
The reason the `/ragnar/` URL is not working is because, as you can see in the first query above, the user_nicename has been changed to `ragnar-2`. You’ll want to change it back manually, in this case and in any other case where changes have occurred.
There does appear to be a bug somewhere here. I opened a Trac ticket: https://buddypress.trac.wordpress.org/ticket/4101 Thanks for your help debugging – feel free to follow along there.
March 28, 2012 at 10:57 pm #132094In reply to: [Resolved] Is this the correct Registration Page?
@mercime
ParticipantThis is the original registration form from bp-default theme https://buddypress.trac.wordpress.org/browser/tags/1.5.5/bp-themes/bp-default/registration/register.php
Back up your current registration/register.php then download register.php from link above and upload to your theme’s /registration/ folder. If that doesn’t work, I suggest deactivating BuddyPress and BP plugins then changing to Twenty Eleven theme. Check if registration is working on WordPress alone.
March 28, 2012 at 6:07 am #132053In reply to: Sidebar dropping in Wootheme’s Diner
@mercime
Participant== but asked that I start my own thread. ==
@katandmouse Yes, because you have different themes and I’ll be posting different codes/instructionsBased on the HTML structure of your theme, you’d need to use the first option, i.e., change 16 template files within the 6 BP folders transferred to your Diner theme folder in server during the compatibility process.
If you’ve previously changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility.
Download the 6 clean BP folders to your computer hard drive.
A. At the top of each of those 16 template files I linked to above, replace
``with
`<div id="main" class="frontend->bookings_page ) || is_page( $wootable->frontend->manage_page ) ): echo ‘reservation-page ‘; endif; ?>col-left”>
<?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb('‘,’
‘); } ?>
`Save files.
March 28, 2012 at 4:38 am #132045@mercime
Participant@foundsheepgmailcom Based on the HTML structure of your theme, you’d need to use the first option, i.e., change 16 template files within the 6 BP folders transferred to your TheSource theme folder in server during the compatibility process.
If you’ve previously changed any of the BP template files in your theme folder, replace all of them for a clean slate by deleting the 6 BP folders in server – /activity, /blogs, /forums, /groups, /members, and /registration – then re-run Appearance > BP Compatibility.
Download the 6 clean BP folders to your computer hard drive.
A. At the top of each of those 16 template files I linked to above, replace
``with
`
<?php if (get_option('thesource_integration_single_top') ” && get_option(‘thesource_integrate_singletop_enable’) == ‘on’) echo(get_option(‘thesource_integration_single_top’)); ?><div id="top-shadow">
`Save files.
March 28, 2012 at 2:17 am #132042In reply to: Dynamic loading of posts based on categories.
@mercime
Participant@johnsonapeter this is not a BuddyPress issue. Please post at https://wordpress.org/support/forum/how-to-and-troubleshooting
March 28, 2012 at 2:01 am #132039@mercime
ParticipantYou can create a new ticket for this enhancement at https://buddypress.trac.wordpress.org/newticket
Log in using same username and password.March 27, 2012 at 11:05 pm #132035In reply to: Is there a captcha plugin for buddypress
aces
Participant -
AuthorSearch Results