PDA

View Full Version : How can a user add images in his public page?



Fulvio Di stefano
January 12, 2013, 11:09 AM
I want that a user can be able to add pictures in his public profile but it seems impossible!

In User accounts-> account fields I first added a text field but i noticed that there was no possibility to upload and add images inside the text.
So I added an Image field but it doesnt appear in the public page ! :(

Why ?
How can i do that ?

(In admin pannel ->settings -> pictures settings -> automatic upload images : is on)

Then second question, more difficult : could it be possible to make that other fields in the public page, appear on another tab ?

Mike
January 16, 2013, 05:25 AM
Hello,

If you don't see the field in the seller info but see it on edit profile and registration page i think you have to check Detail page for the field in the Admin panel> Account fields> edit page

Automatic upload images setting is different thing and it's only for listing photos uploading not for other images.


Your second question is possible to do, you have to do few changes to the code:

1. includes/controllers/account_type.tpl
add new tab


/* populate tabs */
$tabs = array(
'details' => array(
'key' => 'details',
'name' => $lang['account_info']
),
'listings' => array(
'key' => 'listings',
'name' => $lang['account_listings']
),
'map' => array(
'key' => 'map',
'name' => $lang['map']
),
'additional_details' => array(
'key' => 'additional_details',
'name' => $lang['additional_details_tab']
),
);
$rlSmarty -> assign_by_ref('tabs', $tabs);



2. add phrase through Admin Panel>>Languages with key additional_details_tab and value you want to be name of the tab

3. templates/your_template/controllers/account_type.tpl 2 changes:
-1st change : remove or comment following code


{if $account.Fields}
<table class="table">
{foreach from=$account.Fields item='item' name='fListings'}
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}
{/foreach}
</table>
{/if}

2nd : create new tab


<!-- account listings end -->

<!-- additional details -->
<div id="additional_details" class="tab_area hide">
{if $account.Fields}
<table class="table">
{foreach from=$account.Fields item='item' name='fListings'}
{if !empty($item.value) && $item.Details_page}
{include file='blocks'|cat:$smarty.const.RL_DS|cat:'field_o ut.tpl'}
{/if}
{/foreach}
</table>
{/if}
</div>

Pete Young
January 16, 2013, 08:49 AM
You can use the add logo option as well

Fulvio Di stefano
January 16, 2013, 08:52 AM
Thanks for your answers

For the first question i can see the text field, but i really need to give the possibility to the user to upload pictures in his public profile. How can I do it ?

Fulvio Di stefano
January 16, 2013, 09:16 AM
As you can see in this this first picture, i added a field "Immages profil public", its an image type field and a field "testt", a text field.

326

If we check inside the image field for example: :
324

And the screenshot of the public page where this field is not there:
325

If i go on edition of public profil
328
you ll see that neither the field image nor the field text appear...

At least i had the functionnality to add images in the defaut field "a propos de moi/about me"...

Fulvio Di stefano
January 18, 2013, 01:42 PM
no one??? :(

Chris Brown
January 18, 2013, 01:48 PM
no one??? :(

Have you added it to your account type by adding it to registration form and adding it to the short form.

In admin panel / account type / build form

Fulvio Di stefano
January 18, 2013, 02:02 PM
Thanks Chris !! I missed this point, the field now appear.

But i want the user to add more pictures.

If I add a text field i dont have an image icon to add more images inside the text (it would be perfect), like a gallery.
And if I add an image field it's not a gallery, i can add just one picture.

I need that user can choose to upload 2-3 pictures and also a list of other pictures (0 to 20 !!) and dont want to add 30 times the image field... any solution?

Chris Brown
January 18, 2013, 02:15 PM
Glad it worked. The only other option i can think of is adding more image fields, so they can add more images, but by the sound of it you dont want to do that. You may need to contact flynax for a customisation to do it how you want.

Fulvio Di stefano
January 18, 2013, 02:58 PM
ok thanks, waiting for their answer!