Forum 

Forum AspNuke.it - Il tuo Portale OpenSource in ASP

Cosa vuol dire

Autore Messaggio
giuli

Principiante
Principiante
20 Discussioni



Profilo - giuli
10 giugno 2003 alle 23:22:01 Profilo - giuliInvia un messaggio privato Rispondi quotando
Errore di run-time di Microsoft VB_Script errore "800a01f4'

Variabile non definita: 'bIsAdvanceTheme'

/aspnuke/includes/display-inc.asp, riga 89


Questo è il file incriminato:

<%
' ************************************************************************
' * ASP-Nuke: Free web portal in ASP *
' ************************************************************************
' * Copyright (c) 2002-2003 by Gaetan Bouveret (webmaster@asp-nuke.com) *
' * http://www.asp-nuke.com *
' * *
' * This program is free software. You can redistribute it and/or modify *
' * it under the terms of the GNU General Public License as published by *
' * the Free Software Foundation; either version 2 of the License, or *
' * (at your option) any later version. *
' * *
' ************************************************************************
%>
<%

' Create the top part of a standard table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' OUT : -
Sub CreateBoxTopTable(sTabName, sHeader)
Response.Write "<table id=""" & sTabName & """ width=""100%"" align=""center"" border=""0"" cellspacing=""0"" cellpadding=""0"" class=""box"">" & vbCrLf
Response.Write " <tr>" & vbCrLf
Response.Write " <td width=""8"" height=""22""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/topleft.gif"" width=""8"" height=""22"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/top.gif"" align=""left"" valign=""middle"" height=""22"" class=""boxtitle"">" & vbCrLf
IF ExistFile(GLOBAL_SITE_THEMES_PATH & sTheme , "table_bullet.jpg") Then 'IF ExistFiles(GLOBAL_SITE_THEMES_PATH & sTheme & "/" & "table_bullet.jpg") THEN
Response.Write " <img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/table_bullet.jpg"" align=""absmiddle"" width=20 height=20>" & sHeader & "" & vbCrLf
Else
Response.Write " " & sHeader & vbCrLf
End If
Response.Write " </td>" & vbCrLf
Response.Write " <td width=""12"" height=""22""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/topright.gif"" width=""12"" height=""22"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " </tr>" & vbCrLf
Response.Write " <tr>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/left.gif""></td>" & vbCrLf
Response.Write " <td width=""100%"" class=""boxtext"">" & vbCrLf
End Sub

' Create Left of table
Sub CreateBoxLeftTable
If bIsAdvanceTheme Then
Response.Write " <tr>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/left.png""></td>" & vbCrLf
Response.Write " <td width=""100%"" class=""boxtext"">" & vbCrLf
End If
End Sub

' Create the bottom part of a box table
' IN : sFooter (string) : footer
' OUT : -
Sub CreateBoxBottomTable(sFooter)
Response.Write " </td>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/right.gif""></td>" & vbCrLf
Response.Write " </tr>" & vbCrLf

If sFooter <> "" Then
Response.Write " <tr>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/left.gif""></td>" & vbCrLf
Response.Write " <td width=""100%"" align=""center"" class=""boxtext""><span class=""small"">" & sFooter & "</span></td>" & vbCRLF
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/right.gif""></td>" & vbCrLf
Response.Write " </tr>" & vbCRLF
End If

Response.Write " <tr>" & vbCrLf
Response.Write " <td width=""8"" height=""12""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/bottomleft.gif"" width=""8"" height=""12"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/bottom.gif""></td>" & vbCrLf
Response.Write " <td width=""12"" height=""12""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/bottomright.gif"" width=""12"" height=""12"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " </tr>" & vbCrLf
Response.Write "</table>" & vbCrLf
End Sub

' Create a box table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' : sText (string) : text in the table
' : sFooter (string) : footer
' OUT : -
Sub CreateBoxTable(sTabName, sHeader, sText, sFooter)
CreateBoxTopTable sTabName, sHeader
Response.Write sText & vbCRLF
CreateBoxBottomTable sFooter
End Sub

' Create the top part of a standard table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' OUT : -
Sub CreateTopTable(sTabName, sHeader)
If bIsAdvanceTheme then
CreateBoxTopTable sTabName, sHeader
Else
Response.Write " <table id=""" & sTabName & """ width=""100%"" align=""center"" cellspacing=""0"" cellpadding=""0"" class=""myTable"">" & vbCRLF
If sHeader <> "" Then
Response.Write " <tr>" & vbCRLF
Response.Write " <td class=""myTitle"" width=""100%"">" & sHeader & "</td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
End If
Response.Write " <tr>" & vbCRLF
Response.Write " <td width=""100%"" class=""myTD"">" & vbCRLF
End if
End Sub

' Create the bottom part of a standard table
' IN : sFooter (string) : footer
' OUT : -
Sub CreateBottomTable (sFooter)
If bIsAdvanceTheme then
CreateBoxBottomTable sFooter
Else
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
If sFooter <> "" Then
Response.Write " <tr>" & vbCRLF
Response.Write " <td width=""100%"" align=""center"" class=""myTD""><br><span class=""small"">" & sFooter & "</span></td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
End If
Response.Write " </table>" & vbCRLF
Response.Write "<br>" & vbCRLF
End If
End Sub

' Create a standard table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' : sText (string) : text in the table
' : sFooter (string) : footer
' OUT : -
Sub CreateTable(sTabName, sHeader, sText, sFooter)
CreateTopTable sTabName, sHeader
Response.Write sText & vbCRLF
CreateBottomTable sFooter
End Sub

' Get number of anonymous visitors connected to the site
' IN : -
' OUT : (int) number of anonymous visitors
Function AnonymousVisitors()
Dim oRs, rSQL

rSQL = "SELECT Count(*) FROM sessions"
Set oRs = DBRecordSet(oCnMain, rSQL)
AnonymousVisitors = oRs(0)

Set oRs = Nothing
End Function

' Get number of authenticated visitors connected to the site
' IN : -
' OUT : (int) number of authenticated visitors
Function AuthentVisitors()
Dim oRs, rSQL

rSQL = "SELECT Count(*) FROM sessions WHERE sLogin<>''"
Set oRs = DBRecordSet(oCnMain, rSQL)
AuthentVisitors = oRs(0)

Set oRs = Nothing
End Function


' Display members' page
' IN : -
' OUT : -
Sub DisplayShortMembersPage()
Dim Rs, rSQL, iLine
rSQL = "SELECT sLogin FROM sessions WHERE sLogin <> '' ORDER BY sLogin"
Set oRs = DBRecordSet(oCnMain, rSQL)

Response.Write GLOBAL_SITE_SUBTABLE & vbCRLF
Response.Write " <tr class=""tablelinemain"">" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_MEMBERS") & "</td>" & vbCRLF
Response.Write " <td> </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
iLine = 1
While Not oRs.EOF
Response.Write " <tr class=""tableline" & iLine & """>" & vbCRLF
Response.Write " <td><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PROFILE_PAGE & "?id=" & Server.URLEncode(oRs("sLogin")) & """>" & Server.HTMLEncode(oRs("sLogin")) & "</a></td>" & vbCRLF
Response.Write " <td><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PRIVATE_MESSAGES_PAGE & "?do=new&to=" & Server.URLEncode(oRs("sLogin")) & """><img src=""" & GLOBAL_SITE_IMAGES_PATH & "pmclosed.gif"" border=""0"" alt=""" & GetTranslation("LANG_SEND_PRIVATE_MESSAGE") & """></a></td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
iLine = ((iLine - 1) XOr 1) + 1
oRs.MoveNext
WEnd
Response.Write "</table>" & vbCRLF

Set oRs = Nothing
End Sub


' Display number of visitors connected to the site
' IN : -
' OUT : -
'***** Added by www.tranquillamente.it - Begin
Sub DisplayDynamicCounter()
If bDisplayDynamicCount Then
Dim oCnF, oRs, rSQL
CreateTopTable "NbVisitors", GetTranslation("LANG_VISITORS")

'**************************** Begin of comment
Response.Write "<BR>" & vbCrLf
Response.Write "<iframe src=""onlinemembers.asp"" name=""online"" width=""135"" height=""150"" align=""center"" frameborder=""0"" scrolling=""auto"">" & vbCrLf
Response.Write "You will not see this text if your browser supports IFRAME. If you CAN see this, you are in a bad way.</iframe>" & vbCrLf
'**************************** End of comment

rSQL = "SELECT Count(*) AS Nb FROM users"
Set oRs = DBRecordSet(oCnMain, rSQL)
Response.Write Replace(GetTranslation("LANG_ACCOUNTS_INFO"), "%1%", oRs(0)) & vbCRLF

If sPseudo <> "" Then
Response.Write " - <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_MEMBERSLIST_PAGE & """>" & GetTranslation("LANG_TITLE_MEMBERSLIST") & "</a>" & vbCRLF
End If

rSQL = "SELECT Count(*) FROM users where uValid = TRUE"
Set oRs = DBRecordSet(oCnMain, rSQL)
Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/single01.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_ACTIVE") & Server.URLEncode(oRs(0)) & vbCRLF

rSQL = "SELECT Count(*) FROM users where uValid = FALSE"
Set oRs = DBRecordSet(oCnMain, rSQL)
Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/single03.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_INACTIVE") & Server.URLEncode(oRs(0)) & vbCRLF

If sPseudo <> "" Then
rSQL = "SELECT TOP 1 uLogin FROM users ORDER BY uDate DESC"
Set oRs = DBRecordSet(oCnMain, rSQL)
If Not oRs.EOF Then
Response.Write "<br>" & GetTranslation("LANG_LAST_ACCOUNT") & " : <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PROFILE_PAGE & "?id=" & Server.URLEncode(oRs(0)) & """>" & Server.HTMLEncode(oRs(0)) & "</a>" & vbCRLF
End if
End If

Response.Write "<br>" & vbCRLF

rSQL = "SELECT Count(*) FROM messageslist"
Set oRs = DBRecordSet(oCnMain, rSQL)
Response.Write "<br><img src=""" & GLOBAL_SITE_IMAGES_PATH & "pmopened.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_PRIVATE_MESSAGES") & " :" & Server.URLEncode(oRs(0)) & vbCRLF

rSQL = "SELECT Count(*) FROM comments"
Set oRs = DBRecordSet(oCnMain, rSQL)
Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/bullet10.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_COMMENTS")& ": " & Server.URLEncode(oRs(0)) & vbCRLF

rSQL = "SELECT Count(*) FROM images WHERE iValid<>0"
Set oRs = DBRecordSet(oCnMain, rSQL)
Response.Write "<br><br><img src=""" & GLOBAL_SITE_IMAGES_PATH & "explore.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_AVAILABLE_IMAGES") & Server.URLEncode(oRs(0)) & vbCRLF

rSQL = "SELECT Sum(iHits) FROM images WHERE iValid<>0"
Set oRs = DBRecordSet(oCnMain, rSQL)
if oRs(0) > 0 then
Response.Write "<br><img src=""" & GLOBAL_SITE_IMAGES_PATH & "explore.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_VIEWED_IMAGES") & Server.URLEncode(oRs(0)) & vbCRLF
end if

rSQL = "SELECT Count(*) FROM downloads"
Set oRs = DBRecordSet(oCnMain, rSQL)
Response.Write "<br><br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/preferiti01.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_AVAILABLE_DOWNLOADS") & Server.URLEncode(oRs(0)) & vbCRLF

rSQL = "SELECT Sum(dHits) FROM downloads"
Set oRs = DBRecordSet(oCnMain, rSQL)
if oRs(0) > 0 then
Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/preferiti01.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_DONE_DOWNLOADS") & Server.URLEncode(oRs(0)) & vbCRLF
end if

rSQL = "SELECT Sum(dHits) FROM downloads"
Set oRs = DBRecordSet(oCnMain, rSQL)
if oRs(0) > 0 then
Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/preferiti01.gif"" border=""0"" alt=""""> "
Transfered()
Response.Write vbCRLF
End if

Set oCnF = DBConnexion(DB_FORUM)

rSQL = "SELECT Count(*) FROM Forums"
Set oRs = DBRecordSet(oCnF, rSQL)
Response.Write "<br><br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/bullet.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_ACTIVE_FORUMS") & Server.URLEncode(oRs(0)) & vbCRLF

rSQL = "SELECT Count(*) FROM Sections"
Set oRs = DBRecordSet(oCnF, rSQL)
Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/bullet.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_ACTIVE_SECTIONS") & Server.URLEncode(oRs(0)) & vbCRLF

rSQL = "SELECT Count(*) FROM Posts"
Set oRs = DBRecordSet(oCnF, rSQL)
Response.Write "<br><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/bullet.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_TOTAL_MESSAGES") & Server.URLEncode(oRs(0)) & vbCRLF

oRs.Close
set oRs = Nothing
oCnF.Close
set oCnF = Nothing

CreateBottomTable ""

End If
End Sub
'***** Added by www.tranquillamente.it - End

' Display favorites websites
' IN : -
' OUT : -
Sub DisplayFavorites()
If bDisplayFavorites Then
Dim oRs, rSQL

rSQL = "SELECT uTitle, uURL, uHits FROM urls WHERE uFavorite=1 ORDER BY uHits DESC"
Set oRs = DBRecordSet(oCnMain, rSQL)
If Not oRs.EOF Then
CreateTopTable "MyFavorites", GetTranslation("LANG_MY_FAVORITES")
Response.Write "<table id=""FavoritesTable"" border=""0"" cellspacing=""0"" cellpadding=""0"">" & vbCRLF
While Not oRs.EOF
Response.Write " <tr>" & vbCRLF
Response.Write " <td class=""small""><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_GOTOURL_PAGE & "?url=" & Server.URLEncode(oRs("uURL")) & """ target=""_blank"">" & Server.HTMLEncode(oRS("uTitle")) & "</a> (" & oRs("uHits") & ")</td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
oRs.MoveNext
WEnd
Response.Write "</table>" & vbCRLF
CreateBottomTable ""
End If

Set oRs = Nothing
End If
End Sub


' Display search engine's form
' IN : -
' OUT : -
Sub DisplaySearch()
Dim bSelected

bSelected = True
If bDisplaySearchEngine Then
CreateTopTable "Search", GetTranslation("LANG_SEARCH")
Response.Write "<table id=""SearchTable"" border=""0"" cellpadding=""0"" cellspacing=""0"">" & vbCRLF
Response.Write "<form name=""rechercher"" method=""post"" action=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_SEARCH_PAGE & """>" & vbCRLF
Response.Write " <tr>" & vbCRLF
Response.Write " <td colspan=""2"">" & vbCRLF
Response.Write " <select name=""section"" class=""cell"">" & vbCRLF
If GLOBAL_NEWS_TOP > 0 Then
Response.Write " <option value=""news"""
If bSelected Then
Response.Write " selected"
bSelected = False
End If
Response.Write ">" & GetTranslation("LANG_NEWS") & "</option>" & vbCRLF
End If
If GLOBAL_DOWNLOADS_TOP > 0 Then
Response.Write " <option value=""downloads"""
If bSelected Then
Response.Write " selected"
bSelected = False
End If
Response.Write ">" & GetTranslation("LANG_DOWNLOADS") & "</option>" & vbCRLF
End If
If GLOBAL_ARTICLES_TOP > 0 Then
Response.Write " <option value=""articles"""
If bSelected Then
Response.Write " selected"
bSelected = False
End If
Response.Write ">" & GetTranslation("LANG_ARTICLES") & "</option>" & vbCRLF
End If
If GLOBAL_DIRECTORY_TOP > 0 Then
Response.Write " <option value=""directory"""
If bSelected Then
Response.Write " selected"
bSelected = False
End If
Response.Write ">" & GetTranslation("LANG_DIRECTORY") & "</option>" & vbCRLF
End If
If GLOBAL_IMAGES_TOP > 0 Then
Response.Write " <option value=""images"""
If bSelected Then
Response.Write " selected"
bSelected = False
End If
Response.Write ">" & GetTranslation("LANG_IMAGES") & "</option>" & vbCRLF
End If
If GLOBAL_CALENDER_TOP > 0 Then
Response.Write " <option value=""calender"""
If bSelected Then
Response.Write " selected"
bSelected = False
End If
Response.Write ">" & GetTranslation("LANG_CALENDER") & "</option>" & vbCRLF
End If
Response.Write " </select>" & vbCRLF
Response.Write " <img src=""" & GLOBAL_SITE_IMAGES_PATH & "/search.gif"" border=""0"" alt="""">" & vbCrLf
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write " <tr>" & vbCRLF
Response.Write " <td><input type=""text"" name=""r"" maxlength=""50"" size=""10"" class=""cell""></td>" & vbCRLF
Response.Write " <td><input type=""submit"" value=""" & GetTranslation("LANG_OK") & """ class=""button""></td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write "</form>" & vbCRLF
Response.Write "</table>" & vbCRLF
CreateBottomTable ""
End If
End Sub

' Display some accounts' information
' IN : -
' OUT : -
Sub DisplayAccountsInfo()
If bDisplayAccounts Then
Dim oRs, rSQL

CreateTopTable "Accounts", GetTranslation("LANG_ACCOUNTS")

rSQL = "SELECT Count(*) AS Nb FROM users"
Set oRs = DBRecordSet(oCnMain, rSQL)

Response.Write Replace(GetTranslation("LANG_ACCOUNTS_INFO"), "%1%", oRs(0))

rSQL = "SELECT TOP 1 uLogin FROM users ORDER BY uDate DESC"
Set oRs = DBRecordSet(oCnMain, rSQL)
If Not oRs.EOF Then Response.Write "<br><span class=""small"">" & GetTranslation("LANG_LAST_ACCOUNT") & " : <a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_PROFILE_PAGE & "?id=" & Server.URLEncode(oRs(0)) & """>" & Server.HTMLEncode(oRs(0)) & "</a><br>" & vbCRLF
Response.Write "<a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_MEMBERSLIST_PAGE & """>" & GetTranslation("LANG_TITLE_MEMBERSLIST") & "</a></span>" & vbCRLF

CreateBottomTable ""

End If
End Sub

' Display the top last websites added to the directory
' IN : iTop (int) : number of results wanted
' OUT : -
Sub DisplayDirectoryLastSites(iTop)
If bDisplayLastSites Then
Dim oRs, rSQL

rSQL = "SELECT TOP " & iTop & " dID, dTitle, dDate, dURL, vCode FROM directory, versions WHERE dValid=1 AND dVersion=vID ORDER BY dDate DESC, dTitle"
Set oRs = DBRecordSet(oCnMain, rSQL)

If Not oRs.EOF Then
CreateTopTable "TopDirectory", GetTranslation("LANG_TOP") & " - " & GetTranslation("LANG_SITES")
While Not oRs.EOF
Response.Write " <span class=""small""><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_GOTOURL_PAGE & "?url=" & Server.URLEncode(oRs("dURL")) & """ target=""_blank"">" & Server.HTMLEncode(oRs("dTitle")) & "</a> (" & Server.HTMLEncode(oRs("vCode")) & ")</span><br>" & vbCRLF
oRs.MoveNext
WEnd
CreateBottomTable ""
End If

Set oRs = Nothing
End If
End Sub

' Display versions languages available
' IN : -
' OUT : -
Sub DisplayVersions()
If bDisplayVersions Then
Dim oFs, oFolder, oFile, sVersion, sCurrentVersion

Set oFs = Server.CreateObject("Scripting.FileSystemObject")

If oFs.FolderExists(Server.MapPath(GLOBAL_SITE_VERSIONS_PATH)) Then
sCurrentVersion = sXMLVersion
If sCurrentVersion = "" Then sCurrentVersion = GLOBAL_SITE_DEFAULT_VERSION

CreateTopTable "Versions", GetTranslation("LANG_VERSIONS")

Response.Write "<script language=""Java_Script"" type=""text/Java_Script"">" & vbCRLF
Response.Write " function changeVersion()" & vbCRLF
Response.Write " {" & vbCRLF
Response.Write " document.VersionSetting.submit();" & vbCRLF
Response.Write " }" & vbCRLF
Response.Write "</script>" & vbCRLF
Response.Write "<table width=""100%"" border=""0"" cellpadding=""0"" cellspacing=""0"">" & vbCRLF
Response.Write "<form method=""post"" name=""VersionSetting"" action=""" & sURLPage
If Request.QueryString <> "" Then Response.Write "?" & Request.QueryString
Response.Write """>" & vbCRLF
Response.Write " <tr>" & vbCRLF
Response.Write " <td align=""center"">" & vbCRLF

Set oFolder = oFs.GetFolder(Server.MapPath(GLOBAL_SITE_VERSIONS_PATH))

Response.Write " <select name=""_SetCurrentVersion"" class=""cell"" onChange=""Java_Script:changeVersion()"">" & vbCRLF
For Each oFile In oFolder.Files
sVersion = Replace(oFile.Name, ".xml", "")
Response.Write " <option value=""" & sVersion & """"
If LCase(sVersion) = LCase(sCurrentVersion) Then
Response.Write " selected"
End If
Response.Write ">" & sVersion & "</option>" & vbCRLF
Next
Response.Write " </select>" & vbCRLF
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write "</form>" & vbCRLF
Response.Write "</table>" & vbCRLF

CreateBottomTable ""
End If

Set oFs = Nothing
End If
End Sub

Sub DisplayNewPrivateMessages(sMyLogin)
Dim oRs, rSQL, iNbMessages, iNbOldMessages, bDisplayPopup

bDisplayPopup = False

If sMyLogin <> "" Then

rSQL = "SELECT Count(*) FROM MessagesList WHERE mlTo='" & SQLEncrypt(sMyLogin) & "' AND mlRead=0"
Set oRs = DBRecordSet(oCnMain, rSQL)
iNbMessages = oRs(0)

If iNbMessages > 0 Then
iNbOldMessages = Request.Cookies("NewPrivateMessages")

If iNbOldMessages = "" Then
bDisplayPopup = False
Else
If IsNumeric(iNbOldMessages) Then
iNbOldMessages = CInt(iNbOldMessages)
If iNbMessages > iNbOldMessages Then bDisplayPopup = False
End If
End If

If bDisplayPopup And InStr(sURLPage, GLOBAL_SITE_PRIVATE_MESSAGES_PAGE) = 0 Then
Response.Write "<script language=""Java_Script"" type=""text/Java_Script"">window.open('" & GLOBAL_SITE_PATH & "newpmessage.asp', 'PrivateMessage', 'width=150, height=60, menubars=off');</script>"
End If

Response.write " " & GetTranslation("LANG_INCLUDE") & "<a href=""" & GLOBAL_SITE_PATH & "pmessages.asp" & """ id=flashlink flashtype=0 flashcolor=red>" & iNbMessages & " " & GetTranslation("LANG_NEW_MAIL")& "</A>"
%>

<script language="Java_Script1.2">
/*
Flashing Link Script-© Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use,
Visit http://dynamicdrive.com
*/
if (document.all&&document.all.flashlink){
var flashlinks=document.all.flashlink
if (flashlinks.length==null)
flashlinks[0]=document.all.flashlink

function changecolor(which,type,color){
if (type==0){
if (flashlinks[which].style.color!=color)
flashlinks[which].style.color=color
else
flashlinks[which].style.color=''
}
else if (type==1){
if (flashlinks[which].style.backgroundColor!=color)
flashlinks[which].style.backgroundColor=color
else
flashlinks[which].style.backgroundColor=''
}
}

if (flashlinks.length==null){
var flashengine='setInterval("changecolor(0,'+flashlinks[0].flashtype+',''+flashlinks[0].flashcolor+'')",'+'350)'
eval(flashengine)
}
else
for (i=0;i<flashlinks.length;i++){
var flashengine='setInterval("changecolor('+i+','+flashlinks[i].flashtype+',''+flashlinks[i].flashcolor+'')",'+'350)'
eval(flashengine)
}

}
</script>
<%
End If

Set oRs = Nothing
End If
End Sub

Sub Writepicrandom()
'get random pic from database
Dim oRs, rSQL
rSQL = "SELECT iID,iTitle,iSourceSmall FROM images"
Set oRs = DBRecordSet(oCnMain, rSQL)

If NOT (oRs.EOF AND oRs.BOF) then
Dim iRnd, iCounter
Randomize Timer
iRnd=int(rnd()*oRs.RecordCount)
For iCounter=1 to iRND
oRs.MoveNext
Next

'create table to display picture
CreateTopTable "dpTipTable", "Random Pics"
Response.Write GLOBAL_SITE_SUBTABLE & vbCRLF
Response.Write " <tr class=""tableline1"">" & vbCRLF
Response.Write " <td>" & vbCRLF
Response.Write "<div align=""center""><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_IMAGES_PAGE & "?id=" & oRs("iID") & """><img src=""" & Server.HTMLEncode(oRs("iSourceSmall")) & """ border=""0"" " & vbCRLF
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write " <tr>" & vbCRLF
Response.Write " <td><div align=""center""><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_IMAGES_PAGE & "?id=" & oRs("iID") & """>" & Server.HTMLEncode(oRs("iTitle")) & "</a></td>" & vbCRLF
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
Response.Write "</table>" & vbCRLF
CreateBottomTable ""
End if
End Sub


Sub WriteMemberTotalPMessage()
Dim iPM, oRs, rSQL
rSQL = "SELECT Count(*) FROM messageslist WHERE mlRead=False AND mlTo='" & sPseudo & "'"
Set oRs = DBRecordSet(oCnMain, rSQL)
iPM = oRs(0)
If NOT isNull(iPM) AND iPM>0 Then
Response.Write " - (" & Server.URLEncode(oRs(0)) & ")" & vbCRLF
ELSE
Response.Write " - (0 New)<br>"
End IF
rSQL = "SELECT Count(*) FROM messageslist WHERE mlTo='" & sPseudo & "'"
Set oRs = DBRecordSet(oCnMain, rSQL)
iPM = oRs(0)
if NOT isNull(iPM) AND iPM>0 Then
Response.Write " - (" & Server.URLEncode(oRs(0)) & " Read)" & vbCRLF
End IF
oRs.Close
set oRs = Nothing
Response.Write "<br>" & vbCRLF
End sub

' Display one column, using a table containing a code for each bloc
' IN : tColumnContent (array) : table with index of blocs
' OUT : -
Sub DisplayColumn(tColumnContent)
Dim X

If IsArray(tColumnContent) Then
' Response.Write tColumnContent(0) & vbCrLf
For X = 0 to UBound(tColumnContent)
Select Case CInt(tColumnContent(X))
Case 0 : DisplayMenu()
Case 1 : DisplayDynamicCounter()
Case 2 : DisplayAccountsInfo()
Case 3 : DisplaySearch()
Case 4 : DisplayFavorites()
Case 5 : DisplayDirectoryLastSites GLOBAL_DIRECTORY_TOP
Case 6 : DisplayVersions()
Case 7 : DisplayWebCounters()
Case 8 : DisplayLastPoll()
Case Else :
DisplayCustomBlock(CInt(tColumnContent(X))-8)
End Select
Next
End If
End Sub

Function GetTableAvailableColumns()
Dim X, sTemp

For X = 0 To 8 + GLOBAL_CUSTOM_BLOCKS
If sTemp = "" Then
sTemp = Right("00" & X, 2)
Else
sTemp = sTemp & "££" & Right("00" & X, 2)
End If
Next

GetTableAvailableColumns = Split(sTemp, "££")
End Function
%>

Come si può risolvere? Grazie.
felixcafarelli

Eliminato
Eliminato
0 Discussione



Profilo - felixcafarelli
10 giugno 2003 alle 23:51:00 Profilo - felixcafarelliInvia un messaggio privato Rispondi quotando
Metti un

DIM bIsAdvancedTheme

in cima alla pagina anche se questa costante dovrebbe essere definita (seguendo la logica di aspnuke) nel file configuration-inc.asp (magari controlla lì... scusa sono ancora sotto i fumi dell'alcool).
ma questa è la 1.3 non ufficiale o cosa???
giuli

Principiante
Principiante
20 Discussioni



Profilo - giuli
11 giugno 2003 alle 00:22:12 Profilo - giuliInvia un messaggio privato Rispondi quotando
Sto cercando di avere i blocchi con gli angoli smussati dell 1.3
Uno che ne capisce mi ha detto di fare così:
Devi modificare la Sub della creazione delle tabelle

Io non ci arrivo propio.
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
11 giugno 2003 alle 11:34:26 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
E' il display-inc.asp che arriva da un altro sito?
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

http://aspnuke208.somee.com/Default.asp

giuli

Principiante
Principiante
20 Discussioni



Profilo - giuli
11 giugno 2003 alle 20:23:08 Profilo - giuliInvia un messaggio privato Rispondi quotando
No. è parte del dispay-inc che arriva dalla 1.3.
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
11 giugno 2003 alle 22:05:27 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Allora un mio consiglio, non mischiare i file di release con un'altra, inoltre la 1.3, non è una release ufficiale, quindi non è detto che poi sia effettivamente questa e se ci sarà una V. 1.3.
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

http://aspnuke208.somee.com/Default.asp

giuli

Principiante
Principiante
20 Discussioni



Profilo - giuli
11 giugno 2003 alle 22:50:08 Profilo - giuliInvia un messaggio privato Rispondi quotando
Allora dopo tante peripezie sono riuscito a sostituire le sub che creano le tabelle in modo da non avere nessun errore, Questo è il codice:
' Create the top part of a standard table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' OUT : -
Sub CreateBoxTopTable(sTabName, sHeader)
Response.Write "<table id=""" & sTabName & """ width=""100%"" align=""center"" border=""0"" cellspacing=""0"" cellpadding=""0"" class=""box"">" & vbCrLf
Response.Write " <tr>" & vbCrLf
Response.Write " <td width=""8"" height=""22""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/topleft.gif"" width=""8"" height=""22"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/top.gif"" align=""left"" valign=""middle"" height=""22"" class=""boxtitle"">" & vbCrLf
IF ExistFile(GLOBAL_SITE_THEMES_PATH & sTheme , "table_bullet.jpg") Then 'IF ExistFiles(GLOBAL_SITE_THEMES_PATH & sTheme & "/" & "table_bullet.jpg") THEN
Response.Write " <img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/table_bullet.jpg"" align=""absmiddle"" width=20 height=20>" & sHeader & "" & vbCrLf
Else
Response.Write " " & sHeader & vbCrLf
End If
Response.Write " </td>" & vbCrLf
Response.Write " <td width=""12"" height=""22""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/topright.gif"" width=""12"" height=""22"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " </tr>" & vbCrLf
Response.Write " <tr>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/left.gif""></td>" & vbCrLf
Response.Write " <td width=""100%"" class=""boxtext"">" & vbCrLf
End Sub
Dim bIsAdvanceTheme
' Create Left of table
Sub CreateBoxLeftTable
If bIsAdvanceTheme Then
Response.Write " <tr>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/left.png""></td>" & vbCrLf
Response.Write " <td width=""100%"" class=""boxtext"">" & vbCrLf
End If
End Sub

' Create the bottom part of a box table
' IN : sFooter (string) : footer
' OUT : -
Sub CreateBoxBottomTable(sFooter)
Response.Write " </td>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/right.gif""></td>" & vbCrLf
Response.Write " </tr>" & vbCrLf

If sFooter <> "" Then
Response.Write " <tr>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/left.gif""></td>" & vbCrLf
Response.Write " <td width=""100%"" align=""center"" class=""boxtext""><span class=""small"">" & sFooter & "</span></td>" & vbCRLF
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/right.gif""></td>" & vbCrLf
Response.Write " </tr>" & vbCRLF
End If

Response.Write " <tr>" & vbCrLf
Response.Write " <td width=""8"" height=""12""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/bottomleft.gif"" width=""8"" height=""12"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " <td background=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/bottom.gif""></td>" & vbCrLf
Response.Write " <td width=""12"" height=""12""><img src=""" & GLOBAL_SITE_THEMES_PATH & sTheme & "/img/bottomright.gif"" width=""12"" height=""12"" alt="""" border=""0""></td>" & vbCrLf
Response.Write " </tr>" & vbCrLf
Response.Write "</table>" & vbCrLf
End Sub

' Create a box table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' : sText (string) : text in the table
' : sFooter (string) : footer
' OUT : -
Sub CreateBoxTable(sTabName, sHeader, sText, sFooter)
CreateBoxTopTable sTabName, sHeader
Response.Write sText & vbCRLF
CreateBoxBottomTable sFooter
End Sub

' Create the top part of a standard table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' OUT : -
Sub CreateTopTable(sTabName, sHeader)
If bIsAdvanceTheme then
CreateBoxTopTable sTabName, sHeader
Else
Response.Write " <table id=""" & sTabName & """ width=""100%"" align=""center"" cellspacing=""0"" cellpadding=""0"" class=""myTable"">" & vbCRLF
If sHeader <> "" Then
Response.Write " <tr>" & vbCRLF
Response.Write " <td class=""myTitle"" width=""100%"">" & sHeader & "</td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
End If
Response.Write " <tr>" & vbCRLF
Response.Write " <td width=""100%"" class=""myTD"">" & vbCRLF
End if
End Sub

' Create the bottom part of a standard table
' IN : sFooter (string) : footer
' OUT : -
Sub CreateBottomTable (sFooter)
If bIsAdvanceTheme then
CreateBoxBottomTable sFooter
Else
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
If sFooter <> "" Then
Response.Write " <tr>" & vbCRLF
Response.Write " <td width=""100%"" align=""center"" class=""myTD""><br><span class=""small"">" & sFooter & "</span></td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
End If
Response.Write " </table>" & vbCRLF
Response.Write "<br>" & vbCRLF
End If
End Sub

' Create a standard table
' IN : sTabName (string) : table's name (can be empty)
' : sHeader (string) : title displayed
' : sText (string) : text in the table
' : sFooter (string) : footer
' OUT : -
Sub CreateTable(sTabName, sHeader, sText, sFooter)
CreateTopTable sTabName, sHeader
Response.Write sText & vbCRLF
CreateBottomTable sFooter
End Sub

' Get number of anonymous visitors connected to the site
' IN : -
' OUT : (int) number of anonymous visitors
Function AnonymousVisitors()
Dim oCn, oRs, rSQL

Set oCn = DBConnexion(DB_MAIN)
rSQL = "SELECT Count(*) FROM sessions"
Set oRs = DBRecordSet(oCn, rSQL)
AnonymousVisitors = oRs(0)

oCn.Close
Set oCn = Nothing
Set oRs = Nothing
End Function

' Get number of authenticated visitors connected to the site
' IN : -
' OUT : (int) number of authenticated visitors
Function AuthentVisitors()
Dim oCn, oRs, rSQL

Set oCn = DBConnexion(DB_MAIN)
rSQL = "SELECT Count(*) FROM sessions WHERE sLogin<>''"
Set oRs = DBRecordSet(oCn, rSQL)
AuthentVisitors = oRs(0)

oCn.Close
Set oCn = Nothing
Set oRs = Nothing
End Function

ho messo nella cartella themes/default la cartella img che contiene le immagini ma mi crea sempre delle tabelle squadrate come se non trovasse le immagini.
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
11 giugno 2003 alle 23:44:52 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Hai dichiarato la variabile GLOBAL_SITE_THEMES_PATH?

Comunque rimango dell'idea che riprendere parti di una versione di AspNuke non ufficiale, è a solo ed unico rischio di chi lo fa, e, non si dovrebbe postare nel forum in cerca di aiuti improbabili, dato che, non è una versione testata dallo staff di AspNuke.

Non prendere ciò per un fatto personale, ma, pensa agli utenti che incominciano un cammino con un prodotto che non conoscono, tirare in ballo una versione che non esiste ufficialmente, genera solo confusione su chi legge i vari post, quindi la richiesta è: se potete evitare richieste del genere, fatelo, lo staff di AspNuke ve ne sarà riconoscente.
Ciauzz Dj
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

http://aspnuke208.somee.com/Default.asp

giuli

Principiante
Principiante
20 Discussioni



Profilo - giuli
12 giugno 2003 alle 00:30:58 Profilo - giuliInvia un messaggio privato Rispondi quotando
Non è mia intenzione creare nessun problema ne allo staf ne tantomeno agli utenti. Io ho visto la versione 1.3 e l'unica cosa che mi piace sono questi benedetti angoli tondi, solo questi.
Tornando al problema Le mie tabelle sono sempre rettangolari nonostante ci siano delle sub che chiamano le immagini.
Non ho dichiarato nessuna variabile perchè non so in che modo e dove farlo.

Poi ragazzi se qualcuno mi aiuta a capire come risolvere il problema ne sono felice, diversamente mi rassegnerò ad avere tabelle squadrate. detto questo anche se la 1.3 diventasse ufficiale domani mattina non mi sognerei mai di cambiarla con la mia x il semplice motivo che è uguale.

RAGGIO_DI_SOLE

Amministratore

Esperto
Esperto
411 Discussioni



Profilo - RAGGIO_DI_SOLE
12 giugno 2003 alle 09:46:33 Profilo - RAGGIO_DI_SOLEInvia un messaggio privato evirgola@hotmail.com 113247779 Rispondi quotando
ciao giuli, per avere il tuo aspnuke con i box arrotondati so che da qualche parte esiste un mod per ottenerle. Le trovi al link: http://www.borgerret.org/nuke12/downloads.asp?cat=31

ciau ;)
raggiuz
---------------

4B - Comunicazione Digitale
http://www.4bweb.it
 1  2  >>

Log in

Login
Password
Memorizza i tuoi dati:

Cerca

 

Sostieni AspNuke

Un piccolo gesto per aiutarci a mantenere AspNuke.it online

Promo

MusicWebItalia.it
Video Testi Traduzioni Spot Colonne sonore Accordi e Spartiti gratis.

Visitatori

Visitatori Correnti : 141
Membri : 0 offline Anna

Iscritti

 Utenti: 18940
Ultimo iscritto : glauco
Lista iscritti
Messaggi privati: 3373 Commenti: 2210 Immagini: 39 Downloads: 144 Articoli: 49 Pagine: 101 Siti web: 558 Notizie: 180 Sondaggi: 11 Preferiti: 5685248 Post sui forum: 51195 Libro degli ospiti: 4 Eventi: 7

Versioni

Temi