News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Bug or Upload Errors?

Started by kreativekarma, March 19, 2008, 09:21:22 PM

Previous topic - Next topic

kreativekarma

I am not sure if these are bugs or just something that didn't go correctly with my install.

My members cannot change the color of their posts.  You use the drop down and it doesn't give them the code around their typing. And they can't use any of that posting code by clicking on the icons. It gives them no code.


ALSO,

when someone starts a new topic, it says that an error has occured when they post, but then it shows up anyway. It only happens SOMETIMES when they reply to a topic already there.

AND

I just got an IM from someone saying that the email notifications are not working.

AS WELL,

Sometimes the "New Posts Since Last Visit" doesn't work properly.


:o

kreativekarma

Also, just found that I get a broken page when I try to delete specific messages... it takes me to this page: forum/%7BSUBMIT%7D

metallica48423

can you link to your board, and provide a test account to try things out with?

Thanks :)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

http://www.faithsisters.com/forum

SMFTester
123tester

When I registered the new test account I got the same An Error Has Occurred page, that will surly confuse new members.

Thank you!

metallica48423

Okay. Thanks.

Whats going on with the color thing is a javascript error that happens on that page.  I suspect the other errors may be similar in nature, likely due to the theme not being able to be 100% updated to work with SMF 2.0.

I do see one javascript reference that occurs in the default theme that does not in your theme.

and that is: <script language="JavaScript" type="text/javascript" src="http://faithsisters.com/forum/Themes/default/scripts/theme.js?b21"></script>

So, try adding that line below this one:

<script language="JavaScript" type="text/javascript" src="http://faithsisters.com/forum/Themes/default/scripts/script.js?b21"></script>

Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

They are both the same code.... did you mean to type in a different code foe me to add?

metallica48423

They're not the same ;)

One references script.js -- the other references theme.js
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

Aha! My bad! Sorry about that... will try that!

metallica48423

No problem :)

I hope it works though because i'm no good with actual javascript debugging :x
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

I am having a problem figuring out which page/file to put this into.

metallica48423

I am sorry, i neglected to give you a file to put it in.

index.template.php inside the folder for your theme.

Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

That's what I was thinking it was...

kreativekarma

Not sure if I am blind today or my finder isn't working... I can't find the code you are taking about here.

<?php

// Version: 1.1; index :)

$txt['select_language'] = 'Select from and to languages';
$txt['translate'] = 'Translate';


/* 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'] = 'xhtml';

/* The version this template/theme is for.
This should probably be the version of SMF it was created for. */
$settings['theme_version'] = '1.1';

/* Set a setting that tells the theme that it can render the tabs. */
$settings['use_tabs'] = true;

/* Use plain buttons - as oppossed to text buttons? */
$settings['use_buttons'] = true;

/* Show sticky and lock status seperate from topic icons? */
$settings['seperate_sticky_lock'] = true;
}

// The main sub template above the content.
function template_main_above()
{
global $context$settings$options$scripturl$txt$modSettings;

// 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'], '" />', empty($context['robot_no_index']) ? '' '
<meta name="robots" content="noindex" />'
'
<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?fin11"></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_iso_case_folding = '
$context['server']['iso_case_folding'] ? 'true' 'false'';
var smf_charset = "'
$context['character_set'], '";
// ]]></script>
<title>'
$context['page_title'], '</title>';

// The ?fin11 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?fin11" />
<link rel="stylesheet" type="text/css" href="'
$settings['default_theme_url'], '/print.css?fin11" 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" />';

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'], '

<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>'
;

require(
"../includes/header.php");

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 greeting...
else
echo sprintf($txt['welcome_guest'], $txt['guest_title']);

// 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['maintain_mode_on'], '</b><br />';

// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
'
$context['unapproved_members'] == $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="'$scripturl'?action=viewmembers;sa=browse;type=approve">'$context['unapproved_members'] == $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 ' </span>
<script language="JavaScript" type="text/javascript" src="'
$settings['default_theme_url'], '/sha1.js"></script>

<form action="'
$scripturl'?action=login2" method="post" accept-charset="'$context['character_set'], '" 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['one_hour'], '</option>
<option value="1440">'
$txt['one_day'], '</option>
<option value="10080">'
$txt['one_week'], '</option>
<option value="43200">'
$txt['one_month'], '</option>
<option value="-1" selected="selected">'
$txt['forever'], '</option>
</select>
<input type="submit" value="'
$txt['login'], '" /><br />
<span class="middletext">'
$txt['quick_login_dec'], '</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="60%" class="titlebg2">
<span class="smalltext"><b>'
$txt['news'], '</b>: '$context['random_news_line'], '</span>
</td>'
;
echo '
<td width="30%" class="titlebg2" nowrap>'
;
# babelfishTranslate();

echo '
</td>
<td class="titlebg2" align="right" nowrap="nowrap" valign="top">
<form action="'
$scripturl'?action=search2" method="post" accept-charset="'$context['character_set'], '" 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;" />&nbsp;
<input type="submit" name="submit" value="'
$txt['search'], '" 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>'
;


// Show the menu here, according to the menu sub template.
template_menu();


// The main content should go here.
echo '
<div id="bodyarea" style="padding: 1ex 0px 2ex 0px;">'
;
}

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

echo '
</div>'
;

// 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"><!-- // --><![CDATA[
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="'
, !$context['right_to_left'] ? 'right' 'left''">
<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;" 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;" onmouseover="smfFooterHighlight(this, true);" onmouseout="smfFooterHighlight(this, false);" /></a>
</td>
<td valign="middle" align="center" style="white-space: nowrap;">
'
theme_copyright(), '
</td>
<td width="28%" valign="middle" align="'
, !$context['right_to_left'] ? 'left' 'right''">
<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;" 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;" 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['page_created'], $context['load_time'], $txt['seconds_with'], $context['load_queries'], $txt['queries'], '</span>';

// This is an interesting bug in Internet Explorer AND Safari. Rather annoying, it makes overflows just not tall enough.
if (($context['browser']['is_ie'] && !$context['browser']['is_ie4']) || $context['browser']['is_mac_ie'] || $context['browser']['is_safari'] || $context['browser']['is_firefox'])
{
// The purpose of this code is to fix the height of overflow: auto div blocks, because IE can't figure it out for itself.
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA['
;

// Unfortunately, Safari does not have a "getComputedStyle" implementation yet, so we have to just do it to code...
if ($context['browser']['is_safari'])
echo '
window.addEventListener("load", smf_codeFix, false);

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if ((codeFix[i].className == "code" || codeFix[i].className == "post" || codeFix[i].className == "signature") && codeFix[i].offsetHeight < 20)
codeFix[i].style.height = (codeFix[i].offsetHeight + 20) + "px";
}
}'
;
elseif ($context['browser']['is_firefox'])
echo '
window.addEventListener("load", smf_codeFix, false);
function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = 0; i < codeFix.length; i++)
{
if (codeFix[i].className == "code" && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0))
codeFix[i].style.overflow = "scroll";
}
}'
;
else
echo '
var window_oldOnload = window.onload;
window.onload = smf_codeFix;

function smf_codeFix()
{
var codeFix = document.getElementsByTagName ? document.getElementsByTagName("div") : document.all.tags("div");

for (var i = codeFix.length - 1; i > 0; i--)
{
if (codeFix[i].currentStyle.overflow == "auto" && (codeFix[i].currentStyle.height == "" || codeFix[i].currentStyle.height == "auto") && (codeFix[i].scrollWidth > codeFix[i].clientWidth || codeFix[i].clientWidth == 0) && (codeFix[i].offsetHeight != 0 || codeFix[i].className == "code"))
codeFix[i].style.height = (codeFix[i].offsetHeight + 36) + "px";
}

if (window_oldOnload)
{
window_oldOnload();
window_oldOnload = null;
}
}'
;

echo '
// ]]></script>'
;
}

echo '
</div>'
;

// The following will be used to let the user know that some AJAX process is running
echo '
<div id="ajax_in_progress" style="display: none;'
$context['browser']['is_ie'] && !$context['browser']['is_ie7'] ? 'position: absolute;' '''">'$txt['ajax_in_progress'], '</div>
</body></html>'
;
}

// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..
function theme_linktree()
{
global $context$settings$options;

echo '<div class="nav" style="font-size: smaller; margin-bottom: 2ex; margin-top: 2ex;">';

// Each tree item has a URL and name. Some may have extra_before and extra_after.
foreach ($context['linktree'] as $link_num => $tree)
{
// 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 '&nbsp;>&nbsp;';
}

echo '</div>';
}

// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context$settings$options$scripturl$txt;

// Work out where we currently are.
$current_action 'home';
if (in_array($context['current_action'], array('admin''ban''boardrecount''cleanperms''detailedversion''dumpdb''featuresettings''featuresettings2''findmember''maintain''manageattachments''manageboards''managecalendar''managesearch''membergroups''modlog''news''optimizetables''packageget''packages''permissions''pgdownload''postsettings''regcenter''repairboards''reports''serversettings''serversettings2''smileys''viewErrorLog''viewmembers')))
$current_action 'admin';
if (in_array($context['current_action'], array('search''admin''calendar''profile''mlist''register''login''help''pm')))
$current_action $context['current_action'];
if ($context['current_action'] == 'search2')
$current_action 'search';
if ($context['current_action'] == 'theme')
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' 'profile' 'admin';

// Are we using right-to-left orientation?
if ($context['right_to_left'])
{
$first 'last';
$last 'first';
}
else
{
$first 'first';
$last 'last';
}

// Show the start of the tab section.
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="maintab_' 
$first '">&nbsp;</td>';

// Show the [home] button.
echo ($current_action=='home' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'home' 'active_back' 'back' '">
<a href="'
$scripturl'">' $txt['home'] , '</a>
</td>' 
$current_action == 'home' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Show the [help] button.
echo ($current_action == 'help' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'help' 'active_back' 'back' '">
<a href="'
$scripturl'?action=help">' $txt['help'] , '</a>
</td>' 
$current_action == 'help' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// How about the [search] button?
if ($context['allow_search'])
echo ($current_action == 'search' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'search' 'active_back' 'back' '">
<a href="'
$scripturl'?action=search">' $txt['search'] , '</a>
</td>' 
$current_action == 'search' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin'])
echo ($current_action == 'admin' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'admin' 'active_back' 'back' '">
<a href="'
$scripturl'?action=admin">' $txt['admin'] , '</a>
</td>' 
$current_action == 'admin' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo ($current_action == 'profile' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'profile' 'active_back' 'back' '">
<a href="'
$scripturl'?action=profile">' $txt['profile'] , '</a>
</td>' 
$current_action == 'profile' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo ($current_action == 'pm' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'pm' 'active_back' 'back' '">
<a href="'
$scripturl'?action=pm">' $txt['pm_short'] , ' '$context['user']['unread_messages'] > '[<strong>'$context['user']['unread_messages'] . '</strong>]' '' '</a>
</td>' 
$current_action == 'pm' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The [calendar]!
if ($context['allow_calendar'])
echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'calendar' 'active_back' 'back' '">
<a href="'
$scripturl'?action=calendar">' $txt['calendar'] , '</a>
</td>' 
$current_action == 'calendar' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// the [member] list button
if ($context['allow_memberlist'])
echo ($current_action == 'mlist' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'mlist' 'active_back' 'back' '">
<a href="'
$scripturl'?action=mlist">' $txt['members_title'] , '</a>
</td>' 
$current_action == 'mlist' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, show [login] button.
if ($context['user']['is_guest'])
echo ($current_action == 'login' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'login' 'active_back' 'back' '">
<a href="'
$scripturl'?action=login">' $txt['login'] , '</a>
</td>' 
$current_action == 'login' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'register' 'active_back' 'back' '">
<a href="'
$scripturl'?action=register">' $txt['register'] , '</a>
</td>' 
$current_action == 'register' '<td class="maintab_active_' $last '">&nbsp;</td>' '';


// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' $first '">&nbsp;</td>' '' '
<td valign="top" class="maintab_' 
$current_action == 'logout' 'active_back' 'back' '">
<a href="'
$scripturl'?action=logout;sesc='$context['session_id'], '">' $txt['logout'] , '</a>
</td>' 
$current_action == 'logout' '<td class="maintab_active_' $last '">&nbsp;</td>' '';

// The end of tab section.
echo '
<td class="maintab_' 
$last '">&nbsp;</td>
</tr>
</table>'
;

}

// Generate a strip of buttons.
function template_button_strip($button_strip$direction 'top'$force_reset false$custom_td '')
{
global $settings$buttons$context$txt$scripturl;

// 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]) || $force_reset)
$buttons[$key] = '<a href="' $value['url'] . '" ' .( isset($value['custom']) ? $value['custom'] : '') . '>' $txt[$value['text']] . '</a>';

$button_strip[$key] = $buttons[$key];
}

if (empty($button_strip))
return '<td>&nbsp;</td>';

echo '
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'last' 'first' '">&nbsp;</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_back">'implode(' &nbsp;|&nbsp; '$button_strip) , '</td>
<td class="'
$direction == 'top' 'main' 'mirror''tab_' $context['right_to_left'] ? 'first' 'last' '">&nbsp;</td>';
}

?>

metallica48423

Ahh, i see.

Find this:

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?fin11"></script>


REPLACE THAT WITH:

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js?2b1"></script>


then add below that:

<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/theme.js?2b1"></script>


The reason i had the ?fin11 changed to ?2b1 was to force anyone who had that javascript cached to need to recache it (as that may cause an issue as well until the cache expires)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

Ok, I did that and nothing changed. Maybe I will try on the other computer.

kreativekarma

Didn't work on the pc either.

kreativekarma

Which file can I find the loadEmailTemplate function in?? I cannot find it on this page: http://support.simplemachines.org/function_db/

metallica48423

Still looking into this -- trying to debug the javascript but i admit javascript is my weakness.

The function should be in Subs-Post.php -- the function DB is not updated yet.  Thanks :)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Oldiesmann

Quote from: kreativekarma on March 21, 2008, 12:04:19 AM
Which file can I find the loadEmailTemplate function in?? I cannot find it on this page: http://support.simplemachines.org/function_db/

It will still be another week or two before we start adding 2.0 functions to the function DB - I'm working on some improvements to the function DB that require me to copy existing functions to a new format, so we're not adding new ones until I finish the overhaul.
Michael Eshom
Christian Metal Fans

kreativekarma

In loadEmailTemplate, it tries to call a variable $txt['emails'][$template] and when I performed a print_r[$txt], there was no [emails] array.  Where can I fix this? The value of $template was 'notification_reply_once' and this was not in the $tst array either.  Please advise!

kreativekarma


metallica48423

Touche.  Sorry, i've had a relatively busy day today ;)

Well, i know that they're defined in line 21 of the default EmailTemplates.english.php.  Are you positive the print_r doesn't have it.  How about print_r($txt['emails']); ? (might have to do that without the single quotes)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

Below are the values for the print_r($txt).  There were no values for the print_r($txt['emails']), but you can see that below..  Thanks again for your help.

print_r(txt):
Array ( [lang_locale] => en_US [lang_dictionary] => en [lang_spelling] => american [lang_character_set] => ISO-8859-1 [lang_rtl] => [days] => Array (
  • => Sunday [1] => Monday [2] => Tuesday [3] => Wednesday [4] => Thursday [5] => Friday [6] => Saturday ) [days_short] => Array (
  • => Sun [1] => Mon [2] => Tue [3] => Wed [4] => Thu [5] => Fri [6] => Sat ) [months] => Array ( [1] => January [2] => February [3] => March [4] => April [5] => May [6] => June [7] => July [8] => August [9] => September [10] => October [11] => November [12] => December ) [months_titles] => Array ( [1] => January [2] => February [3] => March [4] => April [5] => May [6] => June [7] => July [8] => August [9] => September [10] => October [11] => November [12] => December ) [months_short] => Array ( [1] => Jan [2] => Feb [3] => Mar [4] => Apr [5] => May [6] => Jun [7] => Jul [8] => Aug [9] => Sep [10] => Oct [11] => Nov [12] => Dec ) [newmessages0] => is new [newmessages1] => are new [newmessages3] => New [newmessages4] => , [admin] => Admin [save] => Save [modify] => Modify [forum_index] => - Index [members] => Members [board_name] => Board name [posts] => Posts [last_post] => Last post [no_subject] => (No subject) [member_postcount] => Posts [view_profile] => View Profile [guest_title] => Guest [author] => Author [on] => on [remove] => Remove [start_new_topic] => Start new topic [login] => Login [username] => Username [password] => Password [username_no_exist] => That username does not exist. [board_moderator] => Board Moderator [remove_topic] => Remove Topic [topics] => Topics [modify_msg] => Modify message [name] => Name [email] => Email [subject] => Subject [message] => Message [profile] => Profile [choose_pass] => Choose password [verify_pass] => Verify password [position] => Position [profile_of] => View the profile of [total] => Total [posts_made] => Posts [website] => Website [register] => Register [message_index] => Message Index [news] => News [home] => Home [lock_unlock] => Lock/Unlock Topic [post] => Post [error_occured] => An Error Has Occurred! [at] => at [logout] => Logout [started_by] => Started by [replies] => Replies [admin_login] => Administration Login [topic] => Topic [help] => Help [remove_message] => Remove this message [notify] => Notify [notify_request] => Do you want a notification email if someone replies to this topic? [regards_team] => Regards, The Team. [notify_replies] => Notify me of replies. [move_topic] => Move Topic [move_to] => Move to [pages] => Pages [users_active] => Users active in past %s minutes [personal_messages] => Personal Messages [reply_quote] => Reply with quote [reply] => Reply [msg_alert_none] => No messages... [msg_alert_you_have] => you have [msg_alert_messages] => messages [online_users] => Users Online [personal_message] => Personal Message [jump_to] => Jump to [go] => go [are_sure_remove_topic] => Are you sure you want to remove this topic? [yes] => Yes [no] => No [search_results] => Search Results [search_end_results] => End of results [search_no_results] => No results found [search_on] => on [search] => Search [all] => All [back] => Back [password_reminder] => Password reminder [topic_started] => Topic started by [title] => Title [post_by] => Post by [memberlist_searchable] => Searchable list of all registered members. [welcome_member] => Please welcome [admin_center] => Administration Center [last_edit] => Last Edit [notify_deactivate] => Would you like to deactivate notification on this topic? [recent_posts] => Recent Posts [location] => Location [gender] => Gender [date_registered] => Date Registered [recent_view] => View the most recent posts on the forum. [recent_updated] => is the most recently updated topic [male] => Male [female] => Female [error_invalid_characters_username] => Invalid character used in Username. [welcome_guest] => Welcome, %s. Please login or register. [welcome_guest_activate] =>
    Did you miss your activation email? [hello_member] => Hey, [hello_guest] => Welcome, [welmsg_hey] => Hey, [welmsg_welcome] => Welcome, [welmsg_please] => Please [welmsg_back] => Back [select_destination] => Please select a destination [posted_by] => Posted by [icon_smiley] => Smiley [icon_angry] => Angry [icon_cheesy] => Cheesy [icon_laugh] => Laugh [icon_sad] => Sad [icon_wink] => Wink [icon_grin] => Grin [icon_shocked] => Shocked [icon_cool] => Cool [icon_huh] => Huh [icon_rolleyes] => Roll Eyes [icon_tongue] => Tongue [icon_embarrassed] => Embarrassed [icon_lips] => Lips sealed [icon_undecided] => Undecided [icon_kiss] => Kiss [icon_cry] => Cry [moderator] => Moderator [moderators] => Moderators [mark_board_read] => Mark Topics as Read for this Board [views] => Views [new] => New [view_all_members] => View all members [view] => View [308] => Viewing Members [309] => of [310] => total members [311] => to [forgot_your_password] => Forgot your password? [date] => Date [from] => From [check_new_messages] => Check for new messages [to] => To [board_topics] => Topics [members_title] => Members [members_list] => Members List [new_posts] => New Posts [old_posts] => No New Posts [sendtopic_send] => Send [time_offset] => Time Offset [or] => or [no_matches] => Sorry, no matches were found [notification] => Notification [your_ban] => Sorry %s, you are banned from using this forum! [mark_as_read] => Mark ALL messages as read [hot_topics] => Hot Topic (More than %s replies) [very_hot_topics] => Very Hot Topic (More than %s replies) [locked_topic] => Locked Topic [normal_topic] => Normal Topic [participation_caption] => Topic you have posted in [go_caps] => GO [print] => Print [topic_summary] => Topic Summary [not_applicable] => N/A [message_lowercase] => message [name_in_use] => This name is already in use by another member. [total_members] => Total Members [total_posts] => Total Posts [total_topics] => Total Topics [mins_logged_in] => Minutes to stay logged in [preview] => Preview [always_logged_in] => Always stay logged in [logged] => Logged [ip] => IP [icq] => ICQ [www] => WWW [by] => by [hours] => hours [days_word] => days [newest_member] => , our newest member. [search_for] => Search for [aim] => AIM [aim_default_message] => Hi.+Are+you+there? [yim] => YIM [maintain_mode_on] => Remember, this forum is in 'Maintenance Mode'. [read] => Read [times] => times [forum_stats] => Forum Stats [latest_member] => Latest Member [total_cats] => Total Categories [latest_post] => Latest Post [you_have] => You've got [click] => Click [here] => here [to_view] => to view them. [total_boards] => Total Boards [print_page] => Print Page [valid_email] => This must be a valid email address. [geek] => I am a geek!! [info_center_title] => - Info Center [send_topic] => Send this topic [sendtopic_title] => Send the topic "%s" to a friend. [sendtopic_dear] => Dear %s, [sendtopic_this_topic] => I want you to check out "%s" on . To view it, please click this link [sendtopic_thanks] => Thanks [sendtopic_sender_name] => Your name [sendtopic_sender_email] => Your email address [sendtopic_receiver_name] => Recipient's name [sendtopic_receiver_email] => Recipient's email address [sendtopic_comment] => Add a comment [sendtopic2] => A comment has also been added regarding this topic [hide_email] => Hide email address from public? [check_all] => Check all [database_error] => Database Error [try_again] => Please try again. If you come back to this error screen, report the error to an administrator. [file] => File [line] => Line [tried_to_repair] => SMF has detected and automatically tried to repair an error in your database. If you continue to have problems, or continue to receive these emails, please contact your host. [database_error_versions] => Note: It appears that your database may require an upgrade. Your forum's files are currently at version %s, while your database is at version %s. The above error might possibly go away if you execute the latest version of upgrade.php. [template_parse_error] => Template Parse Error! [template_parse_error_message] => It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.

    You can also try refreshing this page. [template_parse_error_details] => There was a problem loading the %1$s template or language file. Please check the syntax and try again - remember, single quotes (') often have to be escaped with a slash (\). To see more specific error information from PHP, try accessing the file directly.

    You may want to try to refresh this page or use the default theme. [today] => Today at [yesterday] => Yesterday at [new_poll] => Post new poll [poll_question] => Question [poll_vote] => Submit Vote [poll_total_voters] => Total Voters [shortcuts] => shortcuts: hit alt+s to submit/post or alt+p to preview [poll_results] => View results [poll_lock] => Lock Voting [poll_unlock] => Unlock Voting [poll_edit] => Edit Poll [poll] => Poll [one_day] => 1 Day [one_week] => 1 Week [one_month] => 1 Month [forever] => Forever [quick_login_dec] => Login with username, password and session length [one_hour] => 1 Hour [moved] => MOVED [moved_why] => Please enter a brief description as to
    why this topic is being moved. [smf60] => Sorry, you don't have enough posts to modify karma - you need at least [smf62] => Sorry, you can't repeat a karma action without waiting [board] => Board [in] => in [sticky_topic] => Sticky Topic [delete] => Delete [your_pms] => Your Personal Messages [kilobyte] => KB [more_stats] => [More Stats] => Code [quote_from] => Quote from [quote] => Quote [split] => Split Topic [merge] => Merge Topics [subject_new_topic] => Subject For New Topic [split_this_post] => Only split this post. [split_after_and_this_post] => Split topic after and including this post. [select_split_posts] => Select posts to split. [new_topic] => New Topic [split_successful] => Topic successfully split into two topics. [origin_topic] => Origin Topic [please_select_split] => Please select which posts you wish to split. [merge_successful] => Topics successfully merged. [new_merged_topic] => Newly Merged Topic [topic_to_merge] => Topic to be merged [target_board] => Target board [target_topic] => Target topic [merge_confirm] => Are you sure you want to merge [with] => with [merge_desc] => This function will merge the messages of two topics into one topic. The messages will be sorted according to the time of posting. Therefore the earliest posted message will be the first message of the merged topic. [set_sticky] => Set topic sticky [set_nonsticky] => Set topic non-sticky [set_lock] => Lock topic [set_unlock] => Unlock topic [search_advanced] => Advanced search [security_risk] => MAJOR SECURITY RISK: [not_removed] => You have not removed [page_created] => Page created in [seconds_with] => seconds with [queries] => queries. [report_to_mod_func] => Use this function to inform the moderators and administrators of an abusive or wrongly posted message.
    Please note that your email address will be revealed to the moderators if you use this. [online] => Online [offline] => Offline [pm_online] => Personal Message (Online) [pm_offline] => Personal Message (Offline) [status] => Status [go_up] => Go Up [go_down] => Go Down [birthdays] => Birthdays: [events] => Events: [birthdays_upcoming] => Upcoming Birthdays: [events_upcoming] => Upcoming Events: [calendar_prompt] => [calendar_month] => Month: [calendar_year] => Year: [calendar_day] => Day: [calendar_event_title] => Event Title: [calendar_post_in] => Post In: [calendar_edit] => Edit Event [event_delete_confirm] => Delete this event? [event_delete] => Delete Event [calendar_post_event] => Post Event [calendar] => Calendar [calendar_link] => Link to Calendar [calendar_link_event] => Link Event To Post: [calendar_upcoming] => Upcoming Calendar [calendar_today] => Today's Calendar [calendar_week] => Week [calendar_numb_days] => Number of Days: [calendar_how_edit] => how do you edit these events? [calendar_confirm_delete] => Are you sure you want to delete this event? [calendar_linked_events] => Linked Events [moveTopic1] => Post a redirection topic [moveTopic2] => Change the topic's subject [moveTopic3] => New subject [moveTopic4] => Change every message's subject [theme_template_error] => Unable to load the '%s' template. [theme_language_error] => Unable to load the '%s' language file. [parent_boards] => Child Boards [smtp_no_connect] => Could not connect to SMTP host [smtp_port_ssl] => SMTP port setting incorrect; it should be 465 for SSL servers. [smtp_bad_response] => Couldn't get mail server response codes [smtp_error] => Ran into problems sending Mail. Error: [mail_send_unable] => Unable to send mail to the email address '%s' [mlist_search] => Search for members [mlist_search_again] => Search again [mlist_search_email] => Search by email address [mlist_search_messenger] => Search by messenger nickname [mlist_search_group] => Search by position [mlist_search_name] => Search by name [mlist_search_website] => Search by website [mlist_search_results] => Search results for [attach_downloaded] => downloaded [attach_viewed] => viewed [attach_times] => times [msn] => MSN [settings] => Settings [never] => Never [more] => more [hostname] => Hostname [you_are_post_banned] => Sorry %s, you are banned from posting or sending personal messages on this forum. [ban_reason] => Reason [tables_optimized] => Database tables optimized [add_poll] => Add poll [poll_options6] => You may only select up to %s options. [poll_remove] => Remove Poll [poll_remove_warn] => Are you sure you want to remove this poll from the topic? [poll_results_expire] => Only show the results after the poll has expired. [poll_expires_on] => Voting closes [poll_expired_on] => Voting closed [poll_change_vote] => Remove Vote [poll_return_vote] => Voting options [quick_mod_remove] => Remove selected [quick_mod_lock] => Lock selected [quick_mod_sticky] => Sticky selected [quick_mod_move] => Move selected to [quick_mod_merge] => Merge selected [quick_mod_markread] => Mark selected read [quick_mod_go] => Go! [quickmod_confirm] => Are you sure you want to do this? [spell_check] => Spell Check [quick_reply] => Quick Reply [quick_reply_desc] => With a Quick-Reply you can use bulletin board code and smileys as you would in a normal post, but much more conveniently. [quick_reply_warning] => Warning: this topic is currently locked!
    Only admins and moderators can reply. [notification_enable_board] => Are you sure you wish to enable notification of new topics for this board? [notification_disable_board] => Are you sure you wish to disable notification of new topics for this board? [notification_enable_topic] => Are you sure you wish to enable notification of new replies for this topic? [notification_disable_topic] => Are you sure you wish to disable notification of new replies for this topic? [report_to_mod] => Report to moderator [unread_topics_visit] => Recent Unread Topics [unread_topics_visit_none] => No unread topics found since your last visit. Click here to try all unread topics. [unread_topics_all] => All Unread Topics [unread_replies] => Updated Topics [who_title] => Who's Online [who_and] => and [who_viewing_topic] => are viewing this topic. [who_viewing_board] => are viewing this board. [who_member] => Member [powered_by_php] => Powered by PHP [powered_by_mysql] => Powered by MySQL [valid_html] => Valid HTML 4.01! [valid_xhtml] => Valid XHTML 1.0! [valid_css] => Valid CSS! [guest] => Guest [guests] => Guests [user] => User [users] => Users [hidden] => Hidden [buddy] => Buddy [buddies] => Buddies [most_online_ever] => Most Online Ever [most_online_today] => Most Online Today [merge_select_target_board] => Select the target board of the merged topic [merge_select_poll] => Select which poll the merged topic should have [merge_topic_list] => Select topics to be merged [merge_select_subject] => Select subject of merged topic [merge_custom_subject] => Custom subject [merge_enforce_subject] => Change the subject of all the messages [merge_include_notifications] => Include notifications? [merge_check] => Merge? [merge_no_poll] => No poll [response_prefix] => Re: [current_icon] => Current Icon [smileys_current] => Current Smiley Set [smileys_none] => No Smileys [smileys_forum_board_default] => Forum/Board Default [totalTimeLogged1] => Total time logged in: [totalTimeLogged2] => days, [totalTimeLogged3] => hours and [totalTimeLogged4] => minutes. [totalTimeLogged5] => d [totalTimeLogged6] => h [totalTimeLogged7] => m [approve_thereis] => There is [approve_thereare] => There are [approve_member] => one member [approve_members] => members [approve_members_waiting] => awaiting approval. [notifyboard_turnon] => Do you want a notification email when someone posts a new topic in this board? [notifyboard_turnoff] => Are you sure you do not want to receive new topic notifications for this board? [activate_code] => Your activation code is [find_members] => Find Members [find_username] => Name, username, or email address [find_buddies] => Show Buddies Only? [find_wildcards] => Allowed Wildcards: *, ? [find_no_results] => No results found [find_results] => Results [find_close] => Close [unread_since_visit] => Show unread posts since last visit. [show_unread_replies] => Show new replies to your posts. [change_color] => Change Color [quickmod_delete_selected] => Delete Selected [show_personal_messages] => You have received one or more new personal messages.\nView them now (in a new window)? [previous_next_back] => « previous [previous_next_forward] => next » [movetopic_auto_board] => [BOARD] [movetopic_auto_topic] => [TOPIC LINK] [movetopic_default] => This topic has been moved to [BOARD]. [TOPIC LINK] [upshrink_description] => Shrink or expand the header. [mark_unread] => Mark unread [ssi_not_direct] => Please don't access SSI.php by URL directly; you may want to use the path (%s) or add ?ssi_function=something. [ssi_session_broken] => SSI.php was unable to load a session! This may cause problems with logout and other functions - please make sure SSI.php is included before *anything* else in all your scripts! [preview_title] => Preview post [preview_fetch] => Fetching preview... [preview_new] => New message [error_while_submitting] => The following error or errors occurred while posting this message: [split_selected_posts] => Selected posts [split_selected_posts_desc] => The posts below will form a new topic after splitting. [split_reset_selection] => reset selection [modify_cancel] => Cancel [mark_read_short] => Mark Read [pm_short] => My Messages [hello_member_ndt] => Hello [ajax_in_progress] => Loading... [googletagged] => GoogleTagged [googletagged_admin] => GoogleTagged [attachment] => [ Attachment ] [attachment_nopermission] => [ Attachment: You are not allowed to view attachments ] [attachment_invalid] => [ Attachment Invalid Or Does Not Exist ] [attachment_disabled] => [ Attachments Disabled ] [attachment_insert] => Insert Attachment [downloads_menu] => Downloads [downloads_admin] => Downloads Configuration [permissiongroup_downloads] => Downloads System [permissionname_downloads_view] => View Downloads [permissionhelp_downloads_view] => Allows the user to view the Downloads [cannot_downloads_view] => You are not allowed to view the Downloads [permissionname_downloads_add] => Add Download [permissionhelp_downloads_add] => Allows the user to add a download. [cannot_downloads_add] => You are not allowed to add a download. [permissionname_downloads_edit] => Edit own Download [permissionhelp_downloads_edit] => Allows the user to edit their own download. [cannot_downloads_edit] => You are not allowed to edit that download [permissionname_downloads_delete] => Delete own Download [permissionhelp_downloads_delete] => Allows the user to delete their own download. [cannot_downloads_delete] => You are not allowed to delete that download. [permissionname_downloads_ratefile] => Rate Downloads [permissionhelp_downloads_ratefile] => Allows the user to rate a file. [cannot_downloads_ratefile] => You are not allowed to rate that file. [permissionname_downloads_editcomment] => Edit own Comment [permissionhelp_downloads_editcomment] => Allows the user to edit their own comments. [cannot_downloads_editcomment] => You are not allowed to edit that comment. [permissionname_downloads_comment] => Leave Comments [permissionhelp_downloads_comment] => Allows the user to leave comments on a download. [cannot_downloads_comment] => You are not allowed to leave comments. [permissionname_downloads_report] => Report Pictures/Comments [permissionhelp_downloads_report] => Allows the user to report downloads and comments. [cannot_downloads_report] => You are not allowed to report content. [permissionname_downloads_autocomment] => Auto Approve Comments [permissionhelp_downloads_autocomment] => Comments do not need to wait for approval. [permissionname_downloads_autoapprove] => Auto Approve Downloads [permissionhelp_downloads_autoapprove] => Downloads do not need to wait for approval. [permissionname_downloads_manage] => Admin Download System [permissionhelp_downloads_manage] => Allows the user to add/delete/edit all catagories. Delete Comments, Delete Downloads, Approve Downloads [cannot_downloads_manage] => You are not allowed to manage the downloads. [number_format] => 1234.00 [post_reply] => Post reply [message_icon] => Message icon [subject_not_filled] => The Subject field was not filled out. It is required. [message_body_not_filled] => The Message Body was not filled out. It is required. [add_bbc] => Add BBC tags [bold] => Bold [italic] => Italicized [underline] => Underline [center] => Centered [hyperlink] => Insert Hyperlink [insert_email] => Insert Email [bbc_code] => Insert Code [bbc_quote] => Insert Quote [list] => Insert List [black] => Black [red] => Red [yellow] => Yellow [pink] => Pink [green] => Green [orange] => Orange [purple] => Purple [blue] => Blue [beige] => Beige [brown] => Brown [teal] => Teal [navy] => Navy [maroon] => Maroon [lime_green] => Lime Green [disable_smileys] => Disable Smileys [dont_use_smileys] => Don't use smileys. [posted_on] => Posted on [standard] => Standard [thumbs_up] => Thumb Up [thumbs_down] => Thumb Down [excamation_point] => Exclamation point [question_mark] => Question mark [lamp] => Lamp [add_smileys] => Add Smileys [flash] => Insert Flash [ftp] => Insert FTP Link [image] => Insert Image [table] => Insert Table [table_td] => Insert Table Column [topic_notify_no] => There are no topics with Notification. [marquee] => Marquee [teletype] => Teletype [strike] => Strikethrough [glow] => Glow [shadow] => Shadow [preformatted] => Preformatted Text [left_align] => Left Align [right_align] => Right Align [superscript] => Superscript [subscript] => Subscript [table_tr] => Insert Table Row [post_too_long] => Your message is too long. Please go back and shorten it, then try again. [horizontal_rule] => Horizontal Rule [font_size] => Font Size [font_face] => Font Face [notify_boards] => A new topic, '%s', has been made on a board you are watching. You can see it at %s [notify_boards_subject] => New Topic: %s [notify_boards_once] => More topics may be posted, but you won't receive more email notifications until you return to the board and read some of them. [notifyUnsubscribe] => Unsubscribe to this topic by clicking here [notify_boardsUnsubscribe] => Unsubscribe to new topics from this board by clicking here [lock_after_post] => Lock after Post [lock_topic] => Lock this topic. [option] => Option [reset_votes] => Reset Vote Count [reset_votes_check] => Check this if you want to reset all vote counts to 0. [votes] => votes [attach] => Attach [attached] => Attached [allowed_types] => Allowed file types [max_size] => Maximum attachment size allowed [cant_upload_type] => You cannot upload that type of file. The only allowed extensions are [to delete_blank] => To delete your attachment, leave this blank. [uncheck_unwatchd_attach] => Uncheck the attachments you no longer want attached [restricted_filename] => That is a restricted filename. Please try a different filename. [topic_locked_no_reply] => Warning: topic is currently/will be locked!
    Only admins and moderators can reply. [new_announcement] => New announcement [announce_unsubscribe] => To unsubscribe from these announcements, login to the forum and uncheck "Receive forum announcements and important notifications by email." in your profile. You can view the full announcement by following this link: [more_but_no_reply] => More replies may be posted, but you won't receive any more notifications until you read the topic. [enter_comment] => Enter comment [reported_post] => Reported post [reported_to_mod_by] => by [rtm10] => Submit [report_following_post] => The following post, "%s" by [reported_by] => has been reported by [board_moderate] => on a board you moderate [report_comment] => The reporter has made the following comment [maxAttachPerPost] => per post [post_additionalopt] => Additional Options... [sticky_after] => Sticky this topic. [move_after2] => Move this topic. [back_to_topic] => Return to this topic. [retrieving_quote] => Retrieving Quote... [poll_options] => Poll Options [poll_run] => Run the poll for [poll_run_days] => days. (leave blank for no limit) [poll_results_anyone] => Show the poll's results to anyone. [poll_results_voted] => Only show the results after someone has voted. [poll_max_votes] => Maximum votes per user. [poll_do_change_vote] => Allow user to change vote. [poll_too_many_votes] => You selected too many options. For this poll, you may only select %s options. [poll_add_option] => Add Option [spellcheck_done] => Spell checking complete. [spellcheck_change_to] => Change To: [spellcheck_suggest] => Suggestions: [spellcheck_change] => Change [spellcheck_change_all] => Change All [spellcheck_ignore] => Ignore [spellcheck_ignore_all] => Ignore All [more_attachments] => more attachments [more_attachments_error] => Sorry, you aren't allowed to post any more attachments. [more_smileys] => more [more_smileys_title] => Additional smileys [more_smileys_pick] => Pick a smiley [more_smileys_close_window] => Close Window [error_new_reply] => Warning - while you were typing a new reply has been posted. You may wish to review your post. [error_new_replies] => Warning - while you were typing %d new replies have been posted. You may wish to review your post. [error_new_reply_reading] => Warning - while you were reading a new reply has been posted. You may wish to review your post. [error_new_replies_reading] => Warning - while you were reading %d new replies have been posted. You may wish to review your post. [error_old_topic] => Warning: this topic has not been posted in for at least %s days.
    Unless you're sure you want to reply, please consider starting a new topic. [notification_reply_subject] => Topic reply: %s [notification_reply] => A reply has been posted to a topic you are watching by %s. View the reply at: [notification_sticky_subject] => Topic stickied: %s [notification_sticky] => A topic you are watching has been marked as a sticky topic by %s. View the topic at: [notification_lock_subject] => Topic locked: %s [notification_lock] => A topic you are watching has been locked by %s. View the topic at: [notification_unlock_subject] => Topic unlocked: %s [notification_unlock] => A topic you are watching has been unlocked by %s. View the topic at: [notification_remove_subject] => Topic removed: %s [notification_remove] => A topic you are watching has been removed by %s. [notification_move_subject] => Topic moved: %s [notification_move] => A topic you are watching has been moved to another board by %s. View the topic at: [notification_merge_subject] => Topic merged: %s [notification_merge] => A topic you are watching has been merged with another topic by %s. View the new merged topic at: [notification_split_subject] => Topic split: %s [notification_split] => A topic you are watching has been split into two or more topics by %s. View what remains of this topic at: [notification_reply_body] => The text of the reply is shown below: [notification_new_topic_body] => The text of the topic is shown below: [announce_this_topic] => Send an announcement about this topic to the members: [announce_title] => Send an announcement [announce_desc] => This form allows you to send an announcement to the selected membergroups about this topic. [announce_sending] => Sending announcement of topic [announce_done] => done [announce_continue] => Continue [announce_topic] => Announce topic. [announce_regular_members] => Regular Members )


    print_r(txt['emails']:
    (nothing)


kreativekarma

I so wish that I had not downloaded the new version.  :'( My people are so frustrated and confused about all the errors in their beloved community.

metallica48423

Can you switch your default theme to be able to be selected by normal members? I strongly suspect that the JS issue is caused by your theme being designed for 1.1 and not 2.0.

Are your emails sending through SMTP or through PHP?  It is possible the email templates aren't loaded into $txt until they are actually needed, to save memory.

As a note, I will not be around probably at all for a few days, as I have not been for the last three or four -- if another team member could pick this topic up i would appreciate it.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

metallica48423

on another note -- does your custom theme happen to have its own languages folder?
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

1) How do I find out if the board is sending emails through SMTP or through PHP?

2) Yes, the theme has a languages folder - in fact, we are using the default theme (modified only slightly for graphics).

Thanks!

metallica48423

The language files in it probably wont work -- it might perhaps be best to TRY not using those files but use the default (to do this, try renaming the folder in the custom theme to languages-old or the like, then clear the cache in forum maintenance)... that should make it use the default theme's language files.

Any file in your theme that isn't changed from the default also doesn't need to be in the theme (it will default to use the default's, but will use that theme's images and css).

The email thing you can check in the server settings part of the admin CP to see which option you have selected
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

We are using the default and we are using the default languages folder.  Is there something else we should be looking out for?

Regarding the method of sending email, this is our server setting: Path to sendmail: /usr/sbin/sendmail, so I am assuming that it is PHP based on the above path to sendmail.

metallica48423

You are using 2.0 correct?  I'm having problems finding that setting.

Though i was incorrect as to the settings location... it was moved.... still not 100% on everything yet :P

admin > mail > mail settings

sorry about that :)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

Yes, we are using 2.0 Beta 3 Public

kreativekarma

These are the options in under admin > mail:
Web Mail
       Email Domain Forwarding
       Add/Remove/Manage Accounts
       Default Address
       Auto-responders
       Email Filtering
       Forwarders
       Mailing Lists
       SpamAssassin
       BoxTrapper Spam Trap
       Trace an E-mail Address
       Modify Mail Exchanger (MX Entry)
I do not see settings anywhere...

metallica48423

You're in cPanel.

I'm talking about in SMF's Admin CP :P
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma


kreativekarma

Well, we are not seeing anything about email in there.. and there are lots of blank areas on every page that don't say anything... see images attached.

metallica48423

Its as i said prior, its trying to use the old language files for the theme, but it needs to use the ones that came with the default.  thats no problem. Its trying to use a theme with 1.1 language files and they will not work with 2.0.

in FTP, in /Themes/themename/, you should see a /languages folder.  Rename it to languages-old.  I don't know what the themename is in this case so it should be the name of the theme itself.  This will force SMF to use the theme files but use the default theme's language files.

Once that is done, go to admin > forum maintenance and click the option to clear the file cache.  Then go back to that page.
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

We are currently using the default theme as our main theme, so when I renamed the languages folder to languages-old, there was no text on any button, etc.  Thus, I downloaded SMF 2.0 Beta 3 and copied the 32 files in the /Themes/default/language folder; however, the buttons still did not have any text on them, so I used the original languages folder.

Then, when I went to admin > forum maintenance, I could not find the option to clear the file cache.  This is the list of options available to us on this page:

    *   Optimize all tables to improve performance.
    * Backup Database

:

    * Check all files against current versions.
    * Find and repair any errors.
    * Recount all forum totals and statistics.

:

    *


    *



:

    * Remove Old Posts
    *

:

    * Empty out unimportant logs.
    * Convert HTML-entities to UTF-8 characters

       
It does look like something is wrong -- should we do a complete reinstall of SMF 2.0 Beta 3?

metallica48423

ahh, i see.  You edited the images in default.  i had assumed incorrectly that you were using a different theme.

Yeah...  backup your theme first though and try with a 100% stock default theme.  If its still wrong then something deeper is wrong
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

kreativekarma

Ok Man, you can close this case! We ended up just doing a complete re-install and the copied the database over etc and it worked, I am so stinkin' happy! SHEESH!

metallica48423

interesting.  I still wonder what was causing the problem in case it comes up again.

In either case, I am glad you got it solved :)
Justin O'Leary
Ex-Project Manager
Ex-Lead Support Specialist

QuoteMicrosoft wants us to "Imagine life without walls"...
I say, "If there are no walls, who needs Windows?"


Useful Links:
Online Manual!
How to Help us Help you
Search
Settings Repair Tool

Advertisement: