Airwave Joe wrote: I installed this mod keeping the template name to make things easy.
It works fine but as soon as I try to change the name from template to something else, it all collapses.
Let's say I want to name my new page CLOWNS, what should be changed from template to clown?
# edit the following lines in template.php to point to whatever you called templates/subsilver/template.tpl:
# // assign template
# $template->set_filenames(array(
# 'body' => 'template.tpl')
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_TEMPLATE' => $lang['Template'],
'U_TEMPLATE' => append_sid('template.'.$phpEx),
each blank page needs a different session number - open up sessions.php and find your second blank page and incriment the session number by onedrakky wrote:kopper65 wrote:This mod works great for the FIRST blank template that I installed on my board, but I am having problems adding a second template. Here is the error that I am getting when trying to access the 2nd template (adrates.php):
phpBB : Critical Error
Error updating sessions table
DEBUG MODE
SQL Error : 1054 Unknown column 'PAGE_TEMPLATE' in 'field list'
UPDATE phpbb_sessions SET session_time = 1074299253, session_page = PAGE_TEMPLATE WHERE session_id = '03ce5f8adf2fd197281735eccca9b2fc'
Line : 267
File : /home/.alan/jkopp/garagepunk.com/forums/includes/sessions.php
thanks
Code: Select all
phpBB : Critical Error
Error creating new session
DEBUG MODE
SQL Error : 1054 Unknown column 'PAGE_TEMPLATE' in 'field list'
INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('33d6d7a1660b735ecdb9aa9c8bd4872b', -1, 1086610235, 1086610235, 'c2929968', PAGE_TEMPLATE, 0)
Line : 152
File : /home/siderock/public_html/forum/includes/sessions.php
Snitz wrote: I'm facing a weird problem even though everything is set right
goto www.siderock.com/forum/hosting.php and look at the error
Code: Select all
phpBB : Critical Error Error creating new session DEBUG MODE SQL Error : 1054 Unknown column 'PAGE_TEMPLATE' in 'field list' INSERT INTO phpbb_sessions (session_id, session_user_id, session_start, session_time, session_ip, session_page, session_logged_in) VALUES ('33d6d7a1660b735ecdb9aa9c8bd4872b', -1, 1086610235, 1086610235, 'c2929968', PAGE_TEMPLATE, 0) Line : 152 File : /home/siderock/public_html/forum/includes/sessions.php
amagab wrote: I have added a few pages. One of the pages I've added I only want registered users to have access to. How do I code so that page requires the user to login before viewing?
Thanks!