Warning: The author of this contribution does not provide support for it anymore.

Live Preview

subsilver2 problem - Live Preview

subsilver2 problem

by ahmedmoselhi » Sat Jan 07, 2012 2:38 pm

i have installed this mod on a subsilver2-based style but it is not working.I'm sure I have followed all the steps correctly but it shows a white box over the posting table with no preview :? .
ahmedmoselhi
Registered User
Posts: 17
Joined: Wed Feb 10, 2010 12:07 pm
Contact:

Re: subsilver2 problem

by 4_seven » Mon Jan 09, 2012 6:43 pm

normally i give no subsilver2 support. this mod have only some little edits, so if you transform the mod with the right subsilver2 syntax, it should work. check all your edits again. if it failed, write your whole edits to this style here, so i see, what i can do.
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am
Contact:

Re: subsilver2 problem

by ahmedmoselhi » Mon Jan 09, 2012 7:18 pm

here is the edits i have done:
./ddt/templates/overall_header.html
find

Code: Select all

    <link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />

add after

Code: Select all

    <script type="text/javascript">
    // <![CDATA[
       var onload_functions = new Array();
       var onunload_functions = new Array();

       /**
       * New function for handling multiple calls to window.onload and window.unload by pentapenguin
       */
       window.onload = function()
       {
          for (var i = 0; i < onload_functions.length; i++)
          {
             eval(onload_functions[i]);
          }
       }

       window.onunload = function()
       {
          for (var i = 0; i < onunload_functions.length; i++)
          {
             eval(onunload_functions[i]);
          }
       }

    // ]]>
    </script>

./ddt/templates/posting_body.html
find

Code: Select all

<!-- IF not S_SHOW_PM_BOX -->

add before

Code: Select all

    <!-- IF not S_PRIVMSGS -->
    <!-- INCLUDE livepreview.html -->
    <!-- ENDIF -->

find

Code: Select all

    textarea name="message" rows="15"

replace with

Code: Select all

    textarea name="message" id="message" rows="15"

find

Code: Select all

    onkeyup="storeCaret(this);"

replace with

Code: Select all

    onkeyup="storeCaret(this);forceScrollBottom('livepreview');" onkeydown="forceScrollBottom('livepreview');"

./ddt/templates/livepreview.html
find

Code: Select all

    max-height:200px;

add after

Code: Select all

    min-height:200px;

contents of the three files:
overall_header

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="{S_CONTENT_DIRECTION}" lang="{S_USER_LANG}" xml:lang="{S_USER_LANG}">
<head>
{SEO_BASE_HREF}

<meta http-equiv="content-type" content="text/html; charset={S_CONTENT_ENCODING}" />
<meta http-equiv="content-language" content="{S_USER_LANG}" />
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="imagetoolbar" content="no" />
<meta name="resource-type" content="document" />
<meta name="distribution" content="global" />
<meta name="copyright" content="2000, 2002, 2005, 2007 phpBB Group" />
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7; IE=EmulateIE9" />
{META}
<!-- BEGIN gym_rsslinks -->
<link rel="alternate" type="application/rss+xml" title="{gym_rsslinks.TITLE}" href="{gym_rsslinks.URL}" />
<!-- END gym_rsslinks -->
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>

<!-- IF S_ENABLE_FEEDS -->
   <!-- IF S_ENABLE_FEEDS_OVERALL --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {SITENAME}" href="{U_FEED}" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_NEWS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_NEWS}" href="{U_FEED}?mode=news" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_FORUMS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_ALL_FORUMS}" href="{U_FEED}?mode=forums" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPICS --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_NEW}" href="{U_FEED}?mode=topics" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPICS_ACTIVE --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FEED_TOPICS_ACTIVE}" href="{U_FEED}?mode=topics_active" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_FORUM and S_FORUM_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_FORUM} - {FORUM_NAME}" href="{U_FEED}?f={S_FORUM_ID}" /><!-- ENDIF -->
   <!-- IF S_ENABLE_FEEDS_TOPIC and S_TOPIC_ID --><link rel="alternate" type="application/atom+xml" title="{L_FEED} - {L_TOPIC} - {TOPIC_TITLE}" href="{U_FEED}?f={S_FORUM_ID}&t={S_TOPIC_ID}" /><!-- ENDIF -->
<!-- ENDIF -->

<link rel="stylesheet" href="{T_STYLESHEET_LINK}" type="text/css" />
    <script type="text/javascript">
    // <![CDATA[
       var onload_functions = new Array();
       var onunload_functions = new Array();

       /**
       * New function for handling multiple calls to window.onload and window.unload by pentapenguin
       */
       window.onload = function()
       {
          for (var i = 0; i < onload_functions.length; i++)
          {
             eval(onload_functions[i]);
          }
       }

       window.onunload = function()
       {
          for (var i = 0; i < onunload_functions.length; i++)
          {
             eval(onunload_functions[i]);
          }
       }

    // ]]>
    </script>

<script type="text/javascript">
// <![CDATA[
function popup(url, width, height, name)
{
   if (!name)
   {
      name = '_popup';
   }

   window.open(url.replace(/&/g, '&'), name, 'height=' + height + ',resizable=yes,scrollbars=yes,width=' + width);
   return false;
}

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
function jumpto() {
   var page = prompt('{LA_JUMP_PAGE}:', '{ON_PAGE}');
   var perpage = '{PER_PAGE}';
   var base_url = '{A_BASE_URL}';
   var seo_delim_start = '{SEO_START_DELIM}';
   var seo_static_pagination = '{SEO_SATIC_PAGE}';
   var seo_ext_pagination = '{SEO_EXT_PAGE}';
   if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) {
      var seo_page = (page - 1) * perpage;
      var anchor = '';
      var anchor_parts = base_url.split('#');
      if ( anchor_parts[1] ) {
         base_url = anchor_parts[0];
         anchor = '#' + anchor_parts[1];
      }
      if ( seo_page > 0 ) {
         var phpEXtest = false;
         if ( base_url.indexOf('?') >= 0 || ( phpEXtest = base_url.match(/\.php$/i))) {
            document.location.href = base_url.replace(/&/g, '&') + (phpEXtest ? '?' : '&') + 'start=' + seo_page + anchor;
         } else {
            var ext = base_url.match(/\.[a-z0-9]+$/i);
            if (ext) {
               // location.ext => location-xx.ext
               document.location.href = base_url.replace(/\.[a-z0-9]+$/i, '') + seo_delim_start + seo_page + ext + anchor;
            } else {
               // location and location/ to location/pagexx.html
               var slash = base_url.match(/\/$/) ? '' : '/';
               document.location.href = base_url + slash + seo_static_pagination + seo_page + seo_ext_pagination + anchor;
            }
         }
      } else {
         document.location.href = base_url + anchor;
      }
   }
}
var seo_external = {SEO_EXTERNAL};
var seo_external_sub = {SEO_EXTERNAL_SUB};
var seo_ext_classes = {SEO_EXT_CLASSES};
var seo_hashfix = {SEO_HASHFIX};
/**
*  phpbb_seo_href()
*  Fixes href="#something" links with virtual directories
*  Optionally open external or marked with a css class links in a new window
*  in a XHTML 1.x compliant way.
*/
function phpbb_seo_href() {
   var current_domain = document.domain.toLowerCase();
   if (!current_domain || !document.getElementsByTagName) return;
   if (seo_external_sub && current_domain.indexOf('.') >= 0) {
      current_domain = current_domain.replace(new RegExp(/^[a-z0-9_-]+\.([a-z0-9_-]+\.([a-z]{2,6}|[a-z]{2,3}\.[a-z]{2,3}))$/i), '$1');
   }
   if (seo_ext_classes) {
      var extclass = new RegExp("(^|\s)(" + seo_ext_classes + ")(\s|$)");
   }
   if (seo_hashfix) {
      var basehref = document.getElementsByTagName('base')[0];
      if (basehref) {
         basehref = basehref.href;
         var hashtest = new RegExp("^(" + basehref + "|)#[a-z0-9_-]+$");
         var current_href = document.location.href.replace(/#[a-z0-9_-]+$/i, "");
      } else {
         seo_hashfix = false;
      }
   }
   var hrefels = document.getElementsByTagName("a");
   var hrefelslen = hrefels.length;
   for (var i = 0; i < hrefelslen; i++) {
      var el = hrefels[i];
      var hrefinner = el.innerHTML.toLowerCase();
      if (el.onclick || (el.href == '') || (el.href.indexOf('javascript') >=0 ) || (el.href.indexOf('mailto') >=0 ) || (hrefinner.indexOf('<a') >= 0) ) {
         continue;
      }
      if (seo_hashfix && el.hash && hashtest.test(el.href)) {
         el.href = current_href + el.hash;
      }
      if (seo_external) {
         if ((el.href.indexOf(current_domain) >= 0) && !(seo_ext_classes && extclass.test(el.className))) {
            continue;
         }
         el.onclick = function () { window.open(this.href); return false; };
      }
   }
}
window.onload = function() {
   if (seo_external || seo_hashfix) {
      phpbb_seo_href();
   }
   // here you can add other window.onload events
}
// www.phpBB-SEO.com SEO TOOLKIT END

/**
* Find a member
*/
function find_username(url)
{
   popup(url, 760, 570, '_usersearch');
   return false;
}

/**
* Mark/unmark checklist
* id = ID of parent container, name = name prefix, state = state [true/false]
*/
function marklist(id, name, state)
{
   var parent = document.getElementById(id);
   if (!parent)
   {
      eval('parent = document.' + id);
   }

   if (!parent)
   {
      return;
   }

   var rb = parent.getElementsByTagName('input');
   
   for (var r = 0; r < rb.length; r++)
   {
      if (rb[r].name.substr(0, name.length) == name)
      {
         rb[r].checked = state;
      }
   }
}

<!-- IF ._file -->

   /**
   * Play quicktime file by determining it's width/height
   * from the displayed rectangle area
   *
   * Only defined if there is a file block present.
   */
   function play_qt_file(obj)
   {
      var rectangle = obj.GetRectangle();

      if (rectangle)
      {
         rectangle = rectangle.split(',')
         var x1 = parseInt(rectangle[0]);
         var x2 = parseInt(rectangle[2]);
         var y1 = parseInt(rectangle[1]);
         var y2 = parseInt(rectangle[3]);

         var width = (x1 < 0) ? (x1 * -1) + x2 : x2 - x1;
         var height = (y1 < 0) ? (y1 * -1) + y2 : y2 - y1;
      }
      else
      {
         var width = 200;
         var height = 0;
      }

      obj.width = width;
      obj.height = height + 16;

      obj.SetControllerVisible(true);

      obj.Play();
   }
<!-- ENDIF -->

// ]]>
</script>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$(document).ready(function () {
    $('span.menu_class').click(function () {
   $('ul.the_menu').slideToggle('medium');
    });
});
</script>

<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - Start //-->
<!-- INCLUDE ./../../abbcode/abbcode_header.html -->
<!-- MOD : MSSTI ABBC3 (v{S_ABBC3_VERSION}) - End //-->
<link href="{T_THEME_PATH}/prime_links/prime_links.css" rel="stylesheet" type="text/css" />
</head>
<body class="{S_CONTENT_DIRECTION}">
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT and not S_IN_UCP -->
<div id="info"><div id="infobar">
<a href="{U_REGISTER}"><img style="width: 50px; height: 50px; padding-right: 100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/reg.png" />{L_PMG_WELCOME} {SITENAME}. {L_PMG_REGISTER}<img style="width: 50px; height: 50px; padding-left:100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/reg.png" /></a>
</div></div>
<!-- ENDIF -->

<!-- IF not S_IS_BOT and S_USER_LOGGED_IN and S_USER_PM_POPUP and S_DISPLAY_PM and (S_USER_NEW_PRIVMSG or S_USER_UNREAD_PRIVMSG) -->
<div id="info"><div id="infobar">
<a href="{U_PRIVATEMSGS}"><img style="width:50px; height: 50px; padding-right: 100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/mail.png" />{L_PMG_HELLO} {S_USERNAME} {L_PMG_YOUHAVE} {PRIVATE_MESSAGE_INFO}<!-- IF PRIVATE_MESSAGE_INFO_UNREAD --> {L_PMG_AND} {PRIVATE_MESSAGE_INFO_UNREAD}<!-- ENDIF --><img style="width: 50px; height: 50px; padding-left:100px; vertical-align:middle;" alt="" src="{T_THEME_PATH}/images/mail.png" /></a>
</div></div>
<!-- ENDIF -->
<a name="top"></a>

<div id="wrapheader">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
   <tr>
      <td width="30%" style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM_02.jpg) repeat-x">
       </td>
      <td style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM_02.jpg) repeat-x">
      <img src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_02.jpg" usemap="#map" alt="" />
<map name="map" id="map">
<!-- IF S_USER_LOGGED_IN and not S_IS_BOT  -->
<area shape="rect" coords="122,146,142,210" alt="خروج" href="{U_LOGIN_LOGOUT}" />
<!-- ENDIF -->
<!-- IF not S_USER_LOGGED_IN and not S_IS_BOT  -->
<!--ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><area shape="rect" coords="151,164,178,234" alt="التسجيل" href="{U_REGISTER}" /><!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN and not S_IS_BOT  -->
<area shape="rect" coords="465,166,491,235" alt="لوحة التحكم" href="{U_PROFILE}" />
<!-- ENDIF -->
<area shape="rect" coords="498,140,524,211" alt="الرئيسية" href="{U_INDEX}" />
</map>
      </td>
      <td width="30%" style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM_02.jpg) repeat-x"></td>
   </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
   <tr>
      <td width="45" height="109" valign="bottom">
      <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_14.jpg" width="45" height="109" alt="" /></td>
      <td style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM-Fan_09.jpg)">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
            <td width="2477" style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM-Fan_09.jpg)" height="109">
            <table border="0" width="100%" cellspacing="0" cellpadding="0" style="margin:0 auto">
               <tr>
                  <td width="150" height="109">
                  <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_13.jpg" width="150" height="109" alt="" /></td>
                  <td height="109">
                  <table border="0" width="100%" cellspacing="0" cellpadding="0">
                     <tr>
                        <td style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM-Fan_09.jpg)"> </td>
                     </tr>
                  </table>
                  </td>
                  <td width="170" height="109">
                  <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_11.jpg" width="170" height="109" alt="" /></td>
                  <td height="109">
                  <table border="0" width="100%" cellspacing="0" cellpadding="0">
                     <tr>
                        <td height="109" style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM-Fan_09.jpg)"> </td>
                     </tr>
                  </table>
                  </td>
                  <td width="129" height="109">
                  <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_08.jpg" width="129" height="109" alt="" /></td>
               </tr>
            </table>
            </td>
         </tr>
      </table>
      </td>
      <td width="44" height="109" valign="bottom">
      <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_07.jpg" width="44" height="109" alt="" /></td>
   </tr>
   <tr>
      <td width="14" style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM-Fan_18.jpg)">
      <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_18.jpg" width="45" height="15" alt="" /></td>
      <td>
      <table class="tablebg" width="100%" cellpadding="0" cellspacing="1" border="0">
      <tr>
      <td class="row1" width="70%">
      <p class="breadcrumbs"><a href="{U_INDEX}">{L_INDEX}</a><!-- BEGIN navlinks --> » <a href="{navlinks.U_VIEW_FORUM}">{navlinks.FORUM_NAME}</a><!-- END navlinks --></p>
      </td>
      <td class="row2">
      <!-- IF S_USER_LOGGED_IN and not S_IS_BOT  -->
      <p class="welcome">أهلا وسهلا بك يا {S_USERNAME} {LAST_VISIT_DATE} - {CURRENT_TIME} <br /><a href="{U_PRIVATEMSGS}" title="لديك: {S_USER_UNREAD_PRIVMSG} رسائل غير مقروءة">الرسائل الخاصة: </a> جديدة: {S_USER_NEW_PRIVMSG}  غير مقروءة: {S_USER_UNREAD_PRIVMSG}</p>
      <!-- ENDIF -->
      <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT  -->
      <form method="post" action="{S_LOGIN_ACTION}">
      <table width="100%" cellpadding="4" cellspacing="2" border="0">
      <tr>
       <td>{L_USERNAME}</td>
       <td><input class="post" type="text" name="username" size="10" /></td>
       <td><!-- IF S_AUTOLOGIN_ENABLED --> <span class="gensmall">{L_LOG_ME_IN}</span> <input type="checkbox" class="radio" name="autologin" /><!-- ENDIF --></td>
      </tr>
      <tr>
       <td>{L_PASSWORD}</td>
       <td><input class="post" type="password" name="password" size="10" /></td>
       <td><input type="submit" class="btnmain" name="login" value="{L_LOGIN}" /></td>      
      </tr>
      </table>
   {S_LOGIN_REDIRECT}
   {S_FORM_TOKEN}
      </form>
      <!-- ENDIF -->
      </td>
      </tr></table>
      <table width="100%" cellspacing="0">
      <tr>
            <!-- IF S_USER_LOGGED_IN -->            
            <td class="bbmenu"><a href="{U_PROFILE}">{L_PROFILE}</a></td>
            <!-- ENDIF -->
            <td class="bbmenu">
             <span class="menu_class">خيارات</span>
                <ul class="the_menu"> 
                 <!-- IF S_DISPLAY_SEARCH -->
                    <li><a href="{U_SEARCH_UNANSWERED}">{L_SEARCH_UNANSWERED}</a></li> 
                    <li><a href="{U_SEARCH_ACTIVE_TOPICS}">{L_SEARCH_ACTIVE_TOPICS}</a></li> 
               <!-- IF S_USER_LOGGED_IN or S_LOAD_UNREADS -->
               <!-- IF S_LOAD_UNREADS --><li><a href="{U_SEARCH_UNREAD}">{L_SEARCH_UNREAD}</a></li><!-- ENDIF -->
               <!-- IF S_USER_LOGGED_IN -->
                    <li><a href="{U_SEARCH_NEW}">{L_SEARCH_NEW}</a></li>               
                    <li><a href="{U_SEARCH_SELF}">{L_SEARCH_SELF}</a></li>               
               <!-- ENDIF -->
               <!-- ENDIF -->
               <!-- ENDIF -->
               <!-- IF not S_IS_BOT -->
               <li><a href="{U_DELETE_COOKIES}">{L_DELETE_COOKIES}</a></li>
               <!-- IF U_TEAM -->
               <li><a href="{U_TEAM}">{L_THE_TEAM}</a></li>
               <!-- ENDIF -->
               <!-- ENDIF -->
                   </ul>
            </td>
            <!-- IF U_RESTORE_PERMISSIONS --> <td class="bbmenu"><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a></td><!-- ENDIF -->
            <!-- IF not S_USER_LOGGED_IN and not S_IS_BOT  -->
               <!--ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><td class="bbmenu"><a href="{U_REGISTER}">{L_REGISTER}</a></td><!-- ENDIF -->
            <td class="bbmenu"><a href="{U_FAQ}">{L_FAQ}</a></td>
            <!-- IF S_DISPLAY_SEARCH --><td class="bbmenu"><a href="{U_SEARCH}">{L_SEARCH}</a></td><!-- ENDIF -->
            <!-- IF S_DISPLAY_MEMBERLIST --><td class="bbmenu"><a href="{U_MEMBERLIST}">{L_MEMBERLIST}</a></td><!-- ENDIF -->
            <td class="bbmenu"><!-- IF not S_IS_BOT --><a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- ENDIF --></td>
      </tr>
      </table>
</td>
      <td width="44" style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM-Fan_16.jpg)">
      <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_16.jpg" width="44" height="15" alt="" /></td>
   </tr>
   <tr>
      <td width="14">
      <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_26.jpg" width="45" height="88" alt="" /></td>
      <td style="background:url({T_THEME_PATH}/images/DIGITAL-DREAM-Fan_23.jpg)">
      <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_22.jpg" width="129" height="88" align="left" alt="" /><img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_25.jpg" width="150" height="88" alt="" /></td>
      <td width="44">
      <img border="0" src="{T_THEME_PATH}/images/DIGITAL-DREAM-Fan_21.jpg" width="44" height="88" alt="" /></td>
   </tr>
</table>
</div>

<div id="wrapcentre">
   <br style="clear: both;" />
            <!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN -->  <span style="color: red;">{L_BOARD_DISABLED}</span><!-- ENDIF -->
   <br />


posting_body.html

Code: Select all

<!-- IF S_PRIVMSGS -->
   <!-- INCLUDE ucp_header.html -->
<!-- ELSE -->
   <!-- INCLUDE overall_header.html -->
<!-- ENDIF -->

<!-- IF S_FORUM_RULES -->
   <div class="forumrules">
      <!-- IF U_FORUM_RULES -->
         <h3>{L_FORUM_RULES}</h3><br />
         <a href="{U_FORUM_RULES}"><b>{L_FORUM_RULES_LINK}</b></a>
      <!-- ELSE -->
         <h3>{L_FORUM_RULES}</h3><br />
         {FORUM_RULES}
      <!-- ENDIF -->
   </div>

   <br clear="all" />
<!-- ENDIF -->

<!-- IF not S_PRIVMSGS -->
   <div id="pageheader">
      <h2><!-- IF TOPIC_TITLE --><a class="titles" href="{U_VIEW_TOPIC}">{TOPIC_TITLE}</a><!-- ELSE --><a class="titles" href="{U_VIEW_FORUM}">{FORUM_NAME}</a><!-- ENDIF --></h2>

      <!-- IF MODERATORS -->
         <p class="moderators">{L_MODERATORS}: {MODERATORS}</p>
      <!-- ENDIF -->
      <!-- IF U_MCP -->
         <p class="linkmcp">[ <a href="{U_MCP}">{L_MCP}</a> ]</p>
      <!-- ENDIF -->
   </div>

   <br clear="all" /><br />
<!-- ENDIF -->
    <!-- IF not S_PRIVMSGS -->
    <!-- INCLUDE livepreview.html -->
    <!-- ENDIF -->

<!-- IF not S_SHOW_PM_BOX -->
   <form action="{S_POST_ACTION}" method="post" name="postform"{S_FORM_ENCTYPE}>
<!-- ENDIF -->

<!-- IF S_DRAFT_LOADED -->
   <table class="tablebg" width="100%" cellspacing="1">
   <tr>
      <th align="center">{L_INFORMATION}</th>
   </tr>
   <tr>
      <td class="row1" align="center"><span class="gen"><!-- IF S_PRIVMSGS -->{L_DRAFT_LOADED_PM}<!-- ELSE -->{L_DRAFT_LOADED}<!-- ENDIF --></span></td>
   </tr>
   </table>

   <br clear="all" />
<!-- ENDIF -->

<!-- IF S_SHOW_DRAFTS -->
   <table class="tablebg" width="100%" cellspacing="1">
   <tr>
      <th colspan="3" align="center">{L_LOAD_DRAFT}</th>
   </tr>
   <tr>
      <td class="row1" colspan="3" align="center"><span class="gen">{L_LOAD_DRAFT_EXPLAIN}</span></td>
   </tr>
   <tr>
      <th>{L_SAVE_DATE}</th>
      <th>{L_DRAFT_TITLE}</th>
      <th>{L_OPTIONS}</th>
   </tr>
   <!-- BEGIN draftrow -->

      <!-- IF draftrow.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->

      <td class="postdetails" style="padding: 4px;">{draftrow.DATE}</td>
      <td style="padding: 4px;"><b class="gen">{draftrow.DRAFT_SUBJECT}</b>
         <!-- IF draftrow.S_LINK_TOPIC --><br /><span class="gensmall">{L_TOPIC}: <a href="{draftrow.U_VIEW}">{draftrow.TITLE}</a></span>
         <!-- ELSEIF draftrow.S_LINK_FORUM --><br /><span class="gensmall">{L_FORUM}: <a href="{draftrow.U_VIEW}">{draftrow.TITLE}</a></span>
         <!-- ELSEIF draftrow.S_LINK_PM --><br /><span class="gensmall">{L_PRIVATE_MESSAGE}</span>
         <!-- ELSE --><br /><span class="gensmall">{L_NO_TOPIC_FORUM}</span><!-- ENDIF -->
      </td>
      <td style="padding: 4px;" align="center"><span class="gen"><a href="{draftrow.U_INSERT}">{L_LOAD_DRAFT}</a></span></td>
   </tr>
   <!-- END draftrow -->
   </table>

   <br clear="all" />
<!-- ENDIF -->


<!-- IF S_POST_REVIEW --><!-- INCLUDE posting_review.html --><!-- ENDIF -->
<!-- IF S_DISPLAY_PREVIEW --><!-- INCLUDE posting_preview.html --><!-- ENDIF -->

<!-- IF not S_PRIVMSGS and S_UNGLOBALISE -->
   <table class="tablebg" width="100%" cellspacing="1">
   <tr>
      <th>{L_MOVE}</th>
   </tr>
   <tr>
      <td class="spacer" colspan="2"><img src="images/spacer.gif" alt="" width="1" height="1" /></td>
   </tr>
   <tr>
      <td class="row2" align="center"><span class="gen">{L_UNGLOBALISE_EXPLAIN}<br /><br />{L_SELECT_DESTINATION_FORUM}&nbsp;&nbsp;</span><select name="to_forum_id">{S_FORUM_SELECT}</select><br /><br /><input class="btnmain" type="submit" name="post" value="{L_CONFIRM}" />&nbsp;&nbsp; <input class="btnlite" type="submit" name="cancel_unglobalise" value="{L_CANCEL}" /></td>
   </tr>
   </table>

   <br clear="all" />
<!-- ENDIF -->

<table class="tablebg" width="100%" cellspacing="1">
<tr>
   <th colspan="2"><b>{L_POST_A}</b></th>
</tr>

<!-- IF ERROR -->
   <tr>
      <td class="row2" colspan="2" align="center"><span class="genmed error">{ERROR}</span></td>
   </tr>
<!-- ENDIF -->

<!-- IF S_DELETE_ALLOWED -->
   <tr>
      <td class="row1"><b class="genmed">{L_DELETE_POST}:</b></td>
      <td class="row2"><input type="checkbox" class="radio" name="delete" /> <span class="gensmall">[ {L_DELETE_POST_WARN} ]</span></td>
   </tr>
<!-- ENDIF -->

<!-- IF S_SHOW_TOPIC_ICONS or S_SHOW_PM_ICONS -->
   <tr>
      <td class="row1"><b class="genmed">{L_ICON}:</b></td>
      <td class="row2">
         <table width="100%" cellspacing="0" cellpadding="0" border="0">
         <tr>
            <td><input type="radio" class="radio" name="icon" value="0"{S_NO_ICON_CHECKED} /><span class="genmed"><!-- IF S_SHOW_TOPIC_ICONS -->{L_NO_TOPIC_ICON}<!-- ELSE -->{L_NO_PM_ICON}<!-- ENDIF --></span> <!-- BEGIN topic_icon --><span style="white-space: nowrap;"><input type="radio" class="radio" name="icon" value="{topic_icon.ICON_ID}"{topic_icon.S_ICON_CHECKED} /><img src="{topic_icon.ICON_IMG}" width="{topic_icon.ICON_WIDTH}" height="{topic_icon.ICON_HEIGHT}" alt="" title="" hspace="2" vspace="2" /></span> <!-- END topic_icon --></td>
         </tr>
         </table>
      </td>
   </tr>
<!-- ENDIF -->

<!-- IF not S_PRIVMSGS and S_DISPLAY_USERNAME -->
   <tr>
      <td class="row1"><b class="genmed">{L_USERNAME}:</b></td>
      <td class="row2"><input class="post" type="text" tabindex="1" name="username" size="25" value="{USERNAME}" /></td>
   </tr>
<!-- ENDIF -->

<!-- IF S_PRIVMSGS -->
   <tr>
      <td class="row1"><b class="genmed">{L_TO}:</b></td>
      <td class="row2">
         {S_HIDDEN_ADDRESS_FIELD}
      <!-- BEGIN to_recipient -->
         <span style="display: block; float: {S_CONTENT_FLOW_BEGIN};" class="nowrap genmed"><strong>
         <!-- IF to_recipient.IS_GROUP --><a href="{to_recipient.U_VIEW}"><span class="sep">{to_recipient.NAME}</span></a><!-- ELSE -->{to_recipient.NAME_FULL}<!-- ENDIF --></strong>&nbsp;<!-- IF not S_EDIT_POST --><input class="post" type="submit" name="remove_{to_recipient.TYPE}[{to_recipient.UG_ID}]" value="{L_REMOVE}" />&nbsp;<!-- ENDIF -->
         </span>
      <!-- BEGINELSE -->
         <span class="genmed">{L_NO_TO_RECIPIENT}</span>
      <!-- END to_recipient -->
      </td>
   </tr>
   <!-- IF S_ALLOW_MASS_PM -->
   <tr>
      <td class="row1"><b class="genmed">{L_BCC}:</b></td>
      <td class="row2">
      <!-- BEGIN bcc_recipient -->
         <span class="genmed nowrap"><strong>
         <!-- IF bcc_recipient.IS_GROUP --><a href="{bcc_recipient.U_VIEW}"><span class="sep">{bcc_recipient.NAME}</span></a><!-- ELSE -->{bcc_recipient.NAME_FULL}<!-- ENDIF --></strong>&nbsp;<!-- IF not S_EDIT_POST --><input class="post" type="submit" name="remove_{bcc_recipient.TYPE}[{bcc_recipient.UG_ID}]" value="{L_REMOVE}" />&nbsp;<!-- ENDIF -->
         </span>
      <!-- BEGINELSE -->
         <span class="genmed">{L_NO_BCC_RECIPIENT}</span>
      <!-- END bcc_recipient -->
      </td>
   </tr>
   <!-- ENDIF -->
<!-- ENDIF -->

<tr>
   <td class="row1" width="22%"><b class="genmed">{L_SUBJECT}:</b></td>
   <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->60<!-- ELSE -->64<!-- ENDIF -->" tabindex="2" value="{SUBJECT}" /></td>
</tr>
<!-- IF S_URL -->
<tr>
   <td class="row1" width="22%"><b class="genmed">URL:</b></td>
   <td class="row2" width="78%"><input class="post" style="width:450px" type="text" name="url" size="45" maxlength="250" tabindex="2" value="{TOPIC_URL}" /></td>
</tr>
<!-- ENDIF -->
<tr>
   <td class="row1" valign="top"><b class="genmed">{L_MESSAGE_BODY}:</b><br /><span class="gensmall">{L_MESSAGE_BODY_EXPLAIN}&nbsp;</span><br /><br />
   <!-- IF S_SMILIES_ALLOWED -->
      <table width="100%" cellspacing="5" cellpadding="0" border="0" align="center">
      <tr>
         <td class="gensmall" align="center"><b>{L_SMILIES}</b></td>
      </tr>
      <tr>
         <td align="center">
            <!-- BEGIN smiley -->
               <a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;" style="line-height: 20px;"><img src="{smiley.SMILEY_IMG}" width="{smiley.SMILEY_WIDTH}" height="{smiley.SMILEY_HEIGHT}" alt="{smiley.SMILEY_CODE}" title="{smiley.SMILEY_DESC}" hspace="2" vspace="2" /></a>
            <!-- END smiley -->
         </td>
      </tr>

      <!-- IF S_SHOW_SMILEY_LINK -->
         <tr>
            <td align="center"><a class="nav" href="{U_MORE_SMILIES}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{L_MORE_SMILIES}</a></td>
         </tr>
      <!-- ENDIF -->

      </table>
   <!-- ENDIF -->
   </td>
   <td class="row2" valign="top">
      <script type="text/javascript">
      // <![CDATA[
         var form_name = 'postform';
         var text_name = 'message';
      // ]]>
      </script>

      <table width="100%" cellspacing="0" cellpadding="0" border="0">
      <!-- INCLUDE posting_buttons.html -->
      <tr>
         <td valign="top" style="width: 100%;"><textarea name="message" id="message" rows="15" cols="76" tabindex="3" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);forceScrollBottom('livepreview');" onkeydown="forceScrollBottom('livepreview');" onfocus="initInsertions();" style="width: 99%;">{MESSAGE}</textarea></td>
         <!-- IF S_BBCODE_ALLOWED and (not S_ABBC3_COLOR or S_ABBC3_COLOR_MODE eq 'phpbb') -->
         <td width="0" align="center" valign="top">
            <script type="text/javascript">
            // <![CDATA[
               //colorPalette('v', 7, 6)
            // ]]>
            </script>
         </td>
         <!-- ENDIF -->
       </tr>
      </table>
   </td>
</tr>

<!-- IF S_INLINE_ATTACHMENT_OPTIONS -->
   <tr>
      <td class="row1"><b class="genmed">{L_ATTACHMENTS}:</b></td>
      <td class="row2"><select name="attachments">{S_INLINE_ATTACHMENT_OPTIONS}</select>&nbsp;<input type="button" class="btnbbcode" accesskey="a" value="{L_PLACE_INLINE}" name="attachinline" onclick="attach_form = document.forms[form_name].elements['attachments']; attach_inline(attach_form.value, attach_form.options[attach_form.selectedIndex].text);" onmouseover="helpline('a')" onmouseout="helpline('tip')" />
      </td>
   </tr>
<!-- ENDIF -->

<tr>
   <td class="row1" valign="top"><b class="genmed">{L_OPTIONS}:</b><br />
      <table cellspacing="2" cellpadding="0" border="0">
      <tr>
         <td class="gensmall">{BBCODE_STATUS}</td>
      </tr>
      <!-- IF S_BBCODE_ALLOWED -->
      <tr>
         <td class="gensmall">{IMG_STATUS}</td>
      </tr>
      <tr>
         <td class="gensmall">{FLASH_STATUS}</td>
      </tr>
      <tr>
         <td class="gensmall">{URL_STATUS}</td>
      </tr>
      <!-- ENDIF -->
      <tr>
         <td class="gensmall">{SMILIES_STATUS}</td>
      </tr>
      </table>
   </td>
   <td class="row2">
      <table cellpadding="1">
      <!-- IF S_BBCODE_ALLOWED -->
         <tr>
            <td><input type="checkbox" class="radio" name="disable_bbcode"{S_BBCODE_CHECKED} /></td>
            <td class="gen">{L_DISABLE_BBCODE}</td>
         </tr>
      <!-- ENDIF -->

      <!-- IF S_SMILIES_ALLOWED -->
         <tr>
            <td><input type="checkbox" class="radio" name="disable_smilies"{S_SMILIES_CHECKED} /></td>
            <td class="gen">{L_DISABLE_SMILIES}</td>
         </tr>
      <!-- ENDIF -->

      <!-- IF S_LINKS_ALLOWED -->
      <tr>
         <td><input type="checkbox" class="radio" name="disable_magic_url"{S_MAGIC_URL_CHECKED} /></td>
         <td class="gen">{L_DISABLE_MAGIC_URL}</td>
      </tr>
      <!-- ENDIF -->

      <!-- IF S_SIG_ALLOWED -->
         <tr>
            <td><input type="checkbox" class="radio" name="attach_sig"{S_SIGNATURE_CHECKED} /></td>
            <td class="gen">{L_ATTACH_SIG}</td>
         </tr>
      <!-- ENDIF -->

      <!-- IF S_NOTIFY_ALLOWED -->
         <tr>
            <td><input type="checkbox" class="radio" name="notify"{S_NOTIFY_CHECKED} /></td>
            <td class="gen">{L_NOTIFY_REPLY}</td>
         </tr>
      <!-- ENDIF -->

      <!-- IF not S_PRIVMSGS -->
         <!-- IF S_LOCK_TOPIC_ALLOWED -->
            <tr>
               <td><input type="checkbox" class="radio" name="lock_topic"{S_LOCK_TOPIC_CHECKED} /></td>
               <td class="gen">{L_LOCK_TOPIC}</td>
            </tr>
         <!-- ENDIF -->

         <!-- IF S_LOCK_POST_ALLOWED -->
            <tr>
               <td><input type="checkbox" class="radio" name="lock_post"{S_LOCK_POST_CHECKED} /></td>
               <td class="gen">{L_LOCK_POST} [{L_LOCK_POST_EXPLAIN}]</td>
            </tr>
         <!-- ENDIF -->

         <!-- IF S_TYPE_TOGGLE -->
            <tr>
               <td>&nbsp;</td>
               <td class="gen"><!-- IF S_EDIT_POST -->{L_CHANGE_TOPIC_TO}<!-- ELSE -->{L_POST_TOPIC_AS}<!-- ENDIF -->: <!-- BEGIN topic_type --><input type="radio" class="radio" name="topic_type" value="{topic_type.VALUE}"{topic_type.S_CHECKED} />{topic_type.L_TOPIC_TYPE}&nbsp;&nbsp;<!-- END topic_type --></td>
            </tr>
         <!-- ENDIF -->
      <!-- ENDIF -->
      </table>
   </td>
</tr>

<!-- IF S_TOPIC_TYPE_ANNOUNCE or S_TOPIC_TYPE_STICKY -->
   <tr>
      <td class="row1"><b class="genmed">{L_STICK_TOPIC_FOR}:</b><br /><span class="gensmall">{L_STICKY_ANNOUNCE_TIME_LIMIT}</span></td>
      <td class="row2"><input class="post" type="text" name="topic_time_limit" size="3" maxlength="3" value="{TOPIC_TIME_LIMIT}" />&nbsp;<b class="gen">{L_DAYS}</b> <span class="gensmall">{L_STICK_TOPIC_FOR_EXPLAIN}</span></td>
   </tr>
<!-- ENDIF -->

<!-- IF S_EDIT_REASON -->
   <tr>
      <td class="row1" valign="top"><b class="genmed">{L_EDIT_REASON}:</b></td>
      <td class="row2"><input class="post" type="text" name="edit_reason" size="50" value="{EDIT_REASON}" /></td>
   </tr>
<!-- ENDIF -->

      <!-- IF CAPTCHA_TEMPLATE and S_CONFIRM_CODE -->
      <!-- INCLUDE {CAPTCHA_TEMPLATE} -->
      <!-- ENDIF -->


<!-- IF S_SHOW_ATTACH_BOX or S_SHOW_POLL_BOX -->
   <tr>
      <td class="cat" colspan="2" align="center">
         <input class="btnlite" type="submit" tabindex="5" name="preview" value="{L_PREVIEW}" />
         &nbsp; <input class="btnmain" type="submit" accesskey="s" tabindex="6" name="post" value="{L_SUBMIT}" />
         <!-- IF S_SAVE_ALLOWED -->&nbsp; <input class="btnlite" type="submit" accesskey="k" tabindex="7" name="save" value="{L_SAVE_DRAFT}" /><!-- ENDIF -->
         <!-- IF S_HAS_DRAFTS -->&nbsp; <input class="btnlite" type="submit" accesskey="d" tabindex="8" name="load" value="{L_LOAD_DRAFT}" /><!-- ENDIF -->
         &nbsp; <input class="btnlite" type="submit" accesskey="c" tabindex="9" name="cancel" value="{L_CANCEL}" />
      </td>
   </tr>

   <!-- IF S_SHOW_ATTACH_BOX --><!-- INCLUDE posting_attach_body.html --><!-- ENDIF -->

   <!-- IF S_SHOW_POLL_BOX -->
      <!-- INCLUDE posting_poll_body.html -->
   <!-- ELSEIF S_POLL_DELETE -->
      <tr>
         <td class="row1"><span class="genmed"><b>{L_POLL_DELETE}:</b></span></td>
         <td class="row2"><input type="checkbox" class="radio" name="poll_delete" /></td>
      </tr>
   <!-- ENDIF -->
<!-- ENDIF -->

<tr>
   <td class="cat" colspan="2" align="center">{S_HIDDEN_FIELDS}
      <input class="btnlite" type="submit" tabindex="10" name="preview" value="{L_PREVIEW}" />
      &nbsp; <input class="btnmain" type="submit" accesskey="s" tabindex="11" name="post" value="{L_SUBMIT}" />
      <!-- IF not S_SHOW_ATTACH_BOX and not S_SHOW_POLL_BOX -->
         <!-- IF S_SAVE_ALLOWED -->&nbsp; <input class="btnlite" type="submit" accesskey="k" tabindex="12" name="save" value="{L_SAVE_DRAFT}" /><!-- ENDIF -->
         <!-- IF S_HAS_DRAFTS -->&nbsp; <input class="btnlite" type="submit" accesskey="d" tabindex="13" name="load" value="{L_LOAD_DRAFT}" /><!-- ENDIF -->
      <!-- ENDIF -->
      &nbsp; <input class="btnlite" type="submit" accesskey="c" tabindex="14" name="cancel" value="{L_CANCEL}" />
   </td>
</tr>
</table>
<!-- IF not S_PRIVMSGS -->
   {S_FORM_TOKEN}
   </form>
<!-- ENDIF -->
<br clear="all" />

<!-- IF S_DISPLAY_REVIEW --><!-- INCLUDE posting_topic_review.html --><!-- ENDIF -->
<!-- IF S_DISPLAY_HISTORY --><!-- INCLUDE ucp_pm_history.html --><!-- ENDIF -->

<!-- IF S_PRIVMSGS -->
   <!-- INCLUDE ucp_footer.html -->
<!-- ELSE -->

   <!-- INCLUDE breadcrumbs.html -->


   <!-- IF S_DISPLAY_ONLINE_LIST -->
      <br clear="all" />

      <table class="tablebg" width="100%" cellspacing="1">
      <tr>
         <td class="cat"><h4>{L_WHO_IS_ONLINE}</h4></td>
      </tr>
      <tr>
         <td class="row1"><span class="gensmall">{LOGGED_IN_USER_LIST}</span></td>
      </tr>
      </table>
   <!-- ENDIF -->

   <br clear="all" />

   <table width="100%" cellspacing="1">
   <tr>
      <td align="{S_CONTENT_FLOW_END}"><!-- INCLUDE jumpbox.html --></td>
   </tr>
   </table>

   <!-- INCLUDE overall_footer.html -->
<!-- ENDIF -->


livepreview.html

Code: Select all

<script type="text/javascript" src="{T_TEMPLATE_PATH}/livepreview.js"></script> 
<script type="text/javascript">
// <![CDATA[
function forceScrollBottom(divName)
{

var mydiv = document.getElementById(divName);

     for (i = 50; i < mydiv.scrollHeight; i += 50)
     {
     var tmp = mydiv.scrollTop;
     mydiv.scrollTop += i;
         if (tmp == mydiv.scrollTop)
        {
         break;
        }
     }
}

var Marker = [0];
function contentScroller()
{

var div1 = document.getElementById('livepreview');
var div2 = document.getElementsByName('message')[0];
var control = null;

     if (div1.scrollTop != Marker[0])
    {
     control = div1;
    }
         if (control == null)
       {
         return;
       }
         else
       {
         div2.scrollTop = control.scrollTop;
         Marker[0] = div2.scrollTop;
       }
}
// ]]>
</script>
 <div class="post bg2">
   <div class="inner"><span class="corners-top"><span></span></span>
   <div id="livepreview" class="postbody" style="max-height:200px;min-height:200px;width:80%;overflow:auto;" onmouseover="contentScroller();"></div>
   <span class="corners-bottom"><span></span></span></div>
</div>
ahmedmoselhi
Registered User
Posts: 17
Joined: Wed Feb 10, 2010 12:07 pm
Contact:

Re: subsilver2 problem

by 4_seven » Mon Jan 09, 2012 11:23 pm

have you checked the mod testwise on standard subsilver2 before?
if no, pls. check this, before i make my own test.
btw., what's the name of the style?
Current Mods | Mod Base | php(BB) programming | No help via PM
User avatar
4_seven
I've Been Banned!
Posts: 5155
Joined: Wed Apr 30, 2008 1:41 am
Contact: