How to set avatar url

Configuration ini (text)


[b]userid = ":VAR(USER_ID);"
type = "active"
set_var_fname = ":POST(fname);"
set_var_lname = ":POST(lname);"
set_avatar = ":POST(avatar);"[/b]

Code To Edit


[copy]%notify%

<br/><b>Edit profile</b><br/>Enter your first name<br/><input type="text" name="fname" value="%var(fname)%" maxlength="20"/>

<br/>Enter your Last name:<br/><input type="text" name="lname" value="%var(lname)%" maxlength="20"/>

<br/>Change Your Picture<br/><input type="file" name="avatar"/>
<br/>
<input type="submit" value="Set"/>
<hr>
<hr>[/copy]

How to set [b]%avatar%[/b] URL on profile sir?

Because…

It’s not working.

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

Thanks for the correction

How can I set user avatar url?

I’m using this parameter %avatar% to display user profile.

And it’s not showing anything.

If I use

<img src="%avatar%" height="70px" width="60px">

It fails to load image.