Link to the mod (https://custom.simplemachines.org/index.php?mod=4296)
Adds the webfont Inter v3.19 (https://rsms.me/inter/) to your theme.
Features
- Font Inter can be disabled and the font size can be set in the Admin Center
- Font size of the members can be reset in the Admin Center
- Members can select the font size in their profile if the Inter font is enabled
Quote from: https://rsms.me/inter/Inter is a typeface carefully crafted & designed for computer screens.
Inter features a tall x-height to aid in readability of mixed-case and lower-case text. Several OpenType features are provided as well, like contextual alternates that adjusts punctuation depending on the shape of surrounding glyphs, slashed zero for when you need to disambiguate "0" from "o", tabular numbers, etc.
Changelog
v1.2
Version 1.2Bug Undefined index: inter_fontsize_options solved.
Many thanks for reporting the error to TurtleKicker.
This looks nice. Am I the only one getting the "Although the package was downloaded to the server it appears to be empty etc etc" error?
The SMF Customization Team has reviewed the mod and reported no bugs. So it seems that you are the first.
Probably you try to install this mod under SMF 2.0.18. Under this version you can not install this mod. This mod is to be installed only from version 2.1 RC4.
Quote from: https://custom.simplemachines.org/index.php?mod=4296COMPATIBLE WITH 2.1 RC4
Not sure why you quoted the "Compatible with 2.1 RC4" part? Is it only for the RC4? Because the mod page mentions "v1.1 1.1.21, 2.0.18, 2.1 Beta 1, 2.1 Beta 2, 2.1 RC1, 2.1 RC2, 2.1 RC3, 2.1 RC4".
Could it this be why? I'm on 0.18 myself.
Egad! There's no edit button? When I posted this I didn't see your note about versions, weird, unless you edited your message...
Anyhow, as I said, the mod page does mention other versions. Unless I have the wrong understanding of the info displayed on the page...
not sure what that info means down in the packages section
1.1.21, 2.0.18, 2.1 Beta 1, 2.1 Beta 2, 2.1 RC1, 2.1 RC2, 2.1 RC3, 2.1 RC4
but the mod info itself says: COMPATIBLE WITH 2.1 RC4
1.1.21, 2.0.18, 2.1 Beta 1, 2.1 Beta 2, 2.1 RC1, 2.1 RC2, 2.1 RC3, 2.1 RC4
It is a bug of the mod page. This does not take into account the version check and thus captures all SMF versions that are specified.
This is a version check. For this SMF Version should not have to install the mod.
<install for="2.1 Beta 1, 2.1 Beta 2, Beta 3, 2.1 Beta 4, 2.1 RC1, 2.1 RC2, 2.1 RC3">
<readme lang="english" parsebbc="true" type="inline">This mod is [b]not compatible[/b] with your version of SMF, it requires 2.1 RC4.</readme>
<readme lang="german" parsebbc="true" type="inline">Diese Modifikation ist [b]nicht kompatibel[/b] mit Ihrer Version von SMF. Es erfordert 2.1 RC4.</readme>
<readme lang="german_informal" parsebbc="true" type="inline">Diese Modifikation ist [b]nicht kompatible[/b] mit deiner Version von SMF, es wird 2.1 RC4 benötigt oder höher.</readme>
</install>
SimpleDesk Mod also uses this (https://github.com/SimpleMachines/SimpleDesk/blob/smf21/package-info.xml#L9-L11).
This looks really nice. Seems to be working fine in 2.1RC4 however I do occasionally see the following errors in the log:
https://www.***********.com/index.php?action=forum
***********/Sources/font_inter_source/Subs-FontInter.php (Line 29) Backtrace information
Type of error: Undefined
Error messageSelect
8: Undefined index: inter_fontsize_options
I can not understand the error. The error is triggered by
messageSelect.
QuoteType of error: Undefined
Error messageSelect
8: Undefined index: inter_fontsize_options
The same trigger has also occurred here
Quote from: Shades. on July 30, 2021, 05:29:57 PMQuoteGuest
107.77.200.135
c2c254de731143a3b06646e582f40b17
https://*****.com/*****/index.php?action=profile;u=1
/home2/*****/public_html/*****/Sources/AvatarsDisplayIntegration.php (Line 178)
Type of error: Undefined
Error messageSelect
8: Undefined index: profile_of
inter_fontsize_options is an entry in your database of the table ***_themes. Please check if the error is reported in the original SMF default theme - Curve2. I suspect that the error is triggered by a mod with the function "messageSelect" or there is an error in your additional theme.
Quote from: wintstar on November 02, 2021, 08:43:29 AMinter_fontsize_options is an entry in your database of the table ***_themes. Please check if the error is reported in the original SMF default theme - Curve2. I suspect that the error is triggered by a mod with the function "messageSelect" or there is an error in your additional theme.
It must be another mod. That will take some trial and error to pin down. I'm using the default Curve2 theme (albeit with a color-changing mod).
I installed some of your mods from your website in a test forum. The error you reported is not reported in my test forum. What did you do before the error was reported to you?
Quote from: wintstar on November 02, 2021, 07:30:24 PMI installed some of your mods from your website in a test forum.
You can see a list of all my mods??? o_O
QuoteThe error you reported is not reported in my test forum. What did you do before the error was reported to you?
Not sure yet. In looking at the logs, it seems to be triggered by all sorts of things. The last time it was triggered was at 5:33pm EST.
I'm seeing:
/index.php?action=profile;area=forumprofile;u=51
/index.php?action=profile;area=popup;ajax
/index.php?
/index.php?action=likes;ltype=msg;sa=like;like=99
/index.php?action=verificationcode;vid=post
/index.php?topic=68.msg99;topicseen
/index.php?action=forum
/index.php?page=podcasts
/index.php?action=login2;sa=check;member=51
That was all from one user from 5:31-5:33
Then before him:
/index.php?action=forum
/index.php?topic=41.0
/index.php?board=2.0
/index.php?action=forum
/index.php?action=login2;sa=check;member=7
From 5:24-5:25
Before him, the last errors were from a third person around 1:56pm. It's been a while since I myself triggered it... I cleared my log mid-day today.
QuoteYou can see a list of all my mods??? o_O
Not all, only those that are in credits => action=credits.
I think that the error is triggered by other mods. So far I cannot reproduce the error in a freshly installed with unchanged SMF default theme - Curve2.
Did you check in the database if there is a data set with inter_fontsize_options in the table ***_themes?
1 1 inter_fontsize_options default
1 for id_member, 1 for id_theme (default: 1 for Curve2), inter_fontsize_options for variable, default for value (Standart fontsize).
Have finally been able to reproduce the error :)
QuoteUndefined index: inter_fontsize_options
I will fix the bug and update the mod.
The error is triggered when resetting the themes options for members in the admin center.
Temporary fix for the bug, go to your own profile and set the font size.
Maybe they are able to test this fix:
found fSources/ont_inter_source/Subs-FontInter.php (line 29)
$inter_fontsize = $context['user']['is_guest'] ? $settings['inter_fontsize_settings'] : (($options['inter_fontsize_options'] == 'default') ? $settings['inter_fontsize_settings'] : $options['inter_fontsize_options']);
change to
$set_options = ($options['inter_fontsize_options'] == 'default') ? $settings['inter_fontsize_settings'] : $options['inter_fontsize_options'];
if (!isset($options['inter_fontsize_options']) || empty($options['inter_fontsize_options']))
$inter_fontsize = $settings['inter_fontsize_settings'];
elseif ($context['user']['is_guest'])
$inter_fontsize = $settings['inter_fontsize_settings'];
else
$inter_fontsize = !empty($settings['inter_font_enable']) ? $set_options : $settings['inter_fontsize_settings'];
Webfont Inter v3.19 Mod updated to v1.2.
Changelogv1.2Bug Undefined index: inter_fontsize_options solved.
Many thanks for reporting the error to
@TurtleKicker.
Is an update for SMF 2.1.1 on the radar?
It uses hooks so it should probably install and work just fine.
I like the sound of this mod and would like to use it on my forum, currently using the default theme on 2.1.2
Is anyone else using it, and if so could you post a link to see what it looks like in the wild?
Also, am I correct in thinking that users can select a font size to make reading a forum easier, or does it just control the font size of their posts?
Looks like no one's using this mod?
Yeah I think it's dead by now
The latest version of interfont is still 3.1.
And it uses hooks so you could safely try it and see if it's something you want.
Well, I decided to give it a try. No problems so far.
Forum link removed. This isn't an advertising board. ~ Steve
QuoteForum link removed. This isn't an advertising board. ~ Steve
Sorry :-[
No worries. Not a big deal. :)
Can someone point me to the admin are action page? I can't find it with the search option...
Also, am I the only one who sees the font when *not* logged it and the forum reverts to the default font once logged in?