שאלה| למוד cs

פורום התמיכה במודים לגרסה phpBB2. שימו לב - פורום זה הינו פורום ארכיון. התמיכה במערכת phpBB2 הופסקה.

מנהל: צוות האתר

N0br0s
משתמש חדש
משתמש חדש
הודעות: 134
הצטרף: 18/07/2005 ב-01:51:04

שאלה| למוד cs

הודעה שלא נקראהעל ידי N0br0s » 18/04/2008 ב-21:37:19

יש לי מוד cs :

קוד: בחר הכל

#################################################################
## MOD Title: CS Mod
## MOD Author: Izikd & Aviram and rewrite by PHP            
##      
## MOD Version: Beta 0.2
##
## Installation Level: Easy
## Installation Time: 1-5 Minutes
## Files To Edit:
##      templates/subSilver/index_body.tpl
##      index.php
##
## Included Files: templates/subSilver/images/lang_hebrew/folder_big.gif
##                              templates/subSilver/images/lang_hebrew/folder_new_big.gif
##                              templates/subSilver/images/lang_hebrew/folder_locked_big.gif
##############################################################
## Author Notes:
##
##   
##############################################################
## MOD History:
##
##   2005-07-25 - Version 0.2
##      - added option to 3 columns
##      - now you need edit only 2 files
##
##   2005-07-11 - Version 0.1
##      - beta
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ UPLOAD ]---------------------------------------------
#

templates/subSilver/images/lang_hebrew/folder_big.gif
templates/subSilver/images/lang_hebrew/folder_new_big.gif
templates/subSilver/images/lang_hebrew/folder_locked_big.gif

#
#-----[ 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 ]---------------------------------------------
#
## במידה ואתה רוצה שיהיו 3 עמודות: החלף את 2 ב 3
## במידה וסיומת התמונות היא לא jpg, החלף את jpg בסיומת הרצויה

$display_cols = 3;
$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));


         $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 ]------------------------------------------
#

# EoM


הוא עשה לי קצאת בלגן בפורום אז אני צריך עזרה בלסדר איכשהו את המוד...
אני רוצה שיהיה כמו באף-אקס-פי שזה יפריד בשורות http://www.fxp.co.il/
או שזה שזה יהיה בתוך חלונות משהו בסוג הזה:
http://virtual-f.co.il/
ואם אתם אומרים שאי-אפשר או משהו אז רק שיהיה מסודר בלי שום קווים וכלום כמו פה:
iatraf.co.il
וזהו רק לסדר אותו...
תודה לעוזרים...

feffer2
משתמש חדש
משתמש חדש
הודעות: 109
הצטרף: 08/03/2008 ב-10:39:57

Re: שאלה| למוד cs

הודעה שלא נקראהעל ידי feffer2 » 18/04/2008 ב-22:01:17

יש לך את המוד כולל הקבצים המצורפים ? כי ללפי מה שהבנתי יש לך רק תהוראות
פחות פעיל

N0br0s
משתמש חדש
משתמש חדש
הודעות: 134
הצטרף: 18/07/2005 ב-01:51:04

Re: שאלה| למוד cs

הודעה שלא נקראהעל ידי N0br0s » 18/04/2008 ב-22:37:40

כן יש לי...
אבל מה זה קשור? הקבצים זה רק תמונות אבל בכל זאת יש לי...

BBman
חבר צוות phpBB ישראל לשעבר
חבר צוות phpBB ישראל לשעבר
הודעות: 1595
הצטרף: 13/02/2005 ב-13:50:52

Re: שאלה| למוד cs

הודעה שלא נקראהעל ידי BBman » 18/04/2008 ב-22:47:10

זהו המוד CS שתוכנת עבור phpBB2, לא לאולימפוס.
מור.
"Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime"

N0br0s
משתמש חדש
משתמש חדש
הודעות: 134
הצטרף: 18/07/2005 ב-01:51:04

Re: שאלה| למוד cs

הודעה שלא נקראהעל ידי N0br0s » 18/04/2008 ב-22:56:11

סבבה הפורום שלי phpbb לא אולימפוס...
ולמה אתם אומרים לי על המוד?
אני בסך הכל שואל, לא אמרתי שהוא לא עובד או משהו...
ד"א איזה כבוד bbman עונה לי :)


חזור אל “תמיכה במודים - ארכיון”

מי מחובר

משתמשים הגולשים בפורום זה: אין משתמשים רשומים ו־ 26 אורחים

cron