Version: 1.00, by Gaffer
Developer Last Online: Nov 2022
Version: 2.2.x
Rating:
Released: 10-18-2002
Last Update: Never
Installs: 4
Is in Beta Stage
No support by the author.
hi this is my first hack ever that i have released and cause i think these instructions are a little hard to understand and i'm not 100% sure if they will work right, i'm putting it here in beta hacks for a week or so..... till all the bugs in my writing is ripped out
what this hack does- this hack lets you have a totally random avatar at every post. (not thread but each post)
the below instructions are to add another one avatar but there is an addon at the bottom that explains how to add more. this is set so only admins can set these as rewards to members and such. mainly so people on my site don't put huge images in instead of the 170X170 max set currently.
i hope to release more versions of this as well each better and better i hope to have it so you have screens like vb has now for avatars one day.
for a demo go here
demo not working right now
i will try and support people that have problems but i won't promise anything but i have installed it on 2 boards that we're running 2.2.6 and it is working fine and i have also installed it on a 2.2.8 board that i'm hacking getting ready to install over the other 2 and all 3 are working
this code really needs cleaning up as well. as i'm someone that normally just edits other hacks to suit what i need but this one i wrote almost all by myself except for the Java which i found in a txt file on my computer that from the date says that it has been there for 8 months unopened... so i have no idea where it's from
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
<SCRIPT LANGUAGE="JavaScript"><!-- Beginvar theImages = new Array() // do not change this// To add more image files, continue with the// pattern below, adding to the array.theImages[0] = '<img src="$avatarurl">'theImages[1] = '<img src="$post[field6]">'// line remarked to show pattern
// theimages[2] = '<img src="$post[field7]">'
// do not edit anything below this linevar j = 0var p = theImages.length;var preBuffer = new Array()for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i]}var whichImage = Math.round(Math.random()*(p-1));function avatar(){document.write(''+theImages[whichImage]+'');}avatar();// End --></script>
it seems the code is mixed...
what is that...if i set 2 more random avatar (total 3 ..include the default one)...what is i do with this second template...thanks
Originally posted by LangTuDaTinh i have problem /w setting up template #2
<SCRIPT LANGUAGE="JavaScript"><!-- Beginvar theImages = new Array() // do not change this// To add more image files, continue with the// pattern below, adding to the array.theImages[0] = '<img src="$avatarurl">'theImages[1] = '<img src="$post[field6]">'// line remarked to show pattern
// theimages[2] = '<img src="$post[field7]">'
// do not edit anything below this linevar j = 0var p = theImages.length;var preBuffer = new Array()for (i = 0; i < p; i++){ preBuffer[i] = new Image() preBuffer[i].src = theImages[i]}var whichImage = Math.round(Math.random()*(p-1));function avatar(){document.write(''+theImages[whichImage]+'');}avatar();// End --></script>
it seems the code is mixed...
what is that...if i set 2 more random avatar (total 3 ..include the default one)...what is i do with this second template...thanks
ooooops
i checked it before i put it up but for some reason it removed all the breaks
i've updated the link at the top with the right layout