Customizing SMF > Modifications and Packages
Optimus Brave
Bugo:
$context['topic_first_message'] it's best :)
MiY4Gi:
I use the PortaMx portal, so the homepage title I specified in the mod only shows when I'm in my forum (i.e. at mysite.tld/forum), not when I'm at my "Home"/Portal page (i.e. mysite.tld). Would it be possible to move the homepage title to the Website's homepage, and rename the Forum's homepage as simply "MySiteTitle - Forum"?
mrintech:
I am using this MOD and it's awesome for SEO :)
Thanks a ton :)
Bugo:
--- Quote from: MiY4Gi on August 11, 2012, 12:03:22 PM ---I use the PortaMx portal, so the homepage title I specified in the mod only shows when I'm in my forum (i.e. at mysite.tld/forum), not when I'm at my "Home"/Portal page (i.e. mysite.tld). Would it be possible to move the homepage title to the Website's homepage, and rename the Forum's homepage as simply "MySiteTitle - Forum"?
--- End quote ---
Subs-Optimus.php, find
--- Code: ---function optimus_home()
{
global $txt, $modSettings, $context;
loadLanguage('Optimus');
$txt['forum_index'] = !empty($modSettings['optimus_forum_index']) ? '%1$s - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];
}
function optimus_operations()
{
global $context, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;
--- End code ---
and replace with
--- Code: ---function optimus_home()
{
global $context, $mbname, $txt, $modSettings;
loadLanguage('Optimus');
// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['forum_name'] = !empty($modSettings['optimus_forum_index']) ? $mbname . ' - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];
// Forum
$txt['forum_index'] = '%1$s - Forum';
}
function optimus_operations()
{
global $context, $mbname, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;
// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['linktree'][0]['name'] = $mbname;
--- End code ---
MiY4Gi:
--- Quote from: Bugo on August 12, 2012, 02:50:53 AM ---Subs-Optimus.php, find
--- Code: ---function optimus_home()
{
global $txt, $modSettings, $context;
loadLanguage('Optimus');
$txt['forum_index'] = !empty($modSettings['optimus_forum_index']) ? '%1$s - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];
}
function optimus_operations()
{
global $context, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;
--- End code ---
and replace with
--- Code: ---function optimus_home()
{
global $context, $mbname, $txt, $modSettings;
loadLanguage('Optimus');
// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['forum_name'] = !empty($modSettings['optimus_forum_index']) ? $mbname . ' - ' . $modSettings['optimus_forum_index'] : $context['forum_name'];
// Forum
$txt['forum_index'] = '%1$s - Forum';
}
function optimus_operations()
{
global $context, $mbname, $boardurl, $modSettings, $smcFunc, $txt, $scripturl, $topicinfo, $board_info;
// Portal
if(empty($context['current_board']) && empty($context['current_topic']) && empty($_REQUEST['action']))
$context['linktree'][0]['name'] = $mbname;
--- End code ---
--- End quote ---
Worked like a charm. Thanks.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version