Author |
Topic |
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 29 August 2002 : 08:50:36
|
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; |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 29 August 2002 : 09:13:53
|
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! |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 29 August 2002 : 09:29:44
|
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. |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 29 August 2002 : 09:30:53
|
Cool - Thanks! |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 29 August 2002 : 09:33:07
|
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 |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 29 August 2002 : 09:39:05
|
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 |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 29 August 2002 : 10:51:42
|
@ 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 |
|
|
CodeName
Junior Member
296 Posts |
Posted - 29 August 2002 : 11:13:56
|
Hamlin, So We have to add link at avatar Options for that file? |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 29 August 2002 : 11:23:10
|
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 & _
|
|
|
CodeName
Junior Member
296 Posts |
Posted - 29 August 2002 : 12:06:09
|
Thanks Hamlin
|
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 29 August 2002 : 13:25:28
|
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; |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 29 August 2002 : 14:55:29
|
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 |
|
|
Aaron S.
Average Member
USA
985 Posts |
Posted - 29 August 2002 : 15:07:57
|
FYI:
I will be adding this to the Avatar PLUS MOD (releasing this weekend).
--Aaron
|
DOWNLOAD GREAT NEW MODS HERE |
|
|
Hamlin
Advanced Member
United Kingdom
2386 Posts |
Posted - 29 August 2002 : 15:33:22
|
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 |
|
|
Lydecker
Junior Member
United Kingdom
297 Posts |
Posted - 29 August 2002 : 15:56:03
|
good point! |
|
|
Topic |
|