SMF Development > Feature Requests
Add a switch to turn off the "Latest Packages"
K@:
Yay!
Works, there, too!
Nice one, Squirrel! :)
Antechinus:
Yes, I know it works. :P
K@:
My point being that, if I can do the edits, almost anyone can! :)
Antechinus:
ROFL. Well anyone can if they take care to do them exactly as quoted. I've been a bit busy, but will get on to the themes page over the weekend.
Antechinus:
1.1.x Themes.template.php:
Find:
--- Code: --- </form>';
// And lastly, link to simplemachines.org for latest themes and info!
echo '
<table width="80%" cellpadding="4" cellspacing="0" border="0" align="center" class="tborder" style="margin-bottom: 2ex; margin-top: 2ex;">
<tr class="titlebg">
<td><a href="', $scripturl, '?action=helpadmin;help=latest_themes" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt[119], '" align="top" /></a> ', $txt['theme_latest'], '</td>
</tr>
<tr>
<td class="windowbg2" id="themeLatest">', $txt['theme_latest_fetch'], '</td>
</tr>
</table>';
--- End code ---
Replace:
--- Code: --- </form><br />';
--- End code ---
Find:
--- Code: --- echo '
<tr class="windowbg2">
<td align="right"><input type="submit" name="submit" value="', $txt['theme_install_go'], '" /></td>
--- End code ---
Replace:
--- Code: --- echo '
<tr class="windowbg2">
<td align="right"><input type="submit" name="submit" value="', $txt['theme_install_go'], '" />
<hr /><span style="float: left;">', $txt['theme_latest_fetch'], '</span></td>
--- End code ---
Find and remove:
--- Code: --- if (empty($modSettings['disable_smf_js']))
echo '
<script language="JavaScript" type="text/javascript" src="http://www.simplemachines.org/smf/latest-themes.js?language=', $context['user']['language'], '"></script>';
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
var tempOldOnload;
function smfSetLatestThemes()
{
if (typeof(window.smfLatestThemes) != "undefined")
setInnerHTML(document.getElementById("themeLatest"), window.smfLatestThemes);
if (tempOldOnload)
tempOldOnload();
}
// ]]></script>';
// Gotta love IE4, and its hatefulness...
if ($context['browser']['is_ie4'])
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
tempOldOnload = window.onload;
window.onload = smfSetLatestThemes;
// ]]></script>';
else
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
smfSetLatestThemes();
// ]]></script>';
--- End code ---
languages/Themes.english.php:
Find:
--- Code: ---$txt['theme_latest_fetch'] = 'Fetching latest themes from www.simplemachines.org...';
--- End code ---
Replace:
--- Code: ---$txt['theme_latest_fetch'] = 'More themes from Simple Machines Forum are available <a href="http://custom.simplemachines.org/themes/">on this link</a>.';
--- End code ---
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version