I have some problems getting These Sidebars integrating in to the website.
I have copied this code in the "root/theme/stylesheet.css" file:
- Code: Select all
/**
*
* @package STG
* @version $Id$
* @copyright (c) 2007 Star Trek Guide Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/* Some CSS styles for your website (specifically) */
/* =page-sidebar
----------------------------------------------------*/
.page-sidebar{
float: left;
margin-top: 0px;
margin-bottom: 4px;
width: 20%;
}
I have tried doing it al in the original template directory and then it works fine, but not when I put it the custom stylesheet.css. And I dont want the sidebar on the the forum to be shown.
common.php
- Code: Select all
<?php
/**
*
* @author David Lewis ( http://startrekguide.com ) Highway of Life
* @package STG
* @version $Id: common.php 165 2007-12-23 05:21:41Z Highway of Life $
* @copyright (c) 2007 Star Trek Guide Group
*
*/
if (!defined('IN_PHPBB') || !defined('ROOT_PATH'))
{
exit;
}
/**
* @ignore
*/
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : ROOT_PATH . 'phpBB3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include(ROOT_PATH . 'includes/functions_website.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
// void setup ([ $lang_set = false], [ $style = false])
// language and style setup, we?ll use $style = 1 (prosilver)
$user->setup(false, 5);
// set your custom template path
// void set_custom_template ( $template_path, $template_name)
$template->set_custom_template(ROOT_PATH . 'template', 'website');
// Set some basic (global) template variables
$template->assign_vars(array(
'U_WEBSITE_STYLESHEET' => ROOT_PATH . 'theme/stylesheet.css',
'U_HOME' => append_sid(ROOT_PATH),
'U_FORUM' => append_sid($phpbb_root_path),
));
?>
Am I doing someting wrong or do I need to do something to activate the "root/theme/stylesheet.css" file.
Thanks in advance
Update: Nevermind its got fixed, I just needed to put <link href="{U_WEBSITE_STYLESHEET}" rel="stylesheet" type="text/css" /> in the overall_header.html with the other script links.









. But thank you
.



