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)
 Avatars in 3.4.01
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 4

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 29 August 2002 :  08:50:36  Show Profile
You mean add multiple avatars to the database in one go rather than manually entering them one at a time? If so, I can post the dbs file I use to do this. Unfortunately, you will still have to enter the avatar details into the dbs file, but it is considerably quicker than waiting for pages to load, etc..



c ya in the funny books
MeTV - tvthemetunes.net - forums
house of design - graphic design consultants

#147;It is much more comfortable to be mad and know it, than to be sane and have one's doubts.#148;
Go to Top of Page

Lydecker
Junior Member

United Kingdom
297 Posts

Posted - 29 August 2002 :  09:13:53  Show Profile  Visit Lydecker's Homepage
MeTV please can you post that file? Thanks!

Hamlin - Yes I was either thinking multiple upload, or something which diplays all images as avatars when placed in an 'avatar' directory. Thanks for the mod Hamlin!
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 29 August 2002 :  09:29:44  Show Profile
I got this from some where


<%
strImageLocation = "avatars"

Set filesys = CreateObject("Scripting.FileSystemObject")

Set imagesFolder = filesys.GetFolder("C:\Hamlin\testsite\" & strImageLocation)

set filesObj = imagesFolder.Files

For Each file in filesObj
filelist = filelist & "<img src=""" & strImageLocation & "/" & file.name & """ alt=""smile"">"
filelist = filelist & " | "
Next
Response.Write filelist
%>


It displays all the images in a folder, I think you could change it so that in the for loop part you could add each image to the avatar table..I'll see if I can get that to work.
Go to Top of Page

Lydecker
Junior Member

United Kingdom
297 Posts

Posted - 29 August 2002 :  09:30:53  Show Profile  Visit Lydecker's Homepage
Cool - Thanks!
Go to Top of Page

Lydecker
Junior Member

United Kingdom
297 Posts

Posted - 29 August 2002 :  09:33:07  Show Profile  Visit Lydecker's Homepage
The Avatar pack (http://forum.snitz.com/forum/topic.asp?TOPIC_ID=18157) had a method for uploading lots (it still involved lots of typing, but it was more time saving) - but this obviously dosent work on the new version.

But if you could get that code above (the folder one) working it would be sweet

THanks

Edited by - Lydecker on 29 August 2002 09:35:29
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 29 August 2002 :  09:39:05  Show Profile
The 105 avatar pack should work perfectly with the new version

The only bit that may need changing is the check at the top to make sure you are the admin, and the inlcude files.

Edited by - Hamlin on 29 August 2002 09:39:56
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 29 August 2002 :  10:51:42  Show Profile
@ Lydecker

I tested this 2 times once on my local pc and once on my actual site, it worked both times.

Its not that good and needs to be cleaned up a bit, the display name is entered as the image name, so if the image is called 11020asdw.gif then 11020asdw will appear on the selection screen.

Your welcome to try it out tho.

To use, put the new avatars in a folder on there own. You then enter the name of that folder and press submit.

If there are other files in the folder they will get added as well, i.e. if there was a file called topic.asp it would get added as an avatar, so make sure there are only images in the folder.

Save it as admin_avatar_mass_add.asp

admin_avatar_mass_add.asp

Edited by - Hamlin on 29 August 2002 10:53:16
Go to Top of Page

CodeName
Junior Member

296 Posts

Posted - 29 August 2002 :  11:13:56  Show Profile
Hamlin, So We have to add link at avatar Options for that file?
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 29 August 2002 :  11:23:10  Show Profile
You dont have to no, I'm not going to add this in the zip as it will not work for all people but if you want a link edit admin_avatar_home.asp

admin_avatar_home.asp line 68-69 add the red code


" <LI><a href=""admin_add_avatar.asp"">Add New Avatar</a>    </LI>" & vbNewLine & _
" <LI><a href=""admin_review_avatar.asp"">Review/Edit Avatars</a>    </LI>" & vbNewLine & _
" <LI><a href=""admin_avatar_mass_add.asp"">Mass avatar add</a>    </LI>" & vbNewLine & _
Go to Top of Page

CodeName
Junior Member

296 Posts

Posted - 29 August 2002 :  12:06:09  Show Profile
Thanks Hamlin

Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 29 August 2002 :  13:25:28  Show Profile
For those of you looking for it, here's the dbs file I use:

Add new avatars to database
[INSERT]
AVATAR
(A_URL,A_NAME,A_MEMBER_ID)#('AVATAR URL','AVATAR NAME',0)
[END]


Copy and paste the code above into a text editor and save it as dbs_new_avatars.asp. For each avatar you want to add to the database copy the fourth line above and paste it above [END] replacing AVATAR URL and AVATAR NAME with the url and name of the avatar you wish to add. If you want to assign an avatar to a particular member and you know their ID, you can change the 0 before the closing bracket to their ID, if you don't know their ID, you can always edit the avatar after you've added it to the database. Once you've finished editing, upload the file to your forum directory, go to MOD Setup in your Admin Options, select "Add new avatars to database" and hit "Update!".

That should do it, let me know if you've any problems.


c ya in the funny books
MeTV - tvthemetunes.net - forums
house of design - graphic design consultants

#147;It is much more comfortable to be mad and know it, than to be sane and have one's doubts.#148;
Go to Top of Page

Lydecker
Junior Member

United Kingdom
297 Posts

Posted - 29 August 2002 :  14:55:29  Show Profile  Visit Lydecker's Homepage
Dear lord Hamlin, my hats off to you - you just saved me hours of work! Many, many thanks

One other thing I'd like to ask if you have seen before - Last year I came across a Snitz forum with an Avatar mod installed. But this mod was quite unique! It was divised in a way such that the amount of avatars from which the user could select from was dependent on how many posts they had made. So the more posts the larger the library of images for him/her. I guess it was done by setting different post boundries, then diverting the user to different directories with the avatars in? Anyway - have ever seen or heard of this in the past?? I posted this back in this forum a while back http://forum.snitz.com/forum/topic.asp?TOPIC_ID=33772

Thanks again!

****EDIT****
Just realised you have read/replied to the post already - sorry
****EDIT****

Edited by - Lydecker on 29 August 2002 14:57:39
Go to Top of Page

Aaron S.
Average Member

USA
985 Posts

Posted - 29 August 2002 :  15:07:57  Show Profile  Visit Aaron S.'s Homepage
FYI:

I will be adding this to the Avatar PLUS MOD (releasing this weekend).

--Aaron

DOWNLOAD GREAT NEW MODS HERE
Go to Top of Page

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 29 August 2002 :  15:33:22  Show Profile
quote:
Originally posted by Lydecker

Dear lord Hamlin, my hats off to you - you just saved me hours of work! Many, many thanks



your welcome, but remember there is no mass delete, so if you make a typo in the folder box you have to delete them all one by one EDIT - Or I suppose you could rename the folder

Edited by - Hamlin on 29 August 2002 15:34:47
Go to Top of Page

Lydecker
Junior Member

United Kingdom
297 Posts

Posted - 29 August 2002 :  15:56:03  Show Profile  Visit Lydecker's Homepage
good point!
Go to Top of Page
Page: of 4 Previous Topic Topic Next Topic  
Previous Page | 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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07