solved Form Designer - Upload image field can't pull it in

MAD
MAD
@madc
10 years ago
600 posts
Ok I feel really dumb with this one as I am like I was when Michael came here lol

I have added a field in the form designer for profiles for an image i want to add to a created tpl file

the form designer field is profile_dj_header
the new tpl is in the skin root profile_promotions_header.tpl

I cannot work out how to pull in the image that they upload in the form designer into my new tpl file
what code would I use to bring it in?

I have the field
I have an image uploaded
I have tried a capture template etc
I have tried just adding {$profile_dj_header}
Cant get it to come in

It's just an image I am trying to add to a new tpl file that has been uploaded by the user

Any help


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

updated by @madc: 06/22/14 12:16:33PM
douglas
@douglas
10 years ago
2,791 posts
Can you put a debug in the template to see if the variable is there?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
MAD
MAD
@madc
10 years ago
600 posts
Yes it is see attached
This is the code I am using to pull it in
		<div class="col6 center">
						<div class="mr8 mb8">
                        {capture name="template" assign="djs_tpl"}
                            {literal}
                                {foreach $_djs as $title => $_djs}
                                {jrCore_module_url module=$_djs.module assign="murl"}
                                    {$profile_dj_header}
                                {/foreach}
                            {/literal}
                        {/capture}
                        {jrProfile_djs profile_id=$_profile_id template=$djs_tpl}
						</div>
					</div>
jpg
 •  22KB




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

updated by @madc: 05/21/14 06:03:56PM
michael
@michael
10 years ago
7,715 posts
Try:
{jrCore_module_function function="jrImage_display" module="maYourModule" type="profile_dj_header" item_id=$item._item_id .........}
MAD
MAD
@madc
10 years ago
600 posts
Ok still not working
My code above was so wrong
I want to create a capture code to display the $profile_dj_header I think

I am not using any module etc
I just added the field to my profile form designer.
Its an image upload field and I just want to pull it into my created template.

Nothing I do works


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
douglas
@douglas
10 years ago
2,791 posts
Is the template for a profile page or front-end of your site?


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
MAD
MAD
@madc
10 years ago
600 posts
no just a profile page


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
douglas
@douglas
10 years ago
2,791 posts
If its a profile page then you can do something like this:

{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_dj_header" item_id=$_profile_id etc...}

Hope this helps,
Douglas


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos
MAD
MAD
@madc
10 years ago
600 posts
ok i used just this, no template capture etc

{jrCore_module_function function="jrImage_display" module="jrProfile" type="profile_dj_header" item_id=$_profile_id size="xxlarge"} 

had to put the size in as it wouldn't work otherwise

Works ok now


--
~ https://punkbandpromotions.com ~
Check us out for all your Punk/Alternative Music!
Check us out on Facebook:- https://facebook.com/PunkBandPromotion
douglas
@douglas
10 years ago
2,791 posts
Glad to hear it. :)


--

Douglas Hackney
Jamroom Team - Designer/Developer/Support
FAQ-Docs-Help Videos

Tags