Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Avatar question
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

rkid021
Starting Member

8 Posts

Posted - 24 October 2002 :  17:29:49  Show Profile
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  Show Profile  Visit PeeWee.Inc's Homepage
wrong forum, try "MOD Add-On wo/code"

De Priofundus Calmo Ad Te Damine
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 24 October 2002 :  19:06:31  Show Profile
No, there is actually an Avatar mod where users enter the url location of their avatar.
Go to Top of Page

Blakord
Starting Member

Venezuela
22 Posts

Posted - 25 October 2002 :  02:20:13  Show Profile
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
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 25 October 2002 :  02:33:00  Show Profile
this post maybe helpful.....
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=34223&SearchTerms=pop_add_avatar

and Blakord's solution also look great... worthy to have a try.
(p.s. rsavx("A_PERSONALIZADO") is it mean this modification also need some new db fields added ?? )
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07