IPS Suite How to make "Welcome back, Username" message. Invision Community

Haim

Registered
If the message will be in the template globalTemplate, you can do like this (with hardcoded text)
Code:
Welcome back, {expression="\IPS\Member::loggedIn()->name"}
or
Code:
Welcome back, {expression="member.name"}
If you want to do it more correctly, use the pluralize parameter
Code:
{lang="welcomeback_user" pluralize="\IPS\Member::loggedIn()->name"}
Then add a new phrase "welcomeback_user"
Code:
Welcome back, %s
Code:
Welcome back, <strong>%s</strong>
you can use this structure and put above code in!

  • Go to "ACP > Pages > Blocks > Create New Block";
  • In "Type", mark "Custom";
  • In "Content Editor", mark "Manual HTML";
  • Click on "Next";
  • Put some details and click on "Content" tab;
  • In "Content" field, add this code:
Code:
<h3 class="ipsWidget_title ipsType_reset">YOUR TITLE</h3>
<div class="ipsPad ipsWidget_inner" style="border: 0;padding: 0;">
YOUR CODE
</div>
  • Save this config and go to index;
  • Now, just click on "Manage Blocks", "Pages" and "Custom Blocks";
  • Add the block and enjoy
 
Back
Top Bottom