- Home
- Categorie
- Coding e Sistemistica
- Coding
- [vbulletin] ultimi X thread in hompage
-
[vbulletin] ultimi X thread in hompage
ciao ragazzi, mi rivolgo soprattuttoa giorgio visto che usa già questa cosa, vorrei mettere in evidenza gli ultimi thread del mio forum in homepage, proprio come ha fatto gt,
mi date spiegazioni se potete/volete?
-
mi date una mano???
-
Se stai usando un forum PHPBB usa questo codice, per lo meno io ho messo questo e non mi ha dato problemi (l'ho scritto io quindi magari non vi piacerà :P)
<?php
$query_forum=mysql_query("select topic_poster,topic_id,topic_title from phpbb_topics order by topic_time DESC limit 0,5");while($row_forum=mysql_fetch_array($query_forum)){
$row_poster=mysql_fetch_array(mysql_query("select username from phpbb_users where user_id='$row_forum[topic_poster]'"));
$count=++$count;
echo"<form action="forum.php" method="post" name="href$count"><input type="hidden" name="href" value="forum/viewtopic.php?t=$row_forum[topic_id]"><a href="#" onclick="javascript:document.href$count.submit()"><img src="forum/templates/subSilver/images/folder_new_big.gif" alt="$row_forum[topic_title]" title="$row_forum[topic_title]" style="border:0px" /></a><span class="profilo2">$row_forum[topic_title]</span> <span class="profilo">scritto da $row_poster[username]</span><br /></form>";
}
?>
-
ehm ti ringrazio ma..il titolo del topic dice:
**[vbulletin] ultimi X thread in hompage ****:) è per il vbulletin **
-
ops scusa
-
non si vuole svelare eh? va bene ok chiudete pure
-
Ciao.
In questo forum c'è un thread che consiglia di cercare nello stesso per vedere se la richiesta è stata già fatta.
Visto che non lo hai fatto te, faccio io:
http://www.giorgiotave.it/forum/117109-post6.html
-
lo so l'avevo già visto ma non funziona
ecco perchè chiedevo
mi da questo errore:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /web/htdocs/www.gamesrulez.com/home/ultimi-thread.php on line 17
-
posta il codice e vediamo se possiamo fare qualcosa
gioggiotava (R) in php non è che ci prendeva tanto...(ora si scopre che
- è una cosa complicatissima
- aveva ragione lui..
)