Nyitólap | Regisztráció | Kapcsolat | English |   
  
PHP-Nuke PHP-Nuke
PHP-Nuke Portál :: Téma megtekintése - Forum center Block
 Gy.I.K.Gy.I.K.   KeresésKeresés   CsoportokCsoportok   ProfilProfil   Üzeneteid olvasásához jelentkezz beÜzeneteid olvasásához jelentkezz be   BelépésBelépés 




Mielőtt feltennéd a kérdésed, kérlek használd a Fórum keresőjét! Lehet, hogy a kérdés már szerepel a fórumban és meg is van válaszolva.
Hozzászólásodban ne használd a <javascript></javascript> valamint <SCRIPT></SCRIPT> html tag-eket, módosítva használd pl.: <javas*cript>

Forum center Block

 
Új téma nyitása   Hozzászólás a témához    Tartalomjegyzék -> GoogleTap - NExtGen
Előző téma megtekintése :: Következő téma megtekintése  
Szerző Üzenet
polgar
Dr.NukeR
Dr.NukeR


Csatlakozott: Nov 26, 2004
Hozzászólások: 575


HozzászólásElküldve: 2005. December 29. Csütörtök, 14:06    Hozzászólás témája: Forum center Block Hozzászólás az előzmény idézésével

Az lenne a kérdésem hogy nincs valakinek forum center blokk next gen változata mert nem tom átirni.
_________________
Keress egy kis zsebpénzt.
http://earn.nu/?r=gidacska
Regisztrálj.A többit mailbe elmondom! probert79@gmail.com keress!!
Vissza az elejére
Felhasználó profiljának megtekintése Privát üzenet küldése Email küldése Felhasználó weblapjának megtekintése
black71
Adminisztrátor
Adminisztrátor


Csatlakozott: Oct 21, 2004
Hozzászólások: 4753


HozzászólásElküldve: 2006. Január 3. Kedd, 10:04    Hozzászólás témája: : Forum center Block Hozzászólás az előzmény idézésével

Nuker-en ezt hasznalom:
Kód:

<?php

/************************************************************************/
/* PHP-NUKE: Block: block-Center-Forum_GT.php                           */
/* ===========================                                          */
/*                                                                      */
/* 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.       */
/************************************************************************/
/* Google Tap modifications                                             */
/* Copyright (c) 2004 by black                                          */
/* http://www.NukeR.hu                                                 */
/************************************************************************/

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

global $prefix, $db, $sitename, $admin, $bgcolor1, $viewlast, $user_prefix;

$HideViewReadOnly = 1;
$ThemeSel = get_theme();
if (is_admin($admin)) {
   $Last_New_Topics  = 50;
} else {
   $Last_New_Topics  = 10;
}
$show = "  <tr>
    <td height=\"25\" colspan=\"6\" align=\"center\" background=\"themes/$ThemeSel/forums/images/cellpic1.gif\"> </td>
  </tr>
</table></td>
        </tr>
      </table></td>
  </tr>
</table>";

$Count_Topics = 0;
$Topic_Buffer = "";
$result = $db->sql_query( "SELECT topic_id, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id FROM ".$prefix."_bbtopics ORDER BY topic_last_post_id DESC");
while( list( $topic_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = $db->sql_fetchrow($result) )

{
   $skip_display = 0;
   if( $HideViewReadOnly == 1 )
   {
      $result1 = $db->sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $db );
      list( $auth_view, $auth_read ) = $db->sql_fetchrow( $result1, $db );
      if( ( $auth_view != 0 ) or ( $auth_read != 0 ) ) { $skip_display = 1; }
   }

   if( $topic_moved_id != 0 )
   {
     // Shadow Topic !!
      $skip_display = 1;
   }

   if( $skip_display == 0 )
   {
     $Count_Topics += 1;

$result2 = $db->sql_query("SELECT username, user_id FROM ".$user_prefix."_users where user_id='$topic_poster'");
list($username, $user_id)=$db->sql_fetchrow($result2);
$avtor=$username;
$sifra=$user_id;

$result3 = $db->sql_query("SELECT poster_id, FROM_UNIXTIME(post_time,'%Y/%m/%d at %H:%i') as post_time FROM ".$prefix."_bbposts where post_id='$topic_last_post_id'");
list($poster_id, $post_time)=$db->sql_fetchrow($result3);

$result4 = $db->sql_query("SELECT username, user_id FROM ".$user_prefix."_users where user_id='$poster_id'");
list($username, $user_id)=$db->sql_fetchrow($result4);

                         $viewlast .= "<tr>
    <td height=\"30\" nowrap bgcolor=\"#FFFFFF\" class=\"row1\"><img src=\"themes/$ThemeSel/forums/images/folder_new.gif\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"#FFFFFF\" class=\"row1\"> <a href=\"ftopicp-$topic_last_post_id.html#$topic_last_post_id\">$topic_title</a></td>
    <td align=\"center\" bgcolor=\"#FFFFFF\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" bgcolor=\"#FFFFFF\" class=\"row3\"><a href=\"forum-userprofile-$sifra.html\">$avtor</a></td>
    <td align=\"center\" bgcolor=\"#FFFFFF\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap bgcolor=\"#FFFFFF\" class=\"row3\"><font size=\"-2\"><i>  $post_time </i></font><br>
    <a href=\"forum-userprofile-$user_id.html\">$username</a> <a href=\"ftopict-$topic_id.html\"><img src=\"themes/$ThemeSel/forums/images/icon_minipost_new.gif\" border=\"0\"></a></td>
  </tr>";
}

   if( $Last_New_Topics == $Count_Topics ) { break 1; }

}

    $content = "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td><div align=\"center\"><a href=\"ftopict-1.html\"><strong>&laquo; F&oacute;rumra vonatkoz&oacute; szab&aacute;lyokat ide kattintva olvashatod el &raquo;</strong></a></div></td>
        <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td bgcolor=\"$bgcolor1\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">
  <tr>
    <th height=\"25\" colspan=\"2\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thcornerl\"><font color=\"#363636\"><strong> "._FTOPICS." </strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thtop\"><font color=\"#363636\"><strong> "._FREPLIES." </strong></font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thtop\"><font color=\"#363636\"><strong> "._FAUTHOR." </strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\" class=\"thtop\"><font color=\"#363636\"><strong> "._FVIEWS." </strong></font></th>
    <th align=\"center\" nowrap background=\"themes/$ThemeSel/forums/images/cellpic3.gif\"><font color=\"#363636\"><strong> "._FLASTPOST." </strong></font></th>
  </tr>";
    $content .= "$viewlast";

 $content .= "$show";

?>

_________________
Vissza az elejére
Felhasználó profiljának megtekintése Privát üzenet küldése Felhasználó weblapjának megtekintése
polgar
Dr.NukeR
Dr.NukeR


Csatlakozott: Nov 26, 2004
Hozzászólások: 575


HozzászólásElküldve: 2006. Január 3. Kedd, 10:37    Hozzászólás témája: : Forum center Block Hozzászólás az előzmény idézésével

Köszi.
_________________
Keress egy kis zsebpénzt.
http://earn.nu/?r=gidacska
Regisztrálj.A többit mailbe elmondom! probert79@gmail.com keress!!
Vissza az elejére
Felhasználó profiljának megtekintése Privát üzenet küldése Email küldése Felhasználó weblapjának megtekintése
Hozzászólások megtekintése elölről:   
Új téma nyitása   Hozzászólás a témához    Tartalomjegyzék -> GoogleTap - NExtGen Időzóna: (GMT +1 óra)
1 / 1 oldal

 
Ugrás:  
Nem készíthetsz új témákat ebben a fórumban
Nem válaszolhatsz egy témára ebben a fórumban
Nem módosíthatod a hozzászólásidat a fórumban
Nem törölheted a hozzászólásaidat a fórumban
Nem szavazhatsz ebben fórumban


Powered by phpBB © 2001, 2005 phpBB Group
PHP-Nuke PHP-Nuke
PHP-Nuke PHP-Nuke
Copyright © 2004-2005 NukeR.hu
Nyitólap
GY.I.K.
Adatvédelem
Impresszum
Médiaajánlat
PHP-Nuke
Apache Szoftver
PHP: Hypertext Preprocessor
MySQL: A világ legnépszerübb nyílt forráskódú adatbázisa
WebTárhely
PHP-Nuke Copyright © 2004 by Francisco Burzi
Védelmet Sentinel Biztosítja
RSS Cikkek
RSS Letöltések
RSS Fórum hozzászólások