Argomenti: 1581    Messaggi: 8758   Risposte: 7185      
(Ultime News)------|    Nasce Cleanuke.it supporto ufficiale al cms - (18-06-2011 - 23:04:54 - di matteoiamma)    |------|    Rilasciato Clean Nuke 1.7 - (05-05-2011 - 19:49:43 - di matteoiamma)    |------|    Iamma Multi Blogs: Blogs per gli utenti del nuke - (19-03-2011 - 20:41:08 - di matteoiamma)    |------|    Rilasciato Clean Nuke 1.6 - (13-03-2010 - 20:12:46 - di matteoiamma)    |------|    Nuova Community Italiana: nasce mondophpnuke.com - (11-02-2010 - 22:08:51 - di matteoiamma)    |------|    Rilasciato Clean Nuke 1.5! - (16-12-2009 - 00:44:55 - di matteoiamma)    |------
Regolamento:
Le principali regole da rispettare per poter far parte della community... cosigliamo di visionarle per evitare malintesi.
Script:
Per motivi di sicurezza il sistema blocca l'inserimento di alcuni script per sapere come fare cliccare qui

Webother.com :: Leggi il Topic - Problema blocco forum
 FAQ  •  Cerca  •  Lista degli utenti  •  Gruppi utenti  •  Profilo  •  Messaggi Privati  •  Login

Information Problema blocco forum

Nuovo Topic Rispondi
Indice del forum » Addons, Blocchi, Moduli   
Precedente :: Successivo
AutoreMessaggio
ecko
Senior 1°Level
Senior 1°Level


Registrato: Jan 18, 2004
Messaggi: 220


Oggetto: Problema blocco forum Rispondi citando

Ciao. Ho un problema con il blocco forum laterale: non mi mette in cima i topic aggiornati, ma solo i nuovi topic. Io invece ho bisogno che metta in cima i topic in cui viene inserito il messaggio pił recente.
Che fare? Grazie, ciao.



MessaggioInviato:
Gio Giu 12, 2008 4:06 pm
Top of PageProfiloMessaggio privato
Sniffer
Amministratore
Amministratore


Registrato: Jul 20, 2003
Messaggi: 3218
Localitą: Verona

Oggetto: Rispondi citando

Dovresti postare il codice del tuo blocco oppure linkarlo in modo che si possa controllare.




_________________
Non inviatemi pm con richieste di aiuto grazie.
 Su questo forum solo gli utenti
 registrati possono vedere i links!  
 Registrati o fai il login
MessaggioInviato:
Ven Giu 13, 2008 12:23 am
Top of PageProfiloMessaggio privatoHomePage
ecko
Senior 1°Level
Senior 1°Level


Registrato: Jan 18, 2004
Messaggi: 220


Oggetto: Rispondi citando

Ecco il codice:

Citazione:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi (fbc@mandrakesoft.com) */
/* http://phpnuke.org */
/* */
/* This is a 2 min hack of the old forum block to work with the phpBB2 */
/* port. */
/* */
/* 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. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/

if ( !defined('BLOCK_FILE') ) {
Header("Location: ../index.php");
die();
}

global $prefix, $db, $sitename;

$sql = "SELECT t.forum_id, topic_id, topic_title, auth_view, auth_read FROM ".$prefix."_bbtopics AS t, ".$prefix."_bbforums AS f WHERE f.forum_id=t.forum_id ORDER BY topic_time DESC LIMIT 10";
$result = $db->sql_query($sql);
$content = "<br>";
while (list($forum_id, $topic_id, $topic_title, $auth_view, $auth_read) = $db->sql_fetchrow($result)) {
if (($auth_view < 2) OR ($auth_read < 2)) {
$content .= "<img src=\"images/arrow.gif\" border=\"0\" alt=\"\" title=\"\" width=\"9\" height=\"9\"> <a href=\"modules.php?name=Forums&amp;file=viewtopic&amp;t=$topic_id\">$topic_title</a><br>";
}
}

$content .= "<br><center><a href=\"forums.html\"><b>$sitename Forums</b></a><br><br></center>";

$db->sql_freeresult($result);

?>




MessaggioInviato:
Ven Giu 13, 2008 2:05 pm
Top of PageProfiloMessaggio privato
ecko
Senior 1°Level
Senior 1°Level


Registrato: Jan 18, 2004
Messaggi: 220


Oggetto: Rispondi citando

Risolto, scaricato blocco laterale e reinstallato. Ora va. tnx



MessaggioInviato:
Ven Giu 13, 2008 2:13 pm
Top of PageProfiloMessaggio privato
Mostra prima i messaggi di:   
Tutti i fusi orari sono GMT + 2 ore
Nuovo Topic Rispondi
Indice del forum » Addons, Blocchi, Moduli  

Vai a:  
Key
  Non puoi inserire nuovi Topic in questo forum
Non puoi rispondere ai Topic in questo forum
Non puoi modificare i tuoi messaggi in questo forum
Non puoi cancellare i tuoi messaggi in questo forum
Non puoi votare nei sondaggi in questo forum

Powered by phpBB © 2001, 2005 phpBB Group



http://www.top100italiana.com

 

Tutti i diritti riservati Copyright © 2003-2023