[2.0.19] Forum Icon with ACP Control

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
36
60%
Very Good
14
23%
Good
6
10%
Fair
2
3%
Poor
2
3%
 
Total votes: 60

Dezio
Registered User
Posts: 29
Joined: Mon Mar 05, 2007 11:11 pm

Re: [2.0.19] Forum Icon with ACP Control

Post by Dezio »

The link of download doesn't work :)
anyone can reupload the mod?
User avatar
Raimon
Former Team Member
Posts: 12088
Joined: Tue May 30, 2006 5:31 pm
Location: Netherlands
Name: Raimon Meuldijk
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by Raimon »

You can download the mod on this location http://www.phpbb.com/files/mods/Forum_Icon_V1.1.0.zip
Need phpBB installation, extenstions, Styles or integrate phpBB with you website?
Contact me for fair prices and good service!
Dezio
Registered User
Posts: 29
Joined: Mon Mar 05, 2007 11:11 pm

Re: [2.0.19] Forum Icon with ACP Control

Post by Dezio »

Thanks a lot :)
invlol
Registered User
Posts: 9
Joined: Tue Jan 03, 2006 9:20 pm

Re: [2.0.19] Forum Icon with ACP Control

Post by invlol »

Hello!!
This is a really nice mod but i need some help...
I think that u guys dont give support to phpbb integrate in the phpnuke but i going to post mi request and if anyone can help me really i will be apreciate.

I install this mod and works grate.. now i got in mi phpnuke a center block that show the most 8 recent post in the forum... the block show:

Icon - post - who make the post - answers - and date .

Thast how it show in the block... soo the icon that show is icon_mini_message.gif that is in subsilver template... is a simple icon...

here mi request what i have to put.. if i want to show the icon of the respective forum where is the post..

Here the code of the block:

Code: Select all

<?php

/************************************************************************************/
/*                                                                                  */
/* CENTER BLOCK: block-Forums-Centerv2.php                                            */
/* For PHP-Nuke 6.5                                                                 */
/* By iPenang.com ( webmaster@ipenang.com ), Sept 2003                              */
/* http://www.iPenang.com                                                           */
/* Version : v2.0                                                                   */
/*                                                                                  */
/* Modified From :                                                                  */
/* CENTER BLOCK: block-phpBB_Forums.php                                             */
/* For PHP-Nuke 6.5                                                                 */
/* v1.5  06-04-2003                                                                 */
/*                                                                                  */
/* by: Maty Scripts (webmaster@matyscripts.com)                                     */
/* http://www.matyscripts.com                                                       */
/*                                                                                  */
/* 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.                   */
/*                                                                                  */
/************************************************************************************/

// Define Language
// Add following definitions to your /language/lang-english.php file:
// Or leave it here.
// Center block-phpBB_Forums.php
define("_BBFORUM_NEWTOPICS","Nueva Discusion");
define("_BBFORUM_POSTER","Tara");
define("_BBFORUM_VIEWS","Vista");
define("_BBFORUM_REPLIES","Respuestas");
define("_BBFORUM_LASTPOSTER","Ultima Respuesta");
define("_BBFORUM_TOTTOPICS","Topicos: ");
define("_BBFORUM_TOTPOSTS","Posts: ");
define("_BBFORUM_TOTVIEWS","Vistas: ");
define("_BBFORUM_TOTREPLIES","Respuestas: ");
define("_BBFORUM_TOTMEMBERS","Miembros:");
define("_BBFORUM_FORUM","Entrar al Foro");
define("_BBFORUM_SEARCH","Buscar");
define("_BBFORUM_TITLE","Latest from");

if( eregi( "block-Forums_Centerv2.php", $_SERVER['PHP_SELF'])) {
   Header("Location: index.php");
   die();
}
global $prefix, $user_prefix, $db, $dbi, $sitename, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor5, $bgcolor6, $bgcolor7, $ThemeSel;



/*************************************/
/*                                   */
/* You Can Add More Themes Here      */
/*                                   */
/*************************************/
$table_bgcolor = $bgcolor5; /* background color for block */

switch($ThemeSel)
{
case "phpib2" :
   $table_bottom = "<tr><td height=\"28\" colspan=\"6\"  align=\"center\" class=\"catbottom\" background=\"themes/phpib2/forums/images/cellpic1.gif\">&nbsp;</td></tr>";
   $table_top = "background=\"themes/phpib2/forums/images/cellpic3.gif\"  class=\"thcornerl\"><font color=\"#DEEEF3\"";
   $IconPath = "themes/phpib2/forums/images/folder_new.gif";
   $table_bgcolor = "#EAEDF4";
   break;
case "Helius" :
   $table_top = "background=\"themes/Helius/forums/images/bg_cat.gif\" class=\"thcornerl\"> <font color=\"#00000\"";
   $IconPath = "themes/Helius/forums/images/icon_newest_reply.gif";
   $table_bgcolor = "#EAEDF4";
   break;
case "fiappleblue210" :
   $table_top = "class=\"thcornerl\"> <font color=\"#6E9FD6\"";
   $IconPath = "themes/fiappleblue210/forums/images/folder.gif";
   $table_bgcolor = "#FFFFFF"; 
   break;
default :
   //$table_bottom = '';
   //$table_top    = '';
   $IconPath = "modules/Forums/templates/subSilver/images/icon_mini_message.gif";
}

/* Get darker color for $table_bgcolor */
$bgcolor5 = str_replace('#', '', $table_bgcolor);
$bgcolor5 =  sprintf("#%02X%02X%02X", (hexdec(substr($bgcolor5, 0, 2))* .98 ),(hexdec(substr($bgcolor5, 2, 2))* .98 ) , (hexdec(substr($bgcolor5, 4, 2))* .98 ));

/**********************************/
/*                                */
/* Configuration parameters       */
/*                                */
/**********************************/
// When set to 1 then Forums permissions which View and/or Read are NOT set to 'ALL' will NOT be displayed in the center block
$HideViewReadOnly = 1;
// Show only 5 last new topics
$Last_New_Topics  = 8;                            
// Icon that is displayed in Center Block in front of Topic

/**********************************/
/*                                */
/* Don't Edit Below !             */
/*                                */
/**********************************/
$border           = 1;
$cellspacing      = 0;
//$cellstyle        = "style=\"border-left-width: 1; border-right-width: 1; border-top-width: 1; border-bottom-style: dotted; border-bottom-width: 1\"";

/* 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;

/* Last X New Topics */
$Count_Topics = 0;
$Topic_Buffer = "";
$result1 = $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 ) = sql_fetch_row( $result1, $dbi ) )
{
   $skip_display = 0;
   if( $HideViewReadOnly == 1 )
   {
      $result5 = $db->sql_query( "SELECT auth_view, auth_read FROM ".$prefix."_bbforums where forum_id = '$forum_id'" );
      list( $auth_view, $auth_read ) = $db->sql_fetchrow( $result5 );
      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 topic_id, 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( $topic_id, $poster_id, $post_time ) = $db->sql_fetchrow( $result2 );

      $result3 = $db->sql_query( "SELECT username, user_id FROM ".$user_prefix."_users where user_id='$poster_id'" );
      list( $uname, $uid ) = $db->sql_fetchrow( $result3 );
      $LastPoster = "<A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$uid\"STYLE=\"text-decoration: none\"> $uname </a>";
      
      $result4 = $db->sql_query( "SELECT username, user_id FROM ".$user_prefix."_users where user_id='$topic_poster'" );
      list( $uname, $uid ) = $db->sql_fetchrow( $result4 );
      $OrigPoster = "<A HREF=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$uid\"STYLE=\"text-decoration: none\"> $uname </a>";
   
      $TopicImage = "<img src=\"$IconPath\" border=\"0\" alt=\"\">";
      $TopicTitleShow = "<a href=\"modules.php?name=Forums&file=viewtopic&p=$topic_last_post_id#$topic_last_post_id\"STYLE=\"text-decoration: none\">$topic_title</a>";

      $Topic_Buffer .= "<tr height=20 onmouseover=\"this.style.backgroundColor='$bgcolor5'\" onmouseout=\"this.style.backgroundColor=''\"><td $cellstyle>$TopicImage&nbsp;&nbsp;</td><td $cellstyle>$TopicTitleShow</td><td $cellstyle><div align=\"center\">$OrigPoster</div></td><td $cellstyle><div align=\"center\"><b>$topic_views</b></div></td><td $cellstyle><div align=\"center\"><b>$topic_replies</b></div></td><td $cellstyle align=\"center\">$LastPoster<br><font size=\"-2\"><i>$post_time</i></font></td></tr>";
   }
   
   if( $Last_New_Topics == $Count_Topics ) { break 1; }
   
}

/* Write Table to Screen */
$content  = "<table width=\"100%\" border=\"$border\"  cellspacing=\"$cellspacing\" bordercolor=\"$bgcolor6\" bgcolor=\"$table_bgcolor\">";

//$content .= "<tr><td width=\"100%\" height=\"28\" colspan=\"6\" align=\"center\" bgcolor=$bgcolor2 $table_top ><b>Categories</b></td></tr>";

//$content .= "<tr><td width=\"100%\" height=\"21\" colspan=\"6\" align=\"left\" bgcolor=$table_bgcolor>";

//$cat = sql_query("SELECT * FROM ".$prefix."_bbcategories", $dbi);
//while ($cat_row = sql_fetch_row($cat)) {
	//$cat_id = $cat_row[0];
	//$cat_title = $cat_row[1];
	//$content .= "<br><b><a href=\"modules.php?name=Forums&file=index&c=$cat_id\">$cat_title</a></b><br>";
	//$forum = sql_query("SELECT * FROM ".$prefix."_bbforums where cat_id='$cat_id'" , $dbi);
	//while ($forum_row = sql_fetch_row($forum)) {
	//	$forum_id = $forum_row[0];
	//	$forum_title = $forum_row[2];
	//	$for_count ++;
	//	$content .= "&nbsp&nbsp&nbsp&nbsp<a href=\"modules.php?name=Forums&file=viewforum&f=$forum_id\">$forum_title</a>";
	//}
//}
//$content .= "</td></tr>";

$content .= "<tr><td width=\"100%\" height=\"20\" colspan=\"6\" align=\"center\" 
bgcolor=$bgcolor7 $table_top ><b>[Ultimas Taras]</b></td></tr>";

$content .= "<tr bgcolor=$bgcolor5><td>&nbsp;&nbsp;</td><td align=\"center\">"._BBFORUM_NEWTOPICS."</td><td align=\"center\">"._BBFORUM_POSTER."</td><td align=\"center\">"._BBFORUM_VIEWS."</td><td align=\"center\">"._BBFORUM_REPLIES."</td><td align=\"center\">"._BBFORUM_LASTPOSTER."</td></tr>";
$content .= "$Topic_Buffer";
$content .= "<tr><td align=\"center\" colspan=\"6\">"._BBFORUM_TOTTOPICS."<b>$Amount_Of_Topics</b>&nbsp;<b>|</b>&nbsp;"._BBFORUM_TOTPOSTS."<b>$Amount_Of_Posts</b>&nbsp;<b>|</b>&nbsp;"._BBFORUM_TOTVIEWS."<b>$Amount_Of_Topic_Views</b>&nbsp;<b>|</b>&nbsp;"._BBFORUM_TOTREPLIES."<b>$Amount_Of_Topic_Replies</b>&nbsp;<b>|</b>&nbsp;<a href=\"modules.php?name=Members_List\">"._BBFORUM_TOTMEMBERS."</a>&nbsp;<b>$Amount_Of_Members</b></center></td></tr>";
$content .= "<tr><td align=\"center\" colspan=\"6\">[ <a href=\"modules.php?name=Forums\">"._BBFORUM_FORUM."</a> ]&nbsp;&nbsp;&nbsp;[ <a href=\"modules.php?op=modload&name=Forums&file=search\">"._BBFORUM_SEARCH."</a> ]</center></td></tr>";
$content .= $table_bottom;
$content .= "</table>";

?>
<!-- 
if ( $ThemeSel == "phpib2" ) {
  $table_bottom = "<tr><td height=\"28\" colspan=\"6\"  align=\"center\" class=\"catbottom\" background=\"themes/phpib2/forums/images/cellpic1.gif\">&nbsp;</td></tr>";
   $table_top = "background=\"themes/phpib2/forums/images/cellpic3.gif\"  class=\"thcornerl\"><font color=\"#DEEEF3\"";
   $IconPath = "themes/phpib2/forums/images/folder_new.gif";
   $table_bgcolor = "#EAEDF4";
} else if ( $ThemeSel == "Helius" ) {
   $table_top = "background=\"themes/Helius/forums/images/bg_cat.gif\" class=\"thcornerl\"> <font color=\"#00000\"";
   $IconPath = "themes/Helius/forums/images/icon_newest_reply.gif";
   $table_bgcolor = "#EAEDF4";
} else if ( $ThemeSel == "fiappleblue210" ) {
   $table_top = "class=\"thcornerl\"> <font color=\"#6E9FD6\"";
   $IconPath = "themes/fiappleblue210/forums/images/folder.gif";
   $table_bgcolor = "#FFFFFF"; 
}
else   /* default using phpBB theme */
{
   $table_bottom = '';
   $table_top    = '';
   $IconPath = "modules/Forums/templates/subSilver/images/icon_mini_message.gif";
}

-->

Plz someone help me i know is just some lines that i have to edit but i dont know what line.. plz if anyone know help...
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by ycl6 »

invlol wrote: Hello!!
This is a really nice mod but i need some help...
I think that u guys dont give support to phpbb integrate in the phpnuke but i going to post mi request and if anyone can help me really i will be apreciate.

As you've said so yourself, we don't provide support for nuke users, and I can't personally give you support either as I don't use it.

I think you will receive more help from nuke sites.

~Mac
RickW267
Registered User
Posts: 11
Joined: Thu Jul 06, 2006 9:53 pm
Location: workmanpoll.com
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by RickW267 »

Since I have added this mod, my index page has the headings for the forums out of whack. It almost looks like the titles on the blue line stayed in place, but everything below actually slide closer to the icons.

I guess it would be easier to see than explain. But my Last Post has an empty column under it.

Please take a look at my site and feel free to give some suggestions:

http://workmanpoll.cnchost.com/phpBB2/

Thanks
Rick Workman
Workmapoll.com
Be a Pollster this season!
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by ycl6 »

Do you mean another theme you are using? Coz in the default theme (that guests view) looks alright

~Mac
RickW267
Registered User
Posts: 11
Joined: Thu Jul 06, 2006 9:53 pm
Location: workmanpoll.com
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by RickW267 »

Sorry about that. I kept tinkering with it and found that somewhere in the index there was a column span set to 3, that should have been set at 2.

When I tried to come back and edit my post here, the system was not letting me get in.

All is good now.

Thanks.
Rick Workman
Workmapoll.com
Be a Pollster this season!
User avatar
Anti-Clovis
Registered User
Posts: 30
Joined: Sat May 05, 2007 5:49 am
Location: Megalopolis
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by Anti-Clovis »

I'm lovin' this! Thx!
Matthewgtj
Registered User
Posts: 3
Joined: Sat May 26, 2007 5:53 am

Re: [2.0.19] Forum Icon with ACP Control

Post by Matthewgtj »

Hey your mod works great, however its running into some other code and messing up my subforums (instead of being in the description area they are moved below the index link =(

Image

this step here is what causes the problem

Code: Select all

#-----[ OPEN ]------------------------------------------ 
# 
templates/subSilver/index_body.tpl
# 
#-----[ FIND ]------------------------------------------ 
# 
	<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
	  </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
	  </span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
# 
#-----[ REPLACE WITH ]------------------------------------------ 
#
	<td class="row1" width="100%" height="50"><table width="100%" cellpadding="2" cellspacing="0" border="0">
		<tr><td><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_ICON_IMG}</a></td>
			<td width="100%"><span class="forumlink"><a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
  				</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
  				</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span>
  			</td>
  		</tr>
  	</table></td>

because in my index_body.tpl it looks like

Code: Select all

<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
	  </span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
<!-- IF catrow.forumrow.MODERATORS --><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}<br /></span><!-- ENDIF -->
how do I make what I have and what i'm suppose to replace work togeather?

so it doesnt throw my subforums under the index link??

I have no idea how to code, but I do know this is what is causing the problem

thanks in advance
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by ycl6 »

I'm not sure if you are aware of this, but this MOD doesn't work with any sub-forum MODs.

It should work with some tweaks but I don't have any code that does that.

~Mac
Matthewgtj
Registered User
Posts: 3
Joined: Sat May 26, 2007 5:53 am

Re: [2.0.19] Forum Icon with ACP Control

Post by Matthewgtj »

I am aware that it doesnt work =P

thanks for the reply!

have a good day
The Dark One
Registered User
Posts: 30
Joined: Sat Feb 10, 2007 12:22 pm
Location: London

Re: [2.0.19] Forum Icon with ACP Control

Post by The Dark One »

Hi All

Appologies if this has already been asked,but

1. Forum Icon mod is validated for 2.0.19. Does it work ok on 2.0.22?

2. Does it install with easymod and does easymod take care of the SQL?

Thanks
Athlon
ycl6
Translator
Posts: 5696
Joined: Sat Feb 15, 2003 10:35 am
Location: Taiwan
Contact:

Re: [2.0.19] Forum Icon with ACP Control

Post by ycl6 »

1. I can't remember if I have tested it myself on 2.0.22, but I don't think any updates since 2.0.19 will break this MOD

2. This MOD is EM friendly and SQL update is included in the MOD

~Mac
The Dark One
Registered User
Posts: 30
Joined: Sat Feb 10, 2007 12:22 pm
Location: London

Re: [2.0.19] Forum Icon with ACP Control

Post by The Dark One »

Thanks.

I have installed it tonight and all went ok. I will stick a couple of icons in tomorrow and let you guys know if it all works (so far so good). :mrgreen:
Post Reply

Return to “[2.0.x] MOD Database Releases”