Logo for Maserati theme...

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   re: Logo for Maserati theme...
lumax
CZ Super Newbie
usa.gif alaska.gif
Gender: Male
Status: Offline
Joined: Nov 14, 2003
0.01 posts per day
Posts: 60
Points: 3,953
   
I couldnt attach the file because it has a php extension so heres the code:

<?php

##############################################################################
# PHP-Nuke Block: Maserati_V2 Center Forum Block v.1.0                      #
# Made for PHP-Nuke 6.5+                                           #
# Made by Telli http://www.codezwiz.com                                      #
# Original script from [ Register or login to view links on this board. ] (I just changed it to fit the theme) #
# This block is made only to match the Maserati_V2 Theme pack                #
##############################################################################

if (eregi("block-Maserati_V2-Forum.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
   
global $prefix, $dbi, $sitename, $admin;

$HideViewReadOnly = 1;
          
$Last_New_Topics  = 5;
$show = "  <tr>
    <td height=\"28\" colspan=\"6\" align=\"center\" class=\"forumline\"> ;;</td>
  </tr>
</table></td>
        </tr>
      </table></td>
  </tr>
</table>";

$Count_Topics = 0;
$Topic_Buffer = "";
$result = 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", $dbi );
while( list( $topic_id, $forum_id, $topic_last_post_id, $topic_title, $topic_poster, $topic_views, $topic_replies, $topic_moved_id ) = sql_fetch_row( $result, $dbi ) )

{
   $skip_display = 0;
   if( $HideViewReadOnly == 1 )
   {
      $result1 = sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'", $dbi );
      list( $auth_view, $auth_read ) = sql_fetch_row( $result1, $dbi );
      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 = sql_query("SELECT username, user_id FROM ".$prefix."_users where user_id='$topic_poster'", $dbi);
list($username, $user_id)=sql_fetch_row($result2, $dbi);
$avtor=$username;
$sifra=$user_id;

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

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

                         $viewlast .="  <tr>
    <td height=\"30\" nowrap class=\"row1\"><img src=\"themes/Maserati_V2/forums/images/folder_new.gif\" border=\"0\" /></td>
    <td width=\"100%\" class=\"row1\" onclick=\"window.location.href='modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id'\"> ;;<a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">$topic_title</a></td>
    <td align=\"center\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" class=\"row3\"><a href=\"forum-userprofile-.html$sifra\">$avtor</a></td>
    <td align=\"center\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap class=\"row3\"><font size=\"-2\"><i> ;; ;;$post_time ;;</i></font><br>
      <a href=\"forum-userprofile-.html$user_id\">$username</a> ;;<a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"></a><img src=\"themes/Maserati_V2/forums/images/icon_minipost_new.gif\" border=\"0\" alt=\"View Latest Post\"></a></td>
  </tr>";
}
   
   if( $Last_New_Topics == $Count_Topics ) { break 1; }
   
}

    $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td class=\"row3\"><table width=\"100%\" border=\"1\" cellpadding=\"1\" cellspacing=\"1\" class=\"bodyline\">
  <tr>
    <th height=\"25\" colspan=\"2\" align=\"center\" nowrap class=\"thcornerl\"><strong>Topics</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap class=\"thtop\"><strong> ;;Replies ;;</strong></font></th>
    <th width=\"100\" align=\"center\" nowrap class=\"thtop\"><strong> ;;Author ;;</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap class=\"row3\"><strong> ;;Views ;;</strong></font></th>
    <th align=\"center\" nowrap class=\"row3\"><strong> ;;Last Post ;;</strong></font></th>
  </tr>";
    $content .= "$viewlast";

$content .= "$show";

?>




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum