Author |
Topic |
|
rkid021
Starting Member
8 Posts |
Posted - 24 October 2002 : 17:29:49
|
I installed the avatar mod and it works fine, however is there a way to allow users to add there own avatar [link], without having the admin add them. Does this make sense? |
|
PeeWee.Inc
Senior Member
United Kingdom
1893 Posts |
Posted - 24 October 2002 : 17:32:34
|
wrong forum, try "MOD Add-On wo/code" |
De Priofundus Calmo Ad Te Damine |
|
|
laser
Advanced Member
Australia
3859 Posts |
Posted - 24 October 2002 : 19:06:31
|
No, there is actually an Avatar mod where users enter the url location of their avatar. |
|
|
Blakord
Starting Member
Venezuela
22 Posts |
Posted - 25 October 2002 : 02:20:13
|
Very easy, Make new option in yow avatar config (if you want custom avatar optional for admin)
Step 1 in INC_AVATAR.ASP put after you avatar list box
<% if rsavx("A_PERSONALIZADO") = 1 then ' you custom avatar optional from admin %> <tr> <td colspan="2"> <font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">Avatar Personalizado</font><br> <input type="text" name="AVTAR_PERSONALIZADO" value="<% if IsNull(rs("M_AVATAR_URL")) or rs("M_AVATAR_URL") = "" or rs("M_AVATAR_URL") = " " or Request.QueryString("mode") = "Register" or AvaCONDICION = 1 then %>http://<% else %><% =rs("M_AVATAR_URL")%><% end if %>" size="18"></td> <% end if %>
Put on first line of inc_avatar.asp this lines <% DIM AvaCONDICION AvaCONDICION = 0 %>
Step 2
Look for you avatar selector box initiation line like <select name="Avatar_URL" size="4" onChange ="if (CheckNav(3.0,4.0)) URL.src=form.Avatar_URL.options[form.Avatar_URL.options.selectedIndex].value">
And add code this code ; AVTAR_PERSONALIZADO.value='http://'
now this line show like <select name="Avatar_URL" size="4" onChange ="if (CheckNav(3.0,4.0)) URL.src=form.Avatar_URL.options[form.Avatar_URL.options.selectedIndex].value; AVTAR_PERSONALIZADO.value='http://'">
Now look in you selector box this line <OPTION <% if rsav("A_URL") = rs("M_AVATAR_URL") then response.write("selected")%> VALUE="<% =rsav("A_URL") %>"> <% =rsav("A_NAME") %></OPTION>
Add this code : AvaCONDICION = 1
Now show like <OPTION <% if rsav("A_URL") = rs("M_AVATAR_URL") then response.write("selected"): AvaCONDICION = 1 %> VALUE="<% =rsav("A_URL") %>"> <% =rsav("A_NAME") %></OPTION>
Step 3 Open you pop_profile.asp and register.asp and look for any line where avatars is saved on dB like (2 times on pop_profile and 1 time on register) strsql = strsql & ", '" & ChkString(Request.Form("Avatar_URL"),"") & "'"
and remplace it for if Request.Form("AVTAR_PERSONALIZADO") <> "" and ucase(Request.Form("AVTAR_PERSONALIZADO")) <> "http://" then strsql = strsql & ", '" & ChkString(Request.Form("AVTAR_PERSONALIZADO"),"") & "'" else strsql = strsql & ", '" & ChkString(Request.Form("Avatar_URL"),"") & "'" end if
Sorry, not sure if you need anyother change, tell me if you have problem
Runing on http://www.cdv3k.com/blportal/foros/register.asp?mode=Register |
|
|
DoraMoon
Average Member
Taiwan
661 Posts |
|
|
Topic |
|