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/Code)
 My Avatar Addon for Avatar MOD 3.4
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 4

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 27 July 2002 :  07:46:32  Show Profile
**************************************************************
update/re-package for v3.4 and remove a lots nonsense "practice" addon..
Requirement:
This addon need Snitz v3.4.0x and Avatar Mod 3.4 (by Hamlin) installed.

Addon Feature:
# My Avatars List - allow user assign his favorite avatars from forum avatars list.

# Avatar Group - base on user's Posts Level to gain a different available avatars set.

# User Defined Avatar Name - allow user change his favorite avatar name in his list.

# Avatars Legend - modified advance_avatar_legend.asp file, to show avatars list.

# User Submitt Avatar - modified pop_add_avatar.asp file, to let user submit his own Avatar link url.

# Avatar Link - set default avatar link page. user profile, homepage, my avatars list show...etc.

# Avatar Tooltip - set default mouseover tooltip to show avatar name.

get new package here.... (Last Update: 2002/11/16)
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=52
<--- update link, now it placed together with Avatar Mod on SnitzBitz. thx, Davio. --->

Update/Fix:
2002/11/11 first release.
2002/11/16 bug fixed in admin_edit_avatar.asp modified code. (Thx, Rich)


*****************************************************************




Hi~
this is a Snitz newbie's practice work, not really a MOD ...

i use Snitz 3.3.0.3 with Avatar MOD installed. i like this great MOD very much, and i'd like to every user can have her/his OWN Avatar !
there are many other mods can do this, let user upload his own Avatar.... but so disappointed, i never get the upload function work ~ it always stumbled me from FSO,upload component..and something...
so i just try this alternative way: give users the authority to assign his own avatar.
the Avatar MOD can reserve some avatars for special member when administrator add/edit avatar. so i just copy/paste/extract/piece together/and a little modificaton....from currently Avatar files (advanced_avatarlegend.asp,inc_avatar.asp,admin_add_avatar.asp...) to do this "My Avatars List".

get this file here my_avatar.asp(txt file)
(sorry i hav'nt a demo site yet....)

features:
. member can assign his favorite avatars, when a avatar assigned, it removed from the public avatars list.
. admin setup the max number avatars of one member can assign to his own list.
. easy to select/change the currently avatar (used when post on topic pages) from member's avatars list
. when got the max limit, if user want to assign more, he must release/remove some his avatar from list first.
test:
only on my computer .... (Snitz 3.3.0.3, Richard's Avatar MOD 2.0, Access..)
usage:(make sure u have Avatar Mod installed..)
just add a link somewhere, no snitz file modify necessary...
(ex. i just put it into My Personalization Area, and the member's profile below the avatar_legend link...)
but if u want to..... u can change a little sql statement in inc_avatar.asp, so when member edit his profile, he JUST can select avatar from His Avatars List.

modify example:(optional)
look in inc_avatar.asp
strSql = strSql & " WHERE " & strTablePrefix & "AVATAR.A_MEMBER_ID = 0 "
if Request.Querystring("mode") <> "Register" then
strSql = strSql & " OR " & strTablePrefix & "AVATAR.A_MEMBER_ID = " & rs("MEMBER_ID")
end if

and replace/switch to
if Request.Querystring("mode") <> "Register" then
strSql = strSql & " WHERE " & strTablePrefix & "AVATAR.A_MEMBER_ID = " & rs("MEMBER_ID")
else
strSql = strSql & " WHERE " & strTablePrefix & "AVATAR.A_MEMBER_ID = 0 "
end if


add a link to inc_avatar.asp
<font face="<% =strDefaultFontFace %>" size="<% =strFooterFontSize %>">
<a href="JavaScript:openWindowAvatar('advanced_avatarlegend.asp')">Avatar Legend</a>  <br>

<% if Request.Querystring("mode") <> "Register" then %>
<a href="my_avatar.asp">My Avatar List</a>  </font><br>
<% end if %>


further practice work: (just thinking, no plan & no capability to do it now...)
. integrated with more Avatar Admin function....
. my avatars list Show, Rank or Share fucntion...
. when user post, he can select different avatar from his list to show beside topic or reply.
(i try to do this, it's simple to change the Avatar_URL link form Member table to Avatar table field A_ID. but if u want to show a member different avatars icon at same time, it seem need some database modify... and i really scared to do this ...... )
. hope someone can make a simple upload mod to integrate this, i think all i need just upload avatar, no necessary to file attachment or photo gallery....

i really hav'nt much program knowledge to implement snitz mod, even i don't know how to debug/coding/clean... a program. i just learn from snitz. so if someone also interested about this, pleast just test and improve it ! thx.


~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~

~......~.~~

Edited by - DoraMoon on 13 December 2002 07:18:21

dayve
Forum Moderator

USA
5820 Posts

Posted - 27 July 2002 :  12:02:08  Show Profile  Visit dayve's Homepage
there is already a "working" mod for uploading personal avatars and keeping them within size restrictions yet not disproportionating them.

I have been using this at my forum for well over a year and I think the code is available at the Snitz Exchange - http://www.ls3k.com/snitz/mods.asp?action=details&ID=30

The biggest thing that usually fails in this mod is the fact that you need to have WRITE permissions on the upload root directory and make it inheritable for members directories.


http://www.nineinchnailz.com
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 27 July 2002 :  12:40:43  Show Profile
quote:

The biggest thing that usually fails in this mod is the fact that you need to have WRITE permissions on the upload root directory and make it inheritable for members directories.


thanks Dayve for the information...
i think i've tried this mod before. most of these upload stuff need Huw's FileAttachment or Upload MOD preinstalled. and it should be more difficult for me to setup Huw's MOD on my standard snitz correctly.
and just like you said, the biggest problem, i have trouble to test upload function on my PWS or Win2K(with FAT32..) web server at home. and the WRITE Permission... seem not so easy to get it, if your host reject your ask by security reason or something....
anyway, i will try to test it or the other upload solutions again... thanks.


~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 30 July 2002 :  07:42:05  Show Profile
do a small modification to get a new admin_my_avatar.asp file for Administrator...
almost the same with my_avatar.asp, but for Admin....
.set the max value limit of one member can assign
.set the avatars list display page size
.assign/select/remove avatar for someone member

and this time i try to do some dbs work...
(just add new config value to CONFIG_NEW table.. i see many MODs do this, so i think... it should be a "safe" doing, right ? )

u can get the new package here my_avatars_list.zip



~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~

Update link zip file... add a new my_avatar_show.asp to show all member's avatars assigned list...
just a little modification from members.asp page ...

Edited by - DoraMoon on 01 August 2002 16:16:12
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 07 August 2002 :  04:12:38  Show Profile
well~~ i think nobody interested in this stuff....

but.. anyway, i do a little more "practice work" again.
now when users add/edit a post, he can select which Avatar he want to use from his list.

see some demo screenshot: (sorry, still not a demo site..)

user choose Avatar from his own avatars list when posting, he also can choose None for no avatar...(user can define the Avatar name in his list)


so a user can own/show multiple (& no duplicate..) Avatars now... (Admin define the max value)
when avatar remove from user's list, it just return to the default Avatar.


and this "My Avatars List - topic addon" need add new table field and a little modified the topic.asp, post.asp, and post_info.asp page.
dbs_my_avatar_topicaddon.asp
topic_edit.asp
post_edit.asp
post_info_edit.asp
(above link file base on clean Snitz 3.3.05 with Richar's Avatar Mod 2.0)

and if someone feel interested, u also can get the whole package my_avatars_list.zip in above post link (Updated!)..

also keep in mind, it's a newbie's practice work. still need someone help to improve it !!

~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~
(p.s. i did'nt consider the Archived topics, but i think it should be ok. when post archived, it just return to default Avatar in member table.)

Edited by - DoraMoon on 07 August 2002 04:18:44
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 07 August 2002 :  04:26:56  Show Profile  Visit crash's Homepage
Looking good DoraMoon!



Crash's Site | Crash is from
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 07 August 2002 :  09:58:31  Show Profile
Thanks ! Crash ~
i think it still need someone else to test and improve it !

and in my_avatar file, take the mousehover script from your Crash's Hover Color Mod. i forgot mention this in my previous post.
now update the zip file and add this comment. (also add a simple install instruction readme file... sorry i can't write a formal document by my poor english... )

~......~.~~
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 07 August 2002 :  10:03:38  Show Profile  Visit crash's Homepage
i'll try to implement the mod and if i succeed i will write you an updated readme file



Crash's Site | Crash is from
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 07 August 2002 :  10:19:46  Show Profile
quote:
i'll try to implement the mod and if i succeed i will write you an updated readme file

thx!! crash.. it just exactly what i need for help ...

~......~.~~
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 07 August 2002 :  22:07:29  Show Profile
Update the download zip file..

i found a little code missing in earlier zip file.
because i do this on my modded snitz and my language, then translate it back to standard snitz and english file....
so something missing~

sorry about this. if anyone, please download again ~ thx!


~......~.~~
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 08 August 2002 :  03:09:12  Show Profile  Visit crash's Homepage
i will redownload the mod.



Crash's Site | Crash is from
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 09 August 2002 :  03:26:48  Show Profile
Found A Big Bug in the topic addon !!!
when QuoteReply or QuoteTopic, the avatar list load incorrectly..
so.....

Update the zip file Again ! my_avatars_list.zip
(just modify the topic.asp.txt and post.asp.txt to fix bugs..
u can search ' ## bug fix 08/09/02 to see where code changed..)

Apologize to crash or anyone, if u already try implementing this stuff.

~......~.~~
Go to Top of Page

crash
Advanced Member

Netherlands
2064 Posts

Posted - 09 August 2002 :  04:39:31  Show Profile  Visit crash's Homepage
i had it working, DoraMoon, but will redownload the file once more...

this really is a very extensive mod you made!! my compliments!!
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 10 August 2002 :  05:48:39  Show Profile
thanks crash for your compliments!!

and one line modification in my_avatar_topicaddon-topic.asp.txt again.
if (Trim(rsReplies("M_AVATAR_URL")) <> "" and lcase(rsReplies("M_AVATAR_URL")) <> "noavatar.gif" and (IsNull(rsReplies("M_AVATAR_URL")) = false)) or (Reply_Avatar_Url <> "noavatar.gif") then %>
i'm messed up by this line, after trying and, or, .... but it seem still got problem sometimes..
(this line just for did'nt appear a blank 64x64 image when user choose None avatar..)
so i decide to change it to this..
if Reply_Avatar_Url <> "noavatar.gif" then
if Trim(rsReplies("M_AVATAR_URL")) <> "" and lcase(rsReplies("M_AVATAR_URL")) <> "noavatar.gif" and (IsNull(rsReplies("M_AVATAR_URL")) = false) then %>
:
:
<% end if %>
<% end if %>


hope it work this time ...

~......~.~~

Edited by - DoraMoon on 10 August 2002 05:49:45
Go to Top of Page

DoraMoon
Average Member

Taiwan
661 Posts

Posted - 13 August 2002 :  08:54:05  Show Profile
My Avatars List - Avatar Link addon (for test only..)

i made another practice to this stuff again -- Avatar Link addon
Feature:
. Admin turn ON/OFF, and select default Avatar Link function.
. link by avatar, so user can define different link url to his avatars.

ScreenShot:


Update Files:
. inc_avatarlink_list.asp (new)
. my_avatar.asp
. admin_my_avatar.asp
. pop_my_avatar_edit.asp
. my_avatar_show.asp
. my_avatar_topicaddon-topic.asp.txt
download the NEW package here ..... my_avatars_list_2.zip
(i did't update the previous zip, for someone maybe do'nt like this addon..)
(and if u have previous version installed, u can search
' ##### Avatar Link addon ..to see where modified.)


this My Avatars List mod already exceed my expect at beginning,
so i think i'd better STOP doing more "practice" before it becoming
to a huge and useless stuff...

when i do this AvatarLink addon, i feel dizzy and confused about
these code.. maybe it will full buggy and not practical..
so for test only.. no suggest to use on your forum before
other professional mod developers implement it.

and although it seem not too many people interested in newbie's mod,
i still glad to and enjoy sharing my practice works to all snitz's
friends. thanks everybody.. maybe next time i'll try something mod
more "smaller"...

~......~.~~

Edited by - DoraMoon on 18 August 2002 07:31:42
Go to Top of Page

Image
Average Member

Canada
574 Posts

Posted - 18 August 2002 :  03:54:26  Show Profile  Visit Image's Homepage  Send Image an ICQ Message
quote:
Originally posted by DoraMoon
(sorry i hav'nt a demo site yet....)


~~ ¡¹ ¡¸ ¡¸¡¹ ¡¸ ¡¹ ~~



Demo: My Avatars List
Admin Login
UserName: Admin
Password: admin
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Next Page
 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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07