Visualizzazione risultati 1 fino 8 di 8

Discussione: Phpnuke

  1. #1
    Guest

    Predefinito

    Come faccio per fare in modo ke nel forum phpBB di phpnuke venga fuori nei post

    Registrato: 27 Mar 2003

    invece di

    Registrato: Jun 25, 2003

  2. #2
    L'avatar di Evcz
    Evcz non è connesso Utente storico
    Data registrazione
    31-05-2002
    Residenza
    Vicenza
    Messaggi
    5,670

    Predefinito

    io per fare ciò ho modificato il modulo your_account infatti la data di registrazione viene registrata in formato testo all'interno del database..

    attento ke se modifiki il modo in cui viene registrata la data devi anke modificare il blocco user info (quello ke ti dice quante persone si sn registrate)


    byez
    There are three kinds of people in this world: people who watch things happen ... people who complain about things that happen ... and people who make things happen...

  3. #3
    Guest

    Predefinito

    Devo modificare

    qs

    $user_regdate = date("M d, Y");

    in

    $user_regdate = date("d M Y");

    Giusto??

    E poi gli utenti ke si sn già registrati li modifico manualmente. Giusto??

    Nel blokko cosa devo modificare??

  4. #4
    L'avatar di Evcz
    Evcz non è connesso Utente storico
    Data registrazione
    31-05-2002
    Residenza
    Vicenza
    Messaggi
    5,670

    Predefinito

    giusto...

    xrò traduci il mese.....
    così:

    [code:1:d5943775cd] $user_regdate = date("d M Y");
    $user_regdate = str_replace("Jan","Gen", $user_regdate);
    $user_regdate = str_replace("Feb","Feb", $user_regdate);
    $user_regdate = str_replace("Mar","Mar", $user_regdate);
    $user_regdate = str_replace("Apr","Apr", $user_regdate);
    $user_regdate = str_replace("May","Mag", $user_regdate);
    $user_regdate = str_replace("Jun","Giu", $user_regdate);
    $user_regdate = str_replace("Jul","Lug", $user_regdate);
    $user_regdate = str_replace("Aug","Ago", $user_regdate);
    $user_regdate = str_replace("Sep","Set", $user_regdate);
    $user_regdate = str_replace("Oct","Ott", $user_regdate);
    $user_regdate = str_replace("Nov","Nov", $user_regdate);
    $user_regdate = str_replace("Dec","Dic", $user_regdate);[/code:1:d5943775cd]

    il blocco io l'ho modificato così:

    [code:1:d5943775cd]<?php

    // fixed with secfix3 for phpnuke 6.5 by nukecops
    // modded by evcz for language italian (date stored like "25 Mag 2003")
    /************************************************** **********/
    /* */
    /* Updated for PHP-Nuke 5.6 - 18 Jun 2002 NukeScripts */
    /* website http://www.nukescripts.com */
    /* */
    /* Updated for PHP-Nuke 5.5 - 24/03/2002 Rugeri */
    /* website http://newsportal.homip.net */
    /* */
    /* (C) 2002 */
    /* All rights beyond the GPL are reserved */
    /* */
    /* Please give a link back to my site somewhere in your own */
    /* */
    /************************************************** **********/

    if (eregi("block-User_Info.php",$_SERVER['PHP_SELF']&# 41;) {
    Header("Location: index.php");
    }

    $content = "";

    global $user, $cookie, $prefix, $user_prefix, $db, $anonymous, $sitekey;
    mt_srand ((double)microtime()*1000000&# 41;;
    $maxran = 1000000;
    $random_num = mt_rand(0, $maxran);
    $datekey = date("F j");
    $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT&#9 3; . $sitekey . $random_num . $datekey));
    $code = substr($rcode, 2, 10);
    cookiedecode($user);
    $uname = $cookie[1];

    $sql = "SELECT username FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $lastuser = $row[username];
    $numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM $user_prefix"._users.""));

    $sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=0";
    $result = $db->sql_query($sql);
    $member_online_num = $db->sql_numrows($result);
    $who_online_now = "";
    $i = 1;
    while ($session = $db->sql_fetchrow($result)) {
    if (isset($session["guest"] ) and $session["guest"] == 0) {
    if ($i < 10) {
    $who_online_now .= "0$i: <A HREF=\"modules.php?name=Your_Account& op=userinfo&username=$session[uname&#9 3;\">$session[uname]</a><br>\n";
    } else {
    $who_online_now .= "$i: <A HREF=\"modules.php?name=Your_Account& op=userinfo&username=$session[uname&#9 3;\">$session[uname]</a><br>\n";
    }
    $who_online_now .= ($i != $member_online_num ? " " : "");
    $i++;
    }
    }
    $Today = getdate();
    //Formatting Current Date
    $Today['month'] = str_replace("January","Gen&quot ;, $Today['month']);
    $Today['month'] = str_replace("February","Feb&quo t;, $Today['month']);
    $Today['month'] = str_replace("Mar","Mar", $Today['month']);
    $Today['month'] = str_replace("Apr","Apr", $Today['month']);
    $Today['month'] = str_replace("May","Mag", $Today['month']);
    $Today['month'] = str_replace("June","Giu", $Today['month']);
    $Today['month'] = str_replace("July","Lug", $Today['month']);
    $Today['month'] = str_replace("Aug","Ago", $Today['month']);
    $Today['month'] = str_replace("Sep","Set", $Today['month']);
    $Today['month'] = str_replace("Oct","Ott", $Today['month']);
    $Today['month'] = str_replace("Nov","Nov", $Today['month']);
    $Today['month'] = str_replace("Dec","Dic", $Today['month']);

    $month = $Today['month'];
    $mday = $Today['mday'];
    $year = $Today['year'];
    //Formatting Previous Date
    $pmonth = $Today['month'];
    $pmday = $Today['mday'];
    $pmday = $mday-1;
    $pyear = $Today['year'];
    //Creating SQL parameter
    $curDate2 = "%".$mday."%".$month."%&q uot;.$year."%";

    $curDateP = "%".$pmday."%".$pmonth."% ".$pyear."%";

    //Executing SQL Today
    $sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $userCount = $row[userCount];
    //end

    //Executing SQL ieri
    $sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $userCount2 = $row[userCount];
    //end

    $guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=1"));
    $member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=0"));

    $who_online_num = $guest_online_num + $member_online_num;

    if (is_user($user)) {
    $content .= "<br><img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$uname</b>.<br>\n<hr>\n";
    $sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$uname'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $uid = $row[user_id];
    $newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='5' OR privmsgs_type='1')"));
    $oldpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND privmsgs_type='0'"));
    $content .= "<img src=\"images/blocks/email-y.gif\" height=\"10\" width=\"14\"> <a href=\"modules.php?name=Private_Messages\&quo t;><b>"._BPM."</b></a><br>\n";
    $content .= "<img src=\"images/blocks/email-r.gif\" height=\"10\" width=\"14\"> "._BUNREAD.": <b>$newpms</b><br>\n";
    $content .= "<img src=\"images/blocks/email-g.gif\" height=\"10\" width=\"14\"> "._BREAD.": <b>$oldpms</b><br>\n<hr>\n";
    } else {
    $content .= "<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$anonymous</b>\n<hr>";
    $content .="<form action=\"modules.php?name=Your_Account\" method=\"post\">\n";
    $content .=""._USERLOGIN."<br>\n" ;
    $content .="<table border=\"0\"><tr><td>\n&q uot;;
    $content .=""._NICKNAME.":</td></tr>\n";
    $content .="<tr><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"></td></tr>\n";
    $content .="<tr><td>"._PASSWORD.&quot ;:</td></tr>\n";
    $content .="<tr><td><input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\"></td></tr>\n";
    /* if (extension_loaded("gd")&# 41; {
    $content .="<tr><td colspan='2'>"._SECURITYCODE."<img src='modules.php?name=Your_Account&op=gfx& random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";
    $content .="<tr><td colspan='2'>"._TYPESECCODE."<input type=\"text\" NAME=\"gfx_check\" SIZE=\"15\" MAXLENGTH=\"10\"></td></tr>\n";
    $content .="<input type=\"hidden\" name=\"random_num\" value=\"921978\">\n";
    $content .="<input type=\"hidden\" name=\"gfx_check\" value=\"273741\">\n";
    }*/
    $content .="</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
    $content .="<input type=\"hidden\" name=\"mode\" value=$mode>\n";
    $content .="<input type=\"hidden\" name=\"f\" value=$f>\n";
    $content .="<input type=\"hidden\" name=\"t\" value=$t>\n";
    $content .="<input type=\"hidden\" name=\"op\" value=\"login\">\n";
    $content .="<input type=\"submit\" value=\""._LOGIN."\"></form><br>\n\n";
    $content .= "<center><font class=\"content\">"._ASREGISTERE D."</font></center><hr>";
    }
    $registratiTotali=$numrows-1;
    $content .= "<img src=\"images/blocks/group-2.gif\" height=\"14\" width=\"17\"> <b><u>"._BMEMP.":</u></b><br>\n";
    $content .= "<img src=\"images/blocks/ur-moderator.gif\" height=\"14\" width=\"17\"> "._BLATEST.": <A HREF=\"modules.php?name=Your_Account& op=userinfo&username=$lastuser\">& lt;b>$lastuser</b></a><br>\n";
    $content .= "<img src=\"images/blocks/ur-author.gif\" height=\"14\" width=\"17\"> "._BTD.": <b>$userCount</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-admin.gif\" height=\"14\" width=\"17\"> "._BYD.": <b>$userCount2</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-guest.gif\" height=\"14\" width=\"17\"> "._BOVER.": <b>$registratiTotali</b><br>\n<hr>\n";
    $content .= "<img src=\"images/blocks/group-3.gif\" height=\"14\" width=\"17\"> <b><u>"._BVISIT.":&lt ;/u></b>\n<br>\n";
    $content .= "<img src=\"images/blocks/ur-anony.gif\" height=\"14\" width=\"17\"> "._BVIS.": <b>$guest_online_num</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-member.gif\" height=\"14\" width=\"17\"> "._BMEM.": <b>$member_online_num</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-registered.gif\" height=\"14\" width=\"17\"> "._BTT.": <b>$who_online_num</b><br>\n";
    if ($member_online_num > 0) {
    $content .= "<hr>\n<img src=\"images/blocks/group-1.gif\" height=\"14\" width=\"17\"> <b><u>"._BON.":</u></b><br>$who_online_now";
    }
    ?>[/code:1:d5943775cd]

    byez
    There are three kinds of people in this world: people who watch things happen ... people who complain about things that happen ... and people who make things happen...

  5. #5
    Guest

    Predefinito

    perke

    $Today['month'] = str_replace("January","Gen", $Today['month']);
    $Today['month'] = str_replace("February","Feb", $Today['month']);


    qsdue hanno il mese nel formato lungo mentre gli altri sn abbreviati?

  6. #6
    L'avatar di Evcz
    Evcz non è connesso Utente storico
    Data registrazione
    31-05-2002
    Residenza
    Vicenza
    Messaggi
    5,670

    Predefinito

    Citazione Originalmente inviato da avatar
    perke

    $Today['month'] = str_replace("January","Gen", $Today['month']);
    $Today['month'] = str_replace("February","Feb", $Today['month']);


    qsdue hanno il mese nel formato lungo mentre gli altri sn abbreviati?


    mi sn dimenticato di cambiare gli altri... (se guardi ho anke cambiato june e july )

    cmq vanno tutti lunghi (l'array today[] contiene il mese in formato intero)

    nel tuo caso devi anke togliere i commenti a fianko della scrittura del secority code che io ho disabilitato e quindi nn uso....

    eccotelo completo e interamente tradotto:
    [code:1:1cb2f13af8]<?php

    // fixed with secfix3 for phpnuke 6.5 by nukecops
    // modded by evcz for language italian (date stored like "25 Mag 2003")
    /************************************************** **********/
    /* */
    /* Updated for PHP-Nuke 5.6 - 18 Jun 2002 NukeScripts */
    /* website http://www.nukescripts.com */
    /* */
    /* Updated for PHP-Nuke 5.5 - 24/03/2002 Rugeri */
    /* website http://newsportal.homip.net */
    /* */
    /* (C) 2002 */
    /* All rights beyond the GPL are reserved */
    /* */
    /* Please give a link back to my site somewhere in your own */
    /* */
    /************************************************** **********/

    if (eregi("block-User_Info.php",$_SERVER['PHP_SELF']&# 41;) {
    Header("Location: index.php");
    }

    $content = "";

    global $user, $cookie, $prefix, $user_prefix, $db, $anonymous, $sitekey;
    mt_srand ((double)microtime()*1000000&# 41;;
    $maxran = 1000000;
    $random_num = mt_rand(0, $maxran);
    $datekey = date("F j");
    $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT&#9 3; . $sitekey . $random_num . $datekey));
    $code = substr($rcode, 2, 10);
    cookiedecode($user);
    $uname = $cookie[1];

    $sql = "SELECT username FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $lastuser = $row[username];
    $numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM $user_prefix"._users.""));

    $sql = "SELECT uname, guest FROM $prefix"._session." WHERE guest=0";
    $result = $db->sql_query($sql);
    $member_online_num = $db->sql_numrows($result);
    $who_online_now = "";
    $i = 1;
    while ($session = $db->sql_fetchrow($result)) {
    if (isset($session["guest"] ) and $session["guest"] == 0) {
    if ($i < 10) {
    $who_online_now .= "0$i: <A HREF=\"modules.php?name=Your_Account& op=userinfo&username=$session[uname&#9 3;\">$session[uname]</a><br>\n";
    } else {
    $who_online_now .= "$i: <A HREF=\"modules.php?name=Your_Account& op=userinfo&username=$session[uname&#9 3;\">$session[uname]</a><br>\n";
    }
    $who_online_now .= ($i != $member_online_num ? " " : "");
    $i++;
    }
    }
    $Today = getdate();
    //Formatting Current Date
    $Today['month'] = str_replace("January","Gen&quot ;, $Today['month']);
    $Today['month'] = str_replace("February","Feb&quo t;, $Today['month']);
    $Today['month'] = str_replace("March","Mar", $Today['month']);
    $Today['month'] = str_replace("April","Apr", $Today['month']);
    $Today['month'] = str_replace("May","Mag", $Today['month']);
    $Today['month'] = str_replace("June","Giu", $Today['month']);
    $Today['month'] = str_replace("July","Lug", $Today['month']);
    $Today['month'] = str_replace("August","Ago" , $Today['month']);
    $Today['month'] = str_replace("September","Set&qu ot;, $Today['month']);
    $Today['month'] = str_replace("October","Ott&quot ;, $Today['month']);
    $Today['month'] = str_replace("November","Nov&quo t;, $Today['month']);
    $Today['month'] = str_replace("December","Dic&quo t;, $Today['month']);

    $month = $Today['month'];
    $mday = $Today['mday'];
    $year = $Today['year'];
    //Formatting Previous Date
    $pmonth = $Today['month'];
    $pmday = $Today['mday'];
    $pmday = $mday-1;
    $pyear = $Today['year'];
    //Creating SQL parameter
    $curDate2 = "%".$mday."%".$month."%&q uot;.$year."%";

    $curDateP = "%".$pmday."%".$pmonth."% ".$pyear."%";

    //Executing SQL Today
    $sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $userCount = $row[userCount];
    //end

    //Executing SQL ieri
    $sql = "SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $userCount2 = $row[userCount];
    //end

    $guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=1"));
    $member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest=0"));

    $who_online_num = $guest_online_num + $member_online_num;

    if (is_user($user)) {
    $content .= "<br><img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$uname</b>.<br>\n<hr>\n";
    $sql = "SELECT user_id FROM $user_prefix"._users." WHERE username='$uname'";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $uid = $row[user_id];
    $newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='5' OR privmsgs_type='1')"));
    $oldpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND privmsgs_type='0'"));
    $content .= "<img src=\"images/blocks/email-y.gif\" height=\"10\" width=\"14\"> <a href=\"modules.php?name=Private_Messages\&quo t;><b>"._BPM."</b></a><br>\n";
    $content .= "<img src=\"images/blocks/email-r.gif\" height=\"10\" width=\"14\"> "._BUNREAD.": <b>$newpms</b><br>\n";
    $content .= "<img src=\"images/blocks/email-g.gif\" height=\"10\" width=\"14\"> "._BREAD.": <b>$oldpms</b><br>\n<hr>\n";
    } else {
    $content .= "<img src=\"images/blocks/group-4.gif\" height=\"14\" width=\"17\"> "._BWEL.", <b>$anonymous</b>\n<hr>";
    $content .="<form action=\"modules.php?name=Your_Account\" method=\"post\">\n";
    $content .=""._USERLOGIN."<br>\n" ;
    $content .="<table border=\"0\"><tr><td>\n&q uot;;
    $content .=""._NICKNAME.":</td></tr>\n";
    $content .="<tr><td><input type=\"text\" name=\"username\" size=\"15\" maxlength=\"25\"></td></tr>\n";
    $content .="<tr><td>"._PASSWORD.&quot ;:</td></tr>\n";
    $content .="<tr><td><input type=\"password\" name=\"user_password\" size=\"15\" maxlength=\"20\"></td></tr>\n";
    if (extension_loaded("gd")&# 41; {
    $content .="<tr><td colspan='2'>"._SECURITYCODE."<img src='modules.php?name=Your_Account&op=gfx& random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n";
    $content .="<tr><td colspan='2'>"._TYPESECCODE."<input type=\"text\" NAME=\"gfx_check\" SIZE=\"15\" MAXLENGTH=\"10\"></td></tr>\n";
    $content .="<input type=\"hidden\" name=\"random_num\" value=\"921978\">\n";
    $content .="<input type=\"hidden\" name=\"gfx_check\" value=\"273741\">\n";
    }
    $content .="</table><input type=\"hidden\" name=\"redirect\" value=$redirect>\n";
    $content .="<input type=\"hidden\" name=\"mode\" value=$mode>\n";
    $content .="<input type=\"hidden\" name=\"f\" value=$f>\n";
    $content .="<input type=\"hidden\" name=\"t\" value=$t>\n";
    $content .="<input type=\"hidden\" name=\"op\" value=\"login\">\n";
    $content .="<input type=\"submit\" value=\""._LOGIN."\"></form><br>\n\n";
    $content .= "<center><font class=\"content\">"._ASREGISTERE D."</font></center><hr>";
    }
    $registratiTotali=$numrows-1;
    $content .= "<img src=\"images/blocks/group-2.gif\" height=\"14\" width=\"17\"> <b><u>"._BMEMP.":</u></b><br>\n";
    $content .= "<img src=\"images/blocks/ur-moderator.gif\" height=\"14\" width=\"17\"> "._BLATEST.": <A HREF=\"modules.php?name=Your_Account& op=userinfo&username=$lastuser\">& lt;b>$lastuser</b></a><br>\n";
    $content .= "<img src=\"images/blocks/ur-author.gif\" height=\"14\" width=\"17\"> "._BTD.": <b>$userCount</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-admin.gif\" height=\"14\" width=\"17\"> "._BYD.": <b>$userCount2</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-guest.gif\" height=\"14\" width=\"17\"> "._BOVER.": <b>$registratiTotali</b><br>\n<hr>\n";
    $content .= "<img src=\"images/blocks/group-3.gif\" height=\"14\" width=\"17\"> <b><u>"._BVISIT.":&lt ;/u></b>\n<br>\n";
    $content .= "<img src=\"images/blocks/ur-anony.gif\" height=\"14\" width=\"17\"> "._BVIS.": <b>$guest_online_num</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-member.gif\" height=\"14\" width=\"17\"> "._BMEM.": <b>$member_online_num</b><br>\n";
    $content .= "<img src=\"images/blocks/ur-registered.gif\" height=\"14\" width=\"17\"> "._BTT.": <b>$who_online_num</b><br>\n";
    if ($member_online_num > 0) {
    $content .= "<hr>\n<img src=\"images/blocks/group-1.gif\" height=\"14\" width=\"17\"> <b><u>"._BON.":</u></b><br>$who_online_now";
    }
    ?>
    [/code:1:1cb2f13af8]

    byez
    There are three kinds of people in this world: people who watch things happen ... people who complain about things that happen ... and people who make things happen...

  7. #7
    Guest

    Predefinito

    Nel mio user Info nn c'è il securityCode...

    cmq come faccio a toglierlo anke dal Your account

  8. #8
    Guest

    Predefinito

    Citazione Originalmente inviato da avatar
    Nel mio user Info nn c'è il securityCode...

    cmq come faccio a toglierlo anke dal Your account
    COme Faccio?

Regole di scrittura

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