phpBB Italia chiude!
phpBB Italia ringrazia tutti gli utenti che hanno dato fiducia al nostro progetto per ben 9 anni, e che, grazie al grande lavoro fatto da tutto lo Staff (rigorosamente a titolo gratuito), hanno portato il portale a diventare il principale punto di riferimento italiano alla piattaforma phpBB.

Purtroppo, causa motivi personali, non ho più modo di gestirlo e portarlo avanti. Il forum viene ora posto in uno stato di sola lettura, nonché un archivio storico per permettere a chiunque di fruire di tutte le discussioni trattate.

Il nuovo portale di assistenza per l'Italia di phpBB diventa phpBB-Store.it, cui ringrazio per aver deciso di portare avanti questo grande progetto.

Grazie ancora,
Carlo - Amministratore di phpBB Italia

Topic in home Page

Supporto per phpBB 3.0.x.
Avatar utente
Astro86
phpBB Expert
phpBB Expert
Messaggi: 924
Iscritto il: 12/08/2009, 14:36
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.6
Database: MYSQL
Località: PC. Via localhost N° 82.51.149.40
Contatta:

Re: Topic in home Page

Messaggio da Astro86 » 19/01/2014, 17:34

Non va... forze ho sbagliato io qualcosa?

Codice: Seleziona tutto

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Description" content="Sito dedicato ai Pokémon.News, Download, e molto altro.">
<meta name="Keywords" content="pokemon,community,nera,bianca,versione,pokemon x,pokemon y,diamante,perla,serie,dungeon,ranger,pikachu">
</head>
<body lang="it">
<!--INIZIO CONTENUTI -->
<?php

mysql_select_db(my_pokemondownload);  
$query="SELECT * FROM phpbb_posts WHERE forum_id=4 ORDER BY topic_id DESC LIMIT 0,3";
$query=mysql_query($query);
while($post=mysql_fetch_assoc($query))
{
$data=$post['post_time'];
$data=date("d/m/Y H:i", $data); 
$limit=150; //numero caratteri
$txt=$post['post_text'];
while($txt[$limit]!=" ")$limit--;
$txt=substr($txt,0,$limit);
$txt=str_replace("é", "&eacute", $txt); 
$txt=str_replace("è", "&egrave", $txt); 
$txt=str_replace("à", "&agrave", $txt); 
$txt=str_replace("ù", "&ugrave", $txt); 
$txt=str_replace("ò", "&ograve", $txt); 
$post['post_subject']=str_replace("é", "&eacute", $post['post_subject']); 
$post['post_subject']=str_replace("è", "&egrave", $post['post_subject']); 
$post['post_subject']=str_replace("à", "&agrave", $post['post_subject']); 
$post['post_subject']=str_replace("ù", "&ugrave", $post['post_subject']); 
$post['post_subject']=str_replace("ò", "&ograve", $post['post_subject']); 
echo "<div class=\"img_box\"></div><div class=\"title_box\"><div class=\"title_title\">".$post['post_subject']."</div></div><div class=\"date_box\"><div class=\"date_date\">".$data."</div></div>
<div class=\"avviso\">".$txt." ...<a href=\"http://pokemondownload.altervista.org/forum/news-e-annunci-f4.html\">[Continua]</a></div>";
echo "<br /><br />";
}
?>
<h6>Si Ringrazia brunino per il sistema Avvisi.</h6>
<a href="http://pokemondownload.altervista.org/forum/news-e-annunci-f4.html">Altre News/Annunci --></a>
<!--FINE CONTENUTI -->
</body>
</html>

Avatar utente
brunino
Moderatore
Moderatore
Messaggi: 2819
Iscritto il: 12/01/2013, 16:35
Sesso: Maschio
Versione: 3.1.2
Server: UNIX/Linux
PHP: php 5.3
Database: mysql
Località: Toscana, Firenze
Contatta:

Re: Topic in home Page

Messaggio da brunino » 19/01/2014, 18:38

Prova così

Codice: Seleziona tutto

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="Description" content="Sito dedicato ai Pokémon.News, Download, e molto altro.">
<meta name="Keywords" content="pokemon,community,nera,bianca,versione,pokemon x,pokemon y,diamante,perla,serie,dungeon,ranger,pikachu">
</head>
<body lang="it">
<!--INIZIO CONTENUTI -->
<?php

mysql_select_db(my_pokemondownload);  
$query="SELECT * FROM phpbb_posts WHERE forum_id=4 ORDER BY topic_id DESC LIMIT 0,3";
$query=mysql_query($query);
while($post=mysql_fetch_assoc($query))
{
$data=$post['post_time'];
$data=date("d/m/Y H:i", $data); 
$limit=150; //numero caratteri
$txt=$post['post_text'];
while($txt[$limit]!=" ")$limit--;
$txt=substr($txt,0,$limit);
$txt=str_replace("é", "&eacute", $txt); 
$txt=str_replace("è", "&egrave", $txt); 
$txt=str_replace("à", "&agrave", $txt); 
$txt=str_replace("ù", "&ugrave", $txt); 
$txt=str_replace("ò", "&ograve", $txt); 
$sub=$post['post_subject'];
$sub=str_replace("é", "&eacute", $sub); 
$sub=str_replace("è", "&egrave", $sub); 
$sub=str_replace("à", "&agrave", $sub); 
$sub=str_replace("ù", "&ugrave", $sub); 
$sub=str_replace("ò", "&ograve", $sub); 
echo "<div class=\"img_box\"></div><div class=\"title_box\"><div class=\"title_title\">".$sub."</div></div><div class=\"date_box\"><div class=\"date_date\">".$data."</div></div>
<div class=\"avviso\">".$txt." ...<a href=\"http://pokemondownload.altervista.org/forum/news-e-annunci-f4.html\">[Continua]</a></div>";
echo "<br /><br />";
}
?>
<h6>Si Ringrazia brunino per il sistema Avvisi.</h6>
<a href="http://pokemondownload.altervista.org/forum/news-e-annunci-f4.html">Altre News/Annunci --></a>
<!--FINE CONTENUTI -->
</body>
</html>
E' sempre gradito un grazie

Creo estensioni per phpBB 3.1 su misura: contattami via MP.
Mie Estensioni: Top Ten Topics | Ban List | Topic List
Visita il mio forum di test e sviluppo stili e estensioni phpBB 3.1

Avatar utente
Astro86
phpBB Expert
phpBB Expert
Messaggi: 924
Iscritto il: 12/08/2009, 14:36
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.6
Database: MYSQL
Località: PC. Via localhost N° 82.51.149.40
Contatta:

Re: Topic in home Page

Messaggio da Astro86 » 19/01/2014, 19:04

Nulla...

Rispondi

Torna a “[3.0.x] Forum di Supporto”

Chi c’è in linea

Visitano il forum: Nessuno e 90 ospiti