Forum 

Forum AspNuke.it - Il tuo Portale OpenSource in ASP

Articoli in Home

Autore Messaggio
arizzo

Amatore
Amatore
23 Discussioni



Profilo - arizzo
11 gennaio 2008 alle 17:07:27 Profilo - arizzoInvia un messaggio privato Rispondi quotando
Come posso inserire in Home oltre alle news e il Forum anche gli Articoli ..... il sito è www.ic-giacobbe.it
---------------
http://www.webhousemessina.com
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
11 gennaio 2008 alle 20:32:08 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
Apri con Notepad la pagina defaultX-inc.asp che usi come homepage, dovrebbe essere la default3-inc.asp, troverai questo codice:

<!-- #include file="news-inc.asp" -->
<!-- #include file="forum-inc.asp" -->
<!-- #include file="articles-inc.asp" -->
<%
Response.Write "<table width=""100%"" cellspacing=""0"" cellpadding=""0"" border=""0"" align=""center"">" & vbCRLF
Response.Write " <tr>" & vbCRLF
If GLOBAL_NEWS_LINKS_TOP > 0 And GLOBAL_FORUM_TOP > 0 Then
Response.Write " <td width=""50%"" valign=""top"">" & vbCRLF
DisplayTopNewsLinks GLOBAL_NEWS_LINKS_TOP, 0
Response.Write " </td>" & vbCRLF
Response.Write " <td>&nbsp;&nbsp;</td>" & vbCRLF
Response.Write " <td width=""50%"" valign=""top"" align=""right"">" & vbCRLF
DisplayTopForum GLOBAL_FORUM_TOP
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
ElseIf GLOBAL_NEWS_LINKS_TOP > 0 Then
Response.Write " <td width=""100%"" valign=""top"">" & vbCRLF
DisplayTopNewsLinks GLOBAL_NEWS_LINKS_TOP, 0
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
ElseIf GLOBAL_FORUM_TOP > 0 Then
Response.Write " <td width=""100%"" valign=""top"" align=""right"">" & vbCRLF
DisplayTopForum GLOBAL_FORUM_TOP
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
End If
Response.Write " <tr>" & vbCRLF
If GLOBAL_ARTICLES_LINKS_TOP > 0 Then
Response.Write "<td width=""50%"" valign=""top"">" & vbCRLF
DisplayTopArticlesLinks GLOBAL_ARTICLES_LINKS_TOP, 0
Response.Write "</td>" & vbCRLF
Response.Write "</tr>" & vbCRLF

Response.Write "</table>" & vbCRLF
DisplayTopNews GLOBAL_NEWS_TOP, 0
%>


dovrai aggiungere le stringhe che vedi scritte in grassetto.
Aggiungendo una sola tabella la terza aggiunta sarà larga quanto le due tabelle superiori.
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

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

arizzo

Amatore
Amatore
23 Discussioni



Profilo - arizzo
12 gennaio 2008 alle 10:23:48 Profilo - arizzoInvia un messaggio privato Rispondi quotando
Ciao grazie x la risposta ... ma sistemando il tutto mi da questo errore
Microsoft VB Script compilation error '800a03f6'

Expected 'End'

/includes/clearitall-inc.asp, line 16

Ti copio la pagina di default ... per favore vedi l'errore, GRAZIE:
%>
<!-- #include file='includes/includes-inc.asp' -->
<!-- #include file='includes/news-inc.asp' -->
<!-- #include file='includes/directory-inc.asp' -->
<!-- #include file='includes/forum-inc.asp' -->
<!-- #include file="includes/articles-inc.asp" -->

<%
If sPseudo <> "" Then
sTitlePage = Replace(GetTranslation("LANG_TITLE_DEFAULT2"), "%1%", Server.HTMLEncode(sPseudo))
Else
sTitlePage = GetTranslation("LANG_TITLE_DEFAULT")
End If

%>
<!-- #include file='includes/toppage-inc.asp' --><center><table border=0><td><_div align="center"><img src="scuole3.jpg" border="0" usemap="#Map">
<map name="Map">
<area shape="rect" coords="206,-2,452,46" href="http://www.ic-giacobbe.it/pagina.asp?tipo=pagina&id=54">
<area shape="rect" coords="373,72,557,117" href="http://www.ic-giacobbe.it/pagina.asp?tipo=pagina&id=55">
<area shape="rect" coords="8,221,328,281" href="http://www.ic-giacobbe.it/pagina.asp?tipo=pagina&id=56">
</map></td></tr></table></center>
<%


Response.Write "<table width=""100%"" cellspacing=""0"" cellpadding=""0"" border=""0"" align=""center"">" & vbCRLF
Response.Write " <tr>" & vbCRLF
If GLOBAL_NEWS_LINKS_TOP > 0 and GLOBAL_FORUM_TOP > 0 Then
Response.Write " <td width=""50%"" valign=""top"">" & vbCRLF
DisplayTopNewsLinks GLOBAL_NEWS_LINKS_TOP, 0
Response.Write " </td>" & vbCRLF
Response.Write " <td>&nbsp;&nbsp;</td>" & vbCRLF
Response.Write " <td width=""50%"" valign=""top"" align=""right"">" & vbCRLF
DisplayTopForum GLOBAL_FORUM_TOP
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
ElseIf GLOBAL_NEWS_LINKS_TOP > 0 Then
Response.Write " <td width=""100%"" valign=""top"">" & vbCRLF
DisplayTopNewsLinks GLOBAL_NEWS_LINKS_TOP, 0
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
ElseIf GLOBAL_FORUM_TOP > 0 Then
Response.Write " <td width=""100%"" valign=""top"" align=""right"">" & vbCRLF
DisplayTopForum GLOBAL_FORUM_TOP
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF

Response.Write " <tr>" & vbCRLF
If GLOBAL_ARTICLES_LINKS_TOP > 0 Then
Response.Write "<td width=""50%"" valign=""top"">" & vbCRLF
DisplayTopArticlesLinks GLOBAL_ARTICLES_LINKS_TOP, 0
Response.Write "</td>" & vbCRLF
Response.Write "</tr>" & vbCRLF

End If
Response.Write "</table>" & vbCRLF
DisplayTopNews GLOBAL_NEWS_TOP, 0
%>
<!-- #include file='includes/bottompage-inc.asp' -->
<!-- #include file='includes/clearitall-inc.asp' -->

---------------
http://www.webhousemessina.com
arizzo

Amatore
Amatore
23 Discussioni



Profilo - arizzo
13 gennaio 2008 alle 09:38:53 Profilo - arizzoInvia un messaggio privato Rispondi quotando
x FAVORE QUALCUNO MI AIUTA (?)
---------------
http://www.webhousemessina.com
aldo

Avanzato
Avanzato
193 Discussioni



Profilo - aldo
14 gennaio 2008 alle 14:51:31 Profilo - aldoInvia un messaggio privato Rispondi quotando
l'errore pare sia nella :

includes/clearitall-inc.asp, line 16

ciao
---------------
Tutto è relativo ... [zzz]
arizzo

Amatore
Amatore
23 Discussioni



Profilo - arizzo
14 gennaio 2008 alle 15:18:03 Profilo - arizzoInvia un messaggio privato Rispondi quotando
si, ma xchè mi dà questo errore .... se tolgo gli articoli funziona ... :-(
---------------
http://www.webhousemessina.com
pradella

Moderatore

Utente
Utente
99 Discussioni



Profilo - pradella
14 gennaio 2008 alle 16:54:30 Profilo - pradellaInvia un messaggio privato Rispondi quotando
Mi pare manchi End If tra queste righe...

................................
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
End If
Response.Write " <tr>" & vbCRLF
If GLOBAL_ARTICLES_LINKS_TOP > 0
................................
djveleno

Amministratore

Esperto
Esperto
1025 Discussioni



Profilo - djveleno
14 gennaio 2008 alle 21:08:34 Profilo - djvelenoInvia un messaggio privato Rispondi quotando
DisplayTopForum GLOBAL_FORUM_TOP
Response.Write " </td>" & vbCRLF
Response.Write " </tr>" & vbCRLF
End If
Response.Write " <tr>" & vbCRLF
If GLOBAL_ARTICLES_LINKS_TOP > 0 Then

Inserisci la stringa in grassetto nella posizione in cui la vedi.
---------------
A lavare la testa ai somari, ci si rimette l'acqua e il sapone!

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

arizzo

Amatore
Amatore
23 Discussioni



Profilo - arizzo
16 gennaio 2008 alle 11:13:35 Profilo - arizzoInvia un messaggio privato Rispondi quotando
ciao
mi daà questo errore
Microsoft VB Script compilation error '800a0400'

Expected statement

/includes/variables-inc.asp, line 16

Option Explicit
^

---------------
http://www.webhousemessina.com

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 : 56
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: 425 Notizie: 180 Sondaggi: 11 Preferiti: 229435 Post sui forum: 51195 Libro degli ospiti: 4 Eventi: 7

Versioni

Temi