News:

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

Main Menu

So far so good ... except

Started by jzkiller, February 22, 2006, 09:17:19 PM

Previous topic - Next topic

jzkiller

I have recently embarked on recreating a site from scratch using Joomla with SMF and also Gallery2.

hxxp:awesomeforce.pineshop.com.au [nonactive]

I have successfully deployed
Joomla! 1.0.5 Stable
SMF 1.1 RC2


I have applied the Bridge Mambo, Joomla SMF 1.1.2
I have copied the code, and pasted it into the header area (between the <head> and </head> tags) of my Joomla template.

I have added this line just below the </body> (the closing body tag at the bottom) tag of the template.
<?php mysql_select_db($GLOBALS['db_name']); ?>

Following is my current Joomla template index.php
/path_to_my_site/templates/rhuk_planetfall/index.php

<?php
defined
'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso explode'='_ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';
?>

<!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>
<?php
if ( $my->id ) {
initEditor();
}
?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO?>" />
<?php mosShowHead(); ?>
<link href="<?php echo $mosConfig_live_site;?>/templates/rhuk_planetfall/css/template_css.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<?php echo $mosConfig_live_site;?>/modules/mod_smo_ajax_shoutbox_css.php" type="text/css" />
<script type="text/javascript" src="<?php echo $mosConfig_live_site;?>/modules/mod_smo_ajax_shoutbox_js.php"></script>
<?php
global $sc$context$settings;

if (!
defined('SMF')){
require (
"administrator/components/com_smf/config.smf.php");
require (
$smf_path."/SSI.php");
}

$sc = &$context['session_id'];
$_SESSION['USER_AGENT'] = $_SERVER['HTTP_USER_AGENT'];

mysql_select_db($mosConfig_db);

echo 
'
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/script.js?beta4"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "'
$settings['theme_url'], '";
var smf_images_url = "'
$settings['images_url'], '";
var smf_scripturl = "'
$scripturl'";
var smf_session_id = "'
$context['session_id'], '";
// ]]></script>'
;

echo 
'
<link rel="stylesheet" type="text/css" href="'
$settings['theme_url'], '/style.css?rc1" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?beta4" media="print" />
<link rel="help" href="'
$scripturl'?action=help" target="_blank" />
<link rel="search" href="' 
$scripturl '?action=search" />
<link rel="contents" href="'
$scripturl'" />';
?>

</head>
<body class="page_bg">
<a name="up" id="up"></a>
<?php
@$collspan_offset = ( mosCountModules'right' ) + mosCountModules'user2' ) and !$_REQUEST['task'] == 'edit' ) ? 1;
?>

<div align="center" >
<table width="798" border="0" cellpadding="0" cellspacing="0" class="big_frame">
<tr>
<td colspan="<?php echo $collspan_offset 1?>">
<img src="<?php echo $mosConfig_live_site?>/templates/rhuk_planetfall/images/top_bar.jpg" width="798" height="9" alt=""/>
</td>
</tr>
<tr>
<td colspan="<?php echo $collspan_offset?>" class="header">
<img src="<?php echo $mosConfig_live_site?>/templates/rhuk_planetfall/images/spacer.png" width="646" height="9" alt=""/>
<br />
</td>
<td class="top_right_box" style="width: 151px; padding-left: 5px;" valign="top">
<table cellpadding="0" cellspacing="1" border="0" width="120" class="contentpaneopen">
<tr>
<td class="contentheading" width="145">
Search
</td>
</tr>
<tr>
<td>
<form action='index.php' method='post'>
<div class="searchblock" id="searchblock">
Enter Keywords:
<input size="15" class="inputbox" type="text" name="searchword" style="width:128px;" value="search..."  onblur="if(this.value=='') this.value='search...';" onfocus="if(this.value=='search...') this.value='';" />
<input type="hidden" name="option" value="search" />
<div align="left">
<input type="submit" value="GO" class="button" style="width:35px;" />
</div>
</div>
</form>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="<?php echo $collspan_offset+1?>" class="silver_box" style="height:26px;">
<div id="silver_toolbar">
<div id="silver_date">
<?php echo mosCurrentDate(); ?>
</div>
<div id="silver_menu">
<?php mosLoadModules 'user3' ); ?>
</div>
<div style="clear: both;"></div>
</div>
</td>
</tr>
<tr>
<td valign="top" class="content_box">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td>
<!-- main content area -->
<div class="contentblock" id="contentblock" style="width:<?php echo 635 - ( 151 * ( $collspan_offset-) )   ?>">
<?php mosPathWay(); ?>
<br />
<?php
if ( mosCountModules'top' ) ) {
mosLoadModules 'top' );
}
mosMainBody();
?>

<br />
</div>
<?php
if ( mosCountModules'bottom' ) ) { ?>

<div class="footerblock" id="footerblock">
<?php mosLoadModules 'bottom' ); ?>
<br />
</div>
<?php
}
?>

</td>
</tr>
</table>
</td>
<?php
if ( ( mosCountModules'right' ) + mosCountModules'user2' ) ) and @!$_REQUEST['task'] == 'edit' ) {
?>

<td valign="top" class="middle_box" width="151" style="width:151px">
<div id="middle_box">
<?php
if ( mosCountModules'right' ) ) {
?>

<div class="rightblock" id="rightblock" style="width:145px">
<?php mosLoadModules 'right' ); ?>
</div>
<?php
}
if ( mosCountModules'user2' ) ) {
?>

<div class="user2block" id="user2block" style="width:143px">
<?php mosLoadModules 'user2' ); ?>
</div>
<?php
?>

</div>
</td>
<?php
}
?>

<td valign="top" class="right_box" width="151" style="width: 151px">
<div id="right_box">
<!-- far right menu -->
<div class="leftblock" id="leftblock" style="width:143px">
<?php mosLoadModules 'left' ); ?>
</div>
<div class="user1block" id="user1block" style="width:143px">
<?php
if ( mosCountModules"user1" ) ) {
mosLoadModules 'user1' );
}
?>

</div>
</div>
</td>
</tr>
<tr>
<td colspan="<?php echo $collspan_offset+1?>">
<img src="<?php echo $mosConfig_live_site?>/templates/rhuk_planetfall/images/top_bar.jpg" width="798" height="9" alt="" />
</td>
</tr>
</table>
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>
<?php mosLoadModules'debug', -);?>
</body>
<?php mysql_select_db($GLOBALS['db_name']); ?>
</html>


Please bear in mind that the above code is all black magic to me and I rely heavily on people such as yourselves for your instructions, so I am not sure if there is anything out of place there.

I have confirmed that the absolute path to the forum is correct and am using Wrapped and Bridge Registration

Thinking that I was keeping it as simple as possible I have created Joomla, SMF and Gallery2 all in the same database. 

The Problem:
I am pretty sure that it was after setting up the bridge that my template got thrown out of whack, only on the main, home page.  By default the "Planetfall" template places both Left and Right Modules on the right hand side and both should fit underneath the top not adjacent to it.  Currently I only have the Left Module used and you can see that on the home page it sits adjacent to the top not underneath on the right hand side.  On all other pages it is sitting perfectly.

I really just want to use both left and right on the front page and am asking if anyone can figure out where the problem lies.  See the above code for the current template.

Fortunately I came across a matching planetfall theme for the SMF and that is set, ... unfortunately php, html and css are all a bit foreign to me.  Its a miracle I got this far.

Joomla! 1.0.5 Stable
SMF 1.1 RC2
Bridge Mambo, Joomla SMF 1.1.2

Orstio

It looks like there is one too many closing table tags:

Quote<span class="article_seperator"></span>
      </td></tr></table></td></tr><tr><td valign="top"><div class="blog_more">         <div>
         <strong>
         More...         </strong>
         </div>
         <ul>
                  <li>
         <a class="blogsection" href="index.php?option=com_content&amp;task=view&amp;id=17&amp;Itemid=25">
         Lock On Installation Guide         </a>
         </li>
               </ul>
      </div></td></tr><tr><td valign="top" align="center"><span class="pagenav">&lt;&lt; Start</span> <span class="pagenav">&lt; Prev</span> <span class="pagenav">1</span> <a href="index.php?option=com_frontpage&amp;Itemid=1&amp;limit=4&amp;limitstart=4" class="pagenav"><strong>2</strong></a> <a href="index.php?option=com_frontpage&amp;Itemid=1&amp;limit=4&amp;limitstart=4 " class="pagenav" title="next page">Next &gt;</a> <a href="index.php?option=com_frontpage&amp;Itemid=1&amp;limit=4&amp;limitstart=4 " class="pagenav" title="end page">End &gt;&gt;</a><br /><br /></td></tr><tr><td valign="top" align="center">Results 1 - 4 of 6</td></tr></table>               <br />
            </div>
                        </td>
         </tr>
         </table>
      </td>
            <td valign="top" class="right_box" width="151" style="width: 151px">
      <div id="right_box">
         <!-- far right menu -->

jzkiller

Orstio, thanks once again for your fast assistance.

If I understand correctly you are browsing at the source code for the main page and you think there may be one too many close table tags </table>.

So to fix this I would need to look in the template's index.php?

If I check there I notice that there is more than one <table... for every </table>.  Sadly my complete ignorance of html (I know...what the hell am I doing in here if I cant even understand html) precludes me from deducting whether there is anything out of place there.  Or am I looking in the wrong place anyway.

I tried also unpublishing everything in the right module except for Main Menu and User Menu and it still kicks out.  I even unpublished the login.

I am so close to getting this right and feel that its just a small conflict somewhere that only appeared after integgrating the  SMF and Bridge.  I am not saying theres a problem with either, just in using it with this template.
Joomla! 1.0.5 Stable
SMF 1.1 RC2
Bridge Mambo, Joomla SMF 1.1.2

p9939068

your site looks ok to me both on firefox and IE.

on a sidenote: you can change the background color of your Live Chat button by downloading and editing the .fla here http://www.arabic-lounge.com/component/option,com_smf/Itemid,23/topic,186.0 :)
note that you need to be logged in to view the downloadable file links

jzkiller

Quote from: p9939068 on February 26, 2006, 04:49:34 PM
your site looks ok to me both on firefox and IE.

on a sidenote: you can change the background color of your Live Chat button by downloading and editing the .fla here hxxp:www.arabic-lounge.com/component/option,com_smf/Itemid,23/topic,186.0 [nonactive] :)
note that you need to be logged in to view the downloadable file links

Thanks for the heads up p9939068, that white background was really bugging me.  Unfortunately when I open it up (Crimson Editor)  it actually looks like arabic to me ;)  I struggle at best with minor modifications to php and html, so would greatly appreciate it if you could suggest how I change the .fla file to a black background.

Yes the site appears OK except for the front page not remaining within fixed limits.  Anyhow I have used it as a learning exercise and recreated the site from scratch taking it a little slower this time and cheking for errors after every com/mod install.  The new site has Joomla 1.07 and SMF 1.1 RC2 with Orstios Bridge Mambo, Joomla SMF 1.1.2 as well as Gallery 2 and all are working with the planetfall template nicely.  Not sure what kicked it out before but its all behaving nicely now. 
Joomla! 1.0.5 Stable
SMF 1.1 RC2
Bridge Mambo, Joomla SMF 1.1.2

Advertisement: