Forum 

Forum AspNuke.it - Il tuo Portale OpenSource in ASP

Attività sito

Autore Messaggio
domus321

Utente
Utente
84 Discussioni



Profilo - domus321
16 gennaio 2005 alle 18:03:39 Profilo - domus321Invia un messaggio privato marcobrenna321@hotmail.com Rispondi quotando
Salve ragazzi!!

vorrei chiedervi se è possibile creare una pagina (ad es. statistiche.asp) nella quale vengano visualizzate tutte leinformazioni inerenti alle "Attività sito" - In pratica vorrei spostare il contenuto dal blocco ad una nuova pagina.

Ho già provato una volta, inserendo la parte del dysplay-inc.asp inerente le attività, ma la pagina risulta essere vuota.

Ecco cosa ho inserito nella pagina:

Set oCn = DBConnexion(DB_MAIN)

Response.Write "<br> <br>" & vbCrlf

rSQL = "SELECT Count(*) FROM messageslist"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "send_pm.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_PRIVATE_MESSAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM comments WHERE cValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "rate_1.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_COMMENTS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM images WHERE iValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "images.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_IMAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(iHits) FROM images WHERE iValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "images.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_VIEWED_IMAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM downloads WHERE dValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "download.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_DOWNLOADS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(dHits) FROM downloads WHERE dValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "download.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_DOWNLOADS_TOTAL") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM articles WHERE arValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "old.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_ARTICLES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM articlespages WHERE apValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "page.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_ARTICLE_PAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(apHits) FROM articlespages WHERE apValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "page.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_READ_PAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM directory WHERE dValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "ip.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_SITES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM news WHERE nValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "new.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_NEWS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM polls WHERE pValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "question.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_POLLS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM urls"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "link_url.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_LINKS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(uHits) FROM urls"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "link_url.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_VISITED_LINKS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
End If
oRs.Close
Set oRs = Nothing

oCn.Close
Set oCn = Nothing

If bUseForum Then
on error resume next

Set oCn = DBConnexion(DB_FORUM)

rSQL = "Select Count(*) FROM posts WHERE PostValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<br> <br>" & vbCrlf
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "newhot.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_POSTS_TOTAL") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
End If
oRs.Close
Set oRs = Nothing
oCn.Close
Set oCn = Nothing

on error goto 0
End If

If bUseGuestBook Then
On Error Resume Next

Set oCn = DBConnexion(DB_GUESTBOOK)
rSQL = "SELECT Count(*) FROM guestbook"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<br> <br>" & vbCrlf
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "gbook.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_GUESTBOOK") & ": " & Server.URLEncode(oRs(0)) & vbCRLF
End If
oRs.Close
Set oRs = Nothing
oCn.Close
Set oCn = Nothing

On Error GoTo 0
End If

If bUseCalendar Then
On Error Resume Next

Set oCn = DBConnexion(DB_CALENDAR)
rSQL = "SELECT Count(*) FROM calendar_events, calendar_eventscat WHERE categoria_evento=cat_id AND eValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<br> <br>" & vbCrlf
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "calendar.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_CALENDAR") & ": " & Server.URLEncode(oRs(0)) & vbCRLF
End If
oRs.Close
Set oRs = Nothing
oCn.Close
Set oCn = Nothing

On Error GoTo 0
End If
End If

Response.Write "</div></span>" & vbCrlf

CreateBottomTable ""
End Sub


ma come dicevo prima la pagina compare vuota...

Che fare??

Grazie...

Marco
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
16 gennaio 2005 alle 18:54:54 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Bhe, si, è possibile, devi seguire almeno un pò la struttura di aspnuke, e cioè, creare nella root un file, che userai anche come link nel menù, ad esempio:
ACCOUNTINFO.ASP
e che dovrà contenere + o - questo codice:

<!-- #include file="includes/includes-inc.asp" -->
<!-- #include file="includes/accountinfo-inc.asp" -->

<%
sTitlePage = GetTranslation("LANG_TITLE_ACCOUNT")

DoMyAccount()
%>
<!-- #include file="includes/toppage-inc.asp" -->
<%
DisplayAccountsInfo
%>
<!-- #include file="includes/bottompage-inc.asp" -->
<!-- #include file="includes/clearitall-inc.asp" -->


A questo punto, generi un file da inserire nella cartella INCLUDES, accountinfo-inc.asp:

<%

' Display some accounts' information
' IN : -
' OUT : -

Sub DisplayAccountsInfo()
Dim oCn, oRs, rSQL

CreateTopTable "Accounts", GetTranslation("LANG_ACCOUNTS")
Set oCn = DBConnexion(DB_MAIN)

Response.Write "<span class=""small""><div align=""left"">"

rSQL = "SELECT count(*) FROM users WHERE uValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If Not oRs.EOF Then
Response.Write "<img src=""" & Global_SITE_IMAGES_PATH & "profile.gif"" border=""0"" alt=""""> " & Replace(GetTranslation("LANG_ACCOUNTS_INFO"), "%1%", oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


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

oCn.Close
Set oCn = Nothing

Response.Write "<a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_MEMBERSLIST_PAGE & """>" & GetTranslation("LANG_TITLE_MEMBERSLIST") & "</a>" & vbCrlf

If bDisplaySiteActivity Then
Set oCn = DBConnexion(DB_MAIN)

Response.Write "<br> <br>" & vbCrlf

rSQL = "SELECT Count(*) FROM messageslist"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "send_pm.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_PRIVATE_MESSAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM comments WHERE cValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "rate_1.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_COMMENTS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM images WHERE iValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "images.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_IMAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(iHits) FROM images WHERE iValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "images.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_VIEWED_IMAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM downloads WHERE dValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "download.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_DOWNLOADS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(dHits) FROM downloads WHERE dValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "download.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_DOWNLOADS_TOTAL") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM articles WHERE arValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "old.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_ARTICLES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM articlespages WHERE apValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "page.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_ARTICLE_PAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(apHits) FROM articlespages WHERE apValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "page.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_READ_PAGES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM directory WHERE dValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "ip.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_SITES") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM news WHERE nValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "new.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_NEWS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM polls WHERE pValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "question.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_POLLS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br> <br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Count(*) FROM urls"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "link_url.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_LINKS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
Response.Write "<br>" & vbCrlf
End If
oRs.Close
Set oRs = Nothing


rSQL = "SELECT Sum(uHits) FROM urls"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "link_url.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_VISITED_LINKS") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
End If
oRs.Close
Set oRs = Nothing

oCn.Close
Set oCn = Nothing

If bUseForum Then
On Error Resume Next

Set oCn = DBConnexion(DB_FORUM)

rSQL = "Select Count(*) FROM posts WHERE PostValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<br> <br>" & vbCrlf
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "newhot.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_POSTS_TOTAL") & ": " & Server.URLEncode(oRs(0)) & vbCrlf
End If
oRs.Close
Set oRs = Nothing
oCn.Close
Set oCn = Nothing

On Error GoTo 0
End If

If bUseGuestBook Then
On Error Resume Next

Set oCn = DBConnexion(DB_GUESTBOOK)
rSQL = "SELECT Count(*) FROM guestbook"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<br> <br>" & vbCrlf
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "gbook.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_GUESTBOOK") & ": " & Server.URLEncode(oRs(0)) & vbCRLF
End If
oRs.Close
Set oRs = Nothing
oCn.Close
Set oCn = Nothing

On Error GoTo 0
End If

If bUseCalendar Then
On Error Resume Next

Set oCn = DBConnexion(DB_CALENDAR)
rSQL = "SELECT Count(*) FROM calendar_events, calendar_eventscat WHERE categoria_evento=cat_id AND eValid=1"
Set oRs = DBRecordSet(oCn, rSQL)
If oRs(0) > 0 Then
Response.Write "<br> <br>" & vbCrlf
Response.Write "<img src=""" & GLOBAL_SITE_IMAGES_PATH & "calendar.gif"" border=""0"" alt=""""> " & GetTranslation("LANG_CALENDAR") & ": " & Server.URLEncode(oRs(0)) & vbCRLF
End If
oRs.Close
Set oRs = Nothing
oCn.Close
Set oCn = Nothing

On Error GoTo 0
End If
End If

Response.Write "</div></span>" & vbCrlf

CreateBottomTable ""
End Sub

' Process account's actions
' Process actions
' IN : -
' OUT : -
Sub DoMyAccount()
Dim oCn, rSQL, bNewsLetter, bProfile
Dim sUploadFile, sAllowExt, este, corto

If Request.Form("uEmail") <> "" Then
If Request.Form("uNewsletter") <> "" Then
bNewsLetter = "1"
Else
bNewsLetter = "0"
End If
If Request.Form("uProfile") <> "" Then
bProfile = "1"
Else
bProfile = "0"
End If
If ModifyAccount(sPseudo, Request.Form("uEmail"), Request.Form("uMSN"), Request.Form("uYahoo"), Request.Form("uICQ"), Request.Form("uAIM"), Request.Form("nome"), Request.Form("foto"), Request.Form("ris1"), Request.Form("ris2"), Request.Form("ris3"), Request.Form("ris4"), Request.Form("ris5"), Request.Form("ris6"), Request.Form("ris7"), Request.Form("ris8"), Request.Form("ris9"), Request.Form("ris10"), Request.Form("ris11"), Request.Form("ris12"), Request.Form("ris13"), Request.Form("ris14"), Request.Form("ris15"), Request.Form("uURL"), Request.Form("uSignature"), bNewsletter, bProfile) Then
sInfoPage = GetTranslation("LANG_ACCOUNT") & " - " & GetTranslation("LANG_MODIFY_SUCCESS")
Else
sInfoPage = GetTranslation("LANG_ACCOUNT") & " - " & GetTranslation("LANG_MODIFY_ERROR")
End If
ElseIf Request.Form("uPassword") <> "" And Request.Form("uNewPassword") <> "" Then
If ModifyAccountPassword(sPseudo, Request.Form("uPassword"), Request.Form("uNewPassword")) Then
sInfoPage = GetTranslation("LANG_PASSWORD") & " - " & GetTranslation("LANG_MODIFY_SUCCESS")
Else
sInfoPage = GetTranslation("LANG_MODIFY_ERROR") & " (" & GetTranslation("LANG_BAD_PASSWORD") & ")"
End If
ElseIf Request.Form("uAvatar") <> "" Or Request.Form("uPrivateAvatar") <> "" Then
If ModifyAvatar(Request.Form("uAvatar"), Request.Form("uPrivateAvatar")) Then
sInfoPage = GetTranslation("LANG_AVATAR") & " - " & GetTranslation("LANG_MODIFY_SUCCESS")
Else
sInfoPage = GetTranslation("LANG_AVATAR") & " - " & GetTranslation("LANG_MODIFY_ERROR")
End If
End If

If Request.QueryString("act") = "9" And Request.QueryString("fil") <> "" Then
sUploadFile = "" & Session("UploadFile")
If trim(sUploadFile) <> "" Then
sAllowExt = "" & Session("AllowExt")
If trim(sAllowExt) = "" Or lcase(sAllowExt) = "default" Then
sUploadFile = GLOBAL_SITE_URL & Session("UploadFolder") & "/" & sUploadFile
Else
'base name of file to upload
corto = left(sUploadFile, InStrRev(sUploadFile, ".") - 1)
'extract extension of uploaded file
sUploadFile = Request.QueryString("fil")
este = mid(sUploadFile, InStrRev(sUploadFile, ".") + 1)
If instr(sAllowExt, "*." & este) > 0 Then
sUploadFile = GLOBAL_SITE_URL & Session("UploadFolder") & "/" & corto & "." & este
Else
sUploadFile = ""
End If
End If
If ModifyAvatar("", sUploadFile) Then
sInfoPage = GetTranslation("LANG_AVATAR") & " - " & GetTranslation("LANG_MODIFY_SUCCESS")
Else
sInfoPage = GetTranslation("LANG_AVATAR") & " - " & GetTranslation("LANG_MODIFY_ERROR")
End If
End If
End If
End Sub
%>


Nel file Display-inc.asp, devi disabilitare il blocco AccountInfo, lo trovi quasi in fondo al file, è il Case 2, metti un apostrofo davanti alle 2 righe che riguardano il blocco.
Prova così, in locale, e, se ti soddisfa, esegui l'upload dei files modificati e aggiunti.
Ciauzz DJ
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

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

domus321

Utente
Utente
84 Discussioni



Profilo - domus321
16 gennaio 2005 alle 19:45:06 Profilo - domus321Invia un messaggio privato marcobrenna321@hotmail.com Rispondi quotando
ok grazie!!

ma io avrei bisogno di portare solo le attività sito, mentre le informazioni sugli iscritti devono rimanere in blocco...(forse basta che disabilito solo le attività in display-inc.asp...)

Grazie

Ciao
---------------
[lo] Marco
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
16 gennaio 2005 alle 20:55:31 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Non è necessario, puoi disabilitare le attività del sito in configuration.xml, poi, puoi creare il file che ti serve.
Ciauzz DJ
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

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

domus321

Utente
Utente
84 Discussioni



Profilo - domus321
16 gennaio 2005 alle 20:59:10 Profilo - domus321Invia un messaggio privato marcobrenna321@hotmail.com Rispondi quotando
ok, ma facendo così non si vede neppure nella pagina che creo....
---------------
[lo] Marco
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
17 gennaio 2005 alle 08:49:27 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
E' logico, se lasci attivo il flag If bUseSiteActivity nel file creato, ovviamente non vedrai nulla, elimina il flag e il relativo End If, potrai così vedere l'attività del sito in una pagina a parte.
Ciauzz DJ
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

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

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 : 139
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: 5685347 Post sui forum: 51195 Libro degli ospiti: 4 Eventi: 7

Versioni

Temi