News: September 21st, 2019, The Tinyportal team is pleased to announce the release of ~~ TinyPortal 1.6.4! GET IT NOW!!!

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

December 08, 2019, 03:10:19 PM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189279
  • Total Topics: 20775
  • Online Today: 612
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 507
Total: 508

Author Topic: Manual Entry of Code - index.template.php  (Read 3175 times)

0 Members and 1 Guest are viewing this topic.

copter

  • Guest
Manual Entry of Code - index.template.php
« on: May 01, 2006, 06:49:57 AM »
Hi  :)

In the manual installation instruction text document, it says the following must be found and edited etc.


Quote
<search for>
               <img src="', $settings['header_logo_url'], '" alt="',

$context['forum_name'], '" border="0" />';
</search for>
<add after>
// TinyPortal
     if($context['TPortal']['showtop']==1)
     {
// TinyPortal end
</add after>

<search for>
                     ', $context['common_stats']['total_posts'],

' ', $txt[95], ' ', $txt['smf88'], ' ', $context['common_stats']['total_topics'], ' ', $txt[64], ' ', $txt[525], '

<span style="white-space: nowrap;">', $context['common_stats']['total_members'], ' ', $txt[19], '</span><br

/>
                     ', $txt[656], ': ',

$contex
t['common_stats']['latest_member']['link'], '
                  </div>
               </div>';
</search for>
<add after>

// TinyPortal
       }
//  end
</add after>



<search for>
      <a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img

id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '"

alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 2ex 2px 0;" border="0" />[/url]';
</search for>
<replace>
';
// TinyPortal

         if($context['TPortal']['showtop'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink"

src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="',

$txt['upshrink_description'], '" style="margin: 2px 0;" border="0" />[/url]<img id="upshrinkTemp" src="',

$settings['images_url'], '/blank.gif" alt="" style="margin-right: 1ex;" /> ';
         if($context['TPortal']['leftbar'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img

id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' :

'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" />[/url]<img

id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
         if($context['TPortal']['rightbar'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img

id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' :

'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" />[/url]<img

id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
// TinyPortal end
</replace>

<search for>
   // The main content should go here.  A table is used because IE 6 just can't handle a div.
   echo '
   <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>
      <td id="bodyarea" style="padding: 1ex 20px 2ex 20px;">';
</search for>
<replace>
     // The main content should go here.  A table is used because IE 6 just can't handle a div.
        echo '<div id="bodyarea" style="padding: 10px 8px 0px 8px;">
        <table width="100%" cellpadding="0" cellspacing="0" border="0"><tr>';

// TinyPortal integrated bars
          if($context['TPortal']['leftbar'])
          {
              echo '<td width="' ,$context['TPortal']['leftbar_width'], '" style="padding: ' ,

isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px; background-color: #D4D4D4; padding-top:

4px;" valign="top">
                 <div id="leftbarHeader"', empty($options['collapse_leftbar']) ? '' : ' style="display: none;"', '

style="padding-top: 5px; width: ' ,$context['TPortal']['leftbar_width'], 'px;">';
                 TPortal_sidebar('left');
              echo '</div></td>';

          }

        echo '<td width="100%" align="left" valign="top" style="padding-top: 10px; padding-bottom: 10px;">';
        if($context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_sidebar('center') , '</div>';
</replace>

<search for>
   echo '</td>
   </tr></table>';
</search for>
<replace>
   echo '</td>';

         // TinyPortal integrated bars
          if($context['TPortal']['rightbar']){
              echo '<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px;

background-color: #D4D4D4; padding-top: 4px;" valign="top" align="right">
                 <div id="rightbarHeader"', empty($options['collapse_rightbar']) ? '' : ' style="display: none;"', '

style="width: ' ,$context['TPortal']['rightbar_width'], 'px; text-align: left; padding-top: 5px;">';
              TPortal_rightbar();
              echo '</div></td>';
          }

        echo '</tr></table></div>';

</replace>

<search for>
            <td valign="middle" align="center" style="white-space: nowrap;">
               ', theme_copyright(), '
            </td>
</search for>
<replace>
                           <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), '
', tportal_version() , '
                                </td>
</replace>

<search for>
   echo '
   </body>
</html>';
</search for>
<add before>
// TinyPortal
         echo '</div>';
     if($context['TPortal']['fixed_width']!=0)
             echo '</td></tr></table>';
// end

</add before>

<search for>
   // Show the [home] and [help] buttons.
   echo '
            <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' .

$settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;"

border="0" />' : $txt[103]), '[/url]', $context['menu_separator'], '
            <a href="', $scripturl, '?action=help" target="_blank">',

($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif"

alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '[/url]', $context['menu_separator'];
</search for>
<replace>
     // Show the [home] and [help] buttons.
       echo '
                     <a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' .

$context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]),

'[/url]', $context['menu_separator'];
       echo '        <a href="', $scripturl, '?action=forum">', ($settings['use_image_buttons'] ? '<img src="' .

$settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="Forum Index" style="margin: 2px 0;"

border="0" />' : 'Forum Index'), '[/url]', $context['menu_separator'];
       echo '        <a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img

src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px

0;" border="0" />' : $txt[119]), '[/url]', $context['menu_separator'];
</replace>

But I cannot seem to find it any of my themes, which are 7 Dana, Default, Classic, Cerebrus; Is it meant to be in the index.template.php files or some other files? or Is it not needed?

Thanks for taking your time to read this  :)

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: Manual Entry of Code - index.template.php
« Reply #1 on: May 01, 2006, 08:27:52 AM »
themes /DEFAULT/index.template.php

Always the default theme you install the portal to

And if you have other themes installed now, you wont have the postal show up. You need to remove all the other templates you have installed exept the ones that comes with the SMF package.

And this is about the 5th time you ask the same questions about the install of TP.
Stay in ONE thread and follow the links we have directed you to in the other threads you started.
You have all the answers there.

MarshalAlex

  • Guest
Re: Manual Entry of Code - index.template.php
« Reply #2 on: May 08, 2006, 07:08:28 PM »
can someone put that in my index.template.php :(

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: Manual Entry of Code - index.template.php
« Reply #3 on: May 09, 2006, 01:21:42 AM »
Here you go :)

MarshalAlex

  • Guest
Re: Manual Entry of Code - index.template.php
« Reply #4 on: May 09, 2006, 04:21:04 AM »
thx m8!

MarshalAlex

  • Guest
Re: Manual Entry of Code - index.template.php
« Reply #5 on: May 09, 2006, 05:42:07 AM »
hmm when i do that my site id half default
btw here is my site www.marshal-alex.net
hmm mybe i shuld not add the header from this code and change the BG color to picture...

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: Manual Entry of Code - index.template.php
« Reply #6 on: May 09, 2006, 05:49:34 AM »
AH... 1.1rc2    I gave you the file for 1.0.7  :o  :idiot2:

here is the right index.template.php for your version of SMF

But i looked at your site, you do make the TP install to the DEFAULT theme right?

This index.template.php is for the default theme and nothing else.



MarshalAlex

  • Guest
Re: Manual Entry of Code - index.template.php
« Reply #7 on: May 09, 2006, 07:05:28 AM »
lol ok thx