Welcome Guest [Log In] [Register]
We hope you enjoy your visit.

You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
code for avatar gallery
Topic Started: Jul 19 2008, 09:25 AM (525 Views)
proudtxmom
Member
 *  
Is there a code to where you can add your own avatars? We want to add a new gallery and I found one code on here but it didn't work. I don't know if we had it in the wrong place or what. Here is the one we used. http://if.invisionfree.com/topic/124322/1/#new Any help would be greatly appreciated.
Offline Profile Quote Post Goto Top
 
Codes Rock
Member Avatar
Member
 *   *   *   *  
In reading this code, I see that you are to create a division <DIV> with Avatar Gallery: typed inside of it:

Code:
 

div=document.getElementsByTagName("DIV")
for(n=0;n<div.length;n++)
if(div[n].innerHTML.match("Avatar Gallery: "))


It then is looking for table <TABLE>

Code:
 

table=form[i+1].getElementsByTagName("TABLE")[0]

and will then add table rows if it finds this table in the division with Avatar Gallery, and insert images <IMG> to populate the table. These images will have radio buttons to select the images.

Problem is, I think your missing another section of this script for it doesn't say what to do with the radio buttons.

To access the code, you would add act=UserCP&CODE=getgallery&av_gal= to your address of your forum, http://youraddress.com/index.php?act=UserCP&CODE=getgallery&av_gal=____

The underscore would be the category number for the avatar gallery you wanted. In this case, if you wanted a brand new avatar gallery, you would put &av_gal=1

At the top of the script it tells you this:
Code:
 
newGal=[1]


To view the one consisting of the images in the script, you would put &av_gal=0

Code:
 
newGal[0]


I tried to use the code you provided on my forum and was unable to get it to display, that's why I think there is something missing. Maybe my little bit of information can assist you in getting it to work.
Edited by Codes Rock, Jul 19 2008, 07:30 PM.
Offline Profile Quote Post Goto Top
 
proudtxmom
Member
 *  
Thanks. I'll work on it and see what I can come up with. Thanks again.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
« Previous Topic · zIFBoards - Skinning & Code Support · Next Topic »
Add Reply