hello.

This forum is now closed as part of retiring phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

This forum is now closed due to phpBB2.0 being retired.
Post Reply
dardevil
Registered User
Posts: 88
Joined: Thu Mar 30, 2006 9:00 am

hello.

Post by dardevil »

I'm searching for a "CS" mod.
this mod organized the forum in different skin.
This is a IPB mod That the one israeli forum invented.
The CS mod change the forum style from tables to a 4 or 3 lists.

U can see it in this forum:
http://www.elsf.net/forum
code of the phpbb-hebrew "beta - CS mod":

Code: Select all

# 
#-----[ OPEN ]--------------------------------------------- 
# 
templates/subSilver/index_body.tpl

#
#-----[ FIND & DELETE ]---------------------------------------------
### 
class="forumline"

#
#-----[ FIND ]---------------------------------------------
#
  <tr> 
	<th colspan="2" class="thCornerL" height="25" nowrap="nowrap">&nbsp;{L_FORUM}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_TOPICS}&nbsp;</th>
	<th width="50" class="thTop" nowrap="nowrap">&nbsp;{L_POSTS}&nbsp;</th>
	<th class="thCornerR" nowrap="nowrap">&nbsp;{L_LASTPOST}&nbsp;</th>
  </tr>
  <!-- BEGIN catrow -->
  <tr> 
	<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
	<td class="rowpic" colspan="3" align="{S_CONTENT_DIR_RIGHT}">&nbsp;</td>
  </tr>
  <!-- BEGIN forumrow -->
  <tr> 
	<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
	<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>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
	<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
	<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>

  </tr>
  <!-- END forumrow -->
  <!-- END catrow -->

#
#-----[ REPLACE WITH ]---------------------------------------------
# 
  <tr> 
    <td width="{CSMOD_DISPLAY}%" valign="top">
	  <!-- BEGIN catrow1 -->
	   <table width="100%" cellpadding="2" cellspacing="1" border="0">
	    <tr> 
		  <td valign="top" width="5" rowspan="2"><img src="{catrow1.CAT_ICON}"></td>
		  <td><strong><a href="{catrow1.U_VIEWCAT}" class="cattitle"><u><FONT COLOR=#990000>{catrow1.CAT_DESC}</FONT></u></a></strong></td>
	    </tr>
	    <tr> 	
		  <td>
	  <!-- BEGIN forumrow1 -->
		<div><img src="{catrow1.forumrow1.FORUM_FOLDER_IMG}" width="16" height="16" alt="{catrow1.forumrow1.L_FORUM_FOLDER_ALT}" title="{catrow1.forumrow1.L_FORUM_FOLDER_ALT}" /> <span class="forumlink"> <a href="{catrow1.forumrow1.U_VIEWFORUM}" class="forumlink">{catrow1.forumrow1.FORUM_NAME}</a></span></div>
	  <!-- END forumrow1 -->
	                      </td>
	    </tr>
	   </table>
	  <!-- END catrow1 -->
    </td>
    <td width="{CSMOD_DISPLAY}%" valign="top">
	  <!-- BEGIN catrow2 -->
	   <table width="100%" cellpadding="2" cellspacing="1" border="0">
	    <tr> 
		  <td valign="top" width="5" rowspan="2"><img src="{catrow2.CAT_ICON}"></td>
		  <td><strong><a href="{catrow2.U_VIEWCAT}" class="cattitle"><u><FONT COLOR=#990000>{catrow2.CAT_DESC}</FONT></u></a></strong></td>
	    </tr>
	    <tr> 	
		  <td>
	  <!-- BEGIN forumrow2 -->
		<div><img src="{catrow2.forumrow2.FORUM_FOLDER_IMG}" width="16" height="16" alt="{catrow2.forumrow2.L_FORUM_FOLDER_ALT}" title="{catrow2.forumrow2.L_FORUM_FOLDER_ALT}" /> <span class="forumlink"> <a href="{catrow2.forumrow2.U_VIEWFORUM}" class="forumlink">{catrow2.forumrow2.FORUM_NAME}</a></span></div>
	  <!-- END forumrow2 -->
	                      </td>
	    </tr>
	   </table>
	  <!-- END catrow2 -->
    </td>
    <td width="{CSMOD_DISPLAY}%" valign="top" style="{CSMOD_STYLEDISPLAY}">
	  <!-- BEGIN catrow3 -->
	   <table width="100%" cellpadding="2" cellspacing="1" border="0">
	    <tr> 
		  <td valign="top" width="5" rowspan="2"><img src="{catrow3.CAT_ICON}"></td>
		  <td><strong><a href="{catrow3.U_VIEWCAT}" class="cattitle"><u><FONT COLOR=#990000>{catrow3.CAT_DESC}</FONT></u></a></strong></td>
	    </tr>
	    <tr> 	
		  <td>
	  <!-- BEGIN forumrow3 -->
		<div><img src="{catrow3.forumrow3.FORUM_FOLDER_IMG}" width="16" height="16" alt="{catrow3.forumrow3.L_FORUM_FOLDER_ALT}" title="{catrow3.forumrow3.L_FORUM_FOLDER_ALT}" /> <span class="forumlink"> <a href="{catrow3.forumrow3.U_VIEWFORUM}" class="forumlink">{catrow3.forumrow3.FORUM_NAME}</a></span></div>
	  <!-- END forumrow3 -->
	                      </td>
	    </tr>
	   </table>
	  <!-- END catrow3 -->
    </td>
  </tr>

# 
#-----[ OPEN ]--------------------------------------------- 
# 
index.php

#-----[ FIND ]---------------------------------------------
#
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

#
#-----[ AFTER, ADD ]---------------------------------------------
# 
## 
##

$display_cols = 2;
$csmod_caticon_ext = '.jpg';

#
#-----[ FIND ]---------------------------------------------
#
		'L_FORUM' => $lang['Forum'],

#
#-----[ BEFORE, ADD ]---------------------------------------------
# 

		'CSMOD_STYLEDISPLAY' => ($display_cols == 2 ? 'display: none' : ''),
		'CSMOD_DISPLAY' => ($display_cols == 2 ? 50 : 33),


#
#-----[ FIND ]---------------------------------------------
#
	//
	// Okay, let's build the index
	//

#
#-----[ AFTER, ADD ]---------------------------------------------
# 
	$column_num = 0;

#
#-----[ FIND ]---------------------------------------------
#
			$template->assign_block_vars('catrow', array(

#
#-----[ REPLACE WITH ]---------------------------------------------
# 
			$c_icon = (file_exists('images/categories/' . $category_rows[$i]['cat_id'] . $csmod_caticon_ext)) ? 'images/categories/' . $category_rows[$i]['cat_id'] . $csmod_caticon_ext : 'images/spacer.gif';
			$column_num++;

			$col = ($display_cols == 2) ? (is_integer ($column_num/2) == true ? '2' : '1') : ((is_integer(($i+1)/2) == true && is_integer(($i+1)/3) == false) ? 1 : (is_integer(($i+1)/3) == true ? 2 : 3)) : ((is_integer(($i+1)/3) == true && is_integer(($i+1)/4) == false) ? 1 : (is_integer(($i+1)/4) == true ? 2 : 3 : 4));


			$template->assign_block_vars('catrow'.$col, array(

#
#-----[ FIND ]---------------------------------------------
#
				'CAT_DESC' => $category_rows[$i]['cat_title'],

#
#-----[ AFTER, ADD ]---------------------------------------------
# 
				'CAT_ICON' => $c_icon,

#
#-----[ FIND ]---------------------------------------------
#
							$template->assign_block_vars('catrow.forumrow',	array(

#
#-----[ REPLACE WITH ]---------------------------------------------
# 
							$template->assign_block_vars('catrow'.$col.'.forumrow'.$col,	array(

# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
The CS mod cannot change your Temptation and your mods

almost every israeli forum used this mod, so u will get credit and all this things.

Thank you very much,
dardevil.
Last edited by dardevil on Thu Oct 19, 2006 7:00 pm, edited 2 times in total.

shastin
Registered User
Posts: 138
Joined: Sat Feb 21, 2004 8:46 am
Location: Arlington, TX
Contact:

Post by shastin »

I'm lost

dardevil
Registered User
Posts: 88
Joined: Thu Mar 30, 2006 9:00 am

Post by dardevil »

please give me the english MOD

Post Reply

Return to “[2.0.x] MOD Requests”