Forums / Cotonti / Support / user extra

Kingsley
#1 2009-07-29 03:47
can user extra fields be used to display images?
is so, how?
duck101
#2 2009-07-29 03:53
try

<img src="image url"/>
pieter
#3 2009-07-29 04:00
you need to store the url of the image in the extra field.
eg <img src="{TAG_of_extra_field}"/>
... can we help you ...
Kingsley
#4 2009-07-29 04:14
I need it so that users can put a link to an image of their equipment.

when trying to add an extra field I get this error:

Urban Crusaders
2009-07-28 20:10
Fatal error : SQL error : Table 'p2457_site.users' doesn't exist

phphmyadmin claims otherwise :)
Trustmaster
#5 2009-07-29 15:23
Kingsley, your config.php is missing $db_x variable, you can find it at the bottom of config-sample.php
May the Source be with you!
Kingsley
#6 2009-07-29 19:13
@ trust

thx, that fixed it instantly..

Added 7 days later:

okeej, next problem.

made some extrafields and in user.details.tpl all is fine, but in user.edit.tlp and user.profile.tpl is goes wrong.

i have made some selectboxes and when editing, they come up all messed up.

I can explain here, but it's best you see for yourself.
www.urbancrusaders.nl
user: test
pass: testing

and then go to profile.
under Main Replica you see Merk (dutch for brand) if you look at the selectbox, text is empty.
A little beneath that you see Materiaal (material) with in the selectbox 3x western arms.

western arms is a brand belonging in the first checkbox.

Fir selectbox empty, and it moved all options for selectboxes one selectbox down.
Already checked the sql and those are good. Even the output is displayed correctly.

AS you can see I have main and sidearm.

for titles I used the same word, the tag I made different e.g.

{USERS_PROFILE_MERK}
{USERS_PROFILE_MERK_TITLE} for main and

{USERS_PROFILE_SDMERK}
{USERS_PROFILE_SDMERK_TITLE} for the sidearm

could the fact that the titles are the same on both be the source of my errors?


I have no idea what's causing this.. Can someone plz help me?
This post was edited by Kingsley (2009-08-06 07:50, 14 years ago)
Trustmaster
#7 2009-08-06 18:47
Extrafields are all messed in profile/edit, it's not just your problem. I'll add a trouble ticket.
May the Source be with you!
Kingsley
#8 2009-08-06 20:53
oke man, I'll wait for the solution...

Added 15 days later:

Hi, me again..

althought the problem with option display is solved, something else has come up.

Every time you edit your profile, you need te set all options in the extra user fields. I doesn't remember what you've set it to.
This post was edited by Kingsley (2009-08-22 09:11, 14 years ago)
minoation
#9 2009-08-22 11:04
That sometimes happens with my site too.Just re-enter the information and try again.
Awesome!
Kingsley
#10 2009-08-22 13:20
it's not sometimes, it's every time..
Trustmaster
#11 2009-08-22 15:08
It was supposed to be fixed in 0.0.6 but seems like the bug is back again.
May the Source be with you!
Kingsley
#12 2009-08-22 23:56
well, the initial problem was solved.. Bit now it seems to have dementia