Communauté Informatique NDFR.net : phpBB - Programmation Web (HTML, PHP, ASP, Java, XML, etc.)
Reply
phpBB
Thread Tools Display Modes
  #1  
Old 03-11-2002, 00:34
llaumgui's Avatar
llaumgui llaumgui is offline
XPerience-Fr
 
Join Date: 20-10-2002
Location: Montpellier
Age: 43
Posts: 456
Send a message via ICQ to llaumgui Send a message via AIM to llaumgui Send a message via MSN to llaumgui Send a message via Yahoo to llaumgui
phpBB

Ca y est, comme un grand, je monte mon forum phpBB... . Trève de plaisanterie, je cherche à mettre les 10 derniers posts sur ma page d'acceuil, qu'elle est la commande???

Merci...
__________________
| | |
Reply With Quote
  #2  
Old 03-11-2002, 09:35
Fred's Avatar
Fred Fred is offline
00 Agent
 
Join Date: 19-10-2002
Location: MI6 HQ
Age: 40
Posts: 2,452
Send a message via MSN to Fred
C'est un hack connu ... laisses moi 5 minutes ...

Voilà :
http://www.phpbb.com/mods/downloads/

Il me semble même que la page est incluse dans la distribution ... je mets pas le code ici, le formatage va être désatreux
__________________
Eh y'a une grenouill' sur le bureau !!!
... non Gaston y'a pas d'grenouille sur le bureau
Eh y'a un gorille devant la porte !!!
... non Gaston y'a pas de gorille devant la porte
Weua y'a un p'tit oiseau sur la table !!!
... non Gaston
Reply With Quote
  #3  
Old 03-11-2002, 10:10
enzo19's Avatar
enzo19 enzo19 is offline
Powered by NDFR
 
Join Date: 19-10-2002
Location: Brive - Corrèze
Age: 48
Posts: 1,749
Je pense que tu as ce qu'il te faut, s'il te manque un truc, envoie moi un MP
Reply With Quote
  #4  
Old 03-11-2002, 12:45
llaumgui's Avatar
llaumgui llaumgui is offline
XPerience-Fr
 
Join Date: 20-10-2002
Location: Montpellier
Age: 43
Posts: 456
Send a message via ICQ to llaumgui Send a message via AIM to llaumgui Send a message via MSN to llaumgui Send a message via Yahoo to llaumgui
pardon, mais je m'y perd un peu dans tous c mods...
c'est: Version 2.x > Syndication > At A Glance (recent news and/or topics)
__________________
| | |
Reply With Quote
  #5  
Old 03-11-2002, 21:38
Jogo's Avatar
Jogo Jogo is offline
Phrasiquement typé
 
Join Date: 25-10-2002
Location: Caen (14)
Age: 36
Posts: 385
Send a message via MSN to Jogo
UTilise cette requête
$sql = "SELECT a.forum_id, a.topic_id, a.topic_title, a.topic_time, b.forum_id, b.forum_name FROM phpbb_topics a, phpbb_forums b WHERE a.forum_id = b.forum_id ORDER BY a.topic_time DESC LIMIT 0, 10";
Reply With Quote
  #6  
Old 03-11-2002, 21:50
llaumgui's Avatar
llaumgui llaumgui is offline
XPerience-Fr
 
Join Date: 20-10-2002
Location: Montpellier
Age: 43
Posts: 456
Send a message via ICQ to llaumgui Send a message via AIM to llaumgui Send a message via MSN to llaumgui Send a message via Yahoo to llaumgui
Merci, mais le forum se trouve sur un autre site que le mien...
__________________
| | |
Reply With Quote
  #7  
Old 03-11-2002, 22:18
llaumgui's Avatar
llaumgui llaumgui is offline
XPerience-Fr
 
Join Date: 20-10-2002
Location: Montpellier
Age: 43
Posts: 456
Send a message via ICQ to llaumgui Send a message via AIM to llaumgui Send a message via MSN to llaumgui Send a message via Yahoo to llaumgui
Le truc c'est que j'ai chopé se code.

Quote:
<?php
/***************************************************************************
# Configuration #
****************************************************************************/
$nbr_sujets = 5; // Nombre de sujets à afficher
$url_phpbb = "/phpBB2"; // chemin vers le dossier PhpBB2 par rapport à la racine du site
$tz = 2; // Heure Locale = gmt + $tz (en France c gmt+1) +2 pour heure d' hiver
$format = 'd M Y H:i'; // Format de la date en php
$long_maxi = 35; // Longueurs maxi d'un titre de sujets (en caract.)

//-------------------------------------------------------------------------

require ("".$url_phpbb."/config.php");

$db = @mysql_connect("$dbhost", "$dbuser", "$dbpasswd") or die("mysql : erreur a la connexion");
@mysql_select_db("$dbname",$db) or die("mysql : probleme de selection de base");

$table1 = $table_prefix.'topics';
$table2 = $table_prefix.'forums';
$table3 = $table_prefix.'posts';
$sql = "SELECT t1.topic_last_post_id, t1.forum_id, t1.topic_title, t1.topic_id, t1.topic_time, t2.forum_id, t2.auth_view, t2.auth_read, t3.post_id, t3.post_time FROM $table1 t1, $table2 t2, $table3 t3 WHERE t2.auth_view = '0' AND t2.auth_read = '0' AND t1.forum_id = t2.forum_id AND t3.post_id=t1.topic_last_post_id ORDER BY t1.topic_last_post_id DESC LIMIT $nbr_sujets";

if($r = mysql_query($sql, $db)) {
while($m = mysql_fetch_array($r)) {
$m[topic_title] = stripslashes($m[topic_title]);
$m[topic_title] = substr($m[topic_title], 0, $long_maxi);
$post_date = @gmdate($format, $m[post_time] + (3600 * $tz));
echo "<a href=\"$url_phpbb/viewtopic.php?t=$m[topic_id]\"><b><font FACE=\"Verdana\" color=\"#6699FF\" size=\"1\">$m[topic_title]</font></b></a>";
echo "<font FACE=\"Verdana\" color=\"#555555\" size=\"1\"> - $post_date</font><br />";
}
}
?>
Le problème c'est que ca marche nickel sur le site du forum mais pas sur mon site (qui n'est pas le même)
__________________
| | |
Reply With Quote
  #8  
Old 27-11-2002, 21:28
llaumgui's Avatar
llaumgui llaumgui is offline
XPerience-Fr
 
Join Date: 20-10-2002
Location: Montpellier
Age: 43
Posts: 456
Send a message via ICQ to llaumgui Send a message via AIM to llaumgui Send a message via MSN to llaumgui Send a message via Yahoo to llaumgui
Ayé, j'ai trouvé.
J'ai mis la soluce sur mon forum (Je sais que certains n'aime pas qu'on, se fasse de la pub, mais je pense que les administrateurs apprécieraient pas si je balancé 1 page de code sur le forum?). :confused:
Ca marche niquel, j'avais aussi posté sur phpbb-fr et apparemment je suis pas le seul a avoir ce problème.
__________________
| | |
Reply With Quote
  #9  
Old 17-12-2002, 23:19
chalouf's Avatar
chalouf chalouf is offline
fatigué
 
Join Date: 20-10-2002
Location: Miami , Etat Unis
Age: 38
Posts: 1,913
C CHOD LE PHP
Reply With Quote
  #10  
Old 17-12-2002, 23:20
chalouf's Avatar
chalouf chalouf is offline
fatigué
 
Join Date: 20-10-2002
Location: Miami , Etat Unis
Age: 38
Posts: 1,913
Reply With Quote
  #11  
Old 17-12-2002, 23:28
Fred's Avatar
Fred Fred is offline
00 Agent
 
Join Date: 19-10-2002
Location: MI6 HQ
Age: 40
Posts: 2,452
Send a message via MSN to Fred
C'est un language interprêté qui sert souvent à générer des pages web. Une petite recherche sur Google t'en apprendra plus ...
__________________
Eh y'a une grenouill' sur le bureau !!!
... non Gaston y'a pas d'grenouille sur le bureau
Eh y'a un gorille devant la porte !!!
... non Gaston y'a pas de gorille devant la porte
Weua y'a un p'tit oiseau sur la table !!!
... non Gaston
Reply With Quote
  #12  
Old 17-12-2002, 23:32
llaumgui's Avatar
llaumgui llaumgui is offline
XPerience-Fr
 
Join Date: 20-10-2002
Location: Montpellier
Age: 43
Posts: 456
Send a message via ICQ to llaumgui Send a message via AIM to llaumgui Send a message via MSN to llaumgui Send a message via Yahoo to llaumgui
Je viens de refaire mon site facile avec "php Nuke". Trop beau!
__________________
| | |
Reply With Quote
  #13  
Old 18-12-2002, 09:43
enzo19's Avatar
enzo19 enzo19 is offline
Powered by NDFR
 
Join Date: 19-10-2002
Location: Brive - Corrèze
Age: 48
Posts: 1,749
Ventard
Reply With Quote
  #14  
Old 18-12-2002, 11:30
llaumgui's Avatar
llaumgui llaumgui is offline
XPerience-Fr
 
Join Date: 20-10-2002
Location: Montpellier
Age: 43
Posts: 456
Send a message via ICQ to llaumgui Send a message via AIM to llaumgui Send a message via MSN to llaumgui Send a message via Yahoo to llaumgui
Non, franchement je suis content du résultat... Mon seul regré, c'est un peu rigide comme script...
__________________
| | |
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Systeme de news avec le phpbb Jackydown Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 42 22-06-2006 20:09
Nouvelles versions de phpBB, PHP-Nuke & PHP nonoleptitmalin Actualité 5 16-04-2004 12:48
Mise a jour de phpBB nonoleptitmalin Discussions 7 20-02-2003 08:16
Vulnérablité phpbb enzo19 Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 12 04-01-2003 08:01
Un concurant à phpbb???!!! llaumgui Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 12 28-11-2002 20:13

All times are GMT +2. The time now is 13:02.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.