solved SOLVED - Jr Custom Forms

MAD
MAD
@madc
11 years ago
600 posts
Just bought the Custom forms module.
Is there any documentation on this module?

We want to add a form to the profile edit page allowing artists to add social icons to there profile pages

ie. Facebook, Twitter etc

I want to create a form where they use an icon on our server . Again ie Facebook icon etc then they just add their facebook url.

So it will have a check box beside the icons/social sites they want on their profiles. then a box beside that for them to enter their url.
it will end up looking like the attached file on their profiles.
Can anyone help out?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 01/21/14 05:00:51AM
michael
@michael
11 years ago
7,719 posts
Dont think you need the custom forms for that as your not wanting to add a new form to collect different data, but rather trying to add some extra fields to the existing form 'profile'

site.com/profile/settings

then click on the 'Form Designer' (as the admin user.)

From there add in a facebook text field validated as a URL, and one field for each of the social icons you want to display.

then in your templates check for a value and show the icon if the url exists:
{if strlen($_profile.profile_facebook) > 2}
<a href="{$_profile.profile_facebook}">{jrCore_image image="facebook.png"}</a>
{/if}

and do one for each of the icons you want. If the user has entered the URL the icon will show.
MAD
MAD
@madc
11 years ago
600 posts
Your code needed editing. Thought I was going mad.

This is what I used in my profile_header.tpl

{if strlen($profile_facebook) > 2}
                <div class="block">
<h3 style="padding:5px;">Visit our social sites</h3><br/>
<a href="{$profile_facebook}">{jrCore_image image="facebook.png"}</a>
                               </div>
{/if}  

All works fine.
Cheers Michael !

( ps is the removal of _profile ok as it wouldn't work unless that was removed? )


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/07/13 05:58:15AM
MAD
MAD
@madc
11 years ago
600 posts
Ok seems I have a problem.
I added all the fields but the existing fields are getting mixed up with my new fields?
The PROFILE PRIVACY is throwing itself in between my 2nd and 4th field.
And the PROFILE QUOTA is throwing itself between 6th and 8th field.

How do I move them up top as I want my social icon area to be all together?
This is strange that it throws these things there.
Any help?
Images below
http://www.punkbandpromotions.com/fields.jpg
http://www.punkbandpromotions.com/fields-out-of-order.jpg

Or is this just what the Admins see?

EDIT: No This is what the artist sees as well ( Minus the QUOTA field )
Profile Privacy shows above Facebook field for some reason.


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/07/13 06:05:18AM
brian
@brian
11 years ago
10,148 posts
profile quota will only show to the admin users - it will not show to a regular user account (since we don't want a user to be able to change their own quota).

As for the order, make sure you've pressed the "up" arrow at least once for each custom field in the form designer - that way it gets an actual order value stored for it instead of being "at the bottom".

Let me know if that helps.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
No thats not it
I have my custom fields and have pressed UP on each one.
The field order is fine for the SOCIAL ICONS.
The problem is that the PROFILE PRIVACY ( which is standard) Is throwing itself between my new fields
See attached for an example

I can provide logins to the server if needed


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/07/13 07:33:36AM
brian
@brian
11 years ago
10,148 posts
Yeah I see that - that's weird. Let me see if I can duplicate that here and see what's up - I'll let you know.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
Just a heads up. I added 17 new fields in total for the social icons.
What would be good is for the existing fields always to stay above your custom fields.


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

updated by @madc: 12/07/13 08:47:41AM
brian
@brian
11 years ago
10,148 posts
ba9801:
Just a heads up. I added 17 new fields in total for the social icons.
What would be good is for the existing fields always to stay above your custom fields.

Actually they should respect the order you have them in in the Form Designer.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
If you look at my screen shots you will see the order is correct.
http://www.punkbandpromotions.com/fields.jpg
I added them concurrently.
So why are the standard fields ( ie Privacy Policy and influences ) getting jumbled?


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
11 years ago
10,148 posts
I don't know - that's why I am looking into it.

Thanks!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
Ahh ok ! :D


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
brian
@brian
11 years ago
10,148 posts
This should be fixed now in the Jamroom Core 5.1.5.

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
MAD
MAD
@madc
11 years ago
600 posts
Yes it is Cheers ! :D


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion

Tags