Maserati forums question..

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Maserati forums question..
minusme
CZ Newbie
minusme has been a member for over 20 year's 20 Year Member
usa.gif newyork.gif
Status: Offline
Joined: Jun 18, 2004
0.00 posts per day
Posts: 12
Points: 4,740
   
I just purchased the "maserati" theme and I'm trying to get rid of the left blocks on my forum. I have used the mod you have in the KB on several other themes before without a problem. When I apply it to the maserati theme it DOES eleminate the left blocks, but it leaves the left spacing. So you end up with dead space on the left hand side of the forums.

Also.... When you reply to a post, the "preview" of the previous post is white and doesn't seem to fit with the rest of the theme... Is this the way it was supposed to be? I can mod it the way I like, but I was just curious.

Thanks!
Ron



Back to top Reply with quote
#2   re: Maserati forums question..
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Send me the theme.php and I will fix the Forums issue's for you. telli-at-codezwiz.com

Telli




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#3   re: Maserati forums question..
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 also purchased the Maserati theme and the forums block has a glitch - the view recent post icon(s) at far right does not link to anything.




_________________
[ Register or login to view links on this board.]
Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
The forums block is just an add-on that is why it is in the "Extras" folder. Attach the block and I will take a look for you.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   re: Maserati forums question..
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 block because of the php extension so here's the code. BTW, I'm using it with phpnuke 7.5 and have noticed that occasionally some of the topics in the forums are innoperative as well.

<?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
#6   Re: re: Maserati forums question..
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
#7   re: Maserati forums question..
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   


Originally posted by lumax @ Thu Sep 30, 2004 4:53 pm:

I couldnt attach the block because of the php extension so here's the code. BTW, I'm using it with phpnuke 7.5 and have noticed that occasionally some of the topics in the forums are innoperative as well.

<?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";

?>



Look in the code above you will see this line:

<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>


Remove the </a> before the <img src=


CurtisH

I thought I fixed that issue in this theme. Attach your themes/HalloweenV2/theme.php for me please.



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#8   re: Maserati forums question..
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
Back to top Reply with quote
#9   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,430
   
Try this one



Attached Files
curtis.zip (3 KB, Downloaded: 5252 Time(s))



_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#10   re: Maserati forums question..
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author




_________________
PHP-Nuke and ALL software and/or themes coded to be used with PHP-Nuke are GPL and are FREE to redistribute regardless of what an author may claim.
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