News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Layout Problem after Install - Confused

Started by allendover1, December 12, 2005, 09:33:33 PM

Previous topic - Next topic

allendover1

Hey all - I have installed the SMF Forum with a programmers help.  The site it is currently on is http://www.getloanscheap.com [nofollow] - under the menu structure called Forum.

I use Joomla on everything so that might be some of the issue already since I have had to add the bridge mod and some script into the site to make the log in - into Joomla and SMF work at the same time - as per SMF Request.

The Layout is messed up and the code is wrong on it - what did we do wrong - never seen this one before.  If anyone can help us with this issue that would be awesome.

Please check the site out and you will see what has happened at the bottom of the Forum

Staff - GetLoansCheap.com [nofollow]
Allen Dover - Owner ???

http://www.getloanscheap.com [nofollow]

Doug

Try  replacing this in your index.template.php


// 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'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></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'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
                           <td valign="middle" align="center" style="white-space: nowrap;" class="smalltext">
                                        ', theme_copyright(), ' <br />', tportal_version() , '
                                </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'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></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'], '" width="54" height="20" style="margin: 5px 16px;" border="0" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
</tr>
</table>';

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

allendover1

Hey and thanks for the reply,

The Only problem I see with that is, I am already over my head with knowledge about programming, lol... I love getting in deep on things I don't know anything about, fun.

I see the code and know how to copy & paste code into code, but not sure where to put that.  I did look up the page you said, it is in the Template section of the SMF folders - there are 2 templates in there, both have that same file, just tweaked for that certain template.

They both (Files - index.template.php) are much longer than what you gave me to put in there?  Do I just replace the whole page with what you gave me?  or what?  Again I hate to sound stupid but trying very hard to get this fixed with any help.

Thanks so much, Allen

redone

The poster above is suggesting you locate the code information in your index.template file and replace the code with what he posted above. Copy & paste a search for the information below and replace it with what has been provided in this post.

;)

allendover1

#4
 :-[  Well I have tried that one and it didn't work, at least I don't see that it did.  I was looking through  the page in FireFox and I.E. both, both come up very bad.

I mean the forum really comes up messed up - but when viewing the code via - view page source from browser I noticed out of place header content in the body tag - and alot of them are not closed properly.

I just can't seem to find the page to fix to make this work right again.

I need help fast on this issue, please...

Any help would be awesome - as I really want to use this great forum.  We did install phpBB but just don't like the feel and isn't as powerful to me personally as SMF is...  SO I want to work this out and get it up and working well on here.

Thanks - again any help would be great.

Allen

P.S.  The Code I see when pulling via the View Page Source code from my browser is below - weird codeing... I think it is the problem - we have done a few clean installs as well - doesn't work on this side.  Look at where the mosmainbody tag starts - you will see what I mean then... You will find it is a mess in I.E. as well as FireFox

<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;>charset=iso-8859-1" />
<title>Mortgage, Refi, Home Mortgages, House, Home Loans, 2nd, 1st, Interest Rates</title>
<meta name="description" content="Mortgage based leads site provides advice with mortgage, refi, refinance, home refinance, house refi, loans, 1st, 2nd mortgages, home equity line, interest rates., My Community - Index." />
<meta name="keywords" content="Mortgage, Mortgages, Refi, Refinance, Home Mortgages, Home Refinance, House Mortgage, House Refi, House Refinance, House Loan, Home Loans, 2nd Mortgages, 1st Mortgages, Home Equity Line, Home Equity, Interest Rates, Home Loan Rates, Mortgage Rates, Mortgage Interest Rates, Home Loan Interest Rates, Home Loan Rates, Home Refinance Rates, Home Refi Rates, My, Community, Index" />
<meta name="Generator" content="Joomla! - Copyright (C) 2005 Open Source Matters. All rights reserved." />
<meta name="robots" content="index, follow" />
<base href="http://www.getloanscheap.com/" />
<link rel="shortcut icon" href="http://www.getloanscheap.com/images/favicon.ico" />
<link rel="stylesheet" href="templates/glc_2005_dec/css/template_css.css" type="text/css"/><!--[if IE]>
  <link rel="stylesheet" href="templates/glc_2005_dec/css/template_css_fix_ie.css" type="text/css"/><![endif]-->
<link rel="shortcut icon" href="http://www.getloanscheap.com/images/favicon.ico" /><script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

</head>
   
    <body>


      <div class="containerOuter">
        <div class="breadcrumbArea"><span class="pathway"><a href="index.php" class="pathway">Home</a> <img src="http://www.getloanscheap.com/images/M_images/arrow.png" alt="arrow" />   Forum </span></div>
        <div class="dateArea">Tuesday, 20 December 2005</div>
      </div>

     

      <div class="containerOuter">

        <div class="borderedWhiteArea">
          <div class="headerArea">
            <div class="headerLeftAreaHolder">
              <div class="headerLeftArea">
                <div class="user1Area"> <table cellpadding="0" cellspacing="0" class="moduletable">
<tr>

<td>
<img width="160" vspace="5" hspace="5" height="56" border="0" align="left" src="images/stories/blue_girl_offline.gif" alt="blue_girl_offline.gif" title="blue_girl_offline.gif" /> </td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<img src="http://www.getloanscheap.com/modules/mod_akobrowserprefs/abp_favs.png" align="absmiddle" hspace="3" vspace="3"><a href="javascript:;" onClick="window.external.addFavorite('http://www.getloanscheap.com', 'Mortgage, Refi, Home Mortgages, House, Home Loans, 2nd, 1st, Interest Rates')">Bookmark Website</a><br /><img src="http://www.getloanscheap.com/modules/mod_akobrowserprefs/abp_page.png" align="absmiddle" hspace="3" vspace="3"><a href="javascript:;" onClick="window.external.addFavorite(top.location.href, 'Mortgage, Refi, Home Mortgages, House, Home Loans, 2nd, 1st, Interest Rates')">Bookmark Page</a><br /><img src="http://www.getloanscheap.com/modules/mod_akobrowserprefs/abp_home.png" align="absmiddle" hspace="3" vspace="3"><a href="javascript:;" style="behavior:url(#default#homepage)" onClick="setHomePage('http://www.getloanscheap.com')" >Make homepage</a><br /><img src="http://www.getloanscheap.com/modules/mod_akobrowserprefs/abp_print.png" align="absmiddle" hspace="3" vspace="3"><a href="javascript:;" onClick="window.print(); return false;">Print Page</a><br /> </td>

</tr>
</table>
</div>              </div>
            </div>
            <div class="headerRightArea">             
              <div class="searchArea" id="searchArea">
                <div class="user2Area"> <table cellpadding="0" cellspacing="0" class="moduletable">
<tr>

<td>

<form action="http://www.getloanscheap.com/search/Page_2.html" method="get">
<div align="left" class="search">
<input name="searchword" id="mod_search_searchword" maxlength="20" alt="search" class="inputbox" type="text" size="12" value="search..."  onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" /><input type="submit" value="Go" class="button"/> </div>

<input type="hidden" name="option" value="com_search" />
<input type="hidden" name="Itemid" value="" />
</form> </td>
</tr>

</table>
</div>              </div>
            </div>
          </div>
          <div class="contentAreaHolder">
            <div class="contentArea">
             
              <div class="mosMainBody"><!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"><head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

<meta name="description" content="My Community - Index" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="http://getloanscheap.com/forum/Themes/default/script.js?rc1"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://getloanscheap.com/forum/Themes/default";
var smf_images_url = "http://getloanscheap.com/forum/Themes/default/images";
var smf_scripturl = "http://www.getloanscheap.com/index.php?option=com_smf&Itemid=163&";
var smf_session_id = "d78cb33286056e151b786f9bd2e27513";
// ]]></script>
<title>My Community - Index</title>
<link rel="stylesheet" type="text/css" href="http://getloanscheap.com/forum/Themes/default/style.css?rc1" />
<link rel="stylesheet" type="text/css" href="http://getloanscheap.com/forum/Themes/default/print.css?rc1" media="print" />

<link rel="help" href="http://www.getloanscheap.com/Forum/Page_50.html target="_blank />
<link rel="search" href="http://www.getloanscheap.com/Forum/Page_51.html />
<link rel="contents href="http://www.getloanscheap.com/Forum/Page_52.html />
<link rel="alternate type="application/rss+xml" title="My Community - RSS" href="http://www.getloanscheap.com/Forum/Page_53.html />

Oldiesmann

I suggest using Orstio's bridge instead of the one from JoomlaHacks. You'll have better luck with Orstio's bridge.
Michael Eshom
Christian Metal Fans

Advertisement: