Search Results for 'questions'
-
AuthorSearch Results
-
April 3, 2010 at 1:44 am #71535
In reply to: Profile Fields Questions
jivanyParticipantI took another look at this and I think I have a potential solution.
You can filter xprofile_get_field_data and make sure that the return value is not a blank or some other non value. The downside of this method is I think you would need to then set the returned string to a known value that indicates it is not populated. The only reason I say this is ideally, you probably want to make bp_custom_get_member_list_xprofile_data return FALSE if the string is blank but I don’t think you can do this within the filter.
As for your second issue, a really hallf-assed way to do it is with two loops. I’m sure there’s a more elegant way but I’ve never written elegant code.
That said, I don’t see a way to dump out two groups in one loop but I’m not very familiar with this code.
April 3, 2010 at 1:26 am #715335947865Inactivehttp://wpquestions.com/ maybe create something like this?
April 2, 2010 at 9:48 pm #71507In reply to: Profile Fields Questions
jivanyParticipantYes, but your custom_xprofile call just does an “echo”. echo will always return something. Something might be a string or it might be a blank but it will always return something. You can’t test a function return value if you aren’t returning a value. Inside custom_xprofile, you need a “return TRUE” or something like that to be able ot use it in a boolean logic check that the if does.
April 2, 2010 at 12:14 pm #71428In reply to: Profile Fields Questions
GianfrancoParticipantIt’s really just tjis that I need for problem #1:
<?php if (custom_xprofile('About me') ) : ?>
<h3>About me:</h3>
<?php custom_xprofile('About me'); ?>
<?php endif; ?>
If the About me field is filled, it should display
<h3>About me:</h3>
if it is not filled in, it shouldn’t display the h3 heading.
And with the above snippet, it always displays it. It’s the conditional statement that I cannot get right.
April 2, 2010 at 11:30 am #71422In reply to: Profile Fields Questions
jivanyParticipantI think you need to look at what @DJPaul said. If your function always returns true then you’re always going to output something, even if that something is blank.
function custom_xprofile( $field ) {
echo bp_custom_get_member_list_xprofile_data( $field );
}That echo will always return something. You need to dig into bp_custom_get_member_list_xprofile_data and see if there’s a way to determine if $field exists.
April 2, 2010 at 9:41 am #71411In reply to: Profile Fields Questions
GianfrancoParticipantAnd another thing I am trying know (Question #2) is if it is possible to use a conditional statement to check if more than 1 group has fileds that has been filled in and return something accordingly:
<?php if ( bp_has_profile('profile_group_id=9') || bp_has_profile('profile_group_id=7') ) : ?>
<?php while ( bp_profile_groups() ) : bp_the_profile_group(); if ( bp_profile_group_has_fields() ): //groups loop ?>
<div id="widget1">
(stuff from group 9)
(stuff from group 7)
</div>
<?php endif; endwhile; ?>
<?php endif; ?>After experimenting, I couldn’t make it work.
I need that because in my design I’d like to output a “Personal stuff” widget that has a graphic title and background, and it should display only if some fields from groups 9 and 7 are filles in, otherwise it should’t.
Is that achievable?
That is a guru question, isn’t it?
April 2, 2010 at 9:17 am #71409In reply to: Profile Fields Questions
GianfrancoParticipantThanks jivany. I corrected that.
However, that is not the source of the porblem.
I am trying to achieve different things.
One is to say, if that field is not filled in, don’t output this block.
Something like:
<?php if (custom_xprofile('About me') ) : ?>
<h3>About me:</h3>
<?php custom_xprofile('About me'); ?>
<?php endif; ?>
But as simple as it is, sometimes I am lost on PHP basics.
April 2, 2010 at 9:05 am #71408In reply to: Profile Fields Questions
Paul Wong-GibbsKeymasterNah, you can leave semi-colons off the end of lines when it’s used like that. Good spot though. It’s because your function just retrieves the value from the database, and if it’s blank, then it’s blank. Problem is, you are printing the <h3> regardless.
April 2, 2010 at 1:35 am #71382In reply to: Profile Fields Questions
jivanyParticipantYou’re missing a semi-colon after the custom_xprofile call. That will likely bugger up PHP and might be the source of your issue.
March 31, 2010 at 9:44 pm #71149In reply to: Create a Site Forum
Craig SunneyParticipantGood questions.
Uploaded to /forums/ [yes]
Add line to wp-config
March 31, 2010 at 7:26 pm #71113In reply to: Adding validation in registration form?
r-a-yKeymasterTry this:
https://buddypress.org/forums/topic/which-file-do-i-need-to-edit-registration-questions#post-45514
Or you can use an invite plugin – the invite code would be the answer and you manually need to add the question yourself.
March 30, 2010 at 6:21 pm #70868In reply to: Plugin Hall of Shame! :) Plugin Devs Please Read
eborg9MemberYou know maybe the problem is us lowly users. If we didn’t depend on plug in developers so much to keep their projects functioning then it wouldn’t be an issue.
I never saw this as an issue with Single user WP plug ins so this is all new to me.
What I don’t understand is, I always assumed that plug in developers had other services that were paid services and creating plug ins was a way to not only contribute to the platform, but to show their expertise and make their names known in the community.
If a plug in goes unfixed and crashes a users or a company’s website, and support for it goes unanswered..how does that help you as a professional ?
And when you do release a premium paid plug in in the future, why would I take a chance that you won’t go missing in action again when it comes to support?
And why would I contribute to a plugin that doesn’t work and hasn’t been updated or answered support questions since late 2009?
Unfortunately some of what could have been/would have been some of the most used plug ins are on that list with no sign of the original developer updating them.
So now, instead of contributing to that developer for their hard work, I have to hire someone else to make it function correctly or build me a new one.
That really sucks.
I’m with Magganpice. I’d be more than happy to make a contribution to Buddypress Registration Options and Ahjira Recent Sitewide Articles, if they would just update them so they actually work.
March 30, 2010 at 1:49 pm #70812In reply to: Newbie questions
jivanyParticipant1. Does BuddyPress need WORDPRESS MU or can it be created in a WORDPRESS ordinary blog – in addition do I have to find a hosting platform to host it – or can I just use the standard WORDPRESS blooging platform ?
BuddyPress can run on either WordPress or WordPress MU. If you want your users to be able to create their own blogs, you need to run MU. If you don’t want your users to create their own blogs, you can use regular WordPress.
2. The BuddyPress example looks quite complex (from the point of view of people viewing a site which uses it) eg you would normally describe a theme for a website on a first page then have categories eg if I did a music site – I would say have counties in the UK or towns say Cambridge, Hertford, …. and then have sub categories for ttypes of music eg choral, orchestral,folk….. – is all this sort of thing achievable with BUDDYPRESS ?
Buddypress is just a plugin for WordPress that adds the social media applications (status updates, forums, groups, etc) . Anything you can do with WordPress you can do when you have Buddypress installed. You can still have a regular blog-like website with the Buddypress social media additions.
3. I am a programmer and have used databases (SQLITENING/SQLITE) using development tools such as POWERBASIC – with Buddypress both on the client and server ends – is it possible to program in database links to connect with apps written in POWERBASIC which connect to SQLITENING/SQLITE databases (as dotnetnuk seems to do for proprietory Microsoft SQL databases) ?
I’m not sure I understand this question. Buddypress is just a plugin for WordPress. There is no (typical) client/server model. Your webserver runs WordPress that runs Buddypress. The client is the users web browser. That said, you can program anything you want in any language and create the required interfaces to interact with WordPress, it’s database, or anything else. This isn’t going to be trivial though.
4. Can you recommend a good (cheap) development platform for BUDDYPRESS/WORDPRESS ?
Download XAMPP or MAMP and install it on your local PC. These will allow you to install WordPress on your local machine for development, testing, etc.
March 30, 2010 at 1:15 am #70746In reply to: Advanced Recent Site Wide Posts Widget
eborg9MemberHaving the same issue. i really want this plug in to work, are you still answering questions or helping with this ?
March 29, 2010 at 7:19 pm #70700birdy47ParticipantI swore it was a file I had edited but I guess not. I did what you said and had it fixed in seconds. Perfect. Thanks so much!
– Birdy
March 29, 2010 at 6:50 pm #70699mrjarbenneParticipantThanks r-a-y, this potentially answers my https://buddypress.org/forums/topic/creating-tos-hurdles forum post. Need to investigate further.
March 29, 2010 at 6:47 pm #70698r-a-yKeymaster@birdy43
Try logging into the WP backend. Navigate to “BuddyPress > General Settings”.
Under “Full Name Field Name”, change this from the default “Name” to whatever you want.
You need to create a custom function for outputting your questions and another one to validate your questions.
function my_custom_questions() {
// your questions would go here - would be an input field of some kind
// eg.
echo '<label for="my_question">Please enter something for this new field</label>';
echo '<input type="text" name="my_question" id="my_question" value="" />';
}
add_action('bp_before_registration_submit_buttons', 'my_custom_questions');
function my_custom_validation() {
// here you'd check the submitted input fields, you'd probably do a check to see if the question is blank, if not return an error message
// would be something like this:
global $bp;
// checking if an input field of "my_question" is blank
if ( $_POST['my_question'] == "" ) {
$bp->signup->errors['my_question'] = 'You must type in something for the field "my_question".';
}
}
add_action('bp_signup_validate', 'my_custom_validation');March 29, 2010 at 6:33 pm #70696mrjarbenneParticipantCan you break this down a touch further for the new guy. Do hooks get added to the function.php file in your theme?
March 29, 2010 at 6:31 pm #70695birdy47ParticipantOk, a few months ago I manually edited a file and simply changed the text “Real Name” to “Verify User Name”. All I want to do now is change it back to what it was originally. I won’t be editing code…just a simple text name but I need to know what path/file I have to edit in order to do this.
Thanks again, Birdy
March 29, 2010 at 6:02 pm #70687r-a-yKeymasterYou shouldn’t be editing core files.
BP has a ton of hooks you can use to get your custom questions on the registration page.
You could just hook into the following actions and then your custom questions will appear:
add_action('bp_before_registration_submit_buttons', 'YOUR CUSTOM QUESTIONS');
add_action('bp_signup_validate', 'YOUR VALIDATION ROUTINE');March 29, 2010 at 5:59 pm #70685birdy47ParticipantThanks but I need to know which path/file contains those settings so I can edit it manually. Anyone know?.
Thanks, Birdy
March 29, 2010 at 5:48 pm #70682richard1987MemberLogin to your WordPress dashboard and click on BuddyPress on the left hand side. You will see a link called Profile Field Setup. This is where you create and edit your questions.
Hope that explains what you are looking for
March 27, 2010 at 11:02 pm #70475In reply to: Upgrade, then fresh install, generates error 500
rolfeParticipantTo recap:
PREVIOUS ENVIRONMENT:
BlueHost hosting, WordPress MU + BuddyPress 1.2.2.1 installed via SimpleScripts and automatic upgrades. Also had WordPress in a root directory.
PROBLEM:
After upgrading to BuddyPress 1.2.3, clicking the tabs for Activity, Members, Groups, Blogs, About generated an Internal Server Error.
SOLUTION:
Removed the WordPress installation from the root web directory.
Deleted the directory containing the WordPress MU + BuddyPress.
Deleted the previous databases.
Create a database and database user.
Manually install WordPress MU (WPMU)
Manually install BuddyPress.
TIPS:
If you have questions along the way, start with the links provided by the WPMU installation page (on your website) and search the WordPress MU and BuddyPress support forums. I also recommend the free ebook, Installing WordPress MU For Beginners, by Andrea Rennick, available at http://wpmututorials.com/wp-content/plugins/download-monitor/download.php?id=1
Use cPanel > MySQL Databases to create the database, create the user with ALL privileges, and assign the user to the database. Avoid using the “MySQL Database Wizard” tool. I got connection errors when I used the wizard.
I have an open request to my web hosting provider, BlueHost, to enable wildcard subdomains for my domain. (I elected to have new blogs appear as subdomains.) You can avoid this hassle if you opt to create user blogs as subdirectories.
March 26, 2010 at 7:46 am #70233In reply to: Navigation Customization
XevoParticipantNo, buddypress is supposed to be a plugin that allows developers/bloggers to add a social network to their wp/wpmu. Personally I wouldn’t want that at all, look for a plugin or hire someone to do it for you, it isn’t that hard, you could even just copy paste.
And by making 2 topics doesn’t mean your getting help faster, just that your annoying apposed to the other users that have questions.
March 25, 2010 at 10:51 pm #70175In reply to: child theme questions
Paul Wong-GibbsKeymaster1. Yes, exactly right.
2. If the plugin has been updated properly since BP 1.1 release, you shouldn’t have to move a plugin template file. If you’ve found a recent plugin and it is telling you to move a file, then tell the developer to come over to these forums and we will help them fix it.
-
AuthorSearch Results