Repulse

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

Previous topic - Next topic

unstablekitsune

Thank you, I was blind looking for the wrong word. 

Found it, I Disabled it & Saved, Then Cleared Cache(just because i guess), & I Reenabled it & Saved. 

Sadly it didn't fix the icon issue. No idea what's that about. Ill see if i can track it down with some of my coding tools. Maybe ill get lucky.

Either way, You did fix the main issue! And i Greatly Thank you for the guidance through this.  :D
Unstable Kitsune | Jack of All | YTSI Owner

durangod

Quote from: Kindred on December 15, 2023, 09:24:17 AMDurango, there are several better ways to add menu items rather than hacking the template like that... especially because your hack ONLY affects the one theme.  If you offer multiple themes,  or change the theme later,  your hack won't affect the other theme.

Are there any resource links you can share to help teach me how to do that?   I do plan on sticking with just one theme and not offereing any more.
My name is short for durango dave (i am not a god lol)

Diego Andrés

Quote from: unstablekitsune on December 15, 2023, 10:35:34 AMSadly it didn't fix the icon issue. No idea what's that about. Ill see if i can track it down with some of my coding tools. Maybe ill get lucky.

Either way, You did fix the main issue! And i Greatly Thank you for the guidance through this.  :D

If you have a link to see it online, I could also give it a try to help you find the issue.

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Diego here is his link  forum.yifftech.org
My name is short for durango dave (i am not a god lol)

Diego Andrés

Looks like it's caused by FA Board icons MOD?

Could fix it with this
Quote from: Diego Andrés on August 05, 2023, 06:04:00 PMAdd to Repulse/css/custom/custom_edits.css (if it doesn't exist, create one).
 
.boardindex_table div.up_contain:not(.b_board, .b_redirect) .board_icon a::before { display:none;}

SMF Tricks - Free & Premium Responsive Themes for SMF.

unstablekitsune

Quote from: Diego Andrés on December 15, 2023, 12:34:20 PMLooks like it's caused by FA Board icons MOD?
Sorry for late reply, Got lost in QR Codes lol. I uninstalled FA Board Icons, Well It fixed it!

I don't understand how, as i started with board altering mods first on my uninstall test. 0.o weird.

Either Way Thank you so much everyone for the help with that =3. So much appreciation for everything!!! Can't Thank you all Enough =3
Unstable Kitsune | Jack of All | YTSI Owner

Kindred

Quote from: durangod on December 15, 2023, 11:17:07 AM
Quote from: Kindred on December 15, 2023, 09:24:17 AMDurango, there are several better ways to add menu items rather than hacking the template like that... especially because your hack ONLY affects the one theme.  If you offer multiple themes,  or change the theme later,  your hack won't affect the other theme.

Are there any resource links you can share to help teach me how to do that?   I do plan on sticking with just one theme and not offereing any more.

that's fine for you....  but you keep posting code edits which could confuse or screw up someone who did it and didn't have the same needs.

https://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0
and regarding the login/logout button, Diego listed a better way
https://www.simplemachines.org/community/index.php?msg=4165367


Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

durangod

Quote from: Kindred on December 15, 2023, 01:31:41 PM
Quote from: durangod on December 15, 2023, 11:17:07 AM
Quote from: Kindred on December 15, 2023, 09:24:17 AMDurango, there are several better ways to add menu items rather than hacking the template like that... especially because your hack ONLY affects the one theme.  If you offer multiple themes,  or change the theme later,  your hack won't affect the other theme.

Are there any resource links you can share to help teach me how to do that?   I do plan on sticking with just one theme and not offereing any more.

that's fine for you....  but you keep posting code edits which could confuse or screw up someone who did it and didn't have the same needs.

https://wiki.simplemachines.org/smf/Buttons_-_How_do_I_add_buttons_to_SMF_2.0
and regarding the login/logout button, Diego listed a better way
https://www.simplemachines.org/community/index.php?msg=4165367





I agree however that is why i made sure to fully explain what i was doing and why including pictures showing the result.  I understand there are those that just edit things they see posted by someone else without any regard for what they are doing and then ask for help fixing it because they edited something that did not work for them or their needs.  I hope those are few and far between but those people would mess up anything its just a matter of time so what i did would not matter they would mess it up anyway. 

Gladly most people that edit are experiences admins that know what they are doing and can do it understanding the risk. 

So yes if there is a better way i will do it eventually and diego has been great about his support.  Actually everyone has even the one they call "the mean one" hee hee :) 

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

durangod

But you have to admit, my mods look gooooood :)  lol 


You cannot view this attachment.
My name is short for durango dave (i am not a god lol)

Diego Andrés

Quote from: unstablekitsune on December 15, 2023, 01:26:16 PMEither Way Thank you so much everyone for the help with that =3. So much appreciation for everything!!! Can't Thank you all Enough =3

No worries, I'll see what I can do to improve the compatibility with such MODs.

And I'll also make the menu thing a setting!



Quote from: durangod on December 14, 2023, 12:38:26 AMnav#main_nav ul.menu_nav li.top_logout {
    position: absolute;
    right: 1em;
}

You probably need to add position: relative; to the menu_nav, to prevent this item you added from escaping the area you expect it to be.
nav#main_nav ul.menu_nav {
position: relative;
}

If you resize your screen, you might see the difference.

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Good eye, Good call Diego.  thanks :)
My name is short for durango dave (i am not a god lol)

durangod

Diego i added the logout button as you said in that earlier post.  i remove my other mod and the css

thanks works great... :)
My name is short for durango dave (i am not a god lol)

Diego Andrés

Quote from: Diego Andrés on December 15, 2023, 02:53:21 PMNo worries, I'll see what I can do to improve the compatibility with such MODs.

And I'll also make the menu thing a setting!

Both are done.
New package will be released early next week.

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Thank you very much Diego, more appreciated that i can say here.. It means alot.  :] 

One last thing, can i move the logout button to the far right.  I would like users to see it as a seperate  element and not part of the menu even though it is part of the menu.  I would just like it to be by itself..   

Possible?    I am not as experience in using flex as you are and i tried but it wont move.
My name is short for durango dave (i am not a god lol)

Diego Andrés

Your css would still work for that, it would just need to change the class used in the selector, and of course remove the index.template edit you used since the button would already be there.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

1.1.0 - 18 December 2023
  • New Feature Added new menu setting to enable logout, login and signout buttons.
  • Bug Fix Fixed layout issues.
  • Improvement Improved board layout compatibility.
  • Translation Turkish translation.
  • Translation Dutch translation.
Full list of changes

SMF Tricks - Free & Premium Responsive Themes for SMF.

durangod

Update went flawless, great job... no issues and running great!   
My name is short for durango dave (i am not a god lol)

durangod

I was going to add this to the previous post but i missed the edit deadline :(

Anyway if someone wants to add a icon with a link that goes directly to their rules page (this may allow registrants to view it quicker than trying to find it in the forum) in the top head section with the other icons here is how you can do it. '

I did it this way because its such a special custom code needed to do it.

First go to your board rules topic page and copy the url, it will look something like this


//yours is going to be different because the topic id is going to be different
//so this example shows topic,4.0.html  that is my rules topic

//if you look close you will see that after the word topic there is a comma (,)
//dont forget that if you edit that url


https://example.com/index.php/topic,4.0.html


next inside of the this theme index.template.php about line #271  (original theme no other edits)

you will see this code


    // Add the mode selector
        template_theme_darkmode();

    // And now we're done.
        echo '               
          </ul>';



right after that echo '  and before the </ul>';  is where this code goes

be sure to use your rules page url starting with https://

   
   
    <li>
    <a href="your rules page url goes here"><i class="fa-solid fa-scale-balanced" title="Rules"></i></a>
    </li>         
             



so to show you the whole section it should look like this

      // And now we're done.

      //dave mod added rules icon and link to top header
      //this echo is original code - leave it
    echo '
        <li>
        <a href="https://example.com/index.php/topic,x.x.html"><i class="fa-solid fa-scale-balanced" title="Rules"></i></a>
        </li>
       
    </ul>'; //this close ul is original code - leave it

        //end dave mod



no custom css required....  hope that helps...

here is how it looks


You cannot view this attachment.


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

durangod

Here is a new message icon if you ever wanted to use it.  Just thought i would share just in case someday you want it..  :)


You cannot view this attachment.

and here is the photoshop file

You cannot view this attachment.

and here is what it looks like



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

Kindred

Are you actually using those silly .html extensions?   I think that's a mistake.
Those are legacy from 15 years ago
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: