As your membergroup gets higher, you get more permissions here on SMF Helper. Be sure to check out your profile for more options.
0 Members and 1 Guest are viewing this topic.
How do this portal compare to the simplicity of Simple Portal?
// Robots shouldn't be logging in or registering. So, they aren't a bot. Better to be wrong than sorry (or people won't be able to log in!), anyway. if ((isset($_REQUEST['action']) && in_array($_REQUEST['action'], array('login', 'login2', 'register'))) || !$context['user']['is_guest']) $context['browser']['possibly_robot'] = false; // Set the top level linktree up. array_unshift($context['linktree'], array( 'url' => $scripturl, 'name' => $context['forum_name_html_safe'] ));
// Robots shouldn't be logging in or registering. So, they aren't a bot. Better to be wrong than sorry (or people won't be able to log in!), anyway. if ((isset($_REQUEST['action']) && in_array($_REQUEST['action'], array('login', 'login2', 'register'))) || !$context['user']['is_guest']) $context['browser']['possibly_robot'] = false; // ----------------------------------------------------------------------------------------------- // + EzPortal v0.2.4 linktree() fix by ccbtimewiz [2/12/09] (http://jeunosky.net/) # Just in case... making this a global. global $ezpSettings; # Does $ezpSettings exist?! If not, set it to false and log NO errors. if (empty($ezpSettings)) { $ezpSettings = array(); $ezpSettings['ezp_portal_enable'] = 0; } # Are they perhaps running SMF 1.1.x and forum_name_html_safe doesn't exist? If so, let's fix 'em up. if (empty($context['forum_name_html_safe'])) $forum_title = $context['forum_name']; else $forum_title = $context['forum_name_html_safe']; // This contains the "home" of the theme_linktree(). This is set first if no portal page is active. # @example: My Website if (empty($ezpSettings['ezp_portal_enable'])) array_unshift($context['linktree'], array( 'url' => $scripturl, 'name' => $forum_title )); // And finally, if the portal IS set, show the forum name and then "forum". # @example: My Website => Forum else array_unshift($context['linktree'], array( 'url' => $scripturl, 'name' => $forum_title ), array( 'url' => $scripturl . '?action=forum', 'name' => 'Forum' ) ); unset($ezpSettings); unset($forum_title); // -----------------------------------------------------------------------------------------------