PDA

Voir la version complète : derniers messages du forum sur le site


footy
18/08/2006, 10h50
Bonjour

Existe t il un script qui permet de mettre sur la page d'accueil du site les derniers messages du forum de VB

Merci

Allan
18/08/2006, 12h03
Oui, il y a ca ici même, fais quelques recherches ;)

footy
18/08/2006, 13h03
Oui, il y a ca ici même, fais quelques recherches ;)
d'accord je vais faire une recherche. (c'est quoi d'abord le nom du script)
sinon comment trouver le hack qui permet d'avoir les 10 derniers messages (latest 10 threads) en haut du forum comme dans ce site
http://www.vbnova.com/

et merci encore fois de votre aide.

Allan
18/08/2006, 13h23
http://www.vbulletin-ressources.com/forum/showthread.php?t=1443

footy
18/08/2006, 15h34
http://www.vbulletin-ressources.com/forum/showthread.php?t=1443

Merci allan. hack installé avec succès. mais le problème au lieu de s'afficher en haut, il s'est mis en bas du forum

footy
14/09/2006, 21h58
Bonjour

Existe t il un script qui permet de mettre sur la page d'accueil du site les derniers messages du forum de VB

Merci
je cherche encore ce script

Allan
14/09/2006, 22h06
Tu peux suivre ce tutorial : http://www.vbulletin.com/forum/showthread.php?t=158887&highlight=forumhome

footy
14/09/2006, 22h29
Tu peux suivre ce tutorial : http://www.vbulletin.com/forum/showthread.php?t=158887&highlight=forumhome
Non c'est pas ça ce que je cherche Allan.
Je veux mettre les derniers sujet du forum dans mon site qui n'a rien avoir avec Vbulletin. cad un site à part.

Allan
14/09/2006, 22h30
Ha oki, alors la, je voit pas désoler ...

footy
14/09/2006, 22h51
Ha oki, alors la, je voit pas désoler ...
pas grave je vais essayer d'en trouver.
voici un exemple de ce que je cherche
http://forzalyonais.xooit.com/portal.php
c'est en bas à droite (Derniers sujets)


le code à mettre par exemple est ici
http://xooit.xooit.com/t3212-%5BTuto%5D-Afficher-les-nouvelles-du-forum-sur-un-site.htm

footy
15/09/2006, 09h56
Pour ceux qui veulent améliorer ce code.

c'est un code de dernier message du forum phpbb à mettre dans votre site ou une page html ou dans un portail.

<?php

if (eregi("blok.php", $_SERVER['PHP_SELF'])) {
die ("You cannot open this page directly");
}
global $user, $bgcolor3, $bgcolor2, $nuked, $language;
include("modules/Forums/language/lang_french/lang_main.php");
$sql2=mysql_query("SELECT active FROM $nuked[prefix]"._block." WHERE module='Forums'");
list($active) = mysql_fetch_array($sql2);

echo" <div align=right><img src=images/akhirfor.gif><table border=\"0\" width=\"98%\" cellspacing=\"1\">";
$sql5 = "SELECT forum_id, topic_id, topic_title, topic_last_post_id FROM phpbb_topics ORDER BY topic_last_post_id DESC LIMIT 10";
$req5=mysql_query($sql5);
while ($row4 = mysql_fetch_array($req5)) {
$forum_id = $row4[forum_id];
$topic_id = $row4[topic_id];
$topic_title = $row4[topic_title];
$topic_last_post_id = $row4[topic_last_post_id];
$sql = "SELECT * FROM phpbb_posts WHERE post_id='$topic_last_post_id'";
$req = mysql_query($sql);
$row = mysql_fetch_array($req);
$poster_id = $row[poster_id];
$post_time = strftime("%d/%m/%y %H:%M", $row[post_time]);

$sql4 = "SELECT username FROM phpbb_users WHERE user_id='$poster_id'";
$req4=mysql_query($sql4);
$row3 = mysql_fetch_array($req4);
$auteur = $row3[username];

$sql3 = "SELECT auth_view, auth_read FROM phpbb_forums WHERE forum_id='$forum_id'";
$req3=mysql_query($sql3);
$row2 = mysql_fetch_array($req3);
$auth_view = $row2[auth_view];
$auth_read = $row2[auth_read];
$tmpcnt++ % 2 == 1 ? $color = "#DAECD0" : $color = "#FFFFFF";
if (($auth_view != 2) OR ($auth_read != 2)) {

echo" <TR style=\"background: $color;\"><td width=1 bgcolor=#44AA00></td><TD>&nbsp;<a href=\"index.php?abk=Forums&stoune=viewtopic&amp;t=$topic_id\"><b>$topic_title</b></a><br>
&nbsp;<small>Par <a href=\"index.php?abk=Forums&stoune=profile&mode=viewprofile&u=$poster_id\">$auteur</a> "._THE." $post_time</small></font></b></a></td><td width=1 bgcolor=#44AA00></td></tr>";
}
}
echo"<tr height=1 bgcolor=#44AA00 border=0><td></td><td></td><td></td></tr></table></div>";

?>