» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 74
0 members and 74 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Oral Chelation - initial cleansing of your veins & arteries

Register Now! Contact Us

About this Page
This is a discussion on block-subSystem-Forum.php works with Splatt forums? within the Purged Topics forums, part of the NM Staff category; The block-subSystem-Forum.php is formatted for Splatt forums, not sure if i downloaded a messed up pack or ...


Go Back   Nukemods Forum » NM Staff » Purged Topics

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-28-2003, 10:52 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
block-subSystem-Forum.php works with Splatt forums?
The block-subSystem-Forum.php is formatted for Splatt forums, not sure if i downloaded a messed up pack or what happened, in any case if the block is in effect incorrect here is the correct code for Nuke 6.0 and bbtonuke 2.0.6:
Code:
<?php

########################################################################
# PHP-Nuke Block: subSystem Center Forum Block v.9                     #
# Made for PHP-Nuke 6.* and the phpbb2 Nuke port 2.06 only             #
#                                                                      #
# Made by coldblooded http://www.hellhole.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 you modify this, let me know for fun. =)                          #
########################################################################

if (eregi("block-subSystem-Forum.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}

global $prefix, $dbi, $sitename, $admin;
$HideViewReadOnly = 1;
$Last_New_Topics  = 5;
$show = "  <tr>
    <td height=\"25\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"modules/Forums/templates/subSystem/images/cellpic1.gif\"></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_time  DESC LIMIT 10", $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( $skip_display == 0 )
   {
          $Count_Topics += 1;
$result2 = sql_query("SELECT uname, uid FROM ".$prefix."_users where uid='$topic_poster'", $dbi);
list($uname, $uid)=sql_fetch_row($result2, $dbi);
$avtor=$uname;
$sifra=$uid;
$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 uname, uid FROM ".$prefix."_users where uid='$poster_id'", $dbi);
list($uname, $uid)=sql_fetch_row($result4, $dbi);
                              $viewlast .="  <tr>
    <td height=\"34\" nowrap bgcolor=\"#C1C1C1\" class=\"row1\"><img src=\"modules/Forums/templates/subSystem/images/folder_new.gif\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"#C1C1C1\" class=\"row1\"><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">$topic_title</a></td>
    <td align=\"center\" bgcolor=\"#D4D4D4\" class=\"row3\"><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$sifra\">$avtor</a></td>
    <td align=\"center\" nowrap bgcolor=\"#D4D4D4\" class=\"row3\"><font size=\"-2\">$post_time</font>

      <a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$uid\">$uname</a><a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"></a><img src=\"modules/Forums/templates/subSystem/images/icon_minipost_new.gif\"></td>
  </tr>";
}
   if( $Last_New_Topics == $Count_Topics ) { break 1; }
}
    $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
  <tr>
    <td bgcolor=\"#000000\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td bgcolor=\"#ADADAD\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">
  <tr>
    <th height=\"23\" colspan=\"2\" align=\"center\" nowrap background=\"modules/Forums/templates/subSystem/images/cellpic3.gif\" class=\"thcornerl\"><font color=\"#FFcc00\">Topics</font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"modules/Forums/templates/subSystem/images/cellpic3.gif\" class=\"thtop\"><font color=\"#FFcc00\">Author</font></th>
    <th align=\"center\" nowrap background=\"modules/Forums/templates/subSystem/images/cellpic3.gif\" class=\"thcornerr\"><font color=\"#FFcc00\">Last Post</font></th>
  </tr>";
    $content .= "$viewlast";
 $content .= "$show";

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2003, 11:36 PM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
That's wierd. I just downloaded the pack-subSystem and the block code is correct...goofy...
hay this isn't a tarball thing?..that's a zip file now there ace..hehe

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2003, 11:58 PM
Moderator
 
Join Date: Jan 2003
Posts: 338
When i'm involved anything can happen, maybe i modified it myself and don't remember? Not to worry though, i've already applied for my old age S.S. benefits and have already been accepted in a shelter for the mentally challenged.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Forum center block pulling info from two forums? Liqid Nuke 7.x - Blocks 0 09-03-2005 12:19 PM
new: Splatt Forums database into your phpBB Forums database Martin Purged Topics 2 03-01-2003 08:47 PM
subSystem forums moderator column IACOJ Purged Topics 4 01-31-2003 09:30 PM
Using User info block and it works but displays wrong... BorgX Purged Topics 2 01-25-2003 06:11 AM
SubSystem Forums! CHEEKZ Theme packs 2 01-13-2003 08:18 PM


All times are GMT -5. The time now is 08:01 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31