Forum AspNuke.it - Il tuo Portale OpenSource in ASP
Articoli in Home
Autore
Messaggio
arizzo
Amatore
23 Discussioni
11 gennaio 2008 alle 17:07:27
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
1025 Discussioni
11 gennaio 2008 alle 20:32:08
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> </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 IfResponse.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
23 Discussioni
12 gennaio 2008 alle 10:23:48
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> </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
23 Discussioni
13 gennaio 2008 alle 09:38:53
x FAVORE QUALCUNO MI AIUTA
---------------http://www.webhousemessina.com
aldo
Avanzato
193 Discussioni
14 gennaio 2008 alle 14:51:31
l'errore pare sia nella : includes/clearitall-inc.asp, line 16 ciao
--------------- Tutto è relativo ...
arizzo
Amatore
23 Discussioni
14 gennaio 2008 alle 15:18:03
si, ma xchè mi dà questo errore .... se tolgo gli articoli funziona ... :-(
---------------http://www.webhousemessina.com
pradella
Moderatore
Utente
99 Discussioni
14 gennaio 2008 alle 16:54:30
Mi pare manchi End If tra queste righe... ................................ Response.Write " </td>" & vbCRLF Response.Write " </tr>" & vbCRLFEnd If Response.Write " <tr>" & vbCRLF If GLOBAL_ARTICLES_LINKS_TOP > 0 ................................
djveleno
Amministratore
Esperto
1025 Discussioni
14 gennaio 2008 alle 21:08:34
DisplayTopForum GLOBAL_FORUM_TOP Response.Write " </td>" & vbCRLF Response.Write " </tr>" & vbCRLFEnd 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
23 Discussioni
16 gennaio 2008 alle 11:13:35
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
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
Anna
Iscritti
Utenti: 18940
Ultimo iscritto :
glauco
Lista iscritti
Messaggi privati: 3373
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