Forum Replies Created
-
Adding this CSS didn’t work for me, any reason it wouldn’t?
In reply to: Adding classes to profile fieldsHmm ok thanks @henrywright-1
On the front end I get:
item-1 £500k-£2m
item-2 £2m+The HTML generated is –
<div id="size500"> item-1 £500k-£2m </div> <div id="size500"> item-2 £2m+ </div>How can I make those divs unique?
In reply to: Adding classes to profile fieldsQuick question @henrywright-1 – any way to give each of those that are spat out a unique id?
Or do they have to have the same HTML around them?
Ideally, each of the items are wrapped different id – e.g.
<div id="size500">£500K</div>In reply to: Adding classes to profile fields@henrywright-1 it’s added in /wp-admin/users.php?page=bp-profile-setup – Profile Fields under the Users menu in WP Admin.
Your code works, thanks..!
So I can add html into those spaces, and each item is now separated by html…I think that should do it. Thanks so much for the support Team Buddypress 🙂
In reply to: Adding classes to profile fieldsThanks for the idea.
Pasting that in (exactly as it is) doesn’t return anything for Budget.
How do I add the HTML I want into:
// put whatever you want hereCheers
Ian
In reply to: Adding classes to profile fieldsNot sure it’s a custom hack…
In WordPress admin, I go to Profile Fields
Then, I have three profile groups in there. The third one is where this budget field sits.
It’s only available to certain user types, which is why it’s in a separate profile group.
However, as far as I know @bphelp – none of this is custom or a hack, this is standard BP functionality? Then using this snippet to show the output on the front end:
<div id="profileProjectSize"> <?php $data=bp_get_member_profile_data(array('field'=>'Budget')); echo $data; ?> </div>In reply to: Adding classes to profile fieldsThat’s what is strange @bphelp – when I inspect element in Chrome, there are simply no tags around the checkboxes on view profile:
In reply to: Adding classes to profile fieldsSorry, meant to put @bphelp
In reply to: Adding classes to profile fieldsHi there
Thanks @bp-help for the response. I’m not inspecting on the edit profile page, no, because I am displaying the ‘budget’ information for site visitors.
It’s on the view profile page ( /profile) that I am showing this field using:
<div id="profileProjectSize"> <?php $data=bp_get_member_profile_data(array('field'=>'Budget')); echo $data; ?> </div>If I go to edit profile page, I can see the following for a checkbox:
<label><input type="checkbox" name="field_229[]" id="field_758_0" value="£0-£100k"> £0-£100k</label>How would I get that unique id to show on the view profile page where I am using it?
In reply to: Adding classes to profile fieldsHi @bp-help yes I have, there is no id coming through on the checkboxes, they are coming out without any html wrapped around them, eg:
<div id="profileProjectSize"> £0-£100k, £100k-£500k, £500k-£2m, £2m+ </div>I can’t see how to give each one an ID
ThanksIn reply to: Adding classes to profile fieldsThe site is behind a password, anywhere I can DM you?
I just can’t see how to add a unique id to each checkbox.
Thanks,
Ian
In reply to: Email after activationGood shout, thanks @henrywright-1
In reply to: Email after activationPerfect, hopefully somebody finds this useful!
In reply to: Email after activationRealise I am replying to my own thread, but just came across this:
Will resolve this thread if it works.
In reply to: Adding classes to profile fieldsSorry to chase, can anybody help clarify this? Thanks again.
In reply to: Adding classes to profile fieldsThanks @modemlooper
So the checkboxes for ‘budget’ fall under a third tab within admin:

Would that need something different?
In reply to: Activation email – second time round causes errorYes fair point @henrywright-1 – will add some copy for those users too 🙂
In reply to: Activation email – second time round causes errorFor now I have changed the copy on the activate.php page in my theme to make sense. It still works first time a user visits, but if they do it again, they get a page with some copy that helps them. The key field can never be used anyway.
Is there a smarter fix?
In reply to: Adding classes to profile fieldsCan anyone help me with this one? I know it’s probably really simple but I’m struggling to get this to work.
Thanks
In reply to: New User ActivationDid this ever get fixed? I’m having this exact issue.
In reply to: Adding classes to profile fieldsThanks for the advice @danbp – I have given this a go but really can’t get the code correct.
Sorry to ask again, but with my four check boxes being as follows, can you let me know what to put in that snipped of code for functions.php? These are the checkboxes I have with the title Budget:
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
Thanks,
Ian
In reply to: Adding classes to profile fieldsHi @chouf1
Thanks for this, but I don’t really follow. The moneytizer example has really confused me, can you let me know how I could do this if the title of my field is Budget and the four checkboxes are
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
thanks,
Ian
In reply to: Adding classes to profile fieldsThanks @danbp – I’m not entirely sure how to create that filter function, can you expand on that?
The four unique names are:
- £0-£100k
- £100k-£500k
- £500k-£2m
- £2m+
thanks,
Ian
In reply to: [Resolved] Avatar crop not workingMy fix above was very specifically for the Reverie theme, I am not sure if this will work for other themes.
In reply to: [Resolved] Show member recent post in members loopYep, works like a charm 🙂

