Jump to content
View in the app

A better way to browse. Learn more.

Learn more

How do I insert the username variable in a WYSIWYG or HTML editor?

Featured Replies

Good morning,

I want to insert the username variable in a WYSIWYG or HTML editor?

I want to give a warm welcome to members and I want to use the {username} variable. How do I insert them in a custom page? I tried both the HTML and WYSIWYG editor and it wont' work.

I've used the variable on emails and it works, but I can't make it work on the frontend using the page editor.

Thanks

Edited by michimachi

  • Author

I've also tried a custom block but once dragged on the page, it will give an error.

Is there a document that shows all variables that can be used within messaging/emails?

Ive moved this to design and customisation, but you don't seem to have said in which area you are looking at here?

  • Author
4 minutes ago, Marc said:

Ive moved this to design and customisation, but you don't seem to have said in which area you are looking at here?

I am not sure if you are referring to me, the creator of this topic. But I'm looking to add the username on other variables in a custom page on my homepage to Welcome All users and show the latest topic widget underneath

There isnt a way in which to do that currently, unfortunately. Not unless you specifically made your own block in the admin CP and added code there to pull the user.

  • Author
7 minutes ago, Marc said:

There isnt a way in which to do that currently, unfortunately. Not unless you specifically made your own block in the admin CP and added code there to pull the user.

I tried to do that and it gave an error. Is there a sample on what I should write in that custom block and what type of block to retrieve the username? Thanks

Recently Browsing 0

  • No registered users viewing this page.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.