Zuel's Avatar Addon - Postet den (2456 Views)
Average Member
Zuel
Innlegg: 540
540
heheheh I'm soo excited. After a few weeks of programming this thing I finally got my little add-on to work.
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=52
This mod is not independent and it needs Avatar MOD VERSION 1.3 by Hamlin.
I'll post the code if I get some people who actually want to use it.
Doesn't modify any current Snitz files except the inc_header.asp to link to the page.
Screenshot #1 - http://www.twistingshadows.com/userimages/GeneralPreview.jpg

First screen people go to. Shows a default category and automatically generates the HTML to show the avatars.
Screenshot #2 - http://www.twistingshadows.com/userimages/UploadingPreview.jpg

Users can upload up to 4 images simentanously to a category.
Screenshot #3 - http://www.twistingshadows.com/userimages/DeletedPreview.jpg

Only Admins and moderators can see the Delete button to instantly delete any image or file that doesn't meet the requirments.
Screenshot #4 - http://www.twistingshadows.com/userimages/HoverPreview.jpg

Alt tag to tell people what stuff does.
Screenshot #5 - http://www.twistingshadows.com/userimages/CategoryPreview.jpg

Just more avatars under a different category.
Screenshot #6 - http://www.twistingshadows.com/userimages/ChoosingPreview.jpg

Users select the image they want and it adds the values to the DB so they can select their avatar within their profile. The form fields in the pop up are readonly so nothing can be messed around with.
This is just a preview of what I am working on. I won't release it yet because it is mainly spaghetti code. I want to put everything within Private Subs instead of inline code.
Trial:

http://www.twistingshadows.com/forum/avatars.asp

Account: tester
Password: tester



Things are buggy and can be tweaked and they will. I was just excited I got everything to work. bigsmilebigsmilebigsmile<
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
   
 Sidestørrelse 
Postet den
Senior Member
MarkJH
Innlegg: 1722
1722
I've been looking for something like this for a while. Looking forward to seeing it's progress!<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Postet den
Average Member
Zuel
Innlegg: 540
540
Yeah, this is my little pet project. I am happy with the progress I will continue to optimize it.<
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
Postet den
Senior Member
weeweeslap
Innlegg: 1077
1077
I tested an upload and uploaded a text file to see if you aded a check of sorts to make sure they upload only image files, like check the extensions of the file upload, if it meets that of selected extensions allowed, then upload, else, abort upload. It would be good to add such thing to prevent users from uploading virus to the server. also after upload at the bottom you see:
Files uploaded: charles the first.txt (1268B)
Enter a number =
Checkbox values =

not sure what what the last two are for, can't type anything in so maybe not display the last two.<
Postet den
Average Member
Zuel
Innlegg: 540
540
Originally posted by weeweeslap
I tested an upload and uploaded a text file to see if you aded a check of sorts to make sure they upload only image files, like check the extensions of the file upload, if it meets that of selected extensions allowed, then upload, else, abort upload. It would be good to add such thing to prevent users from uploading virus to the server. also after upload at the bottom you see:
Files uploaded: charles the first.txt (1268B)
Enter a number =
Checkbox values =

not sure what what the last two are for, can't type anything in so maybe not display the last two.

Yeah I have that coming soon. Until then I added a check for the users currently on the site. If file <> image then don't show it. If file <> image and a mod or admin passes by then it flags the file as not an image. I'll post a screenshot of what you uploaded.
http://www.twistingshadows.com/userimages/NotValidPreview.jpg

The reason I have this open is because what if I wanted to expand this to like attachments or screenshots or even a photo gallery. As of now I want to add some controls in there from the DB to give it a little more functionality. But I will put some security somehow wink<
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
Postet den
New Member
vynsane
Innlegg: 73
73
i would like to be a tester for you... the guys on my forum are dying for something like this. let me know if you want to pack up the files for me...
btw, in FF 1.0.7 when i click on an avatar or the upload link, the pop-up pops under. it pops up and then falls behind the main window immediately. just fyi...<
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
Postet den
Average Member
Zuel
Innlegg: 540
540
Oh, okay.
Didn't have that happen since I have two monitors. Thanks for the tip.
Current Progress...
I am working on putting everything in Subroutines from the spaghetti code. I gotta learn how to create a Admin Config file and keep the variables stored in the DB.<
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
Postet den
Senior Member
MarkJH
Innlegg: 1722
1722
Is it possible to set a maximum file size and if the file uploaded is greater than this, the software automatically rejects it?<
Bandlink.net - http://www.bandlink.net/
Bandlink Music Forums - http://www.bandlink.net/forum/
Postet den
Average Member
Zuel
Innlegg: 540
540
Yeah, I haven't set restrictions yet because the only people who can see this page will be trusted members.
Yes, I no the tester account can see it but I have it so only two usergroups can view the upload function. That will remove any guests / new members from uploading anything they shouldn't onto my site.
I plan to add a few checks before the upload begins:
(1) File Extention
(2) File Size
(3) File Name Length

I am big on logic. I hate to see a program run through then tell you it is either too big or invalid. I feel that should be first. And it will to come. Sooner or later.
Update:

I just finished rewriting this into Functions and it looks alot cleaner. bigsmile
Now I need to convert the previous Javascript to work with the cleaner code. Vbscript doesn't like my ticks and inline javascript code. I still need to do alot before I'll release this code out.
1. Fix the Javascript Code. 2. Create an Admin page to handle all the unique fields that should be able to be changed. 3. Set up a DB Table or add-on to the existing avatar one. 4. Rewrite that code that will handle the new variables. / Add the new variables to the Config file and what not.
<
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
Postet den
Average Member
Zuel
Innlegg: 540
540
Update: Big Update!!!!
I rewrote the whole code from Spagetthi to Functions. I used StringBuilders instead of contacinating strings to save memory and this page loads like 5 times faster. Used literals to handle the Javascript code.
Now this page pulls the table colors from the config file. New feature! This will automatically grab the look and feel of your forum.
Also this automcatially uses the file size settings from the avatar mod that this mod is dependant on.
I haven't uploaded the code to live yet. I will upload it to my test forums so you guys can preview it.
Preview:
http://www.twistingshadows.com/development/forum/avatars.asp

Login: tester
Pass: tester


vynsane, I also fixed the focus so it should pop correctly. Thanks for catching that.<
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
Postet den
Snitz Forums Admin
ruirib
Innlegg: 26364
26364
It's not working. No avatars show and an error occurs when an upload is attempted.<
Du må legge inn en melding