
http://www.phpbb.com/phpBB/viewtopic.ph ... group+auth
Gremlinn wrote: Authorization is another modLook at this one.
Code: Select all
// set page title
$page_title = '';
Code: Select all
// auth check
if ( !$userdata['session_logged_in'] )
{
redirect(append_sid("login.$phpEx?redirect=$page_title.$phpEx", true));
}
SQL Error : 1054 Unknown column 'PAGE_TEMPLATE' in 'field list'
Code: Select all
#-----[ OPEN ]------------------------------------------
template.php (what you named your php file)
#
#-----[ FIND ]------------------------------------------
#
// standard session management
$userdata = session_pagestart($user_ip, PAGE_TEMPLATE);
init_userprefs($userdata);
// set page title
$page_title = 'TEMPLATE';
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'body' => 'template.tpl')
);
#
#-----[ REPLACE ]------------------------------------------
#
# Replace EVERY location that says "clowns" with your title
#
// standard session management
$userdata = session_pagestart($user_ip, PAGE_CLOWNS);
init_userprefs($userdata);
// set page title
$page_title = 'CLOWNS';
// standard page header
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
// assign template
$template->set_filenames(array(
'body' => 'clowns.tpl')
);
Code: Select all
define('PAGE_TEMPLATE', -1045);
Code: Select all
Parse error: parse error in /home/mrikasu/public_html/cherokeered/includes/template.php(127) : eval()'d code on line 20
Code: Select all
{TOTAL_POSTS} {TOTAL_USERS} {NEWEST_USER} {TOTAL_USERS_ONLINE} {RECORD_USERS}
J. Realm wrote: Hi all!..
First of all, thanks for the mod...
I installed it i made some changes, now my "enter.php" seems to be working well.
I made my template using the html code which i have prepared before, now i add some "things" like:My problem is some of these codes work, and some of do not..Code: Select all
{TOTAL_POSTS} {TOTAL_USERS} {NEWEST_USER} {TOTAL_USERS_ONLINE} {RECORD_USERS}
Ex: Record users is working great, or l_username...
But total_posts, total_users, newest_user do not..
What kind of problem this is? Any ideas?
Thanks..
Edit: By the way, i'm using 2.0.8, can it be the problem?