Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 26 through 50 (of 95 total)
  • @applegateian

    Participant

    Adding this CSS didn’t work for me, any reason it wouldn’t?

    @applegateian

    Participant

    Hmm 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?

    @applegateian

    Participant

    Quick 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>
    

    @applegateian

    Participant

    @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 🙂

    @applegateian

    Participant

    Hi @henrywright-1

    Thanks 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 here
    

    Cheers

    Ian

    @applegateian

    Participant

    Not 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>	
    

    @applegateian

    Participant

    That’s what is strange @bphelp – when I inspect element in Chrome, there are simply no tags around the checkboxes on view profile:

    @applegateian

    Participant

    Sorry, meant to put @bphelp

    @applegateian

    Participant

    Hi 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?

    @applegateian

    Participant

    Hi @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
    Thanks

    @applegateian

    Participant

    Hi @henrywright-1

    The 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

    @applegateian

    Participant

    Good shout, thanks @henrywright-1

    @applegateian

    Participant

    Perfect, hopefully somebody finds this useful!

    @applegateian

    Participant

    Realise I am replying to my own thread, but just came across this:

    Send Welcome email to Users when they activate their account on WordPress & BuddyPress Based Social Network

    Will resolve this thread if it works.

    @applegateian

    Participant

    Sorry to chase, can anybody help clarify this? Thanks again.

    @applegateian

    Participant

    Thanks @modemlooper

    So the checkboxes for ‘budget’ fall under a third tab within admin:

    Would that need something different?

    @applegateian

    Participant

    Yes fair point @henrywright-1 – will add some copy for those users too 🙂

    @applegateian

    Participant

    For 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?

    @applegateian

    Participant

    Can anyone help me with this one? I know it’s probably really simple but I’m struggling to get this to work.

    Thanks

    @applegateian

    Participant

    Did this ever get fixed? I’m having this exact issue.

    @applegateian

    Participant

    Thanks 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

    @applegateian

    Participant

    Hi @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

    @applegateian

    Participant

    Thanks @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

    @applegateian

    Participant

    My fix above was very specifically for the Reverie theme, I am not sure if this will work for other themes.

    @applegateian

    Participant

    Yep, works like a charm 🙂

Viewing 25 replies - 26 through 50 (of 95 total)
Skip to toolbar