TSmenu

Attualmente in www.tuttosoft.it è stata caricata la versione del nuke 7.9 TS sono presenti la bellezza di 78 categorie e 713 downloads       Utenti registrati:  13490    Admin del sito sono: 1  Ultimi 5 Utenti registrati :    buagamasta    homebrew    kevyn_morgan    abramax    208ferro

Fai Una Donazione

Siti Amici

©

Pubblicità

Ts Tags Ver 1.0
Nuke Sentinel 2.6.01 Tuttosoft Temi Phpnuke Addons Virit Antivirus Mascherare Mac-Address con Linux OpenId 0.3 new Php Nuke Oracle su Linux Pilia Federico Gnu License Sottoscriviti No Spam Attack 3.1 PR5 Moduli PageRank Più comandi in uno unico con Linux da terminale Karmik koala Mappa sito Staff del sito Installare Lamp su Ubuntu Linux Weblord Trucchi Nuke Alexthemaster Forums Php Nuke Forum phbb3 V 3.0.4 Configurare la scheda di rete da terminale con Ubuntu Cambiare Ip da remoto Queen_live78 Banner PageRank 5 Numbers 1.0 Indicizzazione del tuo sito Avatars Nuke Ranks Forum Donazione Matteoiamma Sitemap Banners Temi PhpBB Splatt Chat 0.8.29 Ts Menu 5.3 Giovannib JQooBe Fonts Proxy su Linux Ubuntu Ts Contacts Slaybook 1.2.1 Serpe76 Generatore Numeri casuale Notepad ++ Ts Gallery Ubuntu 9.10 IP Remote Changer Nukelive 1.0 Misura il PageRank Blocchi Installare Cairo-Dock su Ubuntu Linux a 64bit LGNuke 2.0.0RC Directory vea83inc

Tuttosoft.it Php Nuke Italian Community: Forums

TUTTOSOFT :: Leggi il Topic - modulo per news con pulsanti Benvenuti nel Forum di tuttosoft.it , per qualsiasi problema postate pure nel forum vi verrà data una risposta entro le 24 ore dal momento del Post. Buona Navigazione
 FAQFAQ   CercaCerca   Gruppi utentiGruppi utenti   ProfiloProfilo   Messaggi PrivatiMessaggi Privati   LoginLogin 

modulo per news con pulsanti

 
Nuovo Topic   Topic chiuso    Indice del forum -> Moduli, Blocchi e Addons
Precedente :: Successivo  
Autore Messaggio
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 332
Località: guardia sanframondi

MessaggioInviato: Sab Feb 20, 2010 2:25 pm    Oggetto: modulo per news con pulsanti Rispondi citando

ciao ragazzi ho un problema.. in home ho le news che metto ogni giorno..
Quindi nella versione di phpnuke si puo impostare 5-10-15-20-25-30 e basta.. ma dopo di che le news.. vengono eliminate dalla home e va a finire nella sezione news.. fin qui tutto ok! solo che vorei che comparisero il pulsante. 1-2-3 ecc che modulo posso usare?
ho provato con nsn news ma non va... mi da errore...
_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
matteoiamma
Moderatore
Moderatore


Registrato: May 17, 2008
Messaggi: 531
Località: Torremaggiore(Foggia)

MessaggioInviato: Dom Feb 21, 2010 11:16 am    Oggetto: Rispondi citando

Ciao,
semplicemente potevi dire "Come faccio a creare un sistema di paginazione per il modulo News ? "

Very Happy Very Happy

Comunque..
prova questo:

http://www.tuttosoft.it/web/download-file-621.html
_________________
Non inviatemi messaggi privati o email,
gratis aiuto solo sui forum.
CLEANUKE.IT - CLEAN NUKE OFFICIAL COMMUNITY
MATTEOIAMMARRONE.COM
FORUMRAGAZZI.IT
Torna in cima
Profilo Messaggio privato Invia email HomePage MSN Messenger
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 332
Località: guardia sanframondi

MessaggioInviato: Dom Feb 21, 2010 9:58 pm    Oggetto: Rispondi citando

matteo ho provato a seguire il tuo consiglio pero manco va.. mi da questo errore.. strano...
posto immagine


_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com


Ultima modifica di nonsoloprogrammi il Lun Feb 22, 2010 7:17 pm, modificato 4 volte in totale
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
red
Affidabile
Affidabile


Registrato: Dec 21, 2007
Messaggi: 94

MessaggioInviato: Lun Feb 22, 2010 6:11 pm    Oggetto: Rispondi citando

Credo che hai postato un'immagine sbagliata
Torna in cima
Profilo Messaggio privato
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 332
Località: guardia sanframondi

MessaggioInviato: Lun Feb 22, 2010 7:17 pm    Oggetto: Rispondi citando

si hai ragione... ho anche corretto...
_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
lupoprimo
Maestro
Maestro


Registrato: Dec 01, 2007
Messaggi: 191

MessaggioInviato: Mar Feb 23, 2010 12:19 pm    Oggetto: Rispondi citando

Io penso che tu voglia fare come nel mio topic di alcuni giorni fa.
Devi modificare il select name in

admin/modules/setting.php

Codice:
<select name='xstoryhome'>"
."<option name='xstoryhome'>$storyhome</option>"
."<option name='xstoryhome'>8</option>"
."<option name='xstoryhome'>10</option>"
."<option name='xstoryhome'>15</option>"
."<option name='xstoryhome'>20</option>"
."<option name='xstoryhome'>25</option>"
."<option name='xstoryhome'>30</option>"
."</select>"
."</td></tr><tr><td>"
."" . _OLDSTORIES . ":</td><td><select name='xoldnum'>"
."<option name='xoldnum'>$oldnum</option>"
."<option name='xoldnum'>10</option>"
."<option name='xoldnum'>20</option>"
."<option name='xoldnum'>30</option>"
."<option name='xoldnum'>40</option>"
."<option name='xoldnum'>50</option>"
."</select>
Torna in cima
Profilo Messaggio privato
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 332
Località: guardia sanframondi

MessaggioInviato: Mar Feb 23, 2010 12:38 pm    Oggetto: Rispondi citando

no lupoprimo io non voglio fare che supero 30 articoli in home.. perche dopo sarebe un casino.. perche si allungerebe la home... io voglio fare che superati i 30 articoli esca il pulsante.. pagina successiva.. tutto qua...
_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
lupoprimo
Maestro
Maestro


Registrato: Dec 01, 2007
Messaggi: 191

MessaggioInviato: Mar Feb 23, 2010 2:11 pm    Oggetto: Rispondi citando

sorry Embarassed
Torna in cima
Profilo Messaggio privato
matteoiamma
Moderatore
Moderatore


Registrato: May 17, 2008
Messaggi: 531
Località: Torremaggiore(Foggia)

MessaggioInviato: Mar Feb 23, 2010 2:54 pm    Oggetto: Rispondi citando

Citazione:
matteo ho provato a seguire il tuo consiglio pero manco va.. mi da questo errore.. strano...
posto immagine


Ba...
non hai propio esperienza..

Niente di strano,
se esce quell'errore significa che sta fatto male il controllo all'inizio del file modules/News/index.php

Postaci il file modules/News/index.php che ti diciamo cosa eliminare e risolvi.
_________________
Non inviatemi messaggi privati o email,
gratis aiuto solo sui forum.
CLEANUKE.IT - CLEAN NUKE OFFICIAL COMMUNITY
MATTEOIAMMARRONE.COM
FORUMRAGAZZI.IT
Torna in cima
Profilo Messaggio privato Invia email HomePage MSN Messenger
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 332
Località: guardia sanframondi

MessaggioInviato: Mer Feb 24, 2010 3:28 pm    Oggetto: Rispondi citando

ecco a te Matteo....


Codice:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* 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 ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}

define('INDEX_FILE', true);
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);

function theindex($new_topic="0") {
    global $db, $storyhome, $topicname, $topicimage, $topictext, $datetime, $user, $cookie, $nukeurl, $prefix, $multilingual, $currentlang, $articlecomm, $sitename, $user_news, $userinfo;
    if (is_user($user)) { getusrinfo($user); }
    if ($multilingual == 1) {
   $querylang = "AND (alanguage='$currentlang' OR alanguage='')";
    } else {
   $querylang = "";
    }
    include("header.php");
    automated_news();
    if (isset($new_topic)) {
    $new_topic = intval($new_topic);
    } else {
    $new_topic == 0;
    }
    if (isset($userinfo['storynum']) AND $user_news == 1) {
   $storynum = $userinfo['storynum'];
    } else {
   $storynum = $storyhome;
    }
    if ($new_topic == 0) {
   $qdb = "WHERE (ihome='0' OR catid='0')";
   $home_msg = "";
    } else {
   $qdb = "WHERE topic='$new_topic'";
   $result_a = $db->sql_query("SELECT topictext FROM ".$prefix."_topics WHERE topicid='$new_topic'");
   $row_a = $db->sql_fetchrow($result_a);   
   $numrows_a = $db->sql_numrows($result_a);
   $topic_title = check_words(check_html($row_a['topictext'], "nohtml"));
   OpenTable();
   if ($numrows_a == 0) {
       echo "<center><font class=\"title\">$sitename</font><br><br>"._NOINFO4TOPIC."<br><br>[ <a href=\"modules.php?name=News\">"._GOTONEWSINDEX."</a> | <a href=\"topics.html\">"._SELECTNEWTOPIC."</a> ]</center>";
   } else {
       echo "<center><font class=\"title\">$sitename: $topic_title</font><br><br>"
      ."<form action=\"modules.php?name=Search\" method=\"post\">"
      ."<input type=\"hidden\" name=\"topic\" value=\"$new_topic\">"
      .""._SEARCHONTOPIC.": <input type=\"name\" name=\"query\" size=\"30\">  "
      ."<input type=\"submit\" value=\""._SEARCH."\">"
      ."</form>"
      ."[ <a href=\"index.php\">"._GOTOHOME."</a> | <a href=\"topics.html\">"._SELECTNEWTOPIC."</a> ]</center>";
   }
   CloseTable();
   echo "<br>";
    }
    $result = $db->sql_query("SELECT sid, catid, aid, title, time, hometext, bodytext, comments, counter, topic, informant, notes, acomm, score, ratings FROM ".$prefix."_stories $qdb $querylang ORDER BY sid DESC limit $storynum");
    while ($row = $db->sql_fetchrow($result)) {
   $s_sid = intval($row['sid']);
   $catid = intval($row['catid']);
   $aid = check_html($row['aid'], "nohtml");
   $title = stripslashes(check_words(check_html($row['title'], "nohtml")));
   $time = $row['time'];
   $hometext = stripslashes($row['hometext']);
    $bodytext = stripslashes($row['bodytext']);
    $comments = stripslashes($row['comments']);
   $counter = intval($row['counter']);
   $topic = intval($row['topic']);
   $informant = check_html($row['informant'], "nohtml");
   $notes = stripslashes($row['notes']);
   $acomm = intval($row['acomm']);
   $score = intval($row['score']);
   $ratings = intval($row['ratings']);
   if ($catid > 0) {
       $row2 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
       $cattitle = check_words(check_html($row2['title'], "nohtml"));
   }
   getTopics($s_sid);
   formatTimestamp($time);
   $introcount = strlen($hometext);
   $fullcount = strlen($bodytext);
   $totalcount = $introcount + $fullcount;
   $c_count = $comments;
   $r_options = "";
   if (isset($userinfo['umode'])) { $r_options .= "&amp;mode=".$userinfo['umode']; }
   if (isset($userinfo['uorder'])) { $r_options .= "&amp;order=".$userinfo['uorder']; }
   if (isset($userinfo['thold'])) { $r_options .= "&amp;thold=".$userinfo['thold']; }
   $story_link = "<a href=\"modules.php?name=News&amp;file=article&amp;sid=$s_sid$r_options\">";
   $morelink = "(";
   if ($fullcount > 0 OR $c_count > 0 OR $articlecomm == 0 OR $acomm == 1) {
       $morelink .= "$story_link<b>"._READMORE."</b></a> | ";
   } else {
       $morelink .= "";
   }
   if ($fullcount > 0) { $morelink .= "$totalcount "._BYTESMORE." | "; }
   if ($articlecomm == 1 AND $acomm == 0) {
       if ($c_count == 0) { $morelink .= "$story_link"._COMMENTSQ."</a>"; } elseif ($c_count == 1) { $morelink .= "$story_link$c_count "._COMMENT."</a>"; } elseif ($c_count > 1) { $morelink .= "$story_link$c_count "._COMMENTS."</a>"; }
   }
   $sid = intval($s_sid);
   if ($catid != 0) {
       $row3 = $db->sql_fetchrow($db->sql_query("SELECT title FROM ".$prefix."_stories_cat WHERE catid='$catid'"));
       $title1 = check_words(check_html($row3['title'], "nohtml"));
       $title = "<a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\"><font class=\"storycat\">$title1</font></a>: $title";
       $morelink .= " | <a href=\"modules.php?name=News&amp;file=categories&amp;op=newindex&amp;catid=$catid\">$title1</a>";
   }
   if ($score != 0) {
       $rated = substr($score / $ratings, 0, 4);
   } else {
       $rated = 0;
   }
   $morelink .= " | "._SCORE." $rated";
   $morelink .= ")";
   $morelink = str_replace(" |  | ", " | ", $morelink);
   themeindex($aid, $informant, $datetime, $title, $counter, $topic, $hometext, $notes, $morelink, $topicname, $topicimage, $topictext);
    }
    include("footer.php");
}

function rate_article($sid, $score) {
    global $prefix, $db, $ratecookie, $sitename, $r_options;
    $score = intval($score);
    $random_num = intval($random_num);
    $sid = intval($sid);
    if ($score) {
   if ($score > 5) { $score = 5; }
   if ($score < 1) { $score = 1; }
   if ($score != 1 AND $score != 2 AND $score != 3 AND $score != 4 AND $score != 5) {
       Header("Location: index.php");
       die();
   }
   if (isset($ratecookie)) {
       $rcookie = base64_decode($ratecookie);
       $rcookie = addslashes($rcookie);
       $r_cookie = explode(":", $rcookie);
   }
   for ($i=0; $i < sizeof($r_cookie); $i++) {
       if ($r_cookie[$i] == $sid) {
      $a = 1;
       }
   }
   if ($a == 1) {
       Header("Location: modules.php?name=News&op=rate_complete&sid=$sid&rated=1");
   } else {
       $result = $db->sql_query("update ".$prefix."_stories set score=score+$score, ratings=ratings+1 where sid='$sid'");
       $info = base64_encode("$rcookie$sid:");
       setcookie("ratecookie","$info",time()+3600);
       update_points(7);
       Header("Location: modules.php?name=News&op=rate_complete&sid=$sid$r_options");
   }
    } else {
   include("header.php");
   title("$sitename: "._ARTICLERATING."");
   OpenTable();
   echo "<center>"._DIDNTRATE."<br><br>"
       .""._GOBACK."</center>";
   CloseTable();
   include("footer.php");
    }
}

function rate_complete($sid, $rated=0) {
    global $sitename, $user, $cookie, $userinfo;
    $sid = intval($sid);   
    $r_options = "";
    if (is_user($user)) {
   getusrinfo($user);
   if (isset($userinfo['umode'])) { $r_options .= "&amp;mode=".$userinfo['umode']; }
   if (isset($userinfo['uorder'])) { $r_options .= "&amp;order=".$userinfo['uorder']; }
   if (isset($userinfo['thold'])) { $r_options .= "&amp;thold=".$userinfo['thold']; }
    }
    include("header.php");
    title("$sitename: "._ARTICLERATING."");
    OpenTable();
    if ($rated == 0) {
   echo "<center>"._THANKSVOTEARTICLE."<br><br>"
       ."[ <a href=\"modules.php?name=News&amp;file=article&amp;sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
    } elseif ($rated == 1) {
   echo "<center>"._ALREADYVOTEDARTICLE."<br><br>"
       ."[ <a href=\"modules.php?name=News&amp;file=article&amp;sid=$sid$r_options\">"._BACKTOARTICLEPAGE."</a> ]</center>";
    }
    CloseTable();
    include("footer.php");
}

if (!(isset($new_topic))) { $new_topic = 0; }
if (!(isset($op))) { $op = ""; }
if (!(isset($random_num))) { $random_num = ""; }
if (!(isset($gfx_check))) { $gfx_check = ""; }
if (!(isset($rated))) { $rated = 0; }
if (!(isset($score))) { $score = 0; }

switch ($op) {

    default:
    theindex($new_topic);
    break;

    case "rate_article":
    rate_article($sid, $score);
    break;

    case "rate_complete":
    rate_complete($sid, $rated);
    break;

}

?>

_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
matteoiamma
Moderatore
Moderatore


Registrato: May 17, 2008
Messaggi: 531
Località: Torremaggiore(Foggia)

MessaggioInviato: Mer Feb 24, 2010 4:49 pm    Oggetto: Rispondi citando

???

Ma questo è file index.php originale!!

Devi postarmi quello della mod che hai scaricato
_________________
Non inviatemi messaggi privati o email,
gratis aiuto solo sui forum.
CLEANUKE.IT - CLEAN NUKE OFFICIAL COMMUNITY
MATTEOIAMMARRONE.COM
FORUMRAGAZZI.IT
Torna in cima
Profilo Messaggio privato Invia email HomePage MSN Messenger
nonsoloprogrammi
Maestro
Maestro


Registrato: Jan 17, 2009
Messaggi: 332
Località: guardia sanframondi

MessaggioInviato: Gio Feb 25, 2010 5:23 pm    Oggetto: Rispondi citando

Grazie matteo.. cmq ho risolto faccendo cosi...
scrivo la soluzione magari puo servire a qualcuno:
Da
Codice:
if (!eregi("modules.php", $PHP_SELF)) {
    die ("You can't access this file directly...");
}

$index = 1;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);


o meso cosi


Codice:

$index = 0;
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
get_lang($module_name);



Sembra che vada tutto.. Grazie a tutti
_________________
i miei siti http://www.nonsoloprogrammi.it http://www.mondophpnuke.com e http://www.chatgiovani.com
Torna in cima
Profilo Messaggio privato HomePage MSN Messenger
Mostra prima i messaggi di:   
Nuovo Topic   Topic chiuso    Indice del forum -> Moduli, Blocchi e Addons Tutti i fusi orari sono GMT + 1 ora
Pagina 1 di 1

 
Vai a:  
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
Tema Creato da Queen_live78 © 2007