71
To remove the categories, since they all will still show: (See attached image)
BoardIndex.template.php
<header class="category_header">';
// If this category even can collapse, show a link to collapse it.
if ($category['can_collapse'])
echo '
<a class="chevricon i-chevron-', $category['is_collapsed'] ? 'down' : 'up', '" href="', $category['collapse_href'], '" title="', $category['is_collapsed'] ? $txt['show'] : $txt['hide'], '"></a>';
// The "category link" is only a link for logged in members. Guests just get the name.
echo '
', $category['link'], '
</header>
72
Here is an update that adds in the fixed menu header functionality.
There are a few things to change / note.
Since you most likely have done some custom changes, at least colors, the specific changes for this are as follows:
Replace your theme.js file in the separation/scripts directory with the one attached. This adds the scroll detection function. You may need to tweak the value in it to specify the scroll distance before the menu becomes fixed. This is basically the height of your logo area or the distance from the top of the screen to the top of the menu. In the theme.js file the value is set in shrinkOn = 110; <-change 110 to what you need.
You will need to add in index.css:
#menu_nav_1 {
border-radius: 0 0 6px 6px;
}
.menu_nav_scroll {
position: fixed;
z-index: 100;
top: 0;
left: 0;
right: 0;
margin: 0 auto;
width: 95%;
}
In that same file:
#menu_nav, #menu_nav_1 {
height: 48px;
}
.menu_nav_scroll {
width: 98%;
}
Last change will be in your color file (Example: seperation/css/_blue/index_blue.css)
#menu_wrapper {
border-color: #CCCCCC;
}
#menu_wrapper {
border-color: #CCCCCC;
background-color: #FEFEFE;
}
That is just the color in the padding area of the menu and just prevents seeing a tiny sliver of the page background as you scroll the page.
74
Open sources/controllers/Likes.controller.php
line 107 should say:
if ($liked_message && empty($liked_message['locked']))
Change to:
if ($liked_message)
To show the button: sources/controllers/Dispaly.controller.php
$message['use_likes'] = allowedTo('like_posts') && empty($context['is_locked']) && ($message['id_member'] != $user_info['id'] || !empty($modSettings['likeAllowSelf'])) && (empty($modSettings['likeMinPosts']) ? true : $modSettings['likeMinPosts'] <= $user_info['posts']);
$message['use_likes'] = allowedTo('like_posts') && ($message['id_member'] != $user_info['id'] || !empty($modSettings['likeAllowSelf'])) && (empty($modSettings['likeMinPosts']) ? true : $modSettings['likeMinPosts'] <= $user_info['posts']);
75
The main title of the forum shows in tab on your browser, like whatever names are for each page. I edited the language file for the board index: index.english.php
$txt['forum_index'] = '%1$s - SITE SLOGAN';
Edit the PortalMain.controller.php in the sources/controllers directory:
public function pre_dispatch()
{
global $context;
if (!sp_is_active())
{
redirectexit();
}
$context['page_title'] = $context['forum_name'];
public function pre_dispatch()
{
global $context, $txt;
if (!sp_is_active())
{
redirectexit();
}
$context['page_title'] = sprintf($txt['forum_index'], $context['forum_name']);
77
[video]https://bk.cc.nf/videos/Awesome.mp4[/video]