Repulse

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

Previous topic - Next topic

robrahn123

Quote from: Diego Andrés on August 10, 2024, 02:01:10 AM
Quote from: robrahn123 on August 09, 2024, 05:10:52 AMStart out by saying thanks for the clean modern theme! Fresh install with no edits and PHP 8.2.  The menu background is missing on windows chrome but is there for android chrome.

Can't reproduce this issue, it's not supposed to have any background in the menu.

Thanks for the update!  Installed v1.2.1 on fresh forum.  Colors are working great and guest now show correct color with no errors.

The menu background I am talking about is in attachments.  First one is your demo site and second is my site on php 8.2.  Still happening with v1.2.1.

Diego Andrés

What is the URL of your site?

SMF Tricks - Free & Premium Responsive Themes for SMF.

robrahn123

#142
Quote from: Diego Andrés on August 10, 2024, 03:14:06 AMWhat is the URL of your site?

ezstreamers .com/test/

Fresh install only setting change - Default Theme Mode: Dark

Diego Andrés

Ok I see the issue.
It's another unfortunate typo.

I will fix it later today, thanks for the report.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Diego Andrés

1.2.2 - 10 August 2024
  • Bug Fix Fixed issue with minification of CSS and JS files.
Full Changelog: v1.2.1...v1.2.2

SMF Tricks - Free & Premium Responsive Themes for SMF.

robrahn123

Looks like v1.2.2 did the trick.  Looks way better.  Glad it wasn't just me.  Thanks again!

brynn

#146
Hi Friends,
I'm the co-admin of a super small website and forum that just opened. Even though we finally opened them, we are still developing them, somewhat. We offer 2 theme choices for our SMF forum (default and Repulse). And it's version 2.1.4

Some time ago I created an image to use as the header for our forum. (We use the same image for both themes.) In the Repulse theme, and logged into my admin account, it links back to our main website. In my regular user account, it does not link back to our site. In the default theme, it does not link to the website, no matter which account I'm logged into.

In the back of my mind, I seem to recall that the 2 themes function differently in a few ways, but I don't remember exactly how. And now for the life of me, I cannot find the setting where I made the Repulse theme logo image link back to our website.

It seems like there must be a setting somewhere, because how could the software have guessed? Or is it possible I might have made a custom edit to a theme file or template? (If I did that, I do still have the original file, but it's on a different computer that is not with me at the moment.)

Could you all remind me how you're supposed to make the logo image into a link, in the Repulse theme?  :-[  :-[

Thank you very much!

Diego Andrés

The logo/title has a link to the home page of the forum (index.php)
You set the logo from Admin > Current theme.

If you made custom edits to the link, that would be in Themes/Repulse/index.template.php

SMF Tricks - Free & Premium Responsive Themes for SMF.

brynn

Are you saying that any logo image automatically links to the homepage of the forum?

And are you saying there is no other way to make it link somewhere else, except to edit the template that you mentioned?

I wonder why it only works when I'm logged into my admin account?

I will have to get to my old computer and dig up my old files. There's every chance that I did it wrong, haha. I will post back again after I find them.

Thanks.


Diego Andrés

Correct, $scripturl is what it should have by default, which is the forum URL.

SMF Tricks - Free & Premium Responsive Themes for SMF.

brynn

Ok, I finally sorted this out -- more or less. I did indeed edit index.template.php. But I'm not sure if I edited correctly. I must have made a live edit, because otherwise I would have saved before and after files, and I can't find any files.

Was I supposed to edit every instance of
$scripturl?
Because it looks like I only replaced it once.

Also, if I want to change the link for the logo image in the default theme, can you all tell me how to do that here? I thought once I figured out how I did it in the Repulse theme, I would do something similar for the default. But I cannot find similar codes in the default index.template.php file (at least not in the one place where I changed it).

Or should I post a message in the main 2.1 board?

Thanks again  :)

Diego Andrés

It would be very similar. You can use your browser's developer tools, right click on an element > inspect element. You will see the HTML/DOM and it can help you identify tags or elements in the different SMF templates.

For instance, in the default theme you will notice the h1 tag, so if you search for that in the index.template.php you can find what you're looking for:

<h1 class="forumtitle">
<a id="top" href="', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name_html_safe'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name_html_safe'] . '">', '</a>
</h1>

Specifically you will be interested in the anchor element, for replacing the link:
href="', $scripturl, '"

SMF Tricks - Free & Premium Responsive Themes for SMF.

brynn

Hhmm....I'm still worried that I might have edited the file wrongly, in the Repulse theme a few years ago.

Because here's what that line looks like now, from a freshly downloaded copy of Repulse theme.

<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>
And here's what my old Repulse file looks like, from a few years ago (same line).

<a href="http://www.inkscapefriends.com/" target="_blank"', $scripturl, '">', empty($context['header_logo_url_html_safe']) ? $context['forum_name'] : '<img src="' . $context['header_logo_url_html_safe'] . '" alt="' . $context['forum_name'] . '" />', '</a>
Are those differences attributable to backwards compatibility? I'm thinking it's more likely I did not edit it properly, in the first place.

Oooohhh!! Now that I re-read your message for the nth time, I think I see what to do. The line in Repulse should be this:

<a id="top" href="http://www.inkscapefriends.com/">', 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>
Right???
And if that's right, then I think I can get the default theme right too.

Diego Andrés

Yup, my last message was about the default theme though  :D

Quote from: brynn on January 26, 2025, 10:44:14 AMAre those differences attributable to backwards compatibility? I'm thinking it's more likely I did not edit it properly, in the first place.
Could also be from an update (not very likely to edit that area), as the theme has had various updates on the past year.
There was also a post somewhere about removing the styles from the title so perhaps you also applied those.

SMF Tricks - Free & Premium Responsive Themes for SMF.

brynn

Oh yes, I realize your last message was about the default theme. But it was the color in your text that allowed me to put it all together.

Thank you so much for all your help and patience!

I'm a little on the tired side at the moment, but the next time I'm back online fresh, I'll be able to make those edits.  ;D

Cola-Coca

Does anyone know how to put in this theme 'tidy-child-boards' ?
Means it looks like the picture below :

I LOVE SMF

brynn

#156
Well, I'm back again. We decided not to change those links after all (re my recent posts just above). So I reinstalled the original index.template.php file. But ever since I did that, I'm getting a lot of errors in the error log regarding the index.template.php file for the Repulse theme.

When I look at that PHP file, it appears to be the same as a freshly downloaded copy of Repulse -- except it looks like there might be some indents in my copy, in the line just after the $scripturl edit. I'm not sure how that happened, or if it could be the problem.

I'm also not sure what I need to show you. Maybe the error messages? Do I click that Backtrace box, to copy the error message?

Or maybe it would be easier to just reinstall the theme? I'm just not sure how to do that. I remember how to install a theme, but I don't remember how to uninstall.

Diego Andrés

Quote from: brynn on February 06, 2025, 07:11:28 AMI'm also not sure what I need to show you. Maybe the error messages? Do I click that Backtrace box, to copy the error message?

Or maybe it would be easier to just reinstall the theme? I'm just not sure how to do that. I remember how to install a theme, but I don't remember how to uninstall.

Posting the error would be helpful indeed, the file causing the error and the line.

To "reinstall" you could just overwrite the Repulse folder with a fresh set. This theme has many additional files. You can also check the theme version in admin > theme settings. That will give you an indicator of whether your theme is outdated or not, compared to the current version in the theme site.

SMF Tricks - Free & Premium Responsive Themes for SMF.

brynn

Error:
/home/deb97310n2/domains/inkscapefriends.com/public_html/smf/Themes/Repulse_v1.0/index.template.php (Line 32)

and

2: Array to string conversion

The backtrace shows even more lines.

QuoteTo "reinstall" you could just overwrite the Repulse folder with a fresh set. This theme has many additional files. You can also check the theme version in admin > theme settings. That will give you an indicator of whether your theme is outdated or not, compared to the current version in the theme site.

It looks like we might be a bit behind in versions. You mean I can just download the current version, and overwrite it live in Filezilla? Even if it's a different version? If you do it that way, does the SMF Admin > Config > Themes and Layout > Theme settings catch up automagically?

Diego Andrés

Quote from: brynn on February 06, 2025, 01:31:22 PMYou mean I can just download the current version, and overwrite it live in Filezilla? Even if it's a different version? If you do it that way, does the SMF Admin > Config > Themes and Layout > Theme settings catch up automagically?

Correct. The version is displayed by the Theme only.
SMF doesn't actually track themes like the package manager does.

SMF Tricks - Free & Premium Responsive Themes for SMF.

Advertisement: