Forum 

Forum AspNuke.it - Il tuo Portale OpenSource in ASP

Downloads nella collona destra

Autore Messaggio
daninet

Avanzato
Avanzato
122 Discussioni



Profilo - daninet
18 marzo 2005 alle 16:04:01 Profilo - daninetInvia un messaggio privato Rispondi quotando
Modificato il 18 marzo 2005 alle 16:05:55

Gentili e preparatissimi AspNUke, vorrei inserire nel mio sito i top Downloads scaricati cosi come è presente nelle sito ufficiale di AspNuke.
Sicuro come sempre di trovare una risposta, saluti Danilo
http://www.gavoi.com/default.asp
---------------
http://www.gavoi.com/default.asp
Zalabard

Moderatore

Esperto
Esperto
781 Discussioni



Profilo - Zalabard
18 marzo 2005 alle 16:12:09 Profilo - ZalabardInvia un messaggio privato fsarzana@hotmail.com 228-720-524 Rispondi quotando
Io avevo un blocco "non ufficiale" fatto così: vedi se ti può andar bene
<%
' ************************************************************************
' * ASPNUKE: Free web portal in ASP *
' ************************************************************************
' * ASP-Nuke 2.0 *
' * MOD top_dwonloads *
' * Design by Frank Zalabard (c) 2004 (fsarzana@hotmail.com) *
' * *
' * ASP-Nuke 1.0, 1.1, 1.2 Copyright (c) 2002-2003 by Gaetan Bouveret *
' * *
' * 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. *
' * *
' ************************************************************************
%>
<%
Sub DisplayTopDownloads()
Dim oCn, oRs, rSQL, iLine, iLoop, tipoSort, iTop, sTypeSort

iTop = GLOBAL_DOWNLOADS_TOP
sTypeSort = "date"

Set oCn = DBConnexion(DB_MAIN)

rSQL = "SELECT * FROM downloads WHERE dValid=1"
Select Case sTypeSort
Case "date"
rSQL = rSQL & " ORDER BY dDate DESC, dTitle"
tipoSort = GetTranslation("LANG_DATE")
Case "hits"
rSQL = rSQL & " ORDER BY dHits DESC, dTitle"
tipoSort = GetTranslation("LANG_HITS")
End Select

CreateTopTable "ModTopDownloads_" & tipoSort , GetTranslation("LANG_DOWNLOADS")

Set oRs = DBRecordSet(oCn, rSQL)
If Not oRs.EOF Then
Response.Write GLOBAL_SITE_SUBTABLE & vbCRLF
Response.Write " <tr class=""tablelinemain"">" & vbCRLF
Response.Write " <td>" & GetTranslation("LANG_TITLE") & "</td>" & vbCRLF
Response.Write " </tr>" & vbCRLF

iLine = 1
iLoop = 0
While Not oRs.EOF And iLoop < iTop
Response.Write " <tr class=""tableline" & iLine & """>" & vbCRLF
Response.Write " <td><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_DOWNLOAD_PAGE & "?dl=" & oRs("dID") & """ target=""_blank"">" & Server.HTMLEncode(oRs("dTitle")) & "</a><br><span class=""small""><a href=""" & GLOBAL_SITE_PATH & GLOBAL_SITE_DOWNLOADS_PAGE & "?id=" & oRs("dID") & """>" & GetTranslation("LANG_MORE_INFORMATION") & "</a></span> " & vbCRLF
If sTypeSort = "hits" Then
Response.Write oRs("dHits") & vbCRLF
Else
Response.Write GetDateDDMMYYYY(StringToDate(oRs("dDate"))) & vbCRLF
End If
Response.Write " </td></tr>" & vbCRLF

iLine = 1 + ((iLine-1) XOR 1)
oRs.MoveNext
iLoop = iLoop + 1
WEnd
Response.Write "</table>" & vbCRLF
Else
Response.Write GetTranslation("LANG_EMPTY_SECTION") & vbCRLF
End If

CreateBottomTable ""

oRs.Close
Set oRs = Nothing
oCn.close
Set oCn = Nothing

End Sub
%>

---------------
Frank Zalabard 8) (sviluppo@aspnuke.it)
daninet

Avanzato
Avanzato
122 Discussioni



Profilo - daninet
18 marzo 2005 alle 16:15:08 Profilo - daninetInvia un messaggio privato Rispondi quotando
provo poi ti faccio sapere
Grazie Danilo
http://www.gavoi.com/default.asp
---------------
http://www.gavoi.com/default.asp
daninet

Avanzato
Avanzato
122 Discussioni



Profilo - daninet
18 marzo 2005 alle 16:29:03 Profilo - daninetInvia un messaggio privato Rispondi quotando
Modificato il 18 marzo 2005 alle 16:33:55

Scusate avevo lasciato un pezzo di codice, Grazie Zalabar sei sempre al TOP

http://www.gavoi.com/default.asp
---------------
http://www.gavoi.com/default.asp
daninet

Avanzato
Avanzato
122 Discussioni



Profilo - daninet
29 aprile 2005 alle 16:26:35 Profilo - daninetInvia un messaggio privato Rispondi quotando
Salve a tutti, volevo inserire un blocco laterale con le notizie più lette, non le ultime inserite.
volevo sapere se c'è la possibilità di modificare quello che mi hai postato sopra per il Downloads.
sicuro coem sempre di trovare una risposta
Saluto a tutti Danilohttp://www.gavoi.com/default.asp
---------------
http://www.gavoi.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 : 121
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: 5685296 Post sui forum: 51195 Libro degli ospiti: 4 Eventi: 7

Versioni

Temi