SMF Support > SMF 2.0.x Support
just found another problem
SA™:
yes cos ive intergrated the home pgae into the forum i use a header and footer
i know i have this code twice
code added by me for intergration
--- Code: ---function template_site_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script>
<script language="JavaScript" type="text/javascript"><!--
var smf_theme_url = "', $settings['theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
// --></script>
<title>', $context['page_title'], '</title>
<link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/style.css?rc1" />';
if ($context['browser']['needs_size_fix'])
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/fonts-compat.css" />
', $context['html_headers'], '
</head>
<body>';
include('C:\xampp\htdocs/header1.php');
}
function template_site_below()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
include('C:\xampp\htdocs/footer.php');
echo '
</body></html>';
}
--- End code ---
now i know i should remove some of this one
--- Code: ---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'], '/scripts/script.js?b21"></script>
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/scripts/theme.js?b21"></script>
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var smf_theme_url = "', $settings['theme_url'], '";
var smf_default_theme_url = "', $settings['default_theme_url'], '";
var smf_images_url = "', $settings['images_url'], '";
var smf_scripturl = "', $scripturl, '";
var smf_iso_case_folding = ', $context['server']['iso_case_folding'] ? 'true' : 'false', ';
var smf_charset = "', $context['character_set'], '";', $context['show_pm_popup'] ? '
if (confirm("' . $txt['show_personal_messages'] . '"))
window.open("' . $scripturl . '?action=pm");' : '', '
var ajax_notification_text = "', $txt['ajax_in_progress'], '";
var ajax_notification_cancel_text = "', $txt['modify_cancel'], '";
// ]]></script>
<title>', $context['page_title'], '</title>';
--- End code ---
but when i do that the admin and everything else screws up
can you help with this
back to the subject opend the forum profile page 2 mins agao still blank
SA™:
ok now its been five minuits and still a blank page now two people have saod its working when its clearly not can someone please help
JumpmasterRT:
--- Quote from: aldo on June 21, 2008, 12:35:41 AM ---Its not blank, sit their for a bit then the page shows up, I looked at your source and you have some weird funky things going on, you have all sorts of code before the <html> and DOCTYPE tag
--- End quote ---
Did you log in and try it? I don't see anything either. What browser are you using Aldo? I tried it in IE7 and FF and got blank pages.
wdm, how did you create the sa=forumProfile? Check to see that the code is still there.
SA™:
thanks i fault i was going crazy lol
SlammedDime:
wdm2005
Its quite apparent that this is an issue with your specific install, as no one has this problem on a clean Beta 3.1 install. If you're not sure how to trace PHP code, then you should perform a clean install on your server and start installing your mods one by one to see which caused the issue.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version