sallypf wants to add a link to a user’s account page within the custom welcome message, specifically seeking a placeholder or variable to represent the base URL instead of hardcoding it. She initially tried %{base_uri} and %{base_url} without success. Moin explains that placeholders/variables only work if the code specifies their replacement values and that most texts do not offer variables beyond those used in the text itself, suggesting HTML might be necessary if allowed. JammyDodger questions the usability of {{receiver_username}} and asks for the exact site text being replaced to understand available interpolation keys. sallypf clarifies she isn’g trying to use a variable, but a placeholder for the base URL, or a placeholder for the user’s account/profile link. Moin reiterates that customizability depends on what the code offers, and includes a screenshot demonstrating available options in one particular text field. JammyDodger suspects this is for an Automation welcome message rather than the core site welcome message and suggests using an internal link: [Account](/my/preferences/account), which ultimately works for sallypf.
אני רוצה להוסיף קישור לדף חשבון המשתמש בהודעת הפתיחה.
אני לא מצליח למצוא את משתנה כתובת הבסיס. ניסיתי את הדברים הבאים אבל הם לא עובדים. מהו משתנה כתובת הבסיס הנכון?
מה הבעיה שאתה מנסה לפתור? למה אתה צריך משתנה במקום להשתמש בכתובת האתר של הפורום שלך? ניתן להשתמש במשתנים רק כאשר הקוד לא רק מספק טקסט מקובץ האזורים אלא גם מציין במה יש להחליף את המשתנה. אז, אינך יכול להוסיף משתנים לטקסטים קיימים.
לא התכוונתי למשתנה, התכוונתי ל-placeholder/תג/החלפת טקסט/או איך שלא תקראו לזה, כדי לקבל ערך של כתובת URL בסיסית במקום קידוד קשיח. משהו כמו {{receiver_username}} שנותן שם משתמש, האם יש לנו משהו כדי לקבל כתובת URL בסיסית?
לחלופין, האם יש לנו איזשהו placeholder כדי לקבל קישור לדפי החשבון והפרופיל של המשתמש?
As I said, only when the code specifies what it should be replaced with will it provide that. You can see all options when you edit the text. For example, in this text, you have lots of options. But that’s rare.
Most texts do not offer more variables than they use. If the text you want to customize doesn’t offer any, then you can’t use them. Also, usually you cannot use markdown syntax in texts. Instead, HTML is used. But that only works when it’s allowed for that text.