Hi,
I have recently upgraded my forum to RC2 and 1.1.5 and mostly it went OK.
One nagging problem I am having is that the Jump to Box at the bottom of the pages using Display.template.php is not processing the correct URL. It is linking to what the unwrapped URL would be. I am assuming that I have some kind of Javascript problem. I have attepted to modify my index.php for my theme myself because I have a lot of custom stuff in there. I am thinking I have some beta4 code still there messing it up. Anyway, if you could have a lok, I'd appreciate it.
Here is my site:
http://www.dockdogs.com
Also, here is my index.php for my theme:
<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );$iso = split( '=', _ISO );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 mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php if ( $my->id ) { initEditor(); } ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\" />" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/templates/247portal-blue/favicon.ico\" />" ; ?>
<link rel="alternate" title="<?php echo $mosConfig_sitename; ?>" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/index2.php?option=com_rss&no_html=1" type="application/rss+xml" />
<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);
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.Stil1 { font-size: xx-small;
color: #FFFFFF;
}
-->
</style>
<?php
require("forum/SSI.php");
?>
<?php
global $sc, $context, $settings;
if (!defined('SMF')){
// Get the configuration. This will tell Mambo where SMF is, and some integration settings
$database->setQuery("
SELECT `variable`, `value1`
FROM #__smf_config
");
$variables = $database->loadAssocList();
foreach ($variables as $variable){
$variable_name = $variable['variable'];
$$variable_name = $variable['value1'];
}
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?rc2"></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?rc2" />
<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 onload="MM_preloadImages('<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/ltop_roll.gif','<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/ltop.jpg')">
<div>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/space.gif" width="800" height="1" /></td>
</tr>
<tr>
<td><div class="background">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/center_new.jpg">
<tr>
<td width="26"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/left_new.jpg" width="26" /></td>
<td class="title">
<table style="background-position: right; background-repeat: no-repeat;" width="100%" border="0" cellspacing="0" cellpadding="0" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/center-right_new.jpg">
<tr>
<td height="62" colspan="2" class="title" style="padding-top:8px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" style="padding-left:10px;"><a href="<?php echo $mosConfig_live_site;?>" title="<?php echo $mosConfig_sitename; ?>"><img src="templates/247portal-blue/images/DD_Logo_new.gif" border="0" ></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="400" height="29">
<div id="search">
<?php mosLoadModules ( 'user4', -1 ); ?>
</div>
</td>
<td width="100%" height="29" valign="bottom" class="mainlevel-nav">
<?php
if ($_REQUEST['option']=='com_smf') /* obione mod: don't show forum menubar */
echo ssi_menubar();
else {
if ( in_array($Itemid, array(49,53,60,62,91,92,95,108,115,116,117,133)) ) { /* { obione mod: including topmenu-events for event pages */
mosLoadModules ( 'user3' );
} ?>
<?php
if ( mosCountModules('user5') ) { /* { obione mod: topmenu-home menu */
mosLoadModules ( 'user5' );
}
}
?>
</td>
</tr>
</table>
</td>
<td width="26"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/right_new.jpg" width="26" /></td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="11" height="25" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowl.jpg"></td>
<td height="25" bgcolor="#F1F1F1" style="border-bottom: 1px solid #999999; border-top: 5px solid #FFFFFF;"><?php mosPathWay(); ?>
</td>
<td height="25" align="right" bgcolor="#F1F1F1" style="border-bottom: 1px solid #999999; border-top: 5px solid #FFFFFF;">
<div class="date"><?php echo mosCurrentDate(); ?> </div>
</td>
<td width="11" height="25" align="right" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowr.jpg"> </td>
</tr>
<!-- insert new table inside of new row here -->
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="left" width="11" height="90" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowl.jpg"> </td>
<td align="left" height="90" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/sh_new.jpg" class="bg_lb">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td
<?php
if (!in_array($Itemid, array(49,53,60,62,91,92,95,108,115,116,117,133))) { ?>
align="left" style="padding-left: 169px;"><?php if (mosCountModules('banner-LB1')) mosLoadModules ( 'banner-LB1' ); ?></td> <?php ;
} else { ?>
align="right"><?php if (mosCountModules('banner-LB')) mosLoadModules ( 'banner-LB' ); ?></td> <?php ;
}
if (!in_array($Itemid, array(49,53,60,62,91,92,95,108,115,116,117,133))) { ?>
<td width="168" height="90" align="center" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/rand_bg.jpg">
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td><?php if (mosCountModules('head_r')) mosLoadModules ( 'head_r' ); ?></td>
<td width="11"><?php
if (mosCountModules('head_r')) {?> <img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/court_jd.gif"> <?php ;} ?>
</td>
</tr>
</table>
</td><?php ;
} ?>
<td width="8" id="rtgry"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/space.gif"></td>
</tr>
</table>
</td>
<td width="11" height="90" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowr.jpg"> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top" style="padding-left:8px; background-repeat: repeat-y;" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowl.jpg"> </td>
<td valign="top" style="background-repeat: repeat-y;" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/lb.gif"><?php if (mosCountModules('left')) { ?>
<div class="leftrow">
<?php mosLoadModules ( 'left' ); ?>
</div>
<?php } ?>
</td>
<td valign="top" bgcolor="#FAFAFA" width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top" bgcolor="#F1F1F1">
<?php if (mosCountModules('top') && !isset($_GET['action'])) { ?>
<td colspan="3" style="border-top: 3px solid #FFFFFF;">
<div>
<?php
mosLoadModules ( 'top' ); ?>
</div>
</td>
<?php } ?>
</tr>
<?php if ( mosCountModules('user1b') && mosCountModules('user2b')) { ?>
<tr>
<td width="100%">
<table border="0" cellpadding="0" cellspacing="0" class="frnt_box">
<tr>
<?php } else { ?>
<tr>
<?php }; ?>
<?php if ( mosCountModules('user1b')) { ?>
<td width="50%" valign="top">
<div>
<?php mosLoadModules ('user1b'); ?>
</div>
</td>
<td width="4" class="mod" valign="top" bgcolor="#FFFFFF" style="border-top: 3px solid #FFFFFF;">
<div class="mod">
<?php } ?>
<?php if ( mosCountModules('user1b') == 0 && (mosCountModules('user1') && in_array($Itemid, array(91,92,115,116,117)) && $extmode!="reg" && $extmode!="view" )) { /* { obione mod: including latest events for event pages, excluding for registration */ ?>
<td width="50%" valign="top" bgcolor="#F1F1F1" style="border-top: 3px solid #FFFFFF;">
<div>
<?php if ( mosCountModules('user1') && in_array($Itemid, array(91,92,115,116,117)) && $extmode!="reg" && $extmode!="view" ) mosLoadModules ( 'user1' ); ?>
</div>
</td>
<td width="4" class="mod" valign="top" bgcolor="#FFFFFF" style="border-top: 3px solid #FFFFFF;">
<div class="mod">
<?php } ?>
<?php if ( mosCountModules('user2b')) { ?>
<td valign="top">
<div>
<?php mosLoadModules ( 'user2b' ); ?>
</div>
</td>
<?php } ?>
<?php if ( mosCountModules('user2b') == 0 && (mosCountModules('user2') && in_array($Itemid, array(91,92,115,116,117)) && $extmode!="reg" && $extmode!="view" )) { /* { obione mod: including introtext for event pages, excluding for registration */ ?>
<td valign="top" bgcolor="#F1F1F1" style="border-top: 3px solid #FFFFFF;">
<div>
<?php if ( mosCountModules('user2') && in_array($Itemid, array(91,92,115,116,117)) && $extmode!="reg" && $extmode!="view" ) mosLoadModules ( 'user2' ); ?>
</div>
</td>
<?php } ?>
<?php if ( mosCountModules('user1b') && mosCountModules('user2b')) { ?>
</tr>
</table>
</td>
</tr>
<?php } else { ?>
</tr>
<?php }; ?>
<tr align="left" valign="top">
<td colspan="3" style=" border-top: 3px solid #FFFFFF; padding: 5px;">
<div class="main">
<?php mosMainBody(); ?>
</div>
</td>
</tr>
<tr bgcolor="#F1F1F1">
<td colspan="3" valign="top" style="border-top: 3px solid #FFFFFF;"><?php if (mosCountModules('bottom')) { ?>
<div>
<?php mosLoadModules ( 'bottom' ); ?>
</div>
<?php } ?>
</td>
</tr>
</table>
</td>
<td valign="top" style="background-repeat: repeat-y; " background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/rb.gif"><?php if ( (mosCountModules('right2')) || (mosCountModules('right') && in_array($Itemid, array(49,60,91,92,95,108,115,116,117,133))) ) { /* obione mod: including 'right' modules for event categories */ ?>
<div class="rightrow">
<?php if ( mosCountModules('banner-WS') ) mosLoadModules ( 'banner-WS' ); ?>
<?php if ( mosCountModules('right') && in_array($Itemid, array(49,60,91,92,95,108,115,116,117,133)) ) mosLoadModules ( 'right' ); ?>
<?php if ( mosCountModules('right2') ) mosLoadModules ( 'right2' ); ?>
<?php if ( mosCountModules('banner-B2') ) mosLoadModules ( 'banner-B2' ); ?>
</div>
<?php } ?>
</td>
<td valign="top" style="padding-right: 8px; background-repeat: repeat-y;" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowr.jpg"> </td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="left" width="11" height="20" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowl.jpg" style="background-reat: repeat-y;"> </td>
<td height="20" align="center" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/sh-d-center.jpg"><?php if ( mosCountModules('user7') ) mosLoadModules ( 'user7' ); ?>
</td>
<td width="11" height="20" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/shadowr.jpg"> </td>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/center2_new.jpg">
<tr>
<td width="26"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/left2_new.jpg" /> </td>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bottom">
<tr>
<td width="30" align="left"><a href="<?php echo sefRelToAbs($_SERVER['REQUEST_URI'])."# up "; ?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('ltop','','<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/ltop_roll.gif',1)"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/ltop.gif" alt="Back to Top" name="ltop" width="30" height="20" border="0" /></a> </td>
<td width="468"><?php if ( mosCountModules('banner-FB') ) mosLoadModules ( 'banner-FB' ); ?>
</td>
<td width="234"><?php if ( mosCountModules('banner-HB') ) mosLoadModules ( 'banner-HB' ); ?>
</td>
<td width="30" align="right"><a href="<?php echo sefRelToAbs($_SERVER['REQUEST_URI'])."# up "; ?>" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('rtop','','<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/rtop_roll.gif',1)"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/rtop.gif" alt="Back to Top" name="rtop" width="30" height="20" border="0" /></a> </td>
</tr>
</table>
</td>
<td width="26"><img src="<?php echo $mosConfig_live_site;?>/templates/247portal-blue/images/right2_new.jpg" /> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td align="center">
<div class="footer">
<?php include_once('includes/footer.php'); ?>
<a href="http://www.mamboteam.com" target="_blank">Design by Mamboteam.com!</a> and
refined by <a href="mailto:[email protected]">SSK Creatives</a> </div>
</td>
</tr>
</table>
</div>
<?php
ob_start('output');
$buffer = ob_get_contents();
ob_end_clean();
$buffer = str_replace('<input type="hidden" name="sc" value="" />','<input type=hidden name="sc" value="'.$sc.'">', $buffer);
echo $buffer;
?>
<?php mysql_select_db($GLOBALS['db_name']); ?>
</body>
</html>
has nothing to do with display.template.php.
comment or conditional out the duplicate header information from your theme's index.tmeplate.php
OK...here is my index.template.php...I thought I had commented out what I needed to...do I need to comment out further?
<?php
// Version: 1.1 RC2; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the init sub
template, which is there to set the theme up; (init can be missing.) and
the linktree sub template, which sorts out the link tree.
The init sub template should load any data and set any hardcoded options.
The main_above sub template is what is shown above the main content, and
should contain anything that should be shown up there.
The main_below sub template, conversely, is shown after the main content.
It should probably contain the copyright statement and some other things.
The linktree sub template should display the link tree, using the data
in the $context['linktree'] variable.
The menu sub template should display all the relevant buttons the user
wants and or needs.
For more information on the templating system, please see the site at:
http://www.simplemachines.org/
*/
// Initialize the template... mainly little settings.
function template_init()
{
global $context, $settings, $options, $txt;
/* Use images from default theme when using templates from the default theme?
if this is 'always', images from the default theme will be used.
if this is 'defaults', images from the default theme will only be used with default templates.
if this is 'never' or isn't set at all, images from the default theme will not be used. */
$settings['use_default_images'] = 'never';
/* What document type definition is being used? (for font size and other issues.)
'xhtml' for an XHTML 1.0 document type definition.
'html' for an HTML 4.01 document type definition. */
$settings['doctype'] = 'html';
/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1 RC2';
/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = false;
/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = false;
/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = false;
}
// The main sub template above the content.
function template_main_above()
{
global $context, $settings, $options, $scripturl, $txt;
// cannot access forum unless wrapped
if (empty($_REQUEST['option'])){
// Show right to left and the character set for ease of translating.
/*echo '<!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"', $context['right_to_left'] ? ' dir="rtl"' : '', '><head>
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<meta name="description" content="', $context['page_title'], '" />
<meta name="keywords" content="PHP, MySQL, bulletin, board, free, open, source, smf, simple, machines, forum" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?rc2"></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, '";
// ]]></script>
<title>', $context['page_title'], '</title>';
// The ?rc2 part of this link is just here to make sure browsers don't cache it wrongly.
echo '
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc2" />
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/print.css?rc2" media="print" />';*/
/* Internet Explorer 4/5 and Opera 6 just don't do font sizes properly. (they are big...)
Thus, in Internet Explorer 4, 5, and Opera 6 this will show fonts one size smaller than usual.
Note that this is affected by whether IE 6 is in standards compliance mode.. if not, it will also be big.
Standards compliance mode happens when you use xhtml... */
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />';
// Show all the relative links, such as help, search, contents, and the like.
/*echo '
<link rel="help" href="', $scripturl, '?action=help" target="_blank" />
<link rel="search" href="' . $scripturl . '?action=search" />
<link rel="contents" href="', $scripturl, '" />';*/
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';
/*// If we're viewing a topic, these should be the previous and next topics, respectively.
if (!empty($context['current_topic']))
echo '
<link rel="prev" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=prev" />
<link rel="next" href="', $scripturl, '?topic=', $context['current_topic'], '.0;prev_next=next" />';
// If we're in a board, or a topic for that matter, the index will be the board's index.
if (!empty($context['current_board']))
echo '
<link rel="index" href="' . $scripturl . '?board=' . $context['current_board'] . '.0" />';*/
// this is new stuff for RC1/2, may not work with current theme - remove echo, add ", '" to above line, remove ";" - place below "echo headers""
/*echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header = ', empty($options['collapse_header']) ? 'false' : 'true', ';
function shrinkHeader(mode)
{';
// Guests don't have theme options!!
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrink=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink").src = smf_images_url + (mode ? "/upshrink2.gif" : "/upshrink.gif");
document.getElementById("upshrinkHeader").style.display = mode ? "none" : "";
document.getElementById("upshrinkHeader2").style.display = mode ? "none" : "";
current_header = mode;
}
// ]]></script>';
// the routine for the info center upshrink
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var current_header_ic = ', empty($options['collapse_header_ic']) ? 'false' : 'true', ';
function shrinkHeaderIC(mode)
{';
if ($context['user']['is_guest'])
echo '
document.cookie = "upshrinkIC=" + (mode ? 1 : 0);';
else
echo '
smf_setThemeOption("collapse_header_ic", mode ? 1 : 0, null, "', $context['session_id'], '");';
echo '
document.getElementById("upshrink_ic").src = smf_images_url + (mode ? "/expand.gif" : "/collapse.gif");
document.getElementById("upshrinkHeaderIC").style.display = mode ? "none" : "";
current_header_ic = mode;
}
// ]]></script>
</head>
<body>';
echo '
<div class="tborder" ', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' style="width: 100%;"' : '', '>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="catbg" height="32">';
if (empty($settings['header_logo_url']))
echo '
<span style="font-family: Verdana, sans-serif; font-size: 140%; ">', $context['forum_name'], '</span>';
else
echo '
<img src="', $settings['header_logo_url'], '" style="margin: 4px;" alt="', $context['forum_name'], '" />';
echo '
</td>
<td align="right" class="catbg">
<img src="', $settings['images_url'], '/smflogo.gif" style="margin: 2px;" alt="" />
</td>
</tr>
</table>';
// display user name
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0" >
<tr>';
if($context['user']['is_logged'])
echo '
<td class="titlebg2" height="32">
<span style="font-size: 130%;"> ', $txt['hello_member_ndt'], ' <b>', $context['user']['name'] , '</b></span>
</td>';
// display the time
echo '
<td class="titlebg2" height="32" align="right">
<span class="smalltext">' , $context['current_time'], '</span>';
// this is the upshrink button for the user info section
echo '
<a href="#" 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'], '" align="bottom" style="margin: 0 1ex;" /></a>
</td>
</tr>
<tr id="upshrinkHeader"', empty($options['collapse_header']) ? '' : ' style="display: none;"', '>
<td valign="top" colspan="2">
<table width="100%" class="bordercolor" cellpadding="8" cellspacing="1" border="0" style="margin-top: 1px;">
<tr>';
if (!empty($context['user']['avatar']))
echo '
<td class="windowbg" valign="middle">', $context['user']['avatar']['image'], '</td>';
echo '
<td colspan="2" width="100%" valign="top" class="windowbg2"><span class="middletext">';
// If the user is logged in, display stuff like their name, new messages, etc.
if ($context['user']['is_logged'])
{
echo '
<a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a> <br />
<a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
}
// Otherwise they're a guest - send them a lovely greating...
else
echo $txt['welcome_guest'];
// Now, onto our second set of info, are they logged in again?
if ($context['user']['is_logged'])
{
// Is the forum in maintenance mode?
if ($context['in_maintenance'] && $context['user']['is_admin'])
echo '
<b>', $txt[616], '</b><br />';
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '<br />';
// Show the total time logged in?
if (!empty($context['user']['total_time_logged_in']))
{
echo '
', $txt['totalTimeLogged1'];
// If days is just zero, don't bother to show it.
if ($context['user']['total_time_logged_in']['days'] > 0)
echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];
// Same with hours - only show it if it's above zero.
if ($context['user']['total_time_logged_in']['hours'] > 0)
echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];
// But, let's always show minutes - Time wasted here: 0 minutes ;).
echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], '<br />';
}
echo ' </span>';
}
// Otherwise they're a guest - this time ask them to either register or login - lazy bums...
else
{
echo '
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" class="middletext" style="margin: 3px 1ex 1px 0;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
<select name="cookielength">
<option value="60">', $txt['smf53'], '</option>
<option value="1440">', $txt['smf47'], '</option>
<option value="10080">', $txt['smf48'], '</option>
<option value="302400">', $txt['smf49'], '</option>
<option value="-1" selected="selected">', $txt['smf50'], '</option>
</select>
<input type="submit" value="', $txt[34], '" /><br />
<span class="middletext">', $txt['smf52'], '</span>
<input type="hidden" name="hash_passwrd" value="" />
</form>';
}
echo '
</td>
</tr>
</table>
</td>
</tr>
</table>';
echo '
<table id="upshrinkHeader2"', empty($options['collapse_header']) ? '' : ' style="display: none;"', ' width="100%" cellpadding="4" cellspacing="0" border="0">
<tr>';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<td width="90%" class="titlebg2">
<span class="smalltext"><b>', $txt[102], '</b>: ', $context['random_news_line'], '</span>
</td>';
echo '
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="', $scripturl, '?action=search2" method="post" style="margin: 0;">
<a href="', $scripturl, '?action=search;advanced"><img src="'.$settings['images_url'].'/filter.gif" align="middle" style="margin: 0 1ex;" alt="" /></a>
<input type="text" name="search" value="" style="width: 190px;" />
<input type="submit" name="submit" value="', $txt[182], '" style="width: 11ex;" />
<input type="hidden" name="advanced" value="0" />';
// Search within current topic?
if (!empty($context['current_topic']))
echo '
<input type="hidden" name="topic" value="', $context['current_topic'], '" />';
// If we're on a certain board, limit it to this board ;).
elseif (!empty($context['current_board']))
echo '
<input type="hidden" name="brd[', $context['current_board'], ']" value="', $context['current_board'], '" />';
echo '
</form>
</td>
</tr>
</table>
</div>*/
// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];
/*</head>
echo '<body>';*/
/* echo '
<table cellspacing="0" border="0" cellpadding="0" align="center" width="97%">
<tr>
<td valign="top"><div align="center" style="margin: 0; border: thick solid Black;"></td></tr></table>';
The logo, user information, news, and menu.
// Show the menu here, according to the menu sub template.
template_menu();
echo '
</div></td>
</tr>';
// Show a random news item? (or you could pick one from news_lines...)
if (!empty($settings['enable_news']))
echo '
<tr class="windowbg2">
<td height="30" class="tborder" style="border-width: 0 0 1px 0; padding-left: 1ex;">
<b>', $txt[102], ':</b> ', $context['random_news_line'], '
</td>
</tr>';
echo '
</table>
<br />*/
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="97%">
<tr><td valign="top" style="background-color: #ffffff;">';
}
function template_main_below()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
</td></tr>
</table>';
// Show the "Powered by" and "Valid" logos, as well as the copyright. Remember, the copyright must be somewhere!
echo '
<br />
<table cellspacing="0" cellpadding="3" border="0" align="center" width="97%" class="tborder">
<tr style="background-color: #ffffff;">
<td width="67%" valign="middle" align="left"><div class="smalltext">
', theme_copyright(), '</div>
</td>
<td width="30%" valign="bottom" align="right">
<a href="http://www.mysql.com/" target="_blank"><img src="', $settings['images_url'], '/h_powered-mysql.gif" alt="', $txt['powered_by_mysql'], '" width="30" height="18" border="0" /></a>
<a href="http://www.php.net/" target="_blank"><img src="', $settings['images_url'], '/h_powered-php.gif" alt="', $txt['powered_by_php'], '" width="30" height="18" border="0" /></a>
<a href="http://www.mozilla.org" target="_blank"><img src="', $settings['images_url'], '/made-for-mozzila.gif" alt="Made for Mozilla (Firefox)" width="30" height="18" border="0" /></a>
<a href="http://www.microsoft.com" target="_blank"><img src="', $settings['images_url'], '/made-for-ie.gif" alt="Made for Internet Explorer" width="30" height="18" border="0" /></a>
</td>
</tr>
</table>';
// Show the load time?
if ($context['show_load_time'])
echo '
<div align="center" class="smalltext">
', $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'], '
</div>';
// And then we're done!
/* echo '
</body>
</html>';*/
}
} //end wrapped check
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree($use_inline = true)
{
global $context, $settings, $options;
// Folder style or inline? Inline has a smaller font.
echo '<span class="nav"', $use_inline ? ' style="font-size: smaller;"' : '', '>';
// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// Show the | | |-[] Folders.
if (!$use_inline)
{
if ($link_num > 0)
echo str_repeat('<img src="' . $settings['images_url'] . '/icons/linktree_main.gif" alt="| " border="0" />', $link_num - 1), '<img src="' . $settings['images_url'] . '/icons/linktree_side.gif" alt="|-" border="0" />';
echo '<img src="' . $settings['images_url'] . '/icons/folder_open.gif" alt="+" border="0" /> ';
}
// Show something before the link?
if (isset($tree['extra_before']))
echo $tree['extra_before'];
// Show the link, including a URL if it should have one.
echo '<b>', $settings['linktree_link'] && isset($tree['url']) ? '<a href="' . $tree['url'] . '" class="nav">' . $tree['name'] . '</a>' : $tree['name'], '</b>';
// Show something after the link...?
if (isset($tree['extra_after']))
echo $tree['extra_after'];
// Don't show a separator for the last one.
if ($link_num != count($context['linktree']) - 1)
echo $use_inline ? ' | ' : '<br />';
}
echo '</span>';
}
// Show the menu up top. Its procvessing in reverse order...so...Something like [home] [help] [profile] [logout]...is really...[logout] [profile] [help] [home]
// ssoltzy - had to mod this for RC2 for SEF compatibility
function template_menu()
{
//require($mosConfig_live_site . '/components/com_smf/smf.php');
//require_once ($smf_path."/SSI.php");
global $context, $settings, $options, $scripturl, $txt, $mosConfig_sef, $mosConfig_live_site, $Itemid;
/*if (!defined('SMF') && $_REQUEST['option'] != 'com_smf'){
// Get the configuration. This will tell Mambo where SMF is, and some integration settings
$database->setQuery("
SELECT `variable`, `value1`
FROM #__smf_config
");
$variables = $database->loadAssocList();
foreach ($variables as $variable){
$variable_name = $variable['variable'];
$$variable_name = $variable['value1'];
}
$result = mysql_query("
SELECT id
FROM {$mosConfig_dbprefix}menu
WHERE link = 'index.php?option=com_smf'");
if ($result !== false)
list($menu_item['id']) = mysql_fetch_row($result);
else
$menu_item['id'] = 1;
}*/
$smfurl = basename($_SERVER['PHP_SELF']) . '?option=com_smf&Itemid=' . $Itemid;
echo '
<table cellpadding="0" cellspacing="0" class="moduletable">
<tr>
<td>
<div id="mainlevel-nav">';
/*echo $smfurl . '<br />';//remove
echo $mosConfig_live_site . '<br />';
echo $mosConfig_sef . '<br />';//remove
echo $Itemid . '<br />';
echo $mosConfig_live_site . '/components/com_smf/smf.php';*/
//[home]
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '">index</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '">index</a></div>';
}
//[help]
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=help" target="_blank">'.$txt[119].'</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=help" target="_blank">' . $txt[119] . '</a></div>';
}
// How about the [search] button?
if ($context['allow_search']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=search">',$txt[182],'</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=search">'.$txt[182].'</a></div>';
}
}
// Active topics...S_Active Topics
if ($context['user']['is_logged']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=unread">unread</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=unread">unread</a></div>';
}
}
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=admin">'. $txt[2] . '</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=admin">' . $txt[2] . '</a></div>';
}
}
// Edit Profile... [profile]
if ($context['allow_edit_profile']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=profile">' . $txt[467] . '</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=profile">' . $txt[467] . '</a></div>';
}
}
//begin gallery code
if (!$context['user']['is_guest']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=coppermine">gallery</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=coppermine">gallery</a></div>';
}
}
//end gallery code
// Show the memberlist
if (!$context['user']['is_guest']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=mlist">' . $txt[19] . '</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=mlist">' . $txt[19] . '</a></div>';
}
}
// Who's Online?
if (!$context['user']['is_guest']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=who">' . $txt['online2'],'</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=who">' . $txt['online2'] . '</a></div>';
}
}
// If the user is a guest, show [login] and [register] buttons.
if ($context['user']['is_guest']){
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=register">' . $txt[97] . '</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=register">' . $txt[97] . '</a></div>';
}
}
// Otherwise, they might want to [logout]...
else {
if ($mosConfig_sef==1) {
echo '
<div><a href="'. sefReltoAbs($smfurl. '?action=logout;sesc=' . $context['session_id'] . '">' . $txt[108] . '</a></div>');
} else {
echo '
<div><a href="'. $mosConfig_live_site . '/' . $smfurl . '?action=logout;sesc=' . $context['session_id'] . '">' . $txt[108] . '</a></div>';
}
}
// The [calendar]!
/*if ($context['allow_calendar'])
echo '
<div><a href="', $scripturl, '?action=calendar">',$txt['calendar24'],'</a></div>';*/
echo '
</div></td></tr></table>';
}
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top')
{
global $settings, $buttons, $context, $txt, $scripturl;
if (empty($button_strip))
return '';
// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]))
$buttons[$key] = '<a href="' . $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';
$button_strip[$key] = $buttons[$key];
}
echo '
<td>', implode($context['menu_separator'], $button_strip) , '</td>';
}
?>
YIKES! is that ever a mess!
it looks like you started to use a conditional and then changed it to comment things out... I wonder that it works at all!
Yes,
I was wondering about that. I'll have to clean that up. What should I leave in place in the template_main_above()?
Thanks,
You still have the header code from the 3.19a bridge in your template. You should have only the new code.
Not to be an idiot...but...
where am I still using the 3.19 code?
Here's where I am real confused...I am still stuck thinking about Display.template.php. If you look in the "Jump to Box" section, the code that describes the drop down uses the javascript variable smf_scripturl as in:
<select name="jumpto" id="jumpto" onchange="if (this.selectedIndex > 0 && this.options[this.selectedIndex].value) window.location.href = smf_scripturl + this.options[this.selectedIndex].value.substr(smf_scripturl.indexOf(\'?\') == -1 || this.options[this.selectedIndex].value.substr(0, 1) != \'?\' ? 0 : 1);">This is the part that isn't working.
Whereas, the "Go" button, which DOES seem to get the $scripturl variable right, uses this code:
<input type="button" value="', $txt[161], '" onclick="if (this.form.jumpto.options[this.form.jumpto.selectedIndex].value) window.location.href = \'', $scripturl, '\' + this.form.jumpto.options[this.form.jumpto.selectedIndex].value;" />Now, I am assuming that there is a need for the javascript varable versus the php variable for the button. But this is where the problem is. Whether it is created somewhere else...probably...but I'm still confused.
Lainaait looks like you started to use a conditional and then changed it to comment things out... I wonder that it works at all!
Well, I was trying to use the Chadness code here, but I had the conditional closing in the wrong place. I fixed this but it didn't help my problem.
Thanks again, guys!
THis is the code that your Mambo template is generating for your header:
<?xml version="1.0" encoding="iso-8859-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>
<title>dockdogs.com - Home</title>
<meta name="description" content="The official website of the premier sport for active Big Air dogs. Join our growing community and participate in one of our nationwide events!" />
<meta name="keywords" content="sporting dogs, active dogs, dog sports, dog long jump, big air, big air dogs" />
<meta name="Generator" content="Mambo - Copyright 2000 - 2005 Miro International Pty Ltd. All rights reserved." />
<meta name="robots" content="index, follow" />
<link rel="shortcut icon" href="http://www.dockdogs.com/images/favicon.ico" />
<meta http-equiv="Content-Type" content="text/html;>charset=iso-8859-1" />
<link rel="stylesheet" href="http://www.dockdogs.com/templates/247portal-blue/css/template_css.css" type="text/css" /><link rel="shortcut icon" href="http://www.dockdogs.com/templates/247portal-blue/favicon.ico" /><link rel="alternate" title="dockdogs.com" href="http://www.dockdogs.com/index2.php?option=com_rss&no_html=1" type="application/rss+xml" />
<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);
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.Stil1 { font-size: xx-small;
color: #FFFFFF;
}
-->
</style>
<script language="JavaScript" type="text/javascript" src="http://www.dockdogs.com/forum/Themes/default/script.js?rc2"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://www.dockdogs.com/forum/Themes/247portal-blue";
var smf_images_url = "http://www.dockdogs.com/forum/Themes/247portal-blue/images";
var smf_scripturl = "http://www.dockdogs.com/forum/index.php";
var smf_session_id = "0168ceb43565c238a47fbb20d5326cc6";
// ]]></script>
<link rel="stylesheet" type="text/css" href="http://www.dockdogs.com/forum/Themes/247portal-blue/style.css?rc2" />
<link rel="stylesheet" type="text/css" href="http://www.dockdogs.com/forum/Themes/default/print.css?beta4" media="print" />
<link rel="help" href="http://www.dockdogs.com/forum/index.php?action=help" target="_blank" />
<link rel="search" href="http://www.dockdogs.com/forum/index.php?action=search" />
<link rel="contents" href="http://www.dockdogs.com/forum/index.php" /></head>
Earlier I was getting this part twice:
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "http://www.dockdogs.com/forum/Themes/247portal-blue";
var smf_images_url = "http://www.dockdogs.com/forum/Themes/247portal-blue/images";
var smf_scripturl = "http://www.dockdogs.com/forum/index.php";
var smf_session_id = "0168ceb43565c238a47fbb20d5326cc6";
// ]]></script>
Except now you have only the wrong code in there....
This line:
var smf_scripturl = "http://www.dockdogs.com/forum/index.php";
Should look like this:
var smf_scripturl = "http://www.dockdogs.com/index.php?option=com_smf&Itemid=177&";
...that triggered the solution, thanks!
It looks like the immediate problem has been solved...
I ended up basically commenting out the two sections of the header in the index.php; you know, the header info that I was told that I had to add?
It must be getting it from somewhere else, and it seems to be getting the right info....is it <?php mosShowHead(); ?> possibly?
Who knows, all I know is that it seems to be working, fior now...
Thanks for all the assistance!