تحويل الكلمات تلقائيًا إلى روابط

Hi this is a wonderful feature for discourse but can we limit the number of times it appears overall in a single thread topic? If we have a discussion post asking shopify vs woocommerce then the entire thread will be occupied by the hyperlinks whenever someone mentions any of these. :frowning:

3 إعجابات

We can definitely add a theme setting for this, PR welcome. I think a default limit of 3 auto links per word makes sense as a good initial default.

5 إعجابات

This feature has already been discussed couple posts above…tl;dr probably not so easy to implement.

إعجابَين (2)

Is there any way to disable linkify in a specific category? In my case I have a blog category which contains content from a wordpress installation. Hence I don’t want linkify to be active there.

Sure, that shouldn’t be hard I think. I can have a look. If there’s more people intereted in this feature, I’ll submit a PR with a new theme settings. If not, I can just post a code snippet that you can include into your theme manually. I’ll try to have a look next week.

3 إعجابات

Hey @sam

are there any news on this? I tried to search if there are any plans to improve the management of “lists” in theme settings but could not find anything

This is already implemented. What you see in linkify settings IS the new list management. :slight_smile:

5 إعجابات

Thx for the note, that clarifies it :slight_smile:
That “new” list already a great improvement!

Yet for large lists it’s still a bit of a hassle
I think an import/export feature for a simple CSV would make make a huge improvement there
Or simply pointing to a CSV URL which is pulled let’s say every 24h. or by manually by clicking a button

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

هل يمكنك إضافة خيار للإدراج مرة واحدة فقط في موضوع أو رد واحد؟

يظهر كل كلمة مفتاحية في الموضوع.

إذا كنت تريد ظهوره مرة واحدة فقط لكل منشور، فيمكنك إدخال الكلمة المرتبطة كـ تعبير نمطي (regex)، أي:

/WORD/,URL

أما جعله يظهر مرة واحدة فقط لكل موضوع فهو أمر غير تافه، راجع النقاش أعلاه.

6 إعجابات

شكرًا لك. يعمل الآن.

أريد التخلّص من FA4، لكن حتى الآن يعتمد linkify عليه. هل توجد طريقة لإضافة أيقونة SVG قبل الرابط؟

كان لدي كلمة مرتبطة تلقائيًا على Discourse، لكنني قررت إزالتها لأنها تظهر في كل مرة يُذكر فيها Discourse، مما يؤدي إلى ازدحام الروابط في موضوع واحد. في بعض الأحيان، تكون الروابط غير ذات صلة أسوأ من عدم وجود رابط على الإطلاق.

لكن لدي حالة استخدام رائعة للمكون، على سبيل المثال، لربط أرقام ISBN تلقائيًا بصفحة وصف الكتاب على inventaire.io:

/isbn:([0-9]{13})/,https://inventaire.io/entity/isbn:$1

5 إعجابات

ماذا تقصد؟ سمة Linkify لا تعتمد على أيقونات FA.

أعلم ذلك. لكنني أستخدم FA4 لإضافة أيقونة إلى رابط linkify. أما مع FA5، فلا أعرف كيفية تحقيق ذلك.

هل سيكون إضافة تلميح أداة للرابط تحسينًا سهلًا؟

حتى نتمكن من إدخال هذا:
keyword, link, tooltip

ربما ما تريده هو إضافة abbrify؟

ليست متأكدًا تمامًا من كيفية تفاعلهما معًا، فقد تحتاج إلى بعض التخصيص البسيط لكي يعمل، ويمكنني المساعدة في ذلك إذا لزم الأمر.

4 إعجابات

لقد حللتها حاليًا بتعديل السكربت بإضافة سطر واحد إضافي. الآن يرفق عنوان الرابط كعنوان للهدف. يعمل بشكل ممتاز.

4 إعجابات

لدي قائمة طويلة جدًا من الإدخالات في إعدادات الرابط. هل توجد طريقة لتصدير القائمة بأكملها؟ عند الضغط على زر التصدير، يتم تصدير القائمة الافتراضية فقط.

مرحبًا @jrgong

يمكنك الحصول على كل ذلك عبر استعلام إضافة مستكشف البيانات :slight_smile:

5 إعجابات