Visualizzazione risultati 1 fino 6 di 6

Discussione: Ultimi topic phpBB

  1. #1
    L'avatar di Alessandro1
    Alessandro1 non è connesso Utente storico
    Data registrazione
    22-04-2003
    Residenza
    Milano
    Messaggi
    2,483

    Predefinito

    Qualcuno riesce a passarmi il blocco degli ultimi topic nel forum phpBB?
    Perchè quello ke c'è nel pacchetto del php è x il forum del php e non x uno ke uno mette.
    E magari spiegatemi cosa va modificato...se non lo sapete fe niente...basta il file
    Grazie in anticipo :D
    MondoWeb.net - Crea gratis il tuo forum

  2. #2
    L'avatar di Alessandro1
    Alessandro1 non è connesso Utente storico
    Data registrazione
    22-04-2003
    Residenza
    Milano
    Messaggi
    2,483

    Predefinito

    Non lo sapete?
    MondoWeb.net - Crea gratis il tuo forum

  3. #3
    karlotto non è connesso Utente
    Data registrazione
    24-04-2003
    Messaggi
    135

    Predefinito

    Citazione Originalmente inviato da Alessandro1
    Qualcuno riesce a passarmi il blocco degli ultimi topic nel forum phpBB?
    Perchè quello ke c'è nel pacchetto del php è x il forum del php e non x uno ke uno mette.
    E magari spiegatemi cosa va modificato...se non lo sapete fe niente...basta il file
    Grazie in anticipo :D
    Ehm... non è che sei stato chiarissimo....

    Prova a riformulare la domanda...

    -K8

  4. #4
    L'avatar di Alessandro1
    Alessandro1 non è connesso Utente storico
    Data registrazione
    22-04-2003
    Residenza
    Milano
    Messaggi
    2,483

    Predefinito

    Volevo avere un blocco che mi dice gli ultimi topic nel forum phpBB.
    Nel pacchetto di nuke ti forniscono questo blocco ma legge i topic del forum incluso e io ho un mio forum da quasi un anno con + di 1000 messaggi.
    Spero che abbiate capito ora :D
    MondoWeb.net - Crea gratis il tuo forum

  5. #5
    karlotto non è connesso Utente
    Data registrazione
    24-04-2003
    Messaggi
    135

    Predefinito

    Ora sei stato chiarissimo

    Io non uso più phpnuke da un paio di versioni a questa parte, ma se non ricordo male il modulo che fa questo lavoro si limita a leggere nel database le tabelle "incriminate" con delle queries opportune.

    Credo che il modulo sia presente comunque (al limite lo scarichi da spaghettibrain o da qualche altro sito simile), quindi dovresti solo andare a cambiare le impostazioni di chiamata al db (prefisso, username, pw, etc.) per spostarlo dal suo db al tuo db.

    Se poi hai difficoltà a cambiare il codice fammelo sapere...

    -K8

  6. #6
    L'avatar di Alessandro1
    Alessandro1 non è connesso Utente storico
    Data registrazione
    22-04-2003
    Residenza
    Milano
    Messaggi
    2,483

    Predefinito

    Infatti è quello il problema :D

    Allora, il codice del blocco che danno e guarda l'altro php è questo:

    [code:1:21d76e0969]<?php

    /************************************************** **********************/
    /* Forums Block for phpBB 2.0.0 port to PHP Nuke 6.5b6+ */
    /* ================================================== == */
    /* */
    /* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
    /* http://phpnuke.org */
    /* */
    /* Version 1, modified by Sébastien Vaast */
    /* http://membres.lycos.fr/projectpluto/ */
    /* */
    /* Updated by Tom Nitzschner 22/06/2002 to add the scrolling text */
    /* */
    /* Updated by Paul Laudanski 14 Jan 2003 */
    /* NukeCops.com | ComputerCops.biz */
    /* */
    /* Last Edited - 14 Jan 2003 */
    /* */
    /* This Block shows the last 10 topics where a message was posted, */
    /* along with the username of the last poster and the day and time */
    /* of the post. */
    /* It will also show smileys in the topic titles thanks to the */
    /* smileys.php file found in Leo Tan Block Forums version */
    /* (http://www.cybercomp.d2g.com). */
    /* */
    /* This program is free software. You can redistribute it and/or modify */
    /* it under the terms of the GNU General Public License as published by */
    /* the Free Software Foundation; either version 2 of the License. */
    /************************************************** **********************/

    if (eregi("block-Forums.php", $PHP_SELF)) {
    Header("Location: index.php");
    die();
    }

    include_once ('blocks/smileys.php');

    global $prefix, $dbi, $sitename, $user, $cookie, $group_id;
    $count = 1;
    $content = "<A name= \"scrollingCode\"></A>";
    $content .="<MARQUEE behavior= \"scroll\" align= \"center\" direction= \"up\" height=\"200\" scrollamount= \"2\" scrolldelay= \"50\" onmouseover='this.stop()' onmouseout='this.start()'>";
    $content .="<center> <STYLE=\"text-decoration: none\"><font color=\"#666666\"><b>Ultimi messaggi dal <br>.:: Forum ::.</b></center>";
    $result1 = sql_query("SELECT t.topic_id, t.topic_last_post_id, t.topic_title, f.forum_name, f.forum_id FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=f.forum_id and f.auth_view=0 ORDER BY t.topic_last_post_id DESC LIMIT 10", $dbi);
    $content .= "<br>";
    while(list($topic_id, $topic_last_post_id, $topic_title, $forum_name, $forum_id) = sql_fetch_row($result1, $dbi)) {
    $result2 = sql_query("SELECT topic_id, poster_id, FROM_UNIXTIME(post_time,'%d %b, alle %T') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'", $dbi);
    list($topic_id, $poster_id, $post_time)=sql_fetch_row($result2, $dbi);

    $result3 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$poster_id'", $dbi);
    list($username, $user_id)=sql_fetch_row($result3, $dbi);

    $topic_title=parseEmoticons($topic_title);
    // Remove the comment below to add the counter
    //$content .="<STYLE=\"text-decoration: none\"><font color=\"#666666\"><b>Message&#5 8; $count<br></b>";

    $content .= "<img src=\"modules/Forums/templates/subSilver/images/icon_mini_message.gif\" border=\"0\" alt=\"\"><a href=\"modules.php?name=Forums&file=v iewtopic&p=$topic_last_post_id#$topic_last _post_id\"STYLE=\"text-decoration: none\"><b> $topic_title </b></a><br><font color=\"#666666\"><i>Risposta di <A HREF=\"modules.php?name=Forums&file=profi le&mode=viewprofile&u=$user_id\"STYLE =\"text-decoration: none\"> $username </a> in <a href=\"modules.php?name=Forums&file=v iewforum&f=$forum_id\">$forum_name </a><br>$post_time</i></font><br><br>";
    $count = $count + 1;
    }
    $content .= "<br><center><a href=\"modules.php?name=Forums\"STYLE=\& quot;text-decoration: none\"><b>[ Entra nel Forum ]</b></center>";
    ?>
    [/code:1:21d76e0969]

    Le tabelle del phpBB mio hanno prefisso phpbb_.

    Grazie mille in anticipo :P
    MondoWeb.net - Crea gratis il tuo forum

Regole di scrittura

  • Non puoi creare nuove discussioni
  • Non puoi rispondere ai messaggi
  • Non puoi inserire allegati.
  • Non puoi modificare i tuoi messaggi
  •