SMF Support > SMF 2.0.x Support
Topics listed by the latest topic data
kowasky:
Ive added the code here
--- Code: ---<?php
/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0
*/
function template_main()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt, $sourcedir;
echo '
<a id="top"></a>';
if (!isset($_REQUEST['sort']) && $board == '3.0') { //xx=boardnumber in which you want to do this
$_REQUEST['sort'] = 'first_post';
$_REQUEST['desc'] = 'desc';
};
...........................................
--- End code ---
but nothing changes
:-\
Maybe Ive to add the code in another string?
thanks
Arantor:
Wrong file, it should be Sources/MessageIndex.php not MessageIndex.template.php and if you look through the file you'll see it test for $_REQUEST['sort'] and $_REQUEST['desc'], you have to put that code before it.
kowasky:
Thanks, works fine
:)
Navigation
[0] Message Index
[*] Previous page
Go to full version