Help me Finish this block script please

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Help me Finish this block script please
syruss2125
CZ Newbie
syruss2125 has been a member for over 18 year's 18 Year Member
usa.gif kansas.gif
Gender: Male
Status: Offline
Joined: Nov 08, 2006
0.00 posts per day
Posts: 19
Points: 50
   
I've got everything working but the preview part now..

The basic idea and code is there I just can't get it to work..

I'm sure someone could that is better skilled then me..

Please help me get this working...

<?php
########################################################################
# Universal Latest Forums Block                                        #
# ============================================                         #
########################################################################
include($phpbb_root_test . 'includes/bbcode.'.$phpEx);
if (eregi("block-Universalforums.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$HideViewReadOnly = 1;   
$Last_New_Topics  = 5;   
global $prefix, $db, $sitename, $ThemeSel, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4,$textcolor1, $textcolor2;

$folder_path = "themes/$ThemeSel/forums/";

if(!is_dir($folder_path))
{
   $folder_path = "themes/$ThemeSel/forums/";
}

$show = "  <tr>
    <td height=\"28\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"".$folder_path."images/cellpic1.gif\">&nbsp;</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 )
   {
      
       $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 )
   {

      $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,'%m/%d/%Y 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 ".$prefix."_users where user_id='$poster_id'");
list($username, $user_id)=$db->sql_fetchrow($result4);

$result5 = $db->sql_query( "SELECT post_id, post_text FROM nuke_bbposts_text where post_text='$post_text'");
list($post_text, $post_id) = $db->sql_fetchrow($result5);

                         $viewlast .="  <tr>
    <td height=\"34\" nowrap bgcolor=\"$bgcolor1\" class=\"row1\"><img src=\"".$folder_path."images/folder_new.gif\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"$bgcolor1\" class=\"row1\"><b>Topic: </b><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">[<font color=\"blue\"> <u> $topic_title </u> </font>]</a><br><b>[Preview of last post]</b><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">$post_text</a></td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\"><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$sifra\">$avtor</a></td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\"><i>&nbsp;&nbsp;$post_time&nbsp;</i></font><br>
      <a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\">$username</a>&nbsp;<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=\"Latest Post\"></a></td>
  </tr>";
}
   
   if( $Last_New_Topics == $Count_Topics ) { break 1; }
   
}

    $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
  <tr>
    <td bgcolor=\"$bgcolor1\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"$bgcolor2\">
        <tr>
          <td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">
  <tr>
    <th height=\"28\" colspan=\"2\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thcornerl\"><font color=\"$textcolor1\"><strong>Topics</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor1\"><strong>&nbsp;Replies&nbsp;</strong></font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor1\"><strong>&nbsp;Author&nbsp;</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor1\"><strong>&nbsp;Views&nbsp;</strong></font></th>
    <th align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thcornerr\"><font color=\"$textcolor1\"><strong>&nbsp;Last Post&nbsp;</strong></font></th>
  </tr>";
    $content .= "$viewlast";

$content .= "$show";

?>


Thanks for all your help Codezwiz and members.


Back to top Reply with quote
#2   re: Help me Finish the block script please
syruss2125
CZ Newbie
syruss2125 has been a member for over 18 year's 18 Year Member
usa.gif kansas.gif
Gender: Male
Status: Offline
Joined: Nov 08, 2006
0.00 posts per day
Posts: 19
Points: 50
   
I've gottin alittle further here is what i have so far.

it's works but keeps showing the same last post after every last topic..
and I need to limit the amout of text.. I don't want the whole post showing..
like only the first 200 characters.

<?php
########################################################################
# Universal Latest Forums Block                                        #
# ============================================                         #
########################################################################

if (eregi("block-Universalforums.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$HideViewReadOnly = 1;   
$Last_New_Topics  = 5;   
global $prefix, $db, $sitename, $ThemeSel, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4,$textcolor1, $textcolor2;

$folder_path = "themes/$ThemeSel/forums/";

if(!is_dir($folder_path))
{
   $folder_path = "themes/$ThemeSel/forums/";
}

$show = "  <tr>
    <td height=\"28\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"".$folder_path."images/cellpic1.gif\">&nbsp;</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 )
   {
       $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 )
   {

      $skip_display = 1;
   }
   
   if( $skip_display == 0 )
   {
     $Count_Topics += 1;
//============ What I added ================//
$sql = "SELECT * FROM nuke_bbtopics, nuke_bbforums, nuke_bbposts, nuke_bbposts_text WHERE nuke_bbposts.post_id=nuke_bbposts_text.post_id ORDER BY nuke_bbtopics.topic_last_post_id DESC";
$result1 = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result1)) {
$post_text = $row[post_text];
    }
//========== End of what I added =========//   
$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,'%m/%d/%Y 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 ".$prefix."_users where user_id='$poster_id'");
list($username, $user_id)=$db->sql_fetchrow($result4);

                         $viewlast .="  <tr>
    <td height=\"34\" nowrap bgcolor=\"$bgcolor1\" class=\"row1\"><img src=\"".$folder_path."images/folder_new.gif\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"$bgcolor1\" class=\"row1\"><b>Topic: </b><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">[<font color=\"blue\"> <u> $topic_title </u> </font>]</a><br><b>[Preview of last post]</b><br><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">$post_text</td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\"><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$sifra\">$avtor</a></td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\"><i>&nbsp;&nbsp;$post_time&nbsp;</i></font><br>
      <a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\">$username</a>&nbsp;<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=\"Latest Post\"></a></td>
  </tr>";
}
   
   if( $Last_New_Topics == $Count_Topics ) { break 1; }
   
}

    $content .= "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
  <tr>
    <td bgcolor=\"$bgcolor1\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"$bgcolor2\">
        <tr>
          <td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">
  <tr>
    <th height=\"28\" colspan=\"2\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thcornerl\"><font color=\"$textcolor1\"><strong>Topics</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor1\"><strong>&nbsp;Replies&nbsp;</strong></font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor1\"><strong>&nbsp;Author&nbsp;</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"$textcolor1\"><strong>&nbsp;Views&nbsp;</strong></font></th>
    <th align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thcornerr\"><font color=\"$textcolor1\"><strong>&nbsp;Last Post&nbsp;</strong></font></th>
  </tr>";

    $content .= "$viewlast";

$content .= "$show";


?>




Back to top Reply with quote
#3   re: Help me Finish this block script please
syruss2125
CZ Newbie
syruss2125 has been a member for over 18 year's 18 Year Member
usa.gif kansas.gif
Gender: Male
Status: Offline
Joined: Nov 08, 2006
0.00 posts per day
Posts: 19
Points: 50
   
OK i got alittle furtuer on this one..

It works but I need it to preview a max of only 200 character.

On my site at [ Register or login to view links on this board. ]
it is working..

If you can just help me add the limit on the amout of text that shows up under last post I would be greatful.


<?php
if (eregi("block-Forums_Preview_Last_5_Post.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$HideViewReadOnly = 1;   
$Last_New_Topics  = 5;   
global $prefix, $db, $sitename, $ThemeSel, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4,$textcolor1, $textcolor2;

$folder_path = "themes/$ThemeSel/forums/";

if(!is_dir($folder_path))
{
   $folder_path = "themes/$ThemeSel/forums/";
}

$show = "  <tr>
    <td height=\"28\" colspan=\"6\" align=\"center\" class=\"catbottom\" background=\"".$folder_path."images/cellpic1.gif\">&nbsp;</td>
  </tr>
</table></td>
        </tr>
      </table></td>
  </tr>
</table>";

$Count_Topics = 0;
$Topic_Buffer = "";
//== Replaced this text with the one below it ======//
//$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) )
   
//== Text Used to replace Above so as to show preview ===//
          $result = $db->sql_query( "SELECT topic_id, post_text, forum_id, topic_last_post_id, topic_title, topic_poster, topic_views, topic_replies, topic_moved_id FROM nuke_bbtopics, nuke_bbposts_text where post_id=topic_last_post_id ORDER BY topic_last_post_id DESC");
          while( list( $topic_id, $post_text, $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 )
   {

      $skip_display = 1;
   }
   
   if( $skip_display == 0 )
   {
     $Count_Topics += 1;
    
//===== Added Text for Previw of last post =============//
       $result1 = $db->sql_query( "SELECT post_text FROM ".$prefix."_bbposts_text where post_text = '$post_text'");
       list( $post_text ) = $db->sql_fetchrow( $result1 );
$post_text=$post_text;
//============== End of added Text ====================//

$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,'%m/%d/%Y <br>at <br>(%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 ".$prefix."_users where user_id='$poster_id'");
list($username, $user_id)=$db->sql_fetchrow($result4);

                         $viewlast .="  <tr>
    <td height=\"34\" nowrap bgcolor=\"$bgcolor1\" class=\"row1\"><img src=\"".$folder_path."images/folder_new.gif\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"$bgcolor1\" class=\"row1\"><b>Topic: </b><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">[ <font color=\"blue\"><u>$topic_title</u></font> ]</a><br><b>[Last post]</b><br><a href=\"modules.php?name=Forums&file=viewtopic&t=$topic_id#$topic_last_post_id\">$post_text</td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row3\"><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$sifra\">$avtor</a></td>
    <td align=\"center\" bgcolor=\"$bgcolor1\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap bgcolor=\"$bgcolor1\" class=\"row3\"><font size=\"-2\"><i>$post_time</i></font><br><a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\">$username</a><br><a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><br><img src=\"".$folder_path."images/icon_minipost_new.gif\" border=\"0\" alt=\"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 bgcolor=\"$bgcolor1\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\" bgcolor=\"$bgcolor2\">
        <tr>
          <td><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"1\">
  <tr>
    <th height=\"28\" colspan=\"2\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thcornerl\"><font color=\"#ffffff\"><strong>Topics / Last Post Preview</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"#ffffff\"><strong>Replies</strong></font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"#ffffff\"><strong>Author</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thtop\"><font color=\"#ffffff\"><strong>Views</strong></font></th>
    <th align=\"center\" nowrap background=\"".$folder_path."images/cellpic3.gif\" class=\"thcornerr\"><font color=\"#ffffff\"><strong>Last Post</strong></font></th>
  </tr>";

    $content .= "$viewlast";

$content .= "$show";

//$db->sql_freeresult($result);

?>



Back to top Reply with quote
#4   re: Help me Finish this block script please
SidewinderX
CZ Super Newbie
SidewinderX has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 06, 2004
0.01 posts per day
Posts: 39
Points: 1,333
   
here is the php, you'll have to edit it to block syntax

echo substr($string, 0, 200);


where $string is the string you want to cut down to 200 characters


Back to top Reply with quote
#5   Re: re: Help me Finish this block script please
syruss2125
CZ Newbie
syruss2125 has been a member for over 18 year's 18 Year Member
usa.gif kansas.gif
Gender: Male
Status: Offline
Joined: Nov 08, 2006
0.00 posts per day
Posts: 19
Points: 50
   


Originally posted by SidewinderX @ Sun Nov 19, 2006 12:32 pm:

here is the php, you'll have to edit it to block syntax

echo substr($string, 0, 200);


where $string is the string you want to cut down to 200 characters


Can you tell me where and how to insert this into the code please?


Back to top Reply with quote
#6   re: Help me Finish this block script please
SidewinderX
CZ Super Newbie
SidewinderX has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 06, 2004
0.01 posts per day
Posts: 39
Points: 1,333
   
eh i havnt dont this in a while, and im not sure what string you are trying to shorten but try this

FIND

$content .= "$viewlast";

$content .= "$show";



REPLACE WITH

$content .= "$viewlast";
$showParsed = substr($show, 0, 200);
$content .= "$showParsed ";



Back to top Reply with quote
#7   re: Help me Finish this block script please
syruss2125
CZ Newbie
syruss2125 has been a member for over 18 year's 18 Year Member
usa.gif kansas.gif
Gender: Male
Status: Offline
Joined: Nov 08, 2006
0.00 posts per day
Posts: 19
Points: 50
   
I'm try to do it as you wrote it but it doesn't seem to be working..


Is there another way to do this?

I'm using PHP-nuke 7.6 if it helps..



Back to top Reply with quote
#8   re: Help me Finish this block script please
syruss2125
CZ Newbie
syruss2125 has been a member for over 18 year's 18 Year Member
usa.gif kansas.gif
Gender: Male
Status: Offline
Joined: Nov 08, 2006
0.00 posts per day
Posts: 19
Points: 50
   
I got it working but you had it in the wrong place to work with edited script..



//===== Added Text for Previw of last post =============//
       $result1 = $db->sql_query( "SELECT post_text FROM ".$prefix."_bbposts_text where post_text = '$post_text'");
       list( $post_text ) = $db->sql_fetchrow( $result1 );
--> Romove this<--- $post_text=$post_text;
//============== End of added Text ====================//



Add this to the bottom of that..


$result1Parsed = substr($post_text, 0, 250);
$post_text = "$result1Parsed";



Thanks for you help tho very much so.. without it i would have never been able to pull it off.

icon_smile.gif



Back to top Reply with quote
#9   re: Help me Finish this block script please
SidewinderX
CZ Super Newbie
SidewinderX has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Aug 06, 2004
0.01 posts per day
Posts: 39
Points: 1,333
   
np, glad u could get it to work



Back to top Reply with quote
#10   re: Help me Finish this block script please
syruss2125
CZ Newbie
syruss2125 has been a member for over 18 year's 18 Year Member
usa.gif kansas.gif
Gender: Male
Status: Offline
Joined: Nov 08, 2006
0.00 posts per day
Posts: 19
Points: 50
   
Ok here is the finished Script..

If anyone would like to take it a clean it up alittle bit it would be great..

You can see an example working at my home website,..
[ Register or login to view links on this board.]

P.S.
FloppyDrivez If you would still like to take a look and see if you can inprove on this any it would be great.. It seems the Admins posts are not showing up on the preview on the front page..

Any ideas?????
Thanks FloppyDrivez



Attached Files
block-Forums_Preview_Last_5_Post.rar (1.73 KB, Downloaded: 5232 Time(s))


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