Nukemods Forum  
» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 77
9 members and 68 guests
cus3cttombeatsb, cycwcwlinlt2gti, defkm6ensivpyb3, drasnkeikoo9xwn, frepm9nnch, lednec4lhm6zwan, minena6oritozm3, ronssypaulsuppo, ttdwncras
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
tattoo fonts
http://www.checkoutmyink.com/category/tattoo-fonts-tattoo

Go Back   Nukemods Forum > PHP-Nuke 7.x > Nuke 7.x - Blocks

Reply
 
LinkBack Thread Tools Display Modes
Help with Quick title mod & Forum Center block!
Old
  (#1 (permalink))
Junior Member
 
Status: Offline
Posts: 10
Join Date: Aug 2004
Help with Quick title mod & Forum Center block! - 10-13-2005, 09:58 AM

Hi

I use Quick Title Mod on my phpnuke site and it works fine. In frontpage of my site (not forums) I have a center block to show last topics. I wana to show text I added with this mod to title like [Fixed] etc... in front of titles of topics on this block too. How can I do this? I show u here codes for this block.

Please Teli or anybody else who can this, tel me if it is possible or not! I have spende 2 days on doing this with no result!! ops: :cry:

Here is blocks code:

Code:
<?php

########################################################################
# PHP-Nuke Block: Advanced Center Forum Block v.3.0                      #
# Made for PHP-Nuke 6.* and the phpbb2 Nuke port only             #
# Original block made by coldblooded http://www.nukemods.com           #
# Modifieds by thainuke of ThaiNuke.net                            #
########################################################################
# 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 (stristr($_SERVER['SCRIPT_NAME'], "block-Advanced_Center_Forum.php")) {
    Header("Location: index.html");
    die();
}

$HideViewReadOnly = 0;	
$Last_New_Topics  = 10;	
global $prefix, $db, $user_prefix, $sitename,$ThemeSel,$bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4,$textcolor1, $textcolor2;
$folder_path = "themes/$ThemeSel/forums/";

/* Total Amount of Topics */
$result = $db->sql_query( "SELECT * FROM ".$prefix."_bbtopics" );
$Amount_Of_Topics = $db->sql_numrows( $result );

/* Total Amount of Posts */
$result = $db->sql_query( "SELECT * FROM ".$prefix."_bbposts" );
$Amount_Of_Posts = $db->sql_numrows( $result );

/* Total Amount of Topic Views */
$Amount_Of_Topic_Views = 0;
$result = $db->sql_query( "SELECT topic_views FROM ".$prefix."_bbtopics" );
while( list( $topic_views ) = $db->sql_fetchrow( $result ) )
{
   $Amount_Of_Topic_Views = $Amount_Of_Topic_Views + $topic_views;
}

/* Total Amount of Topic Replies */
$Amount_Of_Topic_Replies = 0;
$result = $db->sql_query( "SELECT topic_replies FROM ".$prefix."_bbtopics" );
while( list( $topic_replies ) = $db->sql_fetchrow( $result ) )
{
   $Amount_Of_Topic_Replies = $Amount_Of_Topic_Replies + $topic_replies;
}

/* Total Amount of Members */
$result = $db->sql_query( "SELECT * FROM ".$user_prefix."_users" );
$Amount_Of_Members = $db->sql_numrows( $result ) - 1;

if(!is_dir($folder_path))
{
	$folder_path = "modules/Forums/templates/subsilver/";
}

$show = " 
	<tr><td height=\"28\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"".$folder_path."images/cellpic1.gif\">"._Advancedcenterforumakharinersialirantraininglll."$Amount_Of_Topics|"._Advancedcenterforumakharinersialirantraininghh."$Amount_Of_Posts|"._Advancedcenterforumakharinersialirantrainingpp."$Amount_Of_Topic_Views|"._Advancedcenterforumakharinersialirantrainingoo."$Amount_Of_Topic_Replies|<a href=\"members.html\">"._AdvancedcenterforumListmembersirantraining."</a>$Amount_Of_Members</td></tr><tr><td align=\"center\" colspan=\"6\">[ <a href=\"forums.html\">"._Advancedcenterforumforumirantraining."</a> ][ <a href=\"modules.php?op=modload&name=Forums&file=search\">"._Advancedcenterforumforumsearchirantraining."</a> ]
</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");

$viewlasttop ="
<tr><th height=\"28\" colspan=\"2\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"row2\"><font color=\"$textcolor1\">"._Advancedcenterforummozoatirantraining."</font></th>
<th align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"row2\"><font color=\"$textcolor1\">"._Advancedcenterforumpasokhhairantraining."</font></th>
<th align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\"class=\"row2\"><font color=\"$textcolor1\">"._Advancedcenterforumnevisandehirantraining."</font></th>
<th align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"row2\"><font color=\"$textcolor1\">"._Advancedcenterforumbzadidirantraining."</font></th>
<th align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"row2\"><font color=\"$textcolor1\">"._Advancedcenterforumakharinersialirantraining."</font></th></tr>	
";

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 )
   {
      $result2 = $db->sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'");
      list( $auth_view, $auth_read ) = $db->sql_fetchrow( $result2 );
      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 ".$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,'%b %d, %Y at %T') 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 ".$prefix."_users where user_id='$poster_id'");
list($username, $user_id)=$db->sql_fetchrow($result4);

$viewlastdetail .="
	<tr><td height=\"34\" nowrap bgcolor=\"$bgcolor1\" class=\"row1\"><img src=\"".$folder_path."images/folder_new_hot.gif\"  border=\"0\" /></td><td width=\"100%\" bgcolor=\"$bgcolor1\" 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=\"$bgcolor1\" class=\"row2\">$topic_replies</td>
	<td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\"><a href=\"forum-userprofile-.html$sifra\">$avtor</a></td>
	<td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_views</td>
	<td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\">
	<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\"><img src=\"".$folder_path."images/icon_minipost_new.gif\" border=\"0\" alt=\" $post_time\"></a></td></tr>";
}
   
   if( $Last_New_Topics == $Count_Topics ) { break 1; }
   
}

    $head = "
	<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\"><tr><td bgcolor=\"$bgcolor1\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"$bgcolor1\"><tr><td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\"><tr><td height=\"28\" colspan=\"6\" align=\"center\" class=\"row3\">"._Advancedcenterforumakharinersialirantrainingooakharinersalha."</td></tr>
	";
	
	

 $viewcatend = "</td></tr><tr><td>
</td></tr>";
 
 $content = "$head"; 
 $content .= "$viewcattop"; 
 $content .= "$viewcat";
 $content .= "$viewcatend"; 
 $content .= "$viewlasttop"; 
 $content .= "$viewlastdetail"; 
 $content .= "$show"; 

?>
Best Regards
   
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
NUKE CENTER FORUM BLOCK khemraj1999 Nuke 7.x - Blocks 3 08-06-2006 11:14 AM
Advanced Center Forum Block izone Nuke 7.x - Blocks 1 08-28-2005 04:16 PM
is there way to have the forum in the center block asif Nuke 7.x - General 1 11-21-2004 05:05 AM
Forum Center Block 6.5 FleaSOG Nuke 6.5 to 6.9 - Blocks 3 06-18-2003 03:34 PM
Center Forum Block: Does Not Work Vachi Nuke 6.5 to 6.9 - Blocks 12 05-18-2003 11:51 PM




vBulletin Skin developed by: vBStyles.com


LinkBacks Enabled by vBSEO 3.3.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