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 Gallery MOD
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

filo_2k
Starting Member

Italy
37 Posts

Posted - 11 December 2003 :  11:20:22  Show Profile  Visit filo_2k's Homepage
This simple MOD shows a popup with the prewiew of all the avatars.



1) create a new page called pop_avatar_gallery.asp with the code below
<%
'#################################################################################
'## Avatar gallery MOD Copyright (c) 2003, filo_2k
'#################################################################################
%>
<!--#INCLUDE FILE="config.asp" -->  
<!--#INCLUDE FILE="inc_header_short.asp" -->
<%
strTempFont    = "<font face=""" & strDefaultFontFace & """ size=" & strDefaultFontSize & ">"

response.write  "<table border=""0"" width=""95%"" cellspacing=""1"" cellpadding=""3"" bgcolor=""" & strTableBorderColor & """>" & vbNewline &_
				"	<tr bgcolor=""" & strHeadCellColor & """>" & vbNewline &_
				"		<td width=""50%"" align=""center""> </td>" & vbNewline &_
				"		<td width=""50%"" align=""center""> </td>" & vbNewline &_
				"	</tr>" & vbNewline


'##### Get Avatar's from DB                
	strSql = "SELECT " & strTablePrefix & "AVATAR.A_ID" 
	strSql = strSql & ", " & strTablePrefix & "AVATAR.A_URL"
	strSql = strSql & ", " & strTablePrefix & "AVATAR.A_NAME"
	strSql = strSql & ", " & strTablePrefix & "AVATAR.A_MEMBER_ID"
	strSql = strSql & " FROM " & strTablePrefix & "AVATAR "
	strSql = strSql & " WHERE " & strTablePrefix & "AVATAR.A_MEMBER_ID = 0 "
	strSql = strSql & " ORDER BY " & strTablePrefix & "AVATAR.A_NAME DESC;"
	
	set rsAvatar = Server.CreateObject("ADODB.Recordset")
	rsAvatar.open  strSql, my_Conn, 3                                            
	
	if rsAvatar.EOF then
		recAvatarCount = ""
	else 
		allAvatarInfo = rsAvatar.GetRows(adGetRowsRest)
		recAvatarCount = UBound(allAvatarInfo,2) 
		
		avatar_ID = 0
		avatar_URL = 1
		avatar_Name = 2
		avatar_Member_ID = 3
	end if
	
rsAvatar.close
set rsAvatar = nothing

pari = 0

if recAvatarCount <> "" then

	for iAvatar = 0 to recAvatarCount

		AvatarID = allAvatarInfo(avatar_ID, iAvatar)
		AvatarURL = allAvatarInfo(avatar_URL, iAvatar)
		AvatarNAME = allAvatarInfo(avatar_Name, iAvatar)
		AvatarMEMBERID = allAvatarInfo(avatar_Member_ID, iAvatar)	
	
		if pari = "0" then
		response.write  "	<tr bgcolor=""" & strForumCellColor & """>" & vbNewline
        end if
        response.write  "		<td width=""50%"" align=""center"" bgcolor=""" & strForumCellColor & """><img src=""" & AvatarURL & """><br><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & AvatarNAME & "</font></td>" & vbNewline
        if pari = "0" then
        pari = 1
        else 
        response.write  "	</tr>" & vbNewline
        pari = 0
        end if
        

	next

else

	response.write  "<tr><td colspan=2>No Avatars Found</td></tr>"


end if

response.write  "</table>" & vbNewline
%><!--#INCLUDE FILE="inc_footer_short.asp" -->



2) paste the code below where you need to have the prewiew (for example in inc_avatar.asp)
<a href=""JavaScript:openWindow3('pop_avatar_gallery.asp')"">See avatars gallery</a>

filo_2k
Admin @ FastWeb-Italia-NetworK
http://www.fin2k.net

weeweeslap
Senior Member

USA
1077 Posts

Posted - 11 December 2003 :  17:37:37  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
got a demo somewhere?

coaster crazy
Go to Top of Page

Image
Average Member

Canada
574 Posts

Posted - 11 December 2003 :  19:31:04  Show Profile  Visit Image's Homepage  Send Image an ICQ Message
I found this

http://62.101.71.211/file/extra/fin/forum/pop_avatar_gallery.asp

or http://62.101.71.211/file/extra/fin/forum/register.asp?mode=Register
Go to Top of Page

edbyrne
Starting Member

Ireland
34 Posts

Posted - 11 December 2003 :  20:32:46  Show Profile
Thanks filo_2k
I have just uploaded the new asp page and it works a dream. A useful add-on.
cheers,

Eddie
http://www.cleft.ie
Go to Top of Page

weeweeslap
Senior Member

USA
1077 Posts

Posted - 12 December 2003 :  02:19:00  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
ok, thank you.

coaster crazy
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 12 December 2003 :  06:46:26  Show Profile
What about a gallery that shows all the Avatars that are actually used by members ?
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 12 December 2003 :  07:36:36  Show Profile  Visit MarcelG's Homepage
Addition ; CrashCode has this feature available, along with paging.
Demo: http://avatars.oxle.com

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

wii
Free ASP Hosts Moderator

Denmark
2632 Posts

Posted - 12 December 2003 :  08:16:43  Show Profile
Do you have a test login ?

quote:
Originally posted by marcelgoertz

Addition ; CrashCode has this feature available, along with paging.
Demo: http://avatars.oxle.com

Go to Top of Page

filo_2k
Starting Member

Italy
37 Posts

Posted - 12 December 2003 :  15:00:53  Show Profile  Visit filo_2k's Homepage
quote:
Originally posted by marcelgoertz

Addition ; CrashCode has this feature available, along with paging.
Demo: http://avatars.oxle.com


do you have the source code?

could be nice imho have a popup like the one i did but with also a radio input under the image to choose it: as soon as i have time i'll try to do it

filo_2k
Admin @ FastWeb-Italia-NetworK
http://www.fin2k.net
Go to Top of Page

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 12 December 2003 :  15:11:01  Show Profile  Visit MarcelG's Homepage
here's the original crashcode version: http://www.oxle.com/uploaded/marcelg/pop_avatarlegend.txt
Mine is a bit modified, but I think you can easily make the original working.

portfolio - linkshrinker - oxle - twitter
Go to Top of Page

xx ENIGMA xx
Junior Member

166 Posts

Posted - 12 December 2003 :  15:46:49  Show Profile  Send xx ENIGMA xx an AOL message
nice mod filo_2k, installed very easy and works nice

thanks.....


my little forum playground

Go to Top of Page

filo_2k
Starting Member

Italy
37 Posts

Posted - 12 December 2003 :  17:40:14  Show Profile  Visit filo_2k's Homepage
... i've done a new version with te radio selection. it is a bit more difficult to install and works only with inc_avatar.asp : if you need to have the popup generated by other pages yuo should use the before version.

The files are aviable here -> http://www.fin2k.net/varie/avatargallery.zip

The demo instead is here -> http://forum.fin2k.net/register.asp?mode=Register


filo_2k
Admin @ FastWeb-Italia-NetworK
http://www.fin2k.net
Go to Top of Page

xx ENIGMA xx
Junior Member

166 Posts

Posted - 12 December 2003 :  18:19:13  Show Profile  Send xx ENIGMA xx an AOL message
very nice, I think I'll switch over to your new update


my little forum playground

Go to Top of Page

Etymon
Advanced Member

United States
2385 Posts

Posted - 14 December 2003 :  02:49:26  Show Profile  Visit Etymon's Homepage
The link below does not work:

http://www.fin2k.net/varie/avatargallery.zip

Go to Top of Page

filo_2k
Starting Member

Italy
37 Posts

Posted - 14 December 2003 :  04:50:16  Show Profile  Visit filo_2k's Homepage
quote:
Originally posted by Etymon

The link below does not work:
http://www.fin2k.net/varie/avatargallery.zip


it's strange: i've just tryed and it's working perfectly

filo_2k
Admin @ FastWeb-Italia-NetworK
http://www.fin2k.net
Go to Top of Page

xx ENIGMA xx
Junior Member

166 Posts

Posted - 14 December 2003 :  14:51:21  Show Profile  Send xx ENIGMA xx an AOL message
quote:
Originally posted by filo_2k

quote:
Originally posted by Etymon

The link below does not work:
http://www.fin2k.net/varie/avatargallery.zip


it's strange: i've just tryed and it's working perfectly



does not work for me either....

takes me here when clicked http://fin.altervista.org/varie/avatargallery.zip
ore 403   

Non puoi accedere alla pagina o directory desiderata, ecco le possibili ragioni:

La directory non contiene un file indice, comunemente (index.html). 
Non sei connesso con un numero IP valido (IP: 24.155.38.91, se stai usando un proxy puoi provare a disabilitarlo e riconnetterti. 
Il traffico verso quest'area del sito č bloccato, oppure non hai l'autorizzazione per accedere alla risorsa che hai richiesto 
http://www.altervista.org

then it redirects me to this http://www.altervista.org/



my little forum playground

Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07