Instructions:
./index.php
Find: [Select]
CODE
'trackip' => array('Profile.php', 'trackIP'),
Add After: [Select]
CODE
/** Page Manager next 2 items **/
'pgmod' => array('Pages.php', 'Pages'),
'page' => array('Pages.php', 'ShowPages'),
'pgmod' => array('Pages.php', 'Pages'),
'page' => array('Pages.php', 'ShowPages'),
Find: [Select]
CODE
require_once($sourcedir . '/Security.php');
Add After: [Select]
CODE
/** Page Manager **/
if (file_exists($sourcedir . '/LoadPages.php'))
require_once($sourcedir . '/LoadPages.php');
if (file_exists($sourcedir . '/LoadPages.php'))
require_once($sourcedir . '/LoadPages.php');
Find: [Select]
CODE
loadPermissions();
Add After: [Select]
CODE
/** Page Manager **/
if (function_exists("loadPages"))
loadPages();
if (function_exists("loadPages"))
loadPages();
./Sources/Subs.php
Find: [Select]
CODE
loadLanguage('Admin');
Add After: [Select]
CODE
// Mod Pages
loadLanguage('Pages');
loadLanguage('Pages');
Find: [Select]
CODE
'manage_themes' => '<a href="' . $scripturl . '?action=theme;sa=admin;sesc=' . $sc . '">' . $txt['theme_admin'] . '</a>',
Add After: [Select]
CODE
/** Page Manager next item **/
'edit_page' => '<a href="' . $scripturl . '?action=pgmod">'.$txt['page_management'].'</a>',
'edit_page' => '<a href="' . $scripturl . '?action=pgmod">'.$txt['page_management'].'</a>',
./Themes/default/index.template.php
Find: [Select]
CODE
// Otherwise, they might want to [logout]...
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
if ($context['user']['is_logged'])
echo ($current_action == 'logout' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'logout' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=logout;sesc=', $context['session_id'], '">' , $txt[108] , '</a>
</td>' , $current_action == 'logout' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Add After: [Select]
CODE
/** start Page Manager **/
if(isset($context['pages_mod']))
foreach($context['pages_mod'] as $row)
{
echo (isset($_REQUEST['action']) && $_REQUEST['action'] == 'page' && isset($_REQUEST['id']) && $_REQUEST['id'] == $row['ID']) ?
'<td class="maintab_active_'.$first.'"> </td>
<td valign="top" class="maintab_active_back">
<a href="'.$scripturl.'?action=page;id='.$row['ID'].'">'.$row['NAME'].'</a>
</td>
<td class="maintab_active_'.$last.'"> </td>'
:
'<td valign="top" class="maintab_back">
<a href="'.$scripturl.'?action=page;id='.$row['ID'].'">'.$row['NAME'].'</a>
</td>';
}
/** end Page Manager **/
if(isset($context['pages_mod']))
foreach($context['pages_mod'] as $row)
{
echo (isset($_REQUEST['action']) && $_REQUEST['action'] == 'page' && isset($_REQUEST['id']) && $_REQUEST['id'] == $row['ID']) ?
'<td class="maintab_active_'.$first.'"> </td>
<td valign="top" class="maintab_active_back">
<a href="'.$scripturl.'?action=page;id='.$row['ID'].'">'.$row['NAME'].'</a>
</td>
<td class="maintab_active_'.$last.'"> </td>'
:
'<td valign="top" class="maintab_back">
<a href="'.$scripturl.'?action=page;id='.$row['ID'].'">'.$row['NAME'].'</a>
</td>';
}
/** end Page Manager **/
Find: [Select]
CODE
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global
function template_menu()
{
global
Replace With: [Select]
CODE
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $db_prefix,
function template_menu()
{
global $db_prefix,
Find: [Select]
CODE
array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm'
Replace With: [Select]
CODE
array('search', 'admin', 'calendar', 'profile', 'mlist', 'register', 'login', 'help', 'pm', 'page'
Find: [Select]
CODE
<meta name="description" content="', $context['page_title'], '" />
Replace With: [Select]
CODE
<meta name="description" content="'.((isset($context['page_title'])) ? $context['page_title'] : null).' - '.((isset($context['meta_description'])) ? $context['meta_description'] : null).'" />
Find: [Select]
CODE
<meta name="keywords" content="
Replace With: [Select]
CODE
<meta name="keywords" content="'.((isset($context['meta_keywords'])) ? $context['meta_keywords'] : null).',
Find: [Select]
CODE
', theme_copyright(), '
Add Before: [Select]
CODE
';
$twoby2host_copyrights = '<br /><a href="http://www.2by2host.com/services/simplemachines/">SMF customization services</a> by <a href="http://www.2by2host.com/">2by2host.com</a>';
echo '
$twoby2host_copyrights = '<br /><a href="http://www.2by2host.com/services/simplemachines/">SMF customization services</a> by <a href="http://www.2by2host.com/">2by2host.com</a>';
echo '
Find: [Select]
CODE
', theme_copyright(), '
Add After: [Select]
CODE
<span class="smalltext" style="display: inline; visibility: visible; font-family: Verdana, Arial, sans-serif;">';
if(!empty($twoby2host_copyrights))
{
echo $twoby2host_copyrights;
unset($twoby2host_copyrights);
}
echo '</span>
if(!empty($twoby2host_copyrights))
{
echo $twoby2host_copyrights;
unset($twoby2host_copyrights);
}
echo '</span>
Files are below.