2020-05-18, 08:18 PM
Hello,
In this tutorial I will be showing you how to display a message for guests to encourage them to sign up. Perhaps in the near future I can make a tutorial where I demonstrate how you could redirect guests to a new page.
Requirements:
Step 1:
Install template conditionals
Step 2:
Log into your acp and head over to your templates.
Step 3:
Decide where you want to show your message. In my case I want it in my header.
Step 4:
Usergroup 1 is your guest usergroup
Step 5:
Save your template and try it out.
If you need help or assistance, you can tweet me at @Perileos
My help/assistance is free as long as you can respect me and my time.
Kind regards,
A. Longbeach
In this tutorial I will be showing you how to display a message for guests to encourage them to sign up. Perhaps in the near future I can make a tutorial where I demonstrate how you could redirect guests to a new page.
Requirements:
Step 1:
Install template conditionals
Step 2:
Log into your acp and head over to your templates.
Step 3:
Decide where you want to show your message. In my case I want it in my header.
Step 4:
Usergroup 1 is your guest usergroup
<if $mybb->user['usergroup'] == "1" then>
<div onclick="window.location.href='member.php?action=register'" style="background-color:#EE5A24;color:white;text-align:center;padding:12px 20px;margin-bottom:15px;word-wrap:break-word;border-radius:2px;font-size:13px;"><strong>You haven't registered, if you wish to register, click here.</strong></div><br/>
<else>
</if>
Step 5:
Save your template and try it out.
If you need help or assistance, you can tweet me at @Perileos
My help/assistance is free as long as you can respect me and my time.
Kind regards,
A. Longbeach