News:

Wondering if this will always be free?  See why free is better.

Main Menu

Repulse

Started by Diego Andrés, March 01, 2023, 02:33:27 PM

Previous topic - Next topic

durangod

Hi, how do i remove the "repulse" text from the logo area.  I want to use my site name text and not a logo. I cant figure out how to remove the "repulse" text.  I have changed all the theme settings in admin config but it still will not remove the "repulse" text. 

Thanks Dave
My name is short for durango dave (i am not a god lol)

Diego Andrés

You'll need to edit it in the index.template.php
Themes/Repulse/index.template.php

Code (Search) Select
<h1 class="forumtitle">
<a id="top" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<span class="theme-logo">' . themecustoms_icon('fa fa-bolt') . $settings['theme_name']. '</span>' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name_html_safe'] . '">', '</a>
</h1>
Code (Replace) Select
<h1 class="forumtitle">
<a id="top" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? '<span class="theme-logo">' . $context['forum_name']. '</span>' : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name_html_safe'] . '">', '</a>
</h1>

You can also adjust the font-size in css/custom/app.css
header h1.forumtitleOr create a new file in Themes/Repulse/css/custom/custom_edits.css
And add it there to preserve the theme files. For example:
header h1.forumtitle {
font-size: 2.2em;
}

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Awesome, mod worked perfect...  1.2em was a perfect size.   Thank you for the quick reply, really appreciate it. This is my first experience with SMF forum install (comming from phpbb - old days)  Great support thanks again.  :)
My name is short for durango dave (i am not a god lol)

durangod

Hi, just wanted to share that i added titles to the userprofile - messages - and notifications icons in the header inside the anchor tag for each

Starting at line 214 and ending at line 242  in index.template.php


// If the user is logged in, display some things that might be useful.
if ($context['user']['is_logged'])
{
echo '
<li>
<a href="', $scripturl, '?action=profile"', !empty($context['self_profile']) || $context['current_action'] == 'unread'  || $context['current_action'] == 'unreadreplies' ? ' class="active"' : '', ' id="profile_menu_top" title="User Profile">
', $context['user']['avatar']['image'], '
</a>
<div id="profile_menu" class="top_menu"></div>
</li>';

// Secondly, PMs if we're doing them
if ($context['allow_pm'])
echo '
<li>
<a href="', $scripturl, '?action=pm"', !empty($context['self_pm']) ? ' class="active"' : '', ' id="pm_menu_top" title="Messages">
', themecustoms_icon('fa fa-inbox'), !empty($context['user']['unread_messages']) ? ' <span class="amt">' . $context['user']['unread_messages'] . '</span>' : '', '
</a>
<div id="pm_menu" class="top_menu scrollable"></div>
</li>';

// Thirdly, alerts
echo '
<li>
<a href="', $scripturl, '?action=profile;area=showalerts;u=', $context['user']['id'], '"', !empty($context['self_alerts']) ? ' class="active"' : '', ' id="alerts_menu_top" title="Notifications">
', themecustoms_icon('fa fa-bell'), !empty($context['user']['alerts']) ? ' <span class="amt">' . $context['user']['alerts'] . '</span>' : '', '
</a>
<div id="alerts_menu" class="top_menu scrollable"></div>
</li>';



You might want to do it differently on your next version if you decide to add them.  Just wanted to share.  :)
My name is short for durango dave (i am not a god lol)

durangod

#44
Great theme, it caught my eye when i first loaded the themes page and i have not been disappointed.  A few small changes but compared to my experience with other scripts this was a breeze to work with. I have not yet figured out how to do a review but if i figure that i will give it 5 starts. 

Theme - wonderful
Support - fast and informative
Happy custom - yes
Will use other products of developer - yes

here is my current custom css file to share for others. Not very much in here which speaks wonders for the theme, :)


/* changes the title text size */
/* this is on a per case basis depending on how you want your forum to look*/
/* and if you use a image logo or not */

header h1.forumtitle {
    font-size: 1.2em;
}

/* just changed the border from line to ridge */
/* looks better with ridge */

.sub_bar {
    border: 1px ridge #730d0d;
}

[id^=category][id$=boards]{
    border-top: 1px ridge #730d0d;
}


/* removed the cat_bar from view *
/* that annoying text that is above each category */
/* its even on the default out of the box theme - dont like it */

div.cat_bar {
    display: none;
}

/* change font awesome icons to grey (default was white) *
/* grey looks better */
.fa, .fa-brands, .fa-classic, .fa-regular, .fa-sharp, .fa-solid, .fab, .far, .fas {
    color: #5a5b5c;
}


FYI i did modify the text font but it is on a case by case basis i wanted it bigger and different but that is just up to you and your particular taste of your forum.  But if you want the same effect i just did this.  Just remember that i also did the logo edit to the core code (scroll up on this forum to see that mod from a few days ago) 

.theme-logo {
 font-family: "Brush Script MT", cursive;
 font-size: 2.5em;
 font-style: normal;
 font-variant: normal;
 font-weight: 700;
 line-height: 2.5em;
 margin-left: 0.50em;
}



Screenshot

You cannot view this attachment.








My name is short for durango dave (i am not a god lol)

Diego Andrés

Thank you, appreciate your comments and happy to see you like it!

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

You are very welcome, i toss up a screen shot too just to let others see the red style :)
My name is short for durango dave (i am not a god lol)

durangod

#47
Hi, oops i totally forgot about mobile side of things.  I was able to fix title by doing this

@media(max-width: 45em) {
   
header h1.forumtitle,
.theme-logo {
    font-family: "Brush Script MT", cursive;
    font-size: 0.259em;
    transform: scaleY(2.2);
    margin-top: 0.50em;
    line-height: 0.75em;
    margin-left: 0;
    white-space: nowrap;
}
 
}


However, i think i found a bug in your release, not sure.  The captcha seems to be too wide on mobile.

So i tried to fix it, its working in the console emulator but not on mobile live. Can you tell me what it should be please. 

My attempt is not working yet, help :)

@media(max-width: 45em) {
   
div#rc-anchor-container.rc-anchor-normal {
    width: 13em;
}
   
}


pic 

You cannot view this attachment.

My name is short for durango dave (i am not a god lol)

Diego Andrés


SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Perfect thanks... yep 70 works



@media(max-width: 45em) {

.g-recaptcha {
    transform:scale(0.70);
    transform-origin: 0 0;
}
}
My name is short for durango dave (i am not a god lol)

Steve

I'm not seeing your screenshots, all I get is a broken image marker.
DO NOT pm me for support!

durangod

#51
me either... hmmmmm  ok ill see whats going on there


i was using dropbox and in some sections of this forum in order to post using the img bbcode i had to copy the url from the image itself on dropbox that is why the url is so long.  It did show when i posted it. But i cant edit the post anymore.  But i see the drag and drop so i must have used that here... not sure yet it was late when i did those.

If i figure out why, maybe a moderator can replace the url for me on those posts.

ill be back..

I may have an answer here, i wonder if when i uploaded the image i used the dropbox dir on my pc rather than the actual image file.   hmmmm ...

Question:  how do i get a moderator to help me posting the right images, just find one and message them ?
My name is short for durango dave (i am not a god lol)

Diego Andrés

You can report the post with the info you want to change, or add the new info/changes to a new post and we later delete it.

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Ok thanks i will do that....

New topic..

I did add a welcome back code to the theme template

index.template.php on or about line 232

// If the user is logged in, display some things that might be useful.
if ($context['user']['is_logged'])
{
   
    //dave mod for welcome username
   
    echo '<li class="welcome_back">Welcome Back ['. $context['user']['name']. ']</li>';
         
    //end dave mod    



and css - default is white anyway but just in case

not sure if it looks better in white or black, i guess maybe white because the other stuff on the line is grey.  Not sure..


li.welcome_back {
    color: #ffffff;
}

pic..

You cannot view this attachment.

Thoughts if any ?
My name is short for durango dave (i am not a god lol)

Diego Andrés

Quote from: durangod on December 13, 2023, 04:03:42 PMThoughts if any ?

White is probably fine since on dark or light it keeps the topbar colored. Though with some colors it definitely rules out having the text black.

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

#55
Added a logout button to the second menu above the logo  this one i struggled with the css for over an hour.. whewwww...


php  right after the close foreach context

//dont forget to add $scripturl to the global line in the template_menu function


                                </ul>';
        }//close if 2nd level
       
        echo '
                            </li>';
    }//close foreach context
   
   
    //mod by dave to add logout button above logo
   
    // If the user is logged in display the logout button
    if ($context['user']['is_logged'])
    {
      echo '<li></li>
            <li class="top_logout">
              <a href="', $scripturl, '?action=logout;', $context['session_var'], '=', $context['session_id'], '"><i class="fa fa-logout"></i>Logout</a>
          </li>';
         
    }//close if logged in
   
    //close mod by dave logout button

    echo '
                        </ul>
                    </div>
                </div>
            </div>
        </div>
       
    </nav><!-- .menu_nav -->';
   
}//close function template_menu






css

nav#main_nav ul.menu_nav li.top_logout {
    position: absolute;
    right: 1em;
}

pic

You cannot view this attachment.


My name is short for durango dave (i am not a god lol)

Diego Andrés

You can do this easier:

Repulse/themecustoms/Init.php

Code (Search) Select
public static $_likes_quickbutton = false;
Code (Replace) Select
public static $_likes_quickbutton = false;

public static $_settings = [
'login_main_menu' => true,
];

That'll add both buttons to the main menu.
If you're using the 'community button' setting, you'll want to add those actions to the exclude setting.

I'll probably add a new setting in the next release to make it easier to toggle.

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Thanks appreciate it... i am old school (like before the web, before email) , i really dont understand these new framwork environments.  I figured it would be a breeze for you to do but i had no clue....  im learning slowly....  :)   
My name is short for durango dave (i am not a god lol)

Diego Andrés

No worries, it seems like I just keep adding settings to them  :laugh:

SMF Tricks - Free & Premium Responsive Themes for SMF.

unstablekitsune

Thank you for taking the time to create this theme! Love the Theme. Very Unique to most! But i face an issue. Board/Topics are not showing up. No text nothing just a icon and Cat Div. I prefer this over other themes. If you could point me in correct direction to attempt to fix this i can try :D I'm pretty new to SMF. 

Unstable Kitsune | Jack of All | YTSI Owner

Advertisement: