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)
 MOD: Zuel's Avatar Addon - New Version 4/22/06
 New Topic  Reply to Topic
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 14

Zuel
Average Member

USA
540 Posts

Posted - 12 November 2005 :  16:09:25  Show Profile  Visit Zuel's Homepage  Reply with Quote
Zuel's Avatar Addon MOD for Snitz 3.4

This mod is Dependent on Richard Kinser's Avatar Mod.
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=52
http://www.snitzbitz.com/mods/download.asp?mid=52&fid=140

Download: http://www.twistingshadows.com/Avatar_AddonV3.zip

Update: Version 2 is out. Please see the previous link to download the current version.

Features:

Members can Upload their own Avatars.
Admins can Delete avatars with a push of a button.
Dynamic Extensions. Admins can specify extensions within the admin panel.
Max file size check.
Easily switch avatar by uploading or choosing your own from a category.
You can specify URLS to images outside of the website.
Integrated with Richard Kinser's Avatar Mod.
Automatically takes the look and feel of your Snitz Board.
Personal Avatars allow members to use avatars for themselves.

Screenshots:

Avatar Admin Page:
http://www.twistingshadows.com/userimages/Avatar_Admin.jpg

Avatar Main Page:
http://www.twistingshadows.com/userimages/Avatars_Main.jpg

Test Account:
http://www.twistingshadows.com/dev/avatars.asp

Uploading is disabled. I will update http://www.twistingshadows.com/forum/ tonight December 29th at 11:00 PM Eastern to the new version. Then you may upload.

Account: tester
Password: tester

Tested with Snitz Forum 3.4 and Access 2003. I have not tested with Any Other Version of Snitz. This thread is share the mod to test before I attempt to send it to Snitzbitz to so call publish it.

If you get any errors please post them below so I can fix them. Please keep in mind this is my first and I am still learning. The code is fully documented and is clean through my eyes. I am here happy to answer any questions you may have.

Cheers!

Daniel M. Dority
a.k.a. Zuel on Snitz Forums<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File

Edited by - Zuel on 22 April 2006 15:29:30

vynsane
New Member

73 Posts

Posted - 12 November 2005 :  17:27:30  Show Profile  Visit vynsane's Homepage  Reply with Quote
awesesome. i'll be implementing this on my testbed version of a 3.4.05 and report the results.

EDIT okay, so how can i get the avatars folder to have write permissions? i contacted my hosting to see if they would do it for me, but i wanted to know if there was an easy way to do it through ftp? when i right click and get properties through the XP built-in ftp, it says "this server does not support changing permissions" so i would assume i can't do it. but does that mean no one can?

other than that, everything seems to be working alright, but only after i REPLACED the

Dim StopWatch(19)

with

'Dim StopWatch(19)

-your readme says to place the commented out one AFTER the original. it should say "replace that with..." or just "comment that line out with the ' "

anyway, without the write permissions, is it normal for the "allow uploading" section of the admin panel to have both radio buttons selected? if i try to select the "yes" in that part, it selects the radio button next to "yes" but leaves the radio button selected next to "no" as well. when i click "save settings" it just goes back to "no". i don't have the same behavior with the create and delete folder options.<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database

Edited by - vynsane on 12 November 2005 18:31:08
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 12 November 2005 :  18:35:40  Show Profile  Visit Zuel's Homepage  Reply with Quote
Yeah on Avatars.asp there are multiple includes for inc_header.asp, for some reason even though they both don't get called at anytime at the same time, they the variable still redefined.

Comment out the variable Dim Stopwatch on inc_header, I added it to the config file.

To change file permissions, I use my admin settings that most webmasters get when they get hosting. I doubt you can do it with FTP but I will go ahead and do some research for you. My best guess is to write an email to your hosting to get write permissions on that folder.

quote:

anyway, without the write permissions, is it normal for the "allow uploading" section of the admin panel to have both radio buttons selected? if i try to select the "yes" in that part, it selects the radio button next to "yes" but leaves the radio button selected next to "no" as well. when i click "save settings" it just goes back to "no". i don't have the same behavior with the create and delete folder options.



That sounds like a bug. I'll play with it and see what I can fix.





Zip updated with the correct instruction to replace rather then to add directly after.

I tested on two environments for the radio button. One with permissions and one without. They both worked fine. Post the code of the page when that happens. I wanna see the source when both get checked.

Try clearing cache as well.

As for FTP, you cannot modify permissions that way. All is controlled by drive directories. If anything, you can always create the folders yourself.

Go to the Admin Options create the new category, then add the category name you just created in the avatar folder.

And as a side note, did the original uploading feature work in Richard's avatar mod? This one uses the same thing.<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File

Edited by - Zuel on 12 November 2005 18:47:23
Go to Top of Page

vynsane
New Member

73 Posts

Posted - 12 November 2005 :  18:50:16  Show Profile  Visit vynsane's Homepage  Reply with Quote
this is the error i get after clicking "save settings" and then clicking on the "avatars" link in the header

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'intAvatarAllowUpload'

/forumtest/avatar_data.asp, line 220

line 220 is where it asks

"if intAvatarAllowUPload = 1 then"

so if both radio buttons are selected, then i guess it thinks it's 0 and 1?

EDIT GAH! edits, then posts then edits again!!!

yes, the original upload from admin worked, and i can create folders with your addon, so i guess i have write permissions already available...

what page do you want the source from?<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database

Edited by - vynsane on 12 November 2005 18:53:14
Go to Top of Page

vynsane
New Member

73 Posts

Posted - 12 November 2005 :  19:02:54  Show Profile  Visit vynsane's Homepage  Reply with Quote
i'm just going to double-post as opposed to double-edit...

you tested this with IE only, eh? it's letting me do it in IE, but not in FireFox, and i think it's because you don't have <form ></form > tags around the radio buttons. IE is far more forgiving than FF - to a fault...

here's an image of goofy stuff happening with the radios in FF...

<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database

Edited by - vynsane on 12 November 2005 19:05:19
Go to Top of Page

vynsane
New Member

73 Posts

Posted - 12 November 2005 :  19:38:06  Show Profile  Visit vynsane's Homepage  Reply with Quote
error on Topic.asp...



Expected end of statement

/forumtest/topic.asp, line 596

Response.Write " <table width=" & intAvatarWidth &" height=" & intAvatarHeight & " cellspacing=""0"" cellpadding=""0"" border=""0"" style="" background-image: url('" & Member_Avatar & "');background-repeat: no-repeat; background-position: center;"" ID="Table1">" & vbNewLine & _



expects the end at the second quote after

background-position: center;"" ID="Table1">" & vbNewLine & _
------------------------------^<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database

Edited by - vynsane on 12 November 2005 19:40:15
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 12 November 2005 :  19:53:25  Show Profile  Visit Zuel's Homepage  Reply with Quote
quote:
Originally posted by vynsane

i'm just going to double-post as opposed to double-edit...

you tested this with IE only, eh? it's letting me do it in IE, but not in FireFox, and i think it's because you don't have <form ></form > tags around the radio buttons. IE is far more forgiving than FF - to a fault...

here's an image of goofy stuff happening with the radios in FF...






I check the code and I see <form></form> tags in there. In avatar_data line 888.

quote:
this is the error i get after clicking "save settings" and then clicking on the "avatars" link in the header

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'intAvatarAllowUpload'

/forumtest/avatar_data.asp, line 220

line 220 is where it asks

"if intAvatarAllowUPload = 1 then"

so if both radio buttons are selected, then i guess it thinks it's 0 and 1?

EDIT GAH! edits, then posts then edits again!!!



This error would come from the value of intAvatarUpload to be neither 1 or 0. Once I get that error fixed in the Admin Config that should go away.

I just downloaded the root of all evil, Firefox. I'll test around in it.

Firefox is fine. Came up perfectly.

EDIT: Firefox is wierd. Sometimes the admin page updates and sometimes it doesn't. As far as the HTML, it seems right. What is Firefox doing that IE doesn't?

My HTML usually is compatible with Firefox, IE and Netscape 6.0+ without me referencing any guides.

EDIT #2: Try this. Use IE and set the "Automatically create
a new folder with
a new category?" to yes. Then open up firefox and go to the page. It should go on Yes. Then if you refresh again, it show go blank. It seems there is a counter I don't see yet with Firefox adding or increasing the value of the value on each refresh. I'll try to track it down.




Updated the Zip with a modified topic.asp. Changed the quotes to mimic the rest of the page.<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File

Edited by - Zuel on 12 November 2005 20:19:23
Go to Top of Page

vynsane
New Member

73 Posts

Posted - 12 November 2005 :  20:11:40  Show Profile  Visit vynsane's Homepage  Reply with Quote
i see the form tags now... i don't know what i was looking at...

topic.asp now working.

EDIT:
quote:
Originally posted by Zuel

[quote]Originally posted by vynsane

EDIT: Firefox is wierd. Sometimes the admin page updates and sometimes it doesn't. As far as the HTML, it seems right. What is Firefox doing that IE doesn't?

My HTML usually is compatible with Firefox, IE and Netscape 6.0+ without me referencing any guides.

EDIT #2: Try this. Use IE and set the "Automatically create
a new folder with
a new category?" to no. Then open up firefox and go to the page. It should go on Yes. Then if you refresh again, it show go blank. It seems there is a counter I don't see yet with Firefox adding or increasing the value of the value on each refresh. I'll try to track it down.



did like you say, changed it in IE, and nope, the settings stayed the same with at least 8-10 refreshes in FF. even if i changed all radios to the opposite in FF, if i refreshed it went back to the settings i had from IE (still in FF...)

it has to be something with the first two buttons - it seems the first two bounce one check back and forth between them, always being stolen by the first button - i've seen instances of checks for both "yes" and "no" next to "allow uploading" and i've seen instances of checks for neither "yes" nor "no" next to "create folder" but not the other way around.

and FF isn't the root of all evil! it just makes you work harder for your results!<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database

Edited by - vynsane on 12 November 2005 20:30:41
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 12 November 2005 :  20:22:50  Show Profile  Visit Zuel's Homepage  Reply with Quote
Currently a bug I cannot seem to fix. Here's the scenario:

When someone saves the value of this field to yes, Automatically create a new folder with a new category, then when they refresh the page, it moves off of yes to something blank. Dunno how or why but it only happens in Firefox.

The value "no" works fine. Nothing happens when you save the value to no. With testing the DB, even if you save settings when the value isn't not selected it still shows up in the DB as yes. I'll try to replicate the Type Mismatch error.<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File
Go to Top of Page

vynsane
New Member

73 Posts

Posted - 12 November 2005 :  21:10:09  Show Profile  Visit vynsane's Homepage  Reply with Quote
i actually had it happen where both "auto create" and "auto delete" were blank. the HTML looks good, though, so i'd venture a guess that it's somewhere in the scripting of the form action, and i'm afraid i can't help you there... not yet, anyway.

another thing that's weird... when i upload via "avatars.asp" the URL in the pop-up claims to be at http://www.twistingshadows.com/forum/ yadda yadda, and on my admin_review_avatar.asp page, it shows me two versions of each file i uploaded - one in the correct folder on my server, and a second "ghost" one that's just a redex with the full path to your website as shown above.<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 13 November 2005 :  09:07:27  Show Profile  Visit Zuel's Homepage  Reply with Quote
quote:
Originally posted by vynsane

i actually had it happen where both "auto create" and "auto delete" were blank. the HTML looks good, though, so i'd venture a guess that it's somewhere in the scripting of the form action, and i'm afraid i can't help you there... not yet, anyway.



I'll take a look.

quote:

another thing that's weird... when i upload via "avatars.asp" the URL in the pop-up claims to be at http://www.twistingshadows.com/forum/ yadda yadda, and on my admin_review_avatar.asp page, it shows me two versions of each file i uploaded - one in the correct folder on my server, and a second "ghost" one that's just a redex with the full path to your website as shown above.



lol, I'll see what I did wrong.

EDIT: Ah I found it.

<td bgcolor=""" & strPopUpTableColor & """><input maxLength=""255"" name=""AvatarURL"" value='http://www.twistingshadows.com/forum/" & image & "' size=""40"" readonly></td>" & vbNewLine & _

I'll change that to the forum URL.

Zip File updated. I also added a change for Admin_Review_Avatar.asp.<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File

Edited by - Zuel on 13 November 2005 09:28:26
Go to Top of Page

vynsane
New Member

73 Posts

Posted - 15 November 2005 :  09:54:55  Show Profile  Visit vynsane's Homepage  Reply with Quote
if i'm correct, uploading an avatar doesn't automatically assign the avatar as used by that member. also, it's available to anyone else for use. at other fora, when i upload an avatar, it's immediately assigned to me, and can only be used by me... (unless someone saves the picture through the forum and then uploads it as theirs...) also, i feel that the multiple upload opens the door to flooding both bandwidth and server space if people abuse the priveledge...

is it possible to make it so the user can only upload one avatar at a time (maybe it renames the filename after the user name or id?) and have it only available to that user (automatically assign "reserve for member" to the uploader...) AND (i know, i'm annoying...) automatically assign the custom avatar as used by the uploader.

i'm already playing with taking the link for "avatars.asp" out of the inc_header and just putting on the pop_profile page instead...

also, is it possible to add another option to the avatars.asp admin mode to restrict uploads by # of posts? like you can only upload after 100 posts or something?

i really appreciate all your hard work, and if you don't have the energy or time to make any more changes, i totally understand, but i think in terms of usability we could push it a little more...

i think about my account at another forum, where the avatar page looks like this...



if we had a single upload field on the page (not a pop-up) that did all that i said above (assign avatar for use, assign "reserve for member", and name image after user name/id) i think it would streamline the process greatly.<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database

Edited by - vynsane on 15 November 2005 09:56:16
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 16 November 2005 :  00:32:22  Show Profile  Visit Zuel's Homepage  Reply with Quote
For an extension I already was thinking of a few things:

[1] I wanted to fix a few things I caught while sifting through the code. Minor that helps with speed and error checking.
[2] Private Avatars. A place where members can upload an avatar so they are the only ones who can use it.
[3] Few Extra Admin options like file extensions, images per row, extra moderation, file moving...

But please send your ideas my way, thats the beauty of having an active developer work on a project.

I will change the look of the page to look similar to the one above.

Header
Page description - Current Avatar
Category Listings
3 Rows of Avatars from current category - I need to learn how to make page numbers.
Uploading - Automatically assigns an avatar you upload
Footer

I'll get to work on this as I was planning updates after I released it. And bah, you should have shown me that picture from the get go!<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 16 November 2005 :  05:18:10  Show Profile  Send pdrg a Yahoo! Message  Reply with Quote
>>congrats for persevering <<<
Go to Top of Page

vynsane
New Member

73 Posts

Posted - 16 November 2005 :  08:33:12  Show Profile  Visit vynsane's Homepage  Reply with Quote
quote:
Originally posted by Zuel

For an extension I already was thinking of a few things:

[1] I wanted to fix a few things I caught while sifting through the code. Minor that helps with speed and error checking.
[2] Private Avatars. A place where members can upload an avatar so they are the only ones who can use it.
[3] Few Extra Admin options like file extensions, images per row, extra moderation, file moving...

But please send your ideas my way, thats the beauty of having an active developer work on a project.

I will change the look of the page to look similar to the one above.

Header
Page description - Current Avatar
Category Listings
3 Rows of Avatars from current category - I need to learn how to make page numbers.
Uploading - Automatically assigns an avatar you upload
Footer

I'll get to work on this as I was planning updates after I released it.



awesome!

for extra admin options, think about allow/deny upload to categories, individually and global - in case you don't want users to upload to certain categories, or any categories at all...

quote:
Originally posted by Zuel

And bah, you should have shown me that picture from the get go!



*sorry...*<

why do you not have something to drink... choose one making you better feeling...

my snitz's:

www.vynsane.com/forum - l:guest p:guest (limited access account...)

www.WallCrawlersWeb.com/forum - The Spidey Database

Edited by - vynsane on 16 November 2005 08:34:06
Go to Top of Page

Zuel
Average Member

USA
540 Posts

Posted - 16 November 2005 :  11:17:07  Show Profile  Visit Zuel's Homepage  Reply with Quote
Can you explain what you want by:

quote:
think about allow/deny upload to categories, individually and global - in case you don't want users to upload to certain categories, or any categories at all...



I think I will have this implemented.

Allow Private Upload - Enables / Disables Private Upload
Private Upload - Allows users to upload avatar for themselves only.

Dynamic | Allow Uploading to Category A, B, C, etc - Allows Admins to control if users can upload to particular category. This will help monitor standard images within a set category.

Disable uploading is already a feature.

I was thinking of implementing Usergroups into this Avatar Mod to help control who can and who cannot upload. Much easier to smaller forums. I don't know how it will effect forums that host as many members as this one. I need input.

Keep the ideas coming. Until write my game plan I won't start on this and it is a bad idea to submit ideas once its being written so chuck em now!

My end goal for this mod is to expand it further. Maybe a photo album or screenshot collection.

quote:
>>congrats for persevering <<


Thanks pdgr<

My Completed Mods: News Mod | Zuel's Avatar Add-on
In Development: World of Warcraft Member Roster | [C# Based Forum]

Note - I may take a few days to recieve your email. Hotmail filters all new emails as junk. Would be best to post all questions, concerns in a forum topic to catch my immediate attention. This way others can assist and also correct any similar mistakes.

MSN / E-Mail: ucyimDa_Ruler@Hotmail.com

Personal Bookmarks: How to work a DBS File

Edited by - Zuel on 16 November 2005 11:21:57
Go to Top of Page
Page: of 14 Previous Topic Topic Next Topic  
Next Page
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.21 seconds. Powered By: Snitz Forums 2000 Version 3.4.07