News:

Version 3.5 has been released. Visit https://custom.simplemachines.org/mods/index.php?mod=255 to get the most up to date version.

Main Menu
Coinbase

Edits for ad mod_1-0-7_v1-0-2b on Smf 1.0.7

Started by bigguy, July 04, 2006, 10:55:33 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

hygron

Here you go.  I cut out the edits...and this is the same file I have been working on...If you need more of it;  Let me know. I just included area you had posted...peace, Hygron

__________________________________________________________
        // 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">';


                           
// 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;  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;" id="bodyarea">';
        if($context['TPortal']['centerbar'])
                     echo '<div>' , TPortal_sidebar('center') , '</div>';
}

function template_main_below()
{
        global $context, $settings, $options, $scripturl, $txt;

        echo '</td>';
         // TinyPortal integrated bars
          if($context['TPortal']['rightbar']){
              echo '<td style="padding: ' , isset($context['TPortal']['padding']) ? $context['TPortal']['padding'] : '4' , 'px;  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_sidebar('right');
              echo '</div></td>';
          }

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

        // Show the "Powered by" and "Valid" logos, as well as the copyright.  Remember, the copyright must be somewhere!

       
   echo '

        <div id="footerarea" style="text-align: center; padding-bottom: 1ex;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">
                <script language="JavaScript" type="text/javascript"><!--
                        function smfFooterHighlight(element, value)
                        {
                                element.src = smf_images_url + "/" + (value ? "h_" : "") + element.id + ".gif";
                        }
                // --></script>
                <table cellspacing="0" cellpadding="3" border="0" align="center" width="100%">
                        <tr>
                                <td width="28%" valign="middle" align="right">
                                        <a href="http://www.mysql.com/" target="_blank"><img id="powered-mysql" src="', $settings['images_url'], '/powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" style="margin: 5px 16px;" border="0"  /></a>
                                        <a href="http://www.php.net/" target="_blank"><img id="powered-php" src="', $settings['images_url'], '/powered-php.gif" alt="', $txt['powered_by_php'], '" style="margin: 5px 16px;" border="0"  /></a>
                                </td>
                                <td valign="middle" align="center" style="white-space: nowrap;" class="smalltextwhite">
                                        ', theme_copyright(), ' <br /><b>TechHead</b> / ',  tportal_version()  , '
                                        Bloc</a>
                                </td>
                                <td width="28%" valign="middle" align="left">
                                        <a href="http://validator.w3.org/check/referer" target="_blank"><img id="valid-xhtml10" src="', $settings['images_url'], '/valid-xhtml10.gif" alt="', $txt['valid_xhtml'], '" style="margin: 5px 16px;" border="0" /></a>
                                        <a href="http://jigsaw.w3.org/css-validator/check/referer" target="_blank"><img id="valid-css" src="', $settings['images_url'], '/valid-css.gif" alt="', $txt['valid_css'], '"  style="margin: 5px 16px;" border="0"  /></a>
                                </td>
                        </tr>
                </table>';

        // Show the load time?
        if ($context['show_load_time'])
                echo '
                <span class="smalltextwhite">', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '</span>';

          echo '
                </div></div>';

        // This is an interesting bug in Internet Explorer AND Safari.  Rather annoying, it makes overflows just not tall enough.
       
Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

bigguy

Well, I'll try to work with that but uploading the file would have been better.

hygron

#17
Sorry, I'm new at all this...about 1 month...You have to spell it out for me.  This is the themes/techead/index.template.php         Is this what you asked for?
Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

bigguy


bigguy

Ok, I didn't know you had Tp installed (Tp=TinyPortal) So I doubt this will work but give it a shot. Remember BACKUP the file you are working with before you edit anything.

hygron

that's funny bigguy...I put that info TP in my 1st post in this thread...

Ok...I am going to try the file you edited...thanks
I thought you knew I had TP...What to do if, this doesn't work?

Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

hygron

his is the message I got with your file.

Parse error: parse error, unexpected '<' in /home/hygron/domains/hygronomics.com/public_html/forums/Themes/techead/index.template.php on line 346
Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

bigguy

TO many things going on right now lol. I`ll try your file again.

Quote from: hygron on August 22, 2006, 09:07:48 PM
that's funny bigguy...I put that info TP in my 1st post in this thread...

Ok...I am going to try the file you edited...thanks
I thought you knew I had TP...What to do if, this doesn't work?



hygron

#23
good man, thanks...I really want to get a handle on this...there is so many different aspects about php,mysql, themes, style...bbbbbbbbbbb(while shaking head).  check ya later
Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

hygron

I got another Q for you bigguy.  If I upgrade to 1.0.8 with ad manager

how much work will it be to reinstall TP, and techhead
Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

hygron

I just went to edit server settings in tpadmin...this message was waiting at the top.  Maybe this is the problem, eh?

Failed to make backup of Settings.php - make sure Settings_bak.php exists and is writable
Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

bigguy

Make sure settings_bak.php is chmodded to 777 I`m still working on your file. Maybe the people at Tiny Portal would have ideas on how to get the ad mod working. I'm still playing but having a hard time with TP.

hygron

funny you mention that bigguy.  TP has a new version coming this week with ad man, included.   so, I will be upgrading to smf1.0.8/TP.095

that pretty much is going to solve the Ad Man, issue.  but, Now I have to Modify the whole site...On the upside.  this time I will do everything in the correct order.  Thanks.  check ya' later
Live a greener healthier intentionally self-substantial lifestyle, and leave a smaller footprint on dear "Mother Earth"

DoA

Hi bigguy,
I noticed in another thread that you'd sorted a tutorial on how to edit the helios_multi theme for smf only.

I'm currently having great difficulty sorting this theme, so if you could send me the link or help me edit the theme i'd be very greatful!

DoA

p.s. I clicked an ad - I know how hard it it to get forum clicks!

bigguy

If you want to send the 1.0.7 version of the theme I will see what I can do.