[MorpheusX Style] How to apply mods to MorpheusX style

Specific instructions on how to apply certain mods to certain styles.

Moderator: Moderators

Postby PostBot on Wed May 04, 2005 9:11 am

Put it in index_body.tpl before this:
Code: Select all
{TPL_CONTENT_BOTTOMNAV1}<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
   <td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a></td>
   <td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table>{TPL_CONTENT_BOTTOMNAV2}
And then add similar code to viewforum_body.tpl, viewtopic_body.tpl
Do NOT pm me, I don't visit this forum anymore, don't own it, don't provide any support and don't moderate.
User avatar
PostBot
Moderator
Moderator
 
Posts: 10659
Joined: Sat Aug 02, 2003 3:52 pm
Location: Mars

Re: [MorpheusX Style] How to apply mods to MorpheusX style

Postby Stryker on Tue Sep 06, 2005 4:37 am

[quote user="Greg" post="17006"]Hello,

There have been many users on this forum with questions relating to editing MorpheusX or other styles. In this short tutorial, I will explain how to do this. Someone menstioned a tutorial before, and I decided to write one.

Before you read this, you should know mods that require editing of templates are only supposed to work with Subsilver, it is unlickly you will find the exact bit of code you need to edit. Look for keywords Morpheus/X is a complex style and you will not find the code, do not use easy mod on Morpheus, mod it manually

1. Footer is all squahed to the left
Image

Solution

On top of tpl file put this if you want top navigation:

Code: Select all
{TPL_CONTENT_TOPNAV1}<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
   <td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a></td>
   <td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table>{TPL_CONTENT_TOPNAV2}


or this if you don't want top navigation:
Code: Select all
{TPL_CONTENT_TOP}

or
Code: Select all
{TPL_CONTENT_TOP_NOPADDING}



And on bottom of tpl file put this if you want bottom navigation:
Code: Select all
{TPL_CONTENT_BOTTOMNAV1}<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
   <td align="left" class="navbar-links"><a href="{U_INDEX}">{L_INDEX}</a></td>
   <td align="right" class="navbar-text">{CURRENT_TIME}</td>
</tr>
</table>{TPL_CONTENT_BOTTOMNAV2}

or this if you don't want bottom navigation:
Code: Select all
{TPL_CONTENT_BOTTOM}

[/quote]
so i have a question about this!!
i have 1 mode where is only 1 php file and none tpl files so how ca i fix this
Image
in mod without tpl files ?


PS:the php file is here:
Code: Select all
<?php
//
// **               Modul POČASÍ pro phpBB               **
// **               ----------------------               **
// **                  Created by Azu                    **
// **                  www.atmplus.cz                    **
//
// $Id: pocasi.php,v 1.6.2 10/07/2005
//


// Added with changes in Security for PhpBB2.
define('IN_PHPBB', true);

// connect to phpbb
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include_once($phpbb_root_path . 'includes/functions.'.$phpEx);

// Start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX, $session_length);
init_userprefs($userdata);

// Kód výchozí meteorologické stanice dle seznamu
$kod_mesta = 23; // Praha

// Definice meteorologických stanic
$stanice = array(
  // ceske stanice
   1 => array(kod => 'EZXX0001', mesto => 'Beroun'),
   2 => array(kod => 'EZXX0002', mesto => 'Brno'),
   3 => array(kod => 'EZXX0027', mesto => 'Červená'),
   4 => array(kod => 'EZXX0030', mesto => 'České Budějovice'),
   5 => array(kod => 'EZXX0003', mesto => 'Český Těšín'),
   6 => array(kod => 'EZXX0004', mesto => 'Frýdek-Místek'),
   7 => array(kod => 'EZXX0017', mesto => 'Cheb'),
   8 => array(kod => 'EZXX0019', mesto => 'Churáňov'),
   9 => array(kod => 'EZXX0028', mesto => 'Holešov'),
  10 => array(kod => 'LKKO',     mesto => 'Karlovy Vary'),
  11 => array(kod => 'EZXX0005', mesto => 'Karviná'),
  12 => array(kod => 'EZXX0006', mesto => 'Kladno'),
  13 => array(kod => 'EZXX0021', mesto => 'Kočelovice'),
  14 => array(kod => 'EZXX0007', mesto => 'Kolín'),
  15 => array(kod => 'EZXX0024', mesto => 'Kostelní Myslová'),
  16 => array(kod => 'EZXX0023', mesto => 'Liberec'),
  17 => array(kod => 'EZXX0029', mesto => 'Lysá Hora'),
  18 => array(kod => 'EZXX0020', mesto => 'Milešovka'),
  19 => array(kod => 'EZXX0008', mesto => 'Opava'),
  20 => array(kod => 'EZXX0009', mesto => 'Ostrava'),
  21 => array(kod => 'EZXX0010', mesto => 'Plzeň'),
  22 => array(kod => 'EZXX0011', mesto => 'Písek'),
  23 => array(kod => 'EZXX0012', mesto => 'Praha'),
  24 => array(kod => 'EZXX0022', mesto => 'Praha - Libuš'),
  25 => array(kod => 'EZXX0025', mesto => 'Přibyslav'),
  26 => array(kod => 'EZXX0018', mesto => 'Přimda'),
  27 => array(kod => 'EZXX0013', mesto => 'Rosice'),
  28 => array(kod => 'EZXX0014', mesto => 'Slavkov u Brna'),
  29 => array(kod => 'EZXX0015', mesto => 'Tábor'),
  30 => array(kod => 'EZXX0016', mesto => 'Ústí Nad Labem'),
  31 => array(kod => 'EZXX0026', mesto => 'Ústí Nad Orlicí'),
  // slovenske stanice
  32 => array(kod => 'LOXX0001', mesto => 'Bratislava'),
  33 => array(kod => 'LOXX0002', mesto => 'Ivanka pri Dunaji'),
  34 => array(kod => 'LOXX0003', mesto => 'Košice'),
  35 => array(kod => 'LOXX0004', mesto => 'Nové Zámky'),
  36 => array(kod => 'LOXX0008', mesto => 'Piešťany'),
  37 => array(kod => 'LOXX0005', mesto => 'Poprad'),
  38 => array(kod => 'LOXX0006', mesto => 'Senec'),
  39 => array(kod => 'LOXX0009', mesto => 'Sliač'),
  40 => array(kod => 'LOXX0007', mesto => 'Trnava')
);

$den = array('NEDĚLE', 'PONDĚLÍ', 'ÚTERÝ', 'STŘEDA', 'ČTVRTEK', 'PÁTEK', 'SOBOTA');

define('_MSTANICE', 'Meteorologická stanice');
define('_TITLE', 'P O Č A S Í');
define('_NOSERVER', 'Předpověď počasí není dostupná.');
define('_UPDDATE', 'Informace o aktuálním stavu z');
define('_WIND', 'VÍTR');
define('_BARO', 'TLAK');
define('_HUMID', 'VLHKOST');
define('_UV', 'UV');
define('_REFE', 'OVZDUŠÍ');
define('_VIS', 'VIDITELNOST');
define('_CURCOND', 'Aktuálni stav');
define('_FOREC', 'Čtyř denní předpověď');
define('_WHIGH', 'Teplota ve dne');
define('_WLOW', 'Teplota v noci');
define('_WTEMP', 'Teplota');

function convdate($datum){
   global $board_config;
   $pasmo_pocasi = -5;  // casove pasmo ziskanych dat
   $pasmo = $board_config['board_timezone'] - $pasmo_pocasi;
   if (strlen($datum) > 10) {
      $format = 'd.m.Y  H:i';
      $datum = mktime(substr($datum,11,2)+$pasmo,substr($datum,14,2),substr($datum,17,2),substr($datum,0,2),substr($datum,3,2),substr($datum,6,4), 0);
   } else {
      $format = 'd.m.Y';
      $datum = mktime(0,0,0,substr($datum,0,2),substr($datum,3,2),substr($datum,6,4), 0);
   }
   return(date($format, $datum));
}

function CelNumber($number){
   if ($number == '') {
      return '-';
   } else {
      return (round((5/9)*($number-32)).'&deg;');
   }
}

function zobrazpocasi(){
   global $module_name, $mesto, $stanice, $den;
   $stranka = join ('^', file('http://www.msnbc.com/m/chnk/d/weather_d_src.asp?acid='.$mesto));
   $pole = explode('^', $stranka);
   foreach ($pole as $grabline){
      $grabline = trim($grabline) . "\n";
      if (substr($grabline,7,5) == 'City ')    { $v_City    = substr($grabline,15,20); }
      if (substr($grabline,7,7) == 'SubDiv ')  { $v_SubDiv  = substr($grabline,17,20); }
      if (substr($grabline,7,8) == 'Country ') { $v_Country = substr($grabline,18,20); }
      if (substr($grabline,7,7) == 'Region ')  { $v_Region  = substr($grabline,17,20); }
      if (substr($grabline,7,5) == 'Temp ')    { $v_Temp    = substr($grabline,15,20); }
      if (substr($grabline,7,6) == 'CIcon ')   { $v_CIcon   = substr($grabline,16,20); }
      if (substr($grabline,7,6) == 'WindS ')   { $v_WindS   = substr($grabline,16,20); }
      if (substr($grabline,7,6) == 'WindD ')   { $v_WindD   = substr($grabline,16,20); }
      if (substr($grabline,7,5) == 'Baro ')    { $v_Baro    = substr($grabline,15,20); }
      if (substr($grabline,7,6) == 'Humid ')   { $v_Humid   = substr($grabline,16,20); }
      if (substr($grabline,7,5) == 'Real ')    { $v_Real    = substr($grabline,15,20); }
      if (substr($grabline,7,3) == 'UV ')      { $v_UV      = substr($grabline,13,20); }
      if (substr($grabline,7,4) == 'Vis ')     { $v_Vis     = substr($grabline,14,20); }
      if (substr($grabline,7,7) == 'LastUp ')  { $v_LastUp  = substr($grabline,17,22); }
      if (substr($grabline,7,5) == 'Acid ')    { $v_Acid    = substr($grabline,15,20); }
      if (substr($grabline,7,5) == 'Fore ')    { $v_Fore    = substr($grabline,15,250); }
   }
   $v_City    = substr($v_City,0,strlen($v_City)-3);
   $v_SubDiv  = substr($v_SubDiv,0,strlen($v_SubDiv)-3);
   $v_Country = substr($v_Country,0,strlen($v_Country)-3);
   $v_Region  = substr($v_Region,0,strlen($v_Region)-3);
   $v_Temp    = substr($v_Temp,0,strlen($v_Temp)-3);
   $v_CIcon   = substr($v_CIcon,0,strlen($v_CIcon)-3);
   $v_WindS   = substr($v_WindS,0,strlen($v_WindS)-3);
   $v_WindD   = substr($v_WindD,0,strlen($v_WindD)-3);
   $v_Baro    = substr($v_Baro,0,strlen($v_Baro)-3);
   $v_Humid   = substr($v_Humid,0,strlen($v_Humid)-3);
   $v_Real    = substr($v_Real,0,strlen($v_Real)-3);
   $v_UV      = substr($v_UV,0,strlen($v_UV)-3);
   $v_Vis     = substr($v_Vis,0,strlen($v_Vis)-3);
   $v_LastUp  = substr($v_LastUp,0,strlen($v_LastUp)-3);
   $v_LastUp  = convDate(str_replace('/', '.',$v_LastUp));
   $v_Acid    = substr($v_Acid,0,strlen($v_Acid)-3);
   $v_Fore    = substr($v_Fore,0,strlen($v_Fore)-3);
   $v_Fore    = str_replace('/', '.',$v_Fore);
   $v_Fore    = explode('|', $v_Fore);
   $v_WindS = $v_WindS * 1.6;
   $v_Vis = $v_Vis * 1.6;
   $v_WindD = str_replace('S', 'J', $v_WindD);
   $v_WindD = str_replace('N', 'S', $v_WindD);
   $v_WindD = str_replace('E', 'V', $v_WindD);
   $v_WindD = str_replace('W', 'Z', $v_WindD);
?>
<!-- POCASI -->

<?php
$css_TD = 'font-family: Arial; font-size: 14px; color: 000000;';
$css_hr_lg = 'color: CCCCCC;';
$css_t_20_r = 'font-family: Times; font-size: 20px; color: CC0000;';
$css_a_10_b  = 'font-family: Arial; font-size: 10px; color: 000099;';
$css_a_10 = 'font-family: Arial; font-size: 10px; color: 000000;';
$css_a_12 = 'font-family: Arial; font-size: 12px;';
$css_t_13B_r = 'font-family: Times; font-size: 13px; font-weight: bold; color: CC0000;';
$css_t_13B = 'font-family: Times; font-size: 13px; font-weight: bold; color: 000000;';
$css_a_10B = 'font-family: Arial; font-size: 10px; font-weight: bold; color: 000000;';
?>

<form method="POST" action="pocasi.php">
<TABLE align="center" BORDER="0" CELLPADDING="5" CELLSPACING="0" class="forumline">
<tr>
   <td class="catHead" height="28">
      <span class="cattitle"><?php echo _TITLE; ?></span>
   </td>
</tr>
<TR class="row1">
   <TD>
       <?php echo _MSTANICE ?>:&nbsp;&nbsp;<select name="mesto" onChange="this.form.submit()">
       <?php
      foreach ($stanice as $st){
         ?>
          <option<?php if ($mesto == $st[kod]){ echo ' selected';} ?> value="<?php echo $st[kod]; ?>"><?php echo $st[mesto]; ?></option>
          <?php
      }
      ?>
       </select>
       <BR />
       <span style="<?php echo $css_a_10B; ?>"><?php echo _UPDDATE; ?>:&nbsp;</span><span style="<?php echo $css_a_10; ?>"><?php echo $v_LastUp; ?></span>
   </TD>
</TR>
<TR class="row1">
   <TD WIDTH="470">
      <HR WIDTH="470" style="<?php echo $css_hr_lg; ?>" SIZE="1">

      <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
      <TR>
         <TD WIDTH="63"><IMG SRC="images/pocasi/current_cond.gif" WIDTH="63" HEIGHT="60" BORDER="0" ALT="<?php echo _CURCOND; ?>" /></TD>
         <TD ALIGN="right">
            <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
            <TR>
               <TD WIDTH="51"><IMG SRC="images/pocasi/c.gif" WIDTH="51" HEIGHT="11" BORDER="0" alt="" /></TD>
            </TR>
            <TR>
               <TD WIDTH="51" HEIGHT="38" ALIGN="center" VALIGN="top" style="<?php echo $css_t_20_r; ?>"><?php echo CelNumber($v_Temp); ?></TD>
            </TR>
            <TR>
               <TD WIDTH="51"><IMG SRC="images/pocasi/c.gif" WIDTH="51" HEIGHT="22" BORDER="0" alt="" /></TD>
            </TR>
            </TABLE>
         </TD>
         <TD WIDTH="44"><IMG SRC="images/pocasi/<?php echo $v_CIcon; ?>.gif" BORDER="0" alt="" /></TD>
         <TD WIDTH="10"><IMG SRC="images/pocasi/c.gif" WIDTH="10" HEIGHT="60" BORDER="0" alt="" /></TD>
         <TD WIDTH="302" ALIGN="right">
            <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
            <TR>
               <TD WIDTH="30" style="<?php echo $css_a_10_b; ?>"><?php echo _WIND; ?></TD>
               <TD WIDTH="60" style="<?php echo $css_a_10; ?>">&nbsp;<?php echo $v_WindD."&nbsp;".$v_WindS."&nbsp;km/h&nbsp;"; ?></TD>
               <TD WIDTH="70" style="<?php echo $css_a_10_b; ?>"><?php echo _BARO; ?></TD>
               <TD WIDTH="40" style="<?php echo $css_a_10; ?>">&nbsp;<?php echo $v_Baro; ?></TD>
               <TD WIDTH="55" style="<?php echo $css_a_10_b; ?>"><?php echo _HUMID; ?></TD>
               <TD WIDTH="45" style="<?php echo $css_a_10; ?>">&nbsp;<?php echo $v_Humid; ?>%</TD>
            </TR>
            <TR>
               <TD COLSPAN="6" ALIGN="right"><HR WIDTH="300" style="<?php echo $css_hr_lg; ?>" SIZE="1"></TD>
            </TR>
            <TR>
               <TD WIDTH="30" style="<?php echo $css_a_10_b; ?>"><?php echo _UV; ?></TD>
               <TD WIDTH="60" style="<?php echo $css_a_10; ?>">&nbsp;<?php echo $v_UV; ?></TD>
               <TD WIDTH="70" style="<?php echo $css_a_10_b; ?>"><?php echo _REFE; ?></TD>
               <TD WIDTH="40" style="<?php echo $css_a_10; ?>">&nbsp;<?php echo CelNumber($v_Real); ?></TD>
               <TD WIDTH="55" style="<?php echo $css_a_10_b; ?>"><?php echo _VIS; ?></TD>
               <TD WIDTH="45" style="<?php echo $css_a_10; ?>">&nbsp;<?php echo $v_Vis; ?>&nbsp;km</TD>
            </TR>
            </TABLE>
         </TD>
      </TR>
      </TABLE>

      <HR WIDTH="470" style="<?php echo $css_hr_lg; ?>" SIZE="1">
      <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
      <TR>
         <TD WIDTH="114"><IMG SRC="images/pocasi/forecast.gif" WIDTH="114" HEIGHT="71" BORDER="0" ALT="<?php echo _FOREC; ?>" /></TD>
         <?php
         for ($i = 0; $i < 4; $i++){
         ?>
          <TD>
            <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
            <TR>
               <TD WIDTH="62" style="<?php echo $css_a_10; ?>" ALIGN="center"><?php echo $den[($v_Fore[($i+0)]-1)]; ?><BR /><?php echo convDate($v_Fore[($i+5)]); ?></TD>
            </TR>
            <TR>
               <TD WIDTH="62" align="center"><IMG SRC="images/pocasi/<?php echo $v_Fore[($i+10)]; ?>.gif" BORDER="0" alt="" /></TD>
            </TR>
            </TABLE>
         </TD>
         <TD WIDTH="28"><IMG SRC="images/pocasi/c.gif" WIDTH="18" HEIGHT="71" BORDER="0" alt="" /></TD>
         <?php
         }
         ?>
      </TR>
      </TABLE>
      <IMG SRC="images/pocasi/c.gif" HEIGHT="10" WIDTH="470" BORDER="0" alt="" /><BR />

      <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
      <TR>
         <TD COLSPAN="9" ALIGN="right"><IMG SRC="images/pocasi/grey.gif" WIDTH="392" HEIGHT="1" BORDER="0" alt="" /></TD>
      </TR>
      <TR>
         <?php
         $sirka = array(114,44,48,44,48,44,48,44,36);
         for ($i=0;$i<count($sirka);$i++){
         ?>
         <TD WIDTH="<?php echo $sirka[$i]; ?>"><IMG SRC="images/pocasi/c.gif" WIDTH="<?php echo $sirka[$i]; ?>" HEIGHT="1" BORDER="0" alt="" /></TD>
         <?php
         }
         ?>
      </TR>
      <TR>
         <TD WIDTH="114" ALIGN="right" style="<?php echo $css_a_12; ?> COLOR: #FF0000;"><?php echo _WHIGH ;?></TD>
         <?php $j = 0;
         for ($i=0;$i<4;$i++){
         $j++; ?>
         <TD WIDTH="<?php echo $sirka[$j]; ?>" ALIGN="center" style="<?php echo $css_t_13B_r; ?>"><?php echo CelNumber($v_Fore[($i+20)]); ?></TD>
         <?php $j++; ?>
         <TD WIDTH="<?php echo $sirka[$j]; ?>"><IMG SRC="images/pocasi/c.gif" WIDTH="<?php echo $sirka[$j]; ?>" HEIGHT="12" BORDER="0" alt="" /></TD>
         <?php
         }
         ?>
      </TR>
      <TR>
         <TD COLSPAN="9" ALIGN="right"><IMG SRC="images/pocasi/grey.gif" WIDTH="392" HEIGHT="1" BORDER="0" alt="" /></TD>
      </TR>
      <TR>
         <TD WIDTH="114" ALIGN="right" style="<?php echo $css_a_12; ?>"><?php echo _WLOW ;?></TD>
         <?php $j = 0;
         for ($i=0;$i<4;$i++){
         $j++; ?>
         <TD WIDTH="<?php echo $sirka[$j]; ?>" ALIGN="center" style="<?php echo $css_t_13B; ?>"><?php echo CelNumber($v_Fore[($i+40)]); ?></TD>
         <?php $j++; ?>
         <TD WIDTH="<?php echo $sirka[$j]; ?>"><IMG SRC="images/pocasi/c.gif" WIDTH="<?php echo $sirka[$j]; ?>" HEIGHT="12" BORDER="0" alt="" /></TD>
         <?php
         }
         ?>
      </TR>
      </TABLE>
   </td>
</tr>
</table>
</form>
<!-- /POCASI -->
<?php
}
include ($phpbb_root_path . "includes/page_header.php");

$mesto = $_POST['mesto'];
if ((!isset($mesto) || $mesto == '')) $mesto = $stanice[$kod_mesta][kod];
zobrazpocasi();

include_once($phpbb_root_path . 'includes/page_tail.php');
if ($config_footer == YES)
include ("$footer");
?>
User avatar
Stryker
Registered User
Registered User
 
Posts: 1318
Joined: Mon Aug 29, 2005 7:54 am
Location: ------------

Postby UseLess on Tue Sep 06, 2005 10:50 am

Greetings,

The HTML is included in the code you posted above, instead of being in an external template file, therefore your going to have to add the {TPL_HDR} variables around the tables to get it to display like the rest of the style.

It's a matter of trial and error... you just have to keep altering things until you get it working like you want.
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby Stryker on Tue Sep 06, 2005 5:20 pm

sorry dont think i am a noob but i try it and nothing happens !!! can you post here the fixed php ??
User avatar
Stryker
Registered User
Registered User
 
Posts: 1318
Joined: Mon Aug 29, 2005 7:54 am
Location: ------------

Postby UseLess on Tue Sep 06, 2005 5:29 pm

Greetings,

It's not hard.. your outputting the HTML directly from the PHP script therefore you are NOT using the template engine.. so you open the 'MorpheusX.cfg' file and find where 'TPL_HDR1' is defined you then copy that code and paste it before the tables in the above code, you then do the same for the 'TPL_HDR2' and 'TPL_FTR'. You may also need to adjust the code so the name of the block is within the 'TPL_HDR1' and 'TPL_HDR2' just like it is in the styles templates.

If you get stuck then use the existing templates as a guide.
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby Direct X on Mon Nov 28, 2005 5:56 am

HI i have installed Active mod v2.0.7 and i can't change style to AcidTech, I try change the code like here but can't find a way.

Can you help me please? :(

THX
Direct X
Registered User
Registered User
 
Posts: 2
Joined: Mon Nov 28, 2005 3:20 am

Postby DraGonS on Sun Jan 22, 2006 2:21 am

I NEED HELP!.. I can T found these code in mopheusX.. How can i install it ??? PLEASE HELP ME!!!!!!!!!!!!!

Code: Select all
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/memberlist_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
     <th class="thTop" nowrap="nowrap">&nbsp;</th>
#
#-----[ AFTER, ADD ]------------------------------------------
#
     <th class="thTop" nowrap="nowrap">{L_RENOMMEE}</th>
#
#-----[ FIND ]------------------------------------------------
#
     <td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.PM_IMG}&nbsp;</td>
#
#-----[ AFTER, ADD ]------------------------------------------
#
     <td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.RENOMMEE}&nbsp;</td>
#
#-----[ FIND ]------------------------------------------------
#
     <td class="catBottom" colspan="8" height="28">&nbsp;</td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
     <td class="catBottom" colspan="9" height="28">&nbsp;</td>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
@import url("templates/subSilver/formIE.css");
#
#-----[ AFTER, ADD ]------------------------------------------
#

span.positive {

     color: #009E00;

}

span.negative {

     color: #CC0000;

}
#
#-----[ FIND ]------------------------------------------------
#
<!-- END switch_enable_pm_popup -->
#
#-----[ AFTER, ADD ]------------------------------------------
#
<script language="javascript" type="text/javascript">
function renommee(postid)
{
   window.open("renommee.php?p=" + postid, "renommee", "toolbar=no, scrollbars=no, resizable=yes, width=420, height=300");
   return false;
}

function renommee_del(delid)
{
   window.open("renommee_loeschen.php?id=" + delid, "renommee_loeschen", "toolbar=no, scrollbars=no, resizable=yes, width=420, height=300");
   return false;
}
</script>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
   <td class="catRight" width="60%"><b><span class="gen">{L_ABOUT_USER}</span></b></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
   <td class="catRight" width="60%"><b><span class="gen">{L_ABOUT_USER}&nbsp;&nbsp;&nbsp;{RENOMMEE}</span></b></td>
#
#-----[ FIND ]------------------------------------------------
#
        //--></script><noscript>{ICQ_IMG}</noscript></td>
      </tr>
     </table>
   </td>
  </tr>
</table>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<br /><br />
<a name="renommee"></a>
<!-- BEGIN renommee_anzeige -->
  <table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
   <tr>
     <th class="thTop" nowrap="nowrap" colspan=6>{L_RENOMMEEPUNKTE} ({L_INSGESAMT}: {renommee_anzeige.GESAMT_RENOMMEE})</th>
   </tr>
   <!-- BEGIN renommeerow -->
   <tr>
     <td class="row1" align="center">{renommee_anzeige.renommeerow.BILD}</td>
     <td class="row2" align="left">&nbsp;<b><span class="gen">{renommee_anzeige.renommeerow.LINK}</span></b>&nbsp;</td>
     <td class="row1" align="center">&nbsp;<span class="gen">{renommee_anzeige.renommeerow.AUTOR}</span>&nbsp;</td>
     <td class="row2" align="center">&nbsp;<span class="gen">{renommee_anzeige.renommeerow.DATUM}</span>&nbsp;</td>
     <td class="row1" align="left">&nbsp;<span class="gen">{renommee_anzeige.renommeerow.KOMMENTAR}</span>&nbsp;</td>
     <td class="row1" align="center">{renommee_anzeige.renommeerow.LOESCHEN}</td>
   </tr>
   <!-- END renommeerow -->
   <tr>
     <td class="catBottom" colspan="9" height="28">&nbsp;</td>
   </tr>
  </table>
  <table width="100%" cellspacing="2" border="0" align="center" cellpadding="2">
   <tr>
     <td align="right" valign="top"></td>
   </tr>
  </table>
<!-- END renommee_anzeige -->
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/simple_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
@import url("templates/subSilver/formIE.css");
#
#-----[ AFTER, ADD ]------------------------------------------
#

span.positive {

     color: #009E00;

}

span.negative {

     color: #CC0000;
     
}
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
      <td width="150" align="left" valign="top" class="{postrow.ROW_CLASS}"><span class="name"><a name="{postrow.U_POST_ID}"></a><b>{postrow.POSTER_NAME}</b></span><br /><span class="postdetails">{postrow.POSTER_RANK}<br />{postrow.RANK_IMAGE}{postrow.POSTER_AVATAR}<br /><br />{postrow.POSTER_JOINED}<br />{postrow.POSTER_POSTS}<br />{postrow.POSTER_FROM}</span><br /></td>
#
#-----[ IN-LINE FIND ]------------------------------------------
#
{postrow.POSTER_AVATAR}<br /><br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
{postrow.POSTER_RENOMMEE}<br />
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/page_header.tpl
#
#-----[ FIND ]------------------------------------------------
#
@import url("../templates/subSilver/formIE.css");
#
#-----[ AFTER, ADD ]------------------------------------------
#

span.positive {

     color: #009E00;

}

span.negative {

     color: #CC0000;

}
#
#-----[ FIND ]------------------------------------------------
#
<title>{SITENAME} - {L_PHPBB_ADMIN}</title>
#
#-----[ AFTER, ADD ]------------------------------------------
#

<script language="javascript" type="text/javascript">
function renommee_del(delid)
{
   window.open("../renommee_loeschen.php?id=" + delid, "renommee_loeschen", "toolbar=no, scrollbars=no, resizable=yes, width=420, height=300");
   return false;
}
</script>
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
     <tr>
     <td class="row1"><span class="gen">{L_USER_ACTIVE}</span></td>
     <td class="row2">
      <input type="radio" name="user_status" value="1" {USER_ACTIVE_YES} />
      <span class="gen">{L_YES}</span>&nbsp;&nbsp;
      <input type="radio" name="user_status" value="0" {USER_ACTIVE_NO} />
      <span class="gen">{L_NO}</span></td>
   </tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_ALLOW_RENOMMEE}</span></td>
     <td class="row2">
      <input type="radio" name="allow_renommee" value="1" {ALLOW_RENOMMEE_YES} />
      <span class="gen">{L_YES}</span>&nbsp;&nbsp;
      <input type="radio" name="allow_renommee" value="0" {ALLOW_RENOMMEE_NO} />
      <span class="gen">{L_NO}</span></td>
   </tr>
#
#-----[ FIND ]------------------------------------------------
#
   <tr>
      <td class="row1"><span class="gen">{L_SELECT_RANK}</span></td>
      <td class="row2"><select name="user_rank">{RANK_SELECT_BOX}</select></td>
   </tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
   <tr>
     <td class="row1"><span class="gen">{L_RENOMMEE}</span></td>
     <td class="row2">
      <input type="text" name="renommee" value="{RENOMMEE}" />
       </td>
   </tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
DraGonS
Registered User
Registered User
 
Posts: 18
Joined: Sun Jan 08, 2006 1:41 pm

uploadpic

Postby petexxx on Tue Mar 14, 2006 11:28 am

I am trying to install 'uploadpic' onto MorpheusX. (it is working with subsilver OK).
I can't find the code in posting_body.tpl to edit.

I am looking for
Code: Select all
<td nowrap="nowrap" align="right"><span class="gensmall"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>

the nearest I can find is
<td nowrap="nowrap" align="right"><span class="moderators"><a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>


It should be replaced with
Code: Select all
<td nowrap="nowrap" align="right"><span class="gensmall">
               <!-- BEGIN switch_uploadpic -->
               <strong><a href="{S_UPLOADPIC}" onclick="window.open('{S_UPLOADPIC}', '_uploadpic', 'HEIGHT=400,resizable=yes,scrollbars=yes,WIDTH=450');return false;" target="_uploadpic" class="nav" onMouseOver="helpline('up')">{L_UPLOADPIC}</a>&nbsp;<br /></strong>
               <!-- END switch_uploadpic -->
<a href="javascript:bbstyle(-1)" class="genmed" onMouseOver="helpline('a')">{L_BBCODE_CLOSE_TAGS}</a></span></td>



Any help with this will be much appreciated.

Cheers
petexxx
Registered User
Registered User
 
Posts: 8
Joined: Fri Jan 13, 2006 9:49 pm

Postby Holger on Tue Jul 11, 2006 11:58 am

Hi, I am using th linkdb-mod.
I applied some of the instructions:
on top of link_header.tpl
Code: Select all
{TPL_CONTENT_TOP}

and
on top of link_footer.tpl
Code: Select all
{TPL_CONTENT_BOTTOM}

that fixed som of the problems.

BUT, the linkdb is using own footer- and header-files.
The are nested like this:
overall_header.tpl
link_header.tpl
main body
link_footer.tpl
overall_footer.tpl

Result:
http://www.forumindex.org/linkdb.php

Attached you will find the files.
Can anyone tell me what I made wrong?

Thanks!

link_footer.tpl:
Code: Select all
{TPL_CONTENT_BOTTOM}
               </td>
            </tr>
            <tr>
               <td valign="top">
                  <form method="get" name="jumpbox" action="{S_JUMPBOX_ACTION}" onSubmit="if(document.jumpbox.cat_id.value == -1){return

false;}">
                     <input type="hidden" name="action" value="category" />
                     <select name="cat_id" onchange="if(this.options[this.selectedIndex].value != -1){ forms['jumpbox'].submit() }">
                        <option value="-1">{L_JUMP}</option>
                        {JUMPMENU}
                     </select>
                  </form>
               </td>
               <td align="{S_CONTENT_DIR_RIGHT}" valign="top"><span class="gensmall">{S_TIMEZONE}</span></td>
            </tr>
         </table>
<div align="center"><span class="copyright">
LinkDB {LINKDB_VERSION} &copy; 2003 <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=215032" target="_blank" class="copyright">CRLin</a><br />
<!-- Powered by paFileDB 3.1 ©2002 <a href="http://www.phparena.net/" target="_blank" class="copyright">PHP Arena</a><br / -->
Based on <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=193124" target="_blank" class="copyright">pafiledb</a> and <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=

110836" target="_blank" class="copyright">Advanced Links Mod</a><br />
</span></div>
      </td>
   </tr>
</table>


link_header.tpl:
Code: Select all
{TPL_CONTENT_TOP}
<table width="100%" height="99%" cellpadding="2" cellspacing="0">
  <tr>
   <td align="center" width="100%" height="100%" valign="top">


<table width="100%" cellpadding="3" cellspacing="1">
  <tr>   
   <td align="center">
   <span class="gen">&nbsp;<a href="{U_PASEARCH}" class="gen">{L_SEARCH}</a>&nbsp;
   <!-- BEGIN ADD_LINK -->
   &bull;&nbsp;<a href="{U_UPLOAD}" class="gen">{L_UPLOAD}</a>&nbsp;
   <!-- END ADD_LINK -->
   &bull;&nbsp;<a href="{U_VIEW_ALL}" class="gen">{L_VIEW_ALL}</a>&nbsp;
   </span>
   </td>   
  </tr>
</table>

<table width="100%" height="30" border="0" cellpadding="2" cellspacing="0" align="center">
  <tr>
   <td width="100%" valign="top" colspan="2">
Holger
Registered User
Registered User
 
Posts: 8
Joined: Wed Jun 21, 2006 9:50 am

Postby UseLess on Tue Jul 11, 2006 12:06 pm

Greetings,

Nearly... this;
Code: Select all
{TPL_CONTENT_BOTTOM}

should be at the bottom of the footer template file not at the top...
Movie Quote:
It's not the years honey, it's the mileage...

I do not provide any install services for phpBB, Mods or Styles.
Please do not pm me for support/scripting help - you won't get any reply. If you have a question then make a post in the appropriate forum.
User avatar
UseLess
Registered User
Registered User
 
Posts: 6220
Joined: Mon Sep 27, 2004 2:14 am
Location: North East, UK

Postby Holger on Tue Jul 11, 2006 12:11 pm

Muuuuuuch better! :-)
Thank you!
Holger
Registered User
Registered User
 
Posts: 8
Joined: Wed Jun 21, 2006 9:50 am

Postby ineedtplhelp on Sat Jan 06, 2007 12:08 pm

in overall_header i need to do this but it can't...

Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
#
#-----[ AFTER, ADD ]------------------------------------------
#
td.inlineadtitle {
   background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px;
}
td.inlinead {
   background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px; text-align: center;
}
#


so what do i need to do :O ?
ineedtplhelp
Registered User
Registered User
 
Posts: 13
Joined: Fri Jan 05, 2007 8:55 pm

Inline Banner AD in morpheus

Postby CsabiDuke on Mon Jan 08, 2007 1:57 pm

Hello!

This code is need for me, in Morpheus. Please somebody help me! It is very important for me!
If it is already exist somewhere, please write here the link! I find it over a few days, but i don't found it.

Thanks!

Code: Select all
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
#
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
#
#-----[ AFTER, ADD ]------------------------------------------
#
td.inlineadtitle {
   background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px;
}
td.inlinead {
   background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; border-width: 1px; text-align: center;
}
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<!-- END postrow -->
#
#-----[ BEFORE, ADD ]------------------------------------------
#
   <!-- BEGIN switch_ad -->
   <tr>
      <td width="150" align="left" valign="top" class="inlineadtitle"><span class="name"><b>{postrow.L_SPONSOR}</b></span><br /</td>
      <td class="inlinead" width="100%" height="28" valign="top">
         {postrow.INLINE_AD}
      </td>
   </tr>
   <tr>
      <td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
   </tr>
   <!-- END switch_ad -->
   <!-- BEGIN switch_ad_style2 -->
   <tr>
      <td colspan=2 class="inlinead">
         {postrow.INLINE_AD}
      </td>
   </tr>
   <!-- END switch_ad_style2 -->
CsabiDuke
Registered User
Registered User
 
Posts: 1
Joined: Mon Jan 08, 2007 1:50 pm

Previous

Return to How to mod some styles

Who is online

Users browsing this forum: No registered users and 1 guest