Welcome to Admin Junkies, Guest — join our community!

Register or log in to explore all our content and services for free on Admin Junkies.

How to add a floating alert for guests only!

_B_

Addicted member
Joined
May 18, 2020
Messages
934
Credits
0
A little feature to get some guests to register for your page. The alert will be displayed at the bottom right of the guest's index.

Rz9pmVy.png


[hide]

Add this bit of code underneath and save:


PHP:
.guestbox {
background:#131313;
width:250px;
padding:10px 15px 15px;
position:fixed;
z-index:100000;
opacity:.9;
color:#fff;
border-radius:2px;
bottom:0;
right:10px;
text-align:center
}
> Templates & Style > Templates > > Header > header_welcomeblock_guest
Add this bit of code and save too:


PHP:
<div class="guestbox mobilehide">
<span style="color:#ff2f2f;font-size:20px;font-weight:bold;">ALERT!</span>
<br>
<a class="smalltext" href="member.php?action=register">Click here to register with a few steps and explore all our cool stuff we have to offer!</a>
</div>

And you should be done! However you may need to hard refresh (CTRL+F5) to see a noticeable change)
[/hide]​
 
Advertisement Placeholder
This can be a good thing to have on the forum because this way you are able to force people in order to sign up for your site in order to see the content that is on there.
 

Log in or register to unlock full forum benefits!

Log in or register to unlock full forum benefits!

Register

Register on Admin Junkies completely free.

Register now
Log in

If you have an account, please log in

Log in
Who read this thread (Total readers: 0)
No registered users viewing this thread.

Would You Rather #9

  • Start a forum in a popular but highly competitive niche

    Votes: 9 27.3%
  • Initiate a forum within a limited-known niche with zero competition

    Votes: 24 72.7%
Win this space by entering the Website of The Month Contest

Theme editor

Theme customizations

Graphic Backgrounds

Granite Backgrounds