Status
Not open for further replies.

el_jentel1

Active Member
655
2007
114
0
I'll share some basic stuff, very easy to use, and very useful, basically its how to customize parts of your template.

If you want to make an announcement just for guests in header or anywhere, like "To gain full access click here to register" or whatever, do this:

Keep in mind, those edits are done in the style files root/styles/*/template/

Add this code where you'd like the announcement to be shown only for guests:

Code:
<!-- IF not S_USER_LOGGED_IN -->
Table code + the announcement should be added between the tags.
<!-- ENDIF -->

However if you want to make an announcement just for registered members:

Code:
<!-- IF S_USER_LOGGED_IN -->
Table code + the announcement should be added between the tags.
<!-- ENDIF -->

If you would like to make an announcement only for admins (of course you can make a complete section just for admins, but sometimes its useful:

Code:
<!-- IF U_ACP -->
Table code + the announcement should be added between the tags.
<!-- ENDIF -->

For moderators and Admins:

Code:
<!-- IF U_ACP or U_MCP -->
Table code + the announcement should be added between the tags.
<!-- ENDIF -->

You don't have to only use that for announcement, for example, if you have a shoutbox or anything similar that you would like to only show for members:

Code:
<!-- IF S_USER_LOGGED_IN -->
Shoutbox table code here
<!-- ENDIF -->

So basically you can do a lot of things with these simple codes, but if you don't have any basic knowledge of HTML, then I advise you to not edit anything.
 
26 comments
(phpbb3) IF STATMENTS List

Description: a complete list of most permission <!-- IF STATMENTS -->

<!-- IF S_USER_LOGGED_IN --> If a user is logged in
<!-- IF not S_USER_LOGGED_IN --> If users is not logged in
<!-- IF S_AUTOLOGIN_ENABLED --> If auto login is allowed
<!-- IF not S_AUTOLOGIN_ENABLED --> If auto login is not allowed
<!-- IF S_BOARD_DISABLED --> If board is disabled
<!-- IF S_IS_BOT --> If a bot
<!-- IF not S_IS_BOT --> If not a bot
<!-- IF S_USER_PM_POPUP --> If pop up pm is on
<!-- IF not S_USER_PM_POPUP --> If pm pop us is off
<!-- IF S_DISPLAY_SEARCH --> If displays search
<!-- IF S_DISPLAY_PM --> If display a PM
<!-- IF S_DISPLAY_MEMBERLIST --> If display memberlist.php
<!-- IF U_MCP --> If Moderator
<!-- IF U_ACP --> If Administrator
<!-- IF S_IS_LINK --> If its a link
<!-- IF S_UNREAD_FORUM --> If forum is unread
<!-- IF S_READ_FORUM --> If forum is read
<!-- IF S_LOCKED_FORUM --> If forum is locked
<!-- IF S_LIST_SUBFORUMS --> If there is a list of subforums
<!-- IF S_SUBFORUMS --> If a subforum
<!-- IF S_IS_CAT --> If a category
<!-- IF S_IS_POST --> If a post
<!-- IF FORUM_ID --> Displays the code between the switches if the user is viewing a particular forum.
This is not a complete list as there are many more!!

Also note these must end with <!-- ENDIF -->
 
Status
Not open for further replies.
Back
Top