soumik wrote:Yes.BuryGnome wrote:So If i'm getting this right. I can use:and expand this line with || to more and more groups?Code: Select all
<!-- IF S_GROUP_X || S_GROUP_Y -->some stuff here<!-- ENDIF -->
Code: Select all
<!-- IF not (S_GROUP_5 || S_GROUP_8) -->some stuff here<!-- ENDIF -->
Code: Select all
<!-- IF S_GROUP_X || S_GROUP_Y -->some stuff here<!-- ENDIF -->
Code: Select all
<!-- IF (S_GROUP_X || S_GROUP_Y) -->some stuff here<!-- ENDIF -->
Code: Select all
<!-- IF (S_GROUP_X or S_GROUP_Y) -->some stuff here<!-- ENDIF -->
Code: Select all
<!-- IF S_EDIT_DRAFT || S_DISPLAY_REVIEW -->
Yes I see now, thank you so much for running through all the examples aboveBrf wrote:The parens are not required if you do not have the "not", as you can see from this code in prosilver's posting_editor.html:
Code: Select all
<!-- IF S_EDIT_DRAFT || S_DISPLAY_REVIEW -->
So its a much more safe way to work if you use parens when not needed rather than miss them out/off when required in a template HTML code? I don't mean pop parens in all areas as you go, only as shown in the examples raised above by Brf.RMcGirr83 wrote:Well yeah, it's a habit of mine to surround in parens.
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4518: Cannot modify header information - headers already sent by (output started at /material.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4520: Cannot modify header information - headers already sent by (output started at /material.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4521: Cannot modify header information - headers already sent by (output started at /material.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4522: Cannot modify header information - headers already sent by (output started at /material.php:1)
Code: Select all
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
// $ptmc_member = group_memberships(8,$user->data['user_id']);
if (S_GROUP_8 || S_GROUP_5) {
page_header('PTMC Material Database');
$template->set_filenames(array(
'body' => 'material_body.php',
));
}
else {
page_header('Access Denied');
print('Access Denied');
$template->set_filenames(array(
'body' => 'index_body.html',
));
}
make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx"));
page_footer();
<?php
. That needs to start in the first column.Code: Select all
<!-- IF topicrow.S_GROUP_8 -->{topicrow.TOPIC_AUTHOR_FULL}<img src="admin-img.gif" /><!-- ELSE -->{topicrow.TOPIC_AUTHOR_FULL}<!-- ENDIF -->