عنوان الهاتف المحمول الاختياري

:discourse2: ملخص يجعل “عنوان الهاتف المحمول الاختياري” ميزة التبديل إلى عنوان الهاتف المحمول اختيارية لكل من المستخدمين والمواقع.
:eyeglasses: معاينة معاينة في منشئ مواضيع Discourse
:hammer_and_wrench: رابط المستودع https://github.com/discourse/discourse-optional-title-mobile-header
:open_book: جديد في مواضيع Discourse؟ دليل المبتدئين لاستخدام مواضيع Discourse

تثبيت مكون هذا الموضوع

الميزات

عند تعطيلها عبر تفضيلات المستخدم → الواجهة:

سيرى المستخدم الرأس القياسي بدون قيد أو شرط:

عند التفعيل، تظل سلوكية “التبديل إلى العنوان عند التمرير للأسفل”:

كمدراء في قسم مكون الموضوع، يمكنك التحكم فيما إذا كان هذا الافتراضي معطلاً أو مفعلاً:

ملاحظات هامة حالية

  1. إعداد المستخدم يتم حفظه لكل جهاز فقط في التخزين المحلي.

  2. يجب على المستخدم إعادة تحميل الموقع بعد تغيير الإعداد.

  3. غير مترجم بشكل صحيح أو قابل للترجمة.

الإعدادات

الاسم الوصف
default enabled تمكين تبديل الرأس إلى عنوان الموضوع على الهاتف المحمول
الترجمة الافتراضي
mobile_switch_title تبديل الرأس إلى عنوان الموضوع عند التمرير

:discourse2: مستضاف لدينا؟ مكونات المواضيع متاحة للاستخدام في خططنا القياسية والتجارية وخطط المؤسسات.

28 إعجابًا

Do hosted discourse instances have the option to install this component? I sent this to the admin of the site I use, but he’s having trouble getting the setting to show up for users.

There is no restriction on the use of this theme component (or any theme component) on hosted sites. I can take a look shortly.

إعجابَين (2)

To follow-up on @seanblue. The theme component installs without issue. I can see the component on the Theme list in Admin. We aren’t seeing the User > Preference > Interface option as seen in the quote.

إعجابَين (2)

Have you added the theme component to the active theme(s)? Theme components do nothing themselves unless they’re part of a theme.

8 إعجابات

Nope. I did not. Adding them to the active themes did it! Thanks for the assistance and education.

5 إعجابات

Hmm, this doesn’t seem to be working, anymore.

I installed it fine, I see the component, I added it successfully to all themes >> Nada.

image

@david can you test this out?

إعجابَين (2)

@dylanh724 what issue are you seeing here? This theme does nothing on Desktop, so you’ll only see the new option on mobile.

Previously it was necessary to manually refresh the site for the setting to take effect, but I just fixed that.

6 إعجابات

Users cannot select this in options because the field does not exist.
image

image

Are they looking for the setting on mobile, or on desktop? Are you able to share a link to the community?

إعجاب واحد (1)

There’s also supposed to be an admin option, right?

https://forum.imperium42.com

Are they looking for the setting on mobile, or on desktop? Are you able to share a link to the community?

Tried both

I just signed up quickly, and I can see the setting in the user preferences on mobile:

Yep, that is located in the themes area. Find the page for the component, and then find the “theme settings” section at the bottom of the page. There’s a screenshot of it in the OP:

4 إعجابات

I can’t see it all – I wonder if this only works for new accounts? There’s a friend helping me test and he can’t see the option, either. I’m testing desktop, he’s testing mobile.

I did, however, find the theme option within the component (thanks):
image

إعجاب واحد (1)

It definitely will not appear on Desktop. Is it possible that your friend has switched to Desktop view on his mobile?

3 إعجابات

You keep saying this as if the option doesn’t show on desktop – or is this intended that you can only selection this OPTION when on mobile (rather than the event happening only on mobile, which I understand)?

Correct, you can only toggle the setting when using the mobile device. The theme component does absolutely nothing on Desktop.

6 إعجابات

@pmusaraj I think some of your recent changes broke this.

@tgxworld when you are done if you need a theme to test the new user selectable stuff this is a great one!

8 إعجابات

Fixed, this now works with latest core.

8 إعجابات