Announcement & Login
Announcement & Login
Hi, É would like to know how to put ánnouncement on header on all pages and are visible only to visitors!
Also I will the login to make that seem so

The mine is

I use phpBB2 thank you!
Also I will the login to make that seem so

The mine is

I use phpBB2 thank you!
Re: Announcement & Login
Go to ACP > Display > Homepage > Generalities > Add page announcement
This announcement will be seen by all.
In order to create an announcement that guests can't see you must disable the permission for guests to see any posts and then create a global announcement.
This announcement will be seen by all.
In order to create an announcement that guests can't see you must disable the permission for guests to see any posts and then create a global announcement.
Re: Announcement & Login
You can do this:
Copy and paste that code into your announcement box or homepage message. Remember to fill in your actually announcement where it says PUT YOUR ANNOUNCEMENT HERE.
Also find the bit where it says USERNAME, and remove the spaces before and after it.
- Code:
<span id="uname" style="display: none;">{ USERNAME }</span>
<script type="text/javascript">
function guesthide() {
x=document.getElementById('uname').innerHTML;
if ((x=='Guest')||(x=='guest')) {document.getElementById('myannouncement').style.display='none'}
}
</script>
<div id="myannouncement" style="display: block;" onload="guesthide();">
PUT YOUR ANNOUNCEMENT HERE
</div>
Copy and paste that code into your announcement box or homepage message. Remember to fill in your actually announcement where it says PUT YOUR ANNOUNCEMENT HERE.
Also find the bit where it says USERNAME, and remove the spaces before and after it.
Re: Announcement & Login
![]() | Please avoid double/triple posting. Posts need to be separated by 24 hours before bumping, replying or adding more information. Please use the edit button. ![]() |
Jophy- ForumGuru
-
Posts : 17924
Reputation : 835
Language : English
Location : Somewhere
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum