Ummm do you mean a custom Avater gallery? or a way to link to a custom avatar gallery? or what? :blink:
Well you could get a code that adds a avatar gallery to a forum....or you could create an photobucket account and allow your members to view it.
V is the code you could use.
Quote:
Admin CP > Board Wrappers > Footer
To add more galleries just copy the newGal[0] line, and increment the number e.g. in this case it would be newGal[1]
red text = the name of the gallery (shown in the drop down)
green text = the pictures in the gallery. Note that the value before the @ is the label for the picture and the value after is the URL to the picture.
Quote:
<script>//Custom Avatar Gallery (A leaving present) - By Markup / MKII
newGal=[]
newGal[0]=["Misc","pic1@http://your_images.com/1.gif","pic2@http://your_images.com/2.gif","pic3@http://your_images.com/3.gif"]
form=document.forms
for(i=0;i<form.length;i++)
if(form[i].elements['av_cat'])
{
elm=form[i].elements['av_cat']
for(n=0;n<newGal.length;n++)
{
nOpt=elm.options[0].cloneNode()
nOpt.value=newGal[n][0]
nOpt.innerHTML=newGal[n][0]
elm.appendChild(nOpt)
if(location.href.match("av_gal="+unescape(newGal[n][0])))
buildGallery(newGal[n])
}
form[i].onsubmit=function(){for(n=0;n<newGal.length;n++)i f(elm.value==newGal[n][0]){cat=newGal[n][0];this.action="javascript:location='http://'+location.hostname+location.pathname+'?act=UserCP &CODE=getgallery&av_gal='+cat"}}
break
}
function buildGallery(selected)
{
div=document.getElementsByTagName("DIV")
for(n=0;n<div.length;n++)
if(div[n].innerHTML.match("Avatar Gallery: "))
div[n].innerHTML="Avatar Gallery: "+unescape(location.href.match(/av_gal=(.*)/)[1])
table=form[i+1].getElementsByTagName("TABLE")[0]
newTable=table.cloneNode()
table.removeNode(true)
form[i+1].elements['CODE'].value=25
nRow=newTable.insertRow(-1)
for(n=1;n<selected.length;n++)
{
nCell=nRow.insertCell(-1)
nCell.align="center"
nCell.innerHTML="[img]+selected[n].split([/img]
<input type=radio class=radiobutton name=url_avatar value="+selected[n].split("@")[1]+">"+selected[n].split("@")[0]+""
if(n%5==0&&n+1<selected.length)
nRow=newTable.insertRow(-1)
}
form[i+1].insertBefore(newTable,form[i+1].getElementsByTagName("DIV")[0])
}
</script>
|
|
Hope that helps