Forum Replies Created
-
In reply to: problem with custom field radio button
maybe you could write full code?
here are several topics on this question, but as I see, those who have done it do not want to share their result.
@janismo please take care not to come across as treating this support forum as though it was a service with some sort of obligation on the part of the members to write code for people
If you look around you will see that many of the experienced BP developers spend a great deal of their time helping out non coders with a great deal of code.
Not including this thread where I didn’t really end up having to help to any real degree I have responded on two other threads today about profile fields, along with other threads I have read or participated in I know that the answers you seek are available. Sometimes you have to piece together bits of the jigsaw to start with, then show us how far you have got and the problems you might be having and we’ll help out further; of course also someone may come along and just write what you want

I only know what I do about the profile fields and manipulating them from needing to do so myself then reading a few posts but other than that I sat down and started coding and worked it out the hard way.
In reply to: problem with custom field radio buttonEdit// just saw your last post- not sure how that slipped past
so you are using xprofile field data and so yes your first example won’t work I think you’re on the right track now and it is easier if in a members loop. There was a post earlier today discussing this. Have a search back about 20 odd postsThen we would need to know the mechanism you’re using to pass that variable around I guess.
When you say “select account type” what exactly do you mean, is this a snippet of custom code you have written or are you using the custom profile fields to create new profile fields? If new profile fields ( the best way I would have thought ) then you are taking the wrong approach to fetching those fields back.
In reply to: problem with custom field radio buttonWhere do you get/set the variable $account_type from?
In reply to: adding gravatar hovercard to a member profile pageCool

sorry couldn’t resist, was going to place a Borrat quote as well but they’re all too rude! – I’ll remove the hot link later.
In reply to: How to grab xprofile data?Try:
if (bp_get_profile_field_data('field=thefield'))
or
if (bp_get_profile_field_data('field=thefield') == 'string')Just have: No can’t create a blog from the initial registration page, but yes can create a blog once signed in which is pretty telling really. You do not have a clean install at work here it is a modified one, remove any and ALL mods made, any plugins that might be messing things up, add the admin bar back in while testing, in fact do not hide the admin bar as it’s still creating mal-formed markup using the admin option to hide it which I thought had been fixed after I raised the issue/ticket; what version of BP are you running?
Please remove my sign up.
I’m not sure we’re not talking at cross purposes here.
you say “new user was for main site” ok all fine and good but “mot a new created blog site” ? not sure what that means.
A new user registers they opt to create a new blog, they become a member of the main site i.e the parent WP site which is running BP they also get a blog created at a sub domain address this blog is in effect a standalone blog it should be linked to however from their profile. Iniatially they will be the only person registered to that sub domain blog and the main site has to allow users to register to the sub blogs.
This isn’t an issue I’ve come across, you shouldn’t have a problem, that you say tings work with BP disabled yet not when BP is enabled is odd, I presume you have created a sub-domain under the WP setup, when activating BP BP should pick that blog up and show it under th members account/profile as a user blog.
Hmm not sure what the problem is then, you are using the default BP theme aren’t you
In reply to: no header/nav on individual activity page buddypressNot a similar issue, these sound like two separate issues.
Please do not post to a forum in this manner you must start your own thread and provide as much detail as possible if you want help.
@holgria Are you running a custom theme or BP-default? Without more detail than you have provided it won’t really be possible to help you.
@micb11 You should start your own thread on your issue, don’t assume it’s similar to someone else; there could be any number of reasons why you are having these issues, without some detail it’s impossible to help you -same question though custom theme or standard BP?
In reply to: How to show only the excerpt of an articelAre you talking about WP posts?
Try using the:
the_excerpt()in the WP loop or the <!–more–> tag in the body of a post or hand crafted post excerpts.
If that is not what you are after you may need to explain a little more just what you need.
Have you enabled the registration of both users and blogs in the main site options?
Have you definitely enabled Multi Site capability – is this actually WP 3.0.1 or the now slightly older WPMU you are using?
Have you set DNS wild card entry to allow sub domains to work?
When you say ‘left these blank’ then that can be checked by doing:
`
if (bp_get_member_profile_data( ‘field=instructor’ )) {
if (bp_get_member_profile_data( ‘field=instructor’ ) == ‘ Heiny’ )
‘do stuff’;
if (bp_get_member_profile_data( ‘field=instructor’ ) == ‘none’)
‘default selection has been saved’;
}else{
‘User has not visited profile and made a selection or simply re saved profile’;
}`
However I may not be following what you are trying to do here fully. If you have used radio options then you can set one option as default i.e the ‘None’ which would be selected if profile simply re-saved, if the member hasn’t visited their profile then nothing should have been saved.
Think that work, at least it works running it quickly on a test install but I may have overlooked something crucial
With the markup please change the ‘div’ to paragraph tags, divs are a semantically null element their purpose is to aggregate and group structure into logical divisions, they must never be used to contain bare naked cdata.
Try and avoid using inline styling generally it’s a bad thing to style inline, add IDs or classes to the elements to use as styling hooks.
‘Strong’ is an a semantic element that is intended to confer special emphasis to a word or phrase if just needing to draw attention to a word then adding typographic conventions to it would be acceptable e.g <b> to embolden the characters, however in this instance you are probably better off using spans as a means of separating a section of the text to add distinct styling to.
In reply to: admin-ajax.php using too much bandwidthYes but is it a particular activity that is causing this? can you be a little more specific, got any logs?
In reply to: Javascript Errors in Members sectionNot ideal but I guess as long as it works. Generally speaking it must be the responsibility of each theme writer to support their theme and to correct any issues that may arise through it, otherwise it would become an increased burden on the main support site.
In reply to: Javascript Errors in Members sectionYour first port of call should really have been the themes home having established it is a theme issue or so it would appear.
If you read through this page you arrive at:
http://freebpthemes.com/themes/buddymatic/?replytocom=409#respondWhich appears to be a similar or the same issue? and it might be worth adding to this comment stream? There is also a possible solution that might be tested.
In reply to: mysql_get_server_info() Error~~And why is it not good to turn off PHP safe_mode?
Given that PHP itself is set to deprecate or even remove the function from the next version.
Given that server security – according to those that appear to understand the subject – is something that can and should only be handled at the server level and not by a scripting engine.
In reply to: Lost some admin privileges, all buddypress optionsYep bottom line is that it’s simply a set of DB values that need changing, but as with all things it’s easy to say that and easy to point to the fields that need changing but disaster can always strike when playing with databases directly.
In reply to: Please add Delete to activity streamI think that the complexities of working on this site hosted on Automattics servers is not as easy as would be one of our own sites. There are a plans to do a fair bit of work as to the hold up on that I can’t say, I suggest that we badger @Boone in the Ninja group

Have to admit I have said a few times that spamming a site like this especially when it showcases the very app we all work with is far far from satisfactory and something really does need to be done about it.
In reply to: Lost some admin privileges, all buddypress optionsYou might have to restore things by going into the DB and setting values back to what they should be for that user.
wp_usermeta table is a start, look for the user and ensure that wp_capabilities is :
a:1:{s:13:”administrator”;s:1:”1″;}
and the wp_user_level field is:
10
You may also need to go into the wp_sitemeta table and find the reference there to the site_admins in that row is where the site is told how many admin and who it must I guess have at least a initial value of:
a:1:{i:0;s:5:”admin”;}
As with all things of this nature do NOT do any work before backing up your DB, I cannot vouch for the detail I have shown or that it won’t cause irreversible harm
In reply to: Header image not fitting on siteOff the top of my head locate the min / max widths and replace them with width:960px or larger if you really wish. Child theme approach is best as then you can move a copy of the bp default css to your own folder to work on , problem is that min/max properties are a nuisance as they can’t be unset as such, once stated you are stuck with the damned things ‘auto’ is not a value for min/max nor is re-setting them to ‘0’ so the original property decs need to be removed really.
In reply to: Please add Delete to activity streamWould be nice. The mods need a slightly greater level of control which at this time isn’t available we are tied to the Buddypress methodology for site admininistration.
In reply to: How to backup buddypress content and databaseAlso Sven it’s perhaps worth remembering that Buddypress is simply a plugin that rides on the back of the WP install and DB, and in that respect we are really talking about backing up your WP install rather than BP.
As pcwriter says many control panels provide backup facilities, if you haven’t got a CP or access to phpMyAdmin then there are I think backup plugins but you will need to hunt for these on the WP plugin repository also on the WP codex there’s a useful page describing backing up a WP install.
In reply to: not able to change h2Use Firefox extension Firebug to examine the element and observe whether your adjusted rules are being applied or overruled by a selector set with higher specificity.
In reply to: How to link logo with homepageWrap the logo image – img tag – in an anchor. Use site_url() to obtain the href or hard code the site domain.