News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Reseller

Started by Diego Andrés, July 30, 2014, 11:08:08 AM

Previous topic - Next topic

Porr

@ Oscar the Grouch

Thank you :-)

Almost ready now to make it the default theme for the forum i run  :D.

Porr



index.css

.smalltext, tr.smalltext th
{
font-size: 0.85em;
font-family: verdana, sans-serif;

adjust the font size here.
[/quote]

Hmm it changed something. But not the other text. Ofcourse i tried also middle text, and other parts near that code. This is the result when i change small text.


Oscar the Grouch

index line 5 for links then..... that will be a universal change. not sure if thats what you were after tho

Porr

#103
Well it did not really do the job but i am happy how it looks now.

I have 2 questions left.

The first:

1 think that is missing is a message about members that are waiting approval. Normaly when i had a theme i could easily put this code:
// Are there any members waiting for approval?
if (!empty($context['unapproved_members']))
echo '
<li>', $context['unapproved_members'] == 1 ? $txt['approve_thereis'] : $txt['approve_thereare'], ' <a href="', $scripturl, '?action=admin;area=viewmembers;sa=browse;type=approve">', $context['unapproved_members'] == 1 ? $txt['approve_member'] : $context['unapproved_members'] . ' ' . $txt['approve_members'], '</a> ', $txt['approve_members_waiting'], '</li>';
  }

in the indextemplate.php. I tried some stuff but it looks really different (the code) that the other theme's i used. Any ideas?

The second. I saw on the SMF tricks site that the green + box was replaced with text (actions). I would like to do the same.

Porr

Quote from: ultrazonex2 on August 10, 2014, 08:42:16 AM
How do I have these buttons displayed on my forum under the logo like in hxxp:smftricks.com [nonactive]?
 Home
 Search
 Team
 Downloads
 Login
 Register

Also note that a 'logout button' is shown too when you are logged in. Note everyone will know that some button exist under toggle navigation.


Thanks.
I tried to do the same. Using the mobile menu and changing it to work always. And then ofcourse the submenu should open differently. Like at hxxp:smftrick.com [nonactive]. I could not figure it out.

superbiagi

#105
Hi,
is it possible to remove the buttons "login" and "register" from the blue header? :)
thank you

eta: solved!

mulwa

how can i fix the menu bar not to be moveable?. Then if possible i'd like to add search box on the nav menu right side just like facebook. Thanks

Dylert

Great theme! I just love it, but want to make a few changes.

1. How can I make the black menu line on top static? I want it to be visible after scrolling down the pages.

2. How can I write the text "MENU" beside the menu button on the right top? (see attachment)

3. How can I make a home-link on the top left. Maybe with a home-icon? (see attachment)

Hopefully someone can help me with this! Thanks a lot! :)


Akshtsaklani7

Quote from: Dylert on November 12, 2014, 02:33:02 AM
Great theme! I just love it, but want to make a few changes.

1. How can I make the black menu line on top static? I want it to be visible after scrolling down the pages.

Quote from: Diego Andrés on July 30, 2014, 11:27:56 AM
Sure, just edit the reseller.css, find this
.navbar-default
{
background-color: #26282b;
border-color: #222427;
border-bottom-width: 0;
box-shadow: 0 -3px #222427 inset;
}


Replace with
.navbar-default
{
background-color: #26282b;
border-color: #222427;
border-bottom-width: 0;
box-shadow: 0 -3px #222427 inset;
position: fixed;
top: 0;
width: 100%;
z-index: 10000;
}


And find
header
{
background: #3498db;
box-shadow: 0 -3px #9fc6e0 inset;
padding: 20px 0;
}


Replace with
header
{
background: #3498db;
box-shadow: 0 -3px #9fc6e0 inset;
padding: 20px 0;
margin-top: 50px;
}


Try  :P

Dylert

Nice! Thanks a lot!

What about the two other things:

2. How can I write the text "MENU" beside the menu button on the right top? (see attachment)

3. How can I make a home-link on the top left. Maybe with a home-icon? (see attachment)

batto


ForumMix

Hope someone can help me. I would like to replace these green color to the same color as the categories.

I've been looking for reseller. css, but can not find it. Can anyone point out any line that is located at.
Attach photos where you understand the color change.


ForumMix

I found everything now and now everything is changed so that I wanted.

ForumMix

I was wondering how to increase pages on this theme. Today, there are many temor with this adaptation-Forum width:
Forum width. For example: 950px, 80%, 1240px.

But this is missing this. Now I wonder where this can be? Can anyone identify this?

colby2152

I need help with this theme as it does not support double level dropdowns within the menu.
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

Daniiel

Quote from: colby2152 on November 15, 2014, 12:58:25 PM
I need help with this theme as it does not support double level dropdowns within the menu.
Index.css
Add to the end:
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}
.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

Index.template.php
Search:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '" class="', $button['sub_buttons'] ? 'dropdown ' : '', '', $button['active_button'] ? 'active ' : '', '">
<a ', $button['sub_buttons'] ? 'class="dropdown-toggle" ' : '', 'href="', $button['sub_buttons'] ? '#' : $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '', $button['sub_buttons'] ? ' data-toggle="dropdown"' : '', '>
', $button['title'], '
', $button['sub_buttons'] ? '<span class="caret"></span>' : '' ,'
</a>';
if (!empty($button['sub_buttons']))
{
echo '
<ul class="dropdown-menu" role="menu">';

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
', $childbutton['title'] , '
</a>
</li>';
}
echo '
</ul>';
}
echo '
</li>';
}
}

Replace with:
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

foreach ($context['menu_buttons'] as $act => $button)
{
echo '
<li id="button_', $act, '" class="', !empty($button['sub_buttons']) ? 'dropdown' . (!empty($childbutton['sub_buttons']) ? '-submenu' : '') . '' : '', '', $button['active_button'] ? ' active' : '', '">
<a ', $button['sub_buttons'] ? 'class="dropdown-toggle" ' : '', 'href="', $button['sub_buttons'] ? '#' : $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '', $button['sub_buttons'] ? ' data-toggle="dropdown"' : '', '>
', $button['title'], '
', $button['sub_buttons'] ? '<span class="caret"></span>' : '' ,'
</a>';

if (!empty($button['sub_buttons']))
{
echo '
<ul class="dropdown-menu" role="menu">';

foreach ($button['sub_buttons'] as $childbutton)
{
echo '
<li ', !empty($childbutton['sub_buttons']) ? 'class="dropdown-submenu"' : '', '>
<a href="', $childbutton['href'], '"', isset($childbutton['target']) ? ' target="' . $childbutton['target'] . '"' : '', '>
<span', isset($childbutton['is_last']) ? ' class="last"' : '', '>', $childbutton['title'], !empty($childbutton['sub_buttons']) ? '...' : '', '</span>
</a>';
// 3rd level menus :)
if (!empty($childbutton['sub_buttons']))
{
echo '
<ul class="dropdown-menu">';

foreach ($childbutton['sub_buttons'] as $grandchildbutton)
echo '
<li>
<a href="', $grandchildbutton['href'], '"', isset($grandchildbutton['target']) ? ' target="' . $grandchildbutton['target'] . '"' : '', '>
<span', isset($grandchildbutton['is_last']) ? ' class="last"' : '', '>', $grandchildbutton['title'], '</span>
</a>
</li>';

echo '
</ul>';
}

echo '
</li>';
}
echo '
</ul>';
}
echo '
</li>';
}
}

Try with that.

colby2152

Thanks Daniiel.  The menu works perfectly now!  The only issue remaining for me is with how it displays on mobile.  Since I have 728x90 ads and SimplePortal right-hand blocks, it doesn't consolidate the view on mobile.  This is a general question, but is there a way to modify my HTML code that makes it show different sized ads if viewing on mobile?
ProFSL.com - Pro Fantasy Sports Leagues - Advanced fantasy sports leagues, contests, free chances at cash/prizes, and sports discussion.

Need a server? I am happy to advocate this hosting solution - hands on customer service and reliability is relieving!!!

Oscar the Grouch

is their away to change the value of the "recent unread topics button"  id like it to be just all unread.

Akshtsaklani7

Quote from: Oscar the Grouch on November 25, 2014, 06:23:35 AM
is their away to change the value of the "recent unread topics button"  id like it to be just all unread.

Try this

Themes/default/languages/index.english.php
Find
$txt['unread_topics_visit'] = 'Recent Unread Topics';

Replace
$txt['unread_topics_visit'] = 'All unread';

motosimak

how to move the block to the left of the profile of the user message , as is done in the block news simpleportal here http://knowpc.ru/index.php?page=news

Advertisement: