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