Ik heb e.e.a. aan info uit dit topic gehaald, maar het wil niet werken. Hieronder resp. de testpagina.php en de testpagina.tpl
testpagina.php
Code: Selecteer alles
<?php
// standard hack prevent
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
// standard session management
$userdata = session_pagestart($user_ip, PAGE_TEMPLATE);
init_userprefs($userdata);
// hieronder = extra ivm groepherkenning
$sql = "SELECT user_id
FROM " . USER_GROUP_TABLE . "
WHERE user_id = " . $userdata['user_id'] . "
AND group_id = 141
AND user_pending = 0";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Error getting bla', '', __LINE__, __FILE__, $sql);
}
// hierboven = extra ivm groepherkenning
// set page title
$page_title = 'testpagina';
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'body' => 'testpagina.tpl')
);
$template->pparse('body');
// standard page footer
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Selecteer alles
<HTML>
<BR><BR>
<!-- BEGIN switch_groups_member -->
<B>Dit zie je als je groepslid én ingelogd bent.</B><BR><BR>
<!-- END switch_groups_member -->
<!-- BEGIN switch_user_logged_in -->
<U>Dit zie je als je ingelogd bent.</U><BR><BR>
<!-- END switch_user_logged_in -->
Dit zie je altijd.<BR><BR>
</HTML>
Kan iemand mij wat verder helpen? Alvast bedankt!