Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
sek-sports
Hangin' Around



Joined: Jul 18, 2007
Posts: 49

PostPosted: Thu Dec 13, 2007 10:21 pm Reply with quote

There is a site [ Only registered users can see links on this board! Get registered or login! ] that has a forum block in center of Home page that has a index of the last ten posts. I like it. Does anyone know where I might find this block?
 
View user's profile Send private message
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Dec 14, 2007 11:58 am Reply with quote

I know that this is a very old block I used it in 6.5 and because I modify always my blocks you can see a similar block with the mouse over effect here:-----
if you are interested I can give you the code. I don´t use this block anymore.


Last edited by Susann on Fri Dec 14, 2007 2:32 pm; edited 1 time in total 
View user's profile Send private message
sek-sports







PostPosted: Fri Dec 14, 2007 12:12 pm Reply with quote

Yes, could you please give me the code?
 
Susann







PostPosted: Fri Dec 14, 2007 2:21 pm Reply with quote

I´ll give you the link via PM.
 
Gremmie
Former Moderator in Good Standing



Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Fri Dec 14, 2007 6:17 pm Reply with quote

I also posted code for such a block somewhere around here. Search and you shall find. Smile

_________________
GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module 
View user's profile Send private message
Gremmie







PostPosted: Fri Dec 14, 2007 6:52 pm Reply with quote

Although my block was much simpler than that one.
 
nicpon
Hangin' Around



Joined: Apr 07, 2007
Posts: 32
Location: Columbus,OH/Poland

PostPosted: Tue Jan 15, 2008 7:44 am Reply with quote

Susann wrote:
I know that this is a very old block I used it in 6.5 and because I modify always my blocks you can see a similar block with the mouse over effect here:-----
if you are interested I can give you the code. I don´t use this block anymore.

Can we see that block in action?

Also, I'm looking for center forum block that would use template from forum. Anyone know where I can find one?
Thanks
 
View user's profile Send private message
fresh
Regular
Regular



Joined: Mar 12, 2008
Posts: 74

PostPosted: Wed Mar 19, 2008 10:52 pm Reply with quote

I am also looking for center block like that and then i started using the Aeolus theme's block which come with the that theme. But for some reason it don't show the shortlinks in the main page. I am using this block with fisubice theme since it don't come with the center block like that. I am just curious why it don't show the shortlinks???
this is ths code
Code:


<?php

########################################################################
# PHP-Nuke Block: Aeolus Center Forum Block v.3                        #
# Made for PHP-Nuke 6.5 and up                                         #
#                                                                      #
# Made by mikem http://www.nukemods.com                                #
# This block is made only to match the Aelous Theme pack               #
########################################################################
# 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-Aeolus-Forum.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$HideViewReadOnly = 1;   
$Last_New_Topics  = 5;   

global $prefix, $db, $sitename, $admin;

$show = "  <tr>
    <td bgcolor=\"#525E6E\" height=\"25\" colspan=\"6\" align=\"center\" background=\"themes/Aeolus/images/bg_main.gif\"></td>
  </tr>
</table></td>
        </tr>
      </table></td>
  </tr>
</table>";

$Count_Topics = 0;
$Topic_Buffer = "";
$result = $db->sql_query( "SELECT t.topic_id, f.forum_name, f.forum_id, t.topic_last_post_id, t.topic_title, t.topic_poster, t.topic_views, t.topic_replies, t.topic_moved_id FROM ".$prefix."_bbtopics t, ".$prefix."_bbforums f where t.forum_id=f.forum_id ORDER BY topic_last_post_id DESC" );
while( list( $topic_id, $forum_name, $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);

                         $viewlast .="  <tr>
    <td height=\"34\" nowrap bgcolor=\"#BBC8D3\" class=\"row1\"><img src=\"themes/Aeolus/forums/images/folder_new.gif\" width=\"19\" height=\"18\" border=\"0\" /></td>
    <td width=\"100%\" bgcolor=\"#BBC8D3\" class=\"row1\">&nbsp;<b>$forum_name</b><br>&nbsp;&nbsp;<a href=\"forums.html?file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\">$topic_title</a></td>
    <td align=\"center\" bgcolor=\"#BBC8D3\" class=\"row2\">$topic_replies</td>
    <td align=\"center\" bgcolor=\"#BBC8D3\" class=\"row3\"><a href=\"profile-.html$sifra\">$avtor</a></td>
    <td align=\"center\" bgcolor=\"#BBC8D3\" class=\"row2\">$topic_views</td>
    <td align=\"center\" nowrap bgcolor=\"#BBC8D3\" class=\"row3\"><font size=\"-2\"><i>&nbsp;&nbsp;$post_time&nbsp;</i></font><br>
      <a href=\"profile-.html$user_id\">$username</a>&nbsp;<a href=\"forums.html?file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"><img src=\"themes/Aeolus/forums/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=\"0\">
  <tr>
    <td bgcolor=\"#FFFFFF\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">
        <tr>
          <td><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">
  <tr>
    <th height=\"25\" colspan=\"2\" align=\"center\" nowrap background=\"themes/Aeolus/images/cellpic.gif\" class=\"thcornerl\"><font color=\"#364D67\"><strong>Forum/Topic</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/Aeolus/images/cellpic.gif\" class=\"thtop\"><font color=\"#364D67\"><strong>&nbsp;Replies&nbsp;</strong></font></th>
    <th width=\"100\" align=\"center\" nowrap background=\"themes/Aeolus/images/cellpic.gif\" class=\"thtop\"><font color=\"#364D67\"><strong>&nbsp;Author&nbsp;</strong></font></th>
    <th width=\"50\" align=\"center\" nowrap background=\"themes/Aeolus/images/cellpic.gif\" class=\"thtop\"><font color=\"#364D67\"><strong>&nbsp;Views&nbsp;</strong></font></th>
    <th align=\"center\" nowrap background=\"themes/Aeolus/images/cellpic.gif\" class=\"thcornerr\"><font color=\"#364D67\"><strong>&nbsp;Last Post&nbsp;</strong></font></th>
  </tr>";
    $content .= "$viewlast";

 $content .= "$show";

?>
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
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 can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©