Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] Callout notification for guest
#1
Add a new stylesheet with the name callout_guest.css:-

<style>
body {font-family: Arial, Helvetica, sans-serif;}

.callout {
  position: fixed;
  bottom: 35px;
  right: 20px;
  margin-left: 20px;
  max-width: 300px;
}

.callout-header {
  padding: 25px 15px;
  background: DARKSLATEGRAY;
  font-size: 30px;
  color: white;
}

.callout-container {
  padding: 15px;
  background-color: wheat;
  color: black
}

.closebtn {
  position: absolute;
  top: 5px;
  right: 15px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

.closebtn:hover {
  color: orangered;
}
</style>


Now go to your current template=> Header template=> Header_welcomeblock_guest template.

and paste the mentioned code below at the end of the template.

<div class="callout">
  <div class="callout-header" align="center">Welcome</div>
  <span class="closebtn" onclick="this.parentElement.style.display='none';">×</span>
  <div class="callout-container">
    <p>You are here as guest, you must <a href="member.php?action=register">register</a> / <a href="member.php?action=login">login</a> to see full content of the website.</p>
  </div>
</div>


Attached Files Thumbnail(s)
   
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)