Lines 34 and 36 are as follows (with the rest of the Multi-BBCode included):Fatal error: Cannot redeclare multi_bbcode() (previously declared in /includes/bbcode.php:36) in /includes/bbcode.php on line 34
What should I do to make this compatible with the MySpace Mod as I don't really want to remove that Multi-BBCode Mod? Is there some part of the code I can alter?33 // MULTI BBCODE-begin
34 function Multi_BBCode()
35 {
36 global $template, $lang;
// DO NOT CHANGE THIS ARRAY
$hotkeys = array('', 'd', 'e', 'g', 'h', 'j', 'k', 'm', 'n', 'r', 't', 'v', 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0');
//NOTE: the first element of each array must be '' Add new elements AFTER the ''
$EMBB_widths = array('','60') ;
$EMBB_values = array('','YouTube') ;
for ($i=1; $i<count($EMBB_values); $i++)
{
// load BBcode MODs info
$val = ($i*2)+16 ;
$help_lang = ( !empty($lang['bbcode_help'][(strtolower($EMBB_values[$i]))]) ) ? $lang['bbcode_help'][(strtolower($EMBB_values[$i]))] : $lang['bbcode_help'][$EMBB_values[$i]];
$template->assign_block_vars('MultiBB', array(
'KEY' => $hotkeys[$i],
'NAME' => "addbbcode$val",
'HELP' => sprintf($help_lang, $hotkeys[$i]),
'WIDTH' => $EMBB_widths[$i],
'VALUE' => $EMBB_values[$i],
'STYLE' => "bbstyle($val)")
);
}
}
// MULTI BBCODE-end
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
exit;
}
Now initially it allowed me to view my own profile, but then once I tried to create my own myspace page and then went to view my profile or any other person's profile I got the following error message:// BEGIN MPS
// JASON'S MODIFICATION
// DESC: Added to enable bbcode or html in comments, invitations, and messages...
// originally placed in profile.php but transfered here to avoid conflicts when editing a profile
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/functions_post.'.$phpEx);
function bbdecode_all($bbd_msg, $bbd_bbuid)
{
// Based on viewtopic.php
$bbd_msg = bbencode_second_pass( $bbd_msg, $bbd_bbuid);
$bbd_msg = make_clickable($bbd_msg);
$bbd_msg = smilies_pass($bbd_msg);
$bbd_msg = str_replace("\n", "\n<br />\n", $bbd_msg);
return $bbd_msg;
}
//
// Include Language Begin
//
$language = $board_config['default_lang'];
if ( !file_exists($phpbb_root_path . 'language/lang_' . $language . '/lang_mps_main.'.$phpEx) )
{
$language = 'english';
}
include($phpbb_root_path . 'language/lang_' . $language . '/lang_mps_main.' . $phpEx);
//
// Include Language End
//
/*
The following codes were accidentally patterned after Iteration Deepening Depth-first algorithm
The principle behind this algorithm goes like this as explained fully in Wikipedia.com...
In Depth-first algorithm, the scanner will start at the root going to its nodes:
A-D-E-F-G
| |___|
C-B
Starting from A, the code will scan as follows: A,D,E,F,G,B,C if the scanner will treat D as first friend of A.
It will not continue as ADEFG-EFG-EFG... because it places all the previously scanned friends in memory so as to avoid
infinite loops and depths.
BUT since this is an Iteration deepening Depth-first algorithm, The deepening of the depth were controlled
so as not to go very deeply even if it isn't an infinite depth. And since the employed code here for depth-first algo
is recursing (find_friend_connections2), we need to stop its recursion when the limit has been reached...
A-D-E-F-G
| |___|
B_______|
In this network of friends, if a limit was NOT set, the find_friend_connections2 will continue to recurse for
3-4 times before we can prove that A and G are friends (provided D was first scanned).
If a limit was set, on first iteration, 1st degree friends were scanned, ie, B & D.
The function will check if D and G are friends. If not then it will not recurse but will check B instead.
Since B is a friend of G, then A,B,G will be the path. If a limit was NOT set, After scanning D, it will scan the friends
of D (recursing part), ie, E for G's friendship and so on.
Imagine going deep into our network when in fact a 1st degree friend that hasn't been search was a direct friend of our goal
This saves processing time and memory.
*/
/*
This was the original algorithm but now it becomes a sub function of
find_friend_connections(). This is the Depth-first search algorithm.
This function recurses itself to scan deeply each friend's friend and so on.
Note that it saves and passes to the next recurse all the scanned friends so as to
prevent infinite depth searching and loops.
*/
function find_friend_connections2($ffc_uid1, $ffc_uid2, $scanned, $cnt, $degrees){
global $db;
if ($cnt>$degrees){return '';}
$u1_friends = array();
//$u1_friends = $user[$ffc_uid1];
//global $user;
$sql = "SELECT *
FROM " . MPS_FRIENDS_TABLE . "
WHERE user_a = " . $ffc_uid1;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query friends information', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
{
$u1_friends[] = $row['user_b'];
}
$db->sql_freeresult($result);
if (in_array($ffc_uid2, $u1_friends)){
return $ffc_uid1 . ',' . $ffc_uid2;
break;
}
for ($x=0 ; $x<=count($u1_friends)-1 ; $x++){
if(!in_array($u1_friends[$x],$scanned)){
$scanned[] = $u1_friends[$x];
$tofindmore[] = $u1_friends[$x];
}
}
for ($y=0 ; $y<=count($tofindmore)-1 ; $y++){
$sr = find_friend_connections2($tofindmore[$y],$ffc_uid2, $scanned, $cnt+1, $degrees);
if ($sr != ''){
return $ffc_uid1 . ',' . $sr;
}
}
}
/*
A Redundant-copy-cat implementation of find_friend_connections2
Calls find_friend_connections2 and saves all its returns in an array
Then will return the array with the shortest path.
Redundant because find_friend_connections2 will already scan with the
least degree first...The first return is already the shortest...
*/
function find_friend_connections1($ffc_uid1, $ffc_uid2, $degrees){
global $user;
$search_result = array();
$u1_friends = array();
$u1_friends = $user[$ffc_uid1];
if (in_array($ffc_uid2, $u1_friends)){
return $ffc_uid2;
break;
}
for ($x=0 ; $x<=count($u1_friends)-1 ; $x++){
$search_result[] = find_friend_connections2($u1_friends[$x], $ffc_uid2, array($ffc_uid1,$u1_friends[$x]), 2, $degrees);
}
//print_r($search_result);
$smallest = 999999999;
$num=0;
for ($y=0 ; $y<=count($search_result)-1 ; $y++){
$commacount = substr_count($search_result[$y], ',');
if ($smallest > $commacount and $commacount!=0){
$num = $y;
$smallest = substr_count($search_result[$y], ',');
}
}
//echo 'num='.$num;
return $search_result[$num];//return $ffc_uid1 . ',' . $search_result[$num];
}
/*
This is the Iteration deepening algorithm which limits the degree (or times)
in which find_friend_connections2 will recurse deep into the friend's friend...
It is assumed that 10 will be the maximum degree...maybe...
*/
function find_friend_connections($ffc_uid1, $ffc_uid2){
for ($x=1 ; $x<=10 ; $x++){
// This was the original implementation of this code...
// $sr = find_friend_connections1($ffc_uid1,$ffc_uid2,$x);
//
// But it seems that find_friend_connections1() is a redundant-copy-cat of find_friend_connections2()
// find_friend_connections1() finds the least number of links given by find_friend_connections2()
// find_friend_connections2() recurse itself with the least number of times first
//
// If this is so, the shortest link will be trapped at find_friend_connections2 initially
// No need to scan the others; just the shortest...
$sr = find_friend_connections2($ffc_uid1, $ffc_uid2, array(), 1, $x);
if ($sr!='') { return $sr; } //return $ffc_uid1 . ',' . $sr;
}
}
// ENDJMOD
Line 169 is as follows (highlighted in red bold):Fatal error: Call to undefined function: find_friend_connections() in /includes/usercp_viewprofile.php on line 169
if( !$are_friends && !$total_common_friends )
{
// JASON'S MODIFICATION
// DESC: Totally modifies how we output friend connections...
$friend_conn = find_friend_connections($userdata['user_id'],$profiledata['user_id']);
$friend_conn_arr = explode(',' , $friend_conn);
$friendlink = count($friend_conn_arr)!=1 ? 'You' : '';
for ($j=1 ; $j<=count($friend_conn_arr)-1 ; $j++)
{
$sql = "SELECT *
FROM " . USERS_TABLE . "
WHERE user_id = " . $friend_conn_arr[$j];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
if( !$are_friends && !$total_common_friends )
{
// JASON'S MODIFICATION
// DESC: Totally modifies how we output friend connections...
$friend_conn = find_friend_connections($userdata['user_id'],$profiledata['user_id']);
$friend_conn_arr = explode(',' , $friend_conn);
$friendlink = count($friend_conn_arr)!=1 ? 'You' : '';
for ($j=1 ; $j<=count($friend_conn_arr)-1 ; $j++)
{
$sql = "SELECT *
FROM " . USERS_TABLE . "
WHERE user_id = " . $friend_conn_arr[$j];
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query forums information', '', __LINE__, __FILE__, $sql);
}
while ( $row = $db->sql_fetchrow($result) )
are you talking about the css tool?Tigger268 wrote:Would there be any way to use some of the code from this mod so that users can give themselves a background image in their profile, without any of the other stuff?
In regards to the above, check the installation instructions for these MODs and find the edits that are applied to includes/usercp_viewprofile.php. If you add these to includes/mps_viewprofile.php as well, then its possible for them to appear on MPS profile pages as well.Welshcat wrote: 3) I have a mod which says which forums users are most active in. Would this be able to be retained somehow (perhaps under the forum stats section in the profile)?
4) The standard features of a phpbb profile which tells you when the user joined the forum and the member number do not appear in the myspace profile. Can these features be retained?
5) I also have a "Buddy list" mod installed which shows up beneath a profile. However this disappears with the myspace mod. Would this feature also be able to be retained?
6) Finally, I have a "Board usage statistics" which is displayed in a profile. Is there some way to keep this too?
Code: Select all
Warning: include(./includes/weblogs_common.php) [function.include]: failed to open stream: No such file or directory in /home/pixelvil/public_html/includes/mps_viewprofile.php on line 76
Warning: include() [function.include]: Failed opening './includes/weblogs_common.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pixelvil/public_html/includes/mps_viewprofile.php on line 76
Warning: include(./includes/functions_weblog.php) [function.include]: failed to open stream: No such file or directory in /home/pixelvil/public_html/includes/mps_viewprofile.php on line 77
Warning: include() [function.include]: Failed opening './includes/functions_weblog.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/pixelvil/public_html/includes/mps_viewprofile.php on line 77
Fatal error: Call to undefined function get_auth_level() in /home/pixelvil/public_html/includes/mps_viewprofile.php on line 80
Thanks for the help. It seems you have to also edit the mps_viewprofile_body.tpl as well in order for it to show up.RedTrinity wrote:In regards to the above, check the installation instructions for these MODs and find the edits that are applied to includes/usercp_viewprofile.php. If you add these to includes/mps_viewprofile.php as well, then its possible for them to appear on MPS profile pages as well.Welshcat wrote: 3) I have a mod which says which forums users are most active in. Would this be able to be retained somehow (perhaps under the forum stats section in the profile)?
4) The standard features of a phpbb profile which tells you when the user joined the forum and the member number do not appear in the myspace profile. Can these features be retained?
5) I also have a "Buddy list" mod installed which shows up beneath a profile. However this disappears with the myspace mod. Would this feature also be able to be retained?
6) Finally, I have a "Board usage statistics" which is displayed in a profile. Is there some way to keep this too?
However, not all are compatible due to difference in coding - in which case you will have to talk to Jadestone about an alternative or request that it be integrated into MPS if its a popular mod.
Hope that helps
Regards,
RT.
// bbdecoding added
'COMMENT' => bbdecode_all($commentsdata[$j]['comment'], $commentsdata[$j]['bbcode_uid']))
);
}
if ( !$commentsdata[$j] )
{
$template->assign_block_vars('mps_no_comments', array());
$template->assign_vars(array(
'NO_COMMENTS' => $lang['mps_no_comments'])
);
}
// Dipslay DETAILS XUINFO
for($j = 0; $j < $total_details_xuinfo; $j++)
{
$xinfolink="";
if($details_xuinfo[$j]['type_type']==1 && $details_xuinfo[$j]['searchable']) // numeric
{
$xinfolink .= '<a href="mps_search.php?mode=details_detailed_search&details_xui' . $details_xuinfo[$j]['type_id'] . '=1&details_xuinum' . $details_xuinfo[$j]['type_id'] . '=1&details_xui' . $details_xuinfo[$j]['type_id'] . 'c=' . $details_xuinfo[$j]['info'] . '">' . $details_xuinfo[$j]['info'] . '</a>';
}
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<!-- link rel="stylesheet" href="templates/subSilver/{T_HEAD_STYLESHEET}" type="text/css" -->
<style type="text/css">
<!--
/*
The original subSilver Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com
Edited for MPS css tool by jadestone
NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*/
.avatar_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.contact_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.details_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.interests_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.forum_stats_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.weblog_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.blurbs_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.quiz_results_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.friends_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
.friends_comments_table {background-color : {MPS_BOX_BG_COLOR}; border: {MPS_BOX_BORFDER_SIZE}px {MPS_BOX_BORFDER_COLOR} {MPS_BOX_BORDER_STYLE}; }
/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: {MPS_BODY_BGCOLOR};
scrollbar-face-color: {MPS_SB_COLOR};
scrollbar-highlight-color: {MPS_SB_HIGHLIGHT_COLOR};
scrollbar-shadow-color: {MPS_SB_SHADOW_COLOR};
scrollbar-3dlight-color: {MPS_SB_3D_LIGHT_COLOR};
scrollbar-arrow-color: {MPS_SB_ARROW_COLOR};
scrollbar-track-color: {MPS_SB_TRACK_COLOR};
scrollbar-darkshadow-color: {MPS_SB_DARK_SHADOW_COLOR};
}
/* General font families for common tags */
font,th,td,p { font-family: {MPS_FONTFACE1} }
a:link,a:active,a:visited { color : {MPS_LINK_COLOR}; }
a:hover { text-decoration: underline; color : {MPS_HLINK_COLOR}; }
hr { height: 0px; border: solid {MPS_HR_COLOR} 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline {
background-image:url({MPS_BODY_BACKGROUND});
background-position: {MPS_BG_ATTACH_POSITION};
max-width: 100%;
background-repeat: {MPS_BG_REPEAT};
background-attachment: {MPS_BG_ATTACH};
background-color: {MPS_FORUMLINE_BG_COLOR}; border: {MPS_BODY_OUTLINE_BORDER_SIZE}px {MPS_BODY_OUTLINE_BORDER_COLOR} {MPS_BODY_OUTLINE_BORDER_STYLE}; }
/* This is the outline round the main forum tables */
.forumline { background-color: {MPS_FROUMLINE_BG_COLOR}; border: {MPS_FORUMLINE_BORFDER_SIZE}px {MPS_FORUMLINE_BORFDER_COLOR} {MPS_FORUMLINE_BORDER_STYLE}; }
/* Main table cell colours and backgrounds */
td.row1 { background-color: transparent; }
td.row2 { background-color: transparent; }
td.row3 { background-color: transparent; }
/* Header cells - the blue and silver gradient backgrounds */
th {
color: {MPS_CUSTOM_PAGE_TITLE_BG_COLOR}; font-size: {MPS_CUSTOM_PAGE_TITLE_FONT_SIZE}px; color : {MPS_CUSTOM_PAGE_TITLE_FONT_COLOR}; font-weight : bold;
background-color: {MPS_CUSTOM_PAGE_TITLE_BG_COLOR}; height: 25px;
background-image: url(templates/subSilver/images/{MPS_CUSTOM_PAGE_TITLE_BG_IMAGE});
}
/* Table Cells - The title area of a table */
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-color:{MPS_BOX_TITLE_BG_COLOR};
background-image: url(templates/subSilver/images/{MPS_BOX_TITLE_BG_IMAGE});
border: {MPS_BOX_TITLE_BORDER_COLOR};
border-style: {MPS_BOX_TITLE_BORDER_STYLE}; height: 28px;
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: {MPS_BODY_BGCOLOR}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
background-color: {MPS_BOX_TITLE_BG_COLOR}; border: {MPS_TH_COLOR3}; border-style: solid;
}
th.thHead,td.catHead { font-size: {MPS_FONTSIZE3}px; border-width: 0px 0px 0px 0px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 0px 0px 0px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 0px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 0px; }
th.thBottom,td.catBottom { border-width: 0px 0px 0px 0px; }
th.thTop { border-width: 0px 0px 0px 0px; }
th.thCornerL { border-width: 0px 0px 0px 0px; }
th.thCornerR { border-width: 0px 0px 0px 0px; }
/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; font-size: 22px; font-family: "{MPS_FONTFACE2}",{MPS_FONTFACE1};
text-decoration: none; line-height : 120%; color : {MPS_TITLE_TEXT_COLOR};
}
/* General text */
.gen { font-size : {MPS_TITLE_FONT_SIZE}px; color : {MPS_TITLE_TEXT_COLOR}; }
.genmed { font-size : {MPS_TEXT_FONT_SIZE}px; color : {MPS_TEXT_COLOR}; }
.gensmall { font-size : {MPS_SMALL_TEXT_FONT_SIZE}px; color : {MPS_SMALL_TEXT_COLOR}; }
a.gen,a.genmed,a.gensmall { color: {MPS_LINK_COLOR}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {MPS_HLINK_COLOR}; text-decoration: underline; }
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : {MPS_TEXT_FONT_SIZE}px; color : {MPS_TEXT_COLOR} }
a.mainmenu { text-decoration: none; color : {MPS_LINK_COLOR}; }
a.mainmenu:hover{ text-decoration: underline; color : {MPS_HLINK_COLOR}; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: {MPS_TITLE_FONT_SIZE}px; color : {MPS_LINK_COLOR}; }
a.forumlink { text-decoration: none; color : {MPS_LINK_COLOR}; }
a.forumlink:hover{ text-decoration: underline; color : {MPS_HLINK_COLOR}; }
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: {MPS_TEXT_FONT_SIZE}px; color : {MPS_TEXT_COLOR};}
a.nav { text-decoration: none; color : {MPS_LINK_COLOR}; }
a.nav:hover { text-decoration: underline; color : {MPS_HLINK_COLOR}}
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : {MPS_FONTSIZE2}px; color : {MPS_BODY_TEXT};}
/* Copyright and bottom info */
.copyright { font-size: {MPS_SMALL_TEXT_FONT_SIZE}px; font-family: Verdana, Arial, Helvetica, sans-serif; color: {MPS_TEXT_COLOR}; letter-spacing: -1px;}
a.copyright { color: {MPS_LINK_COLOR}; text-decoration: none;}
a.copyright:hover { color: {MPS_HLINK_COLOR}; text-decoration: underline;}
/* Form elements */
input,textarea, select {
color : {MPS_TEXT_COLOR};
font: normal {MPS_TEXT_FONT_SIZE}px {MPS_FONTFACE1};
background-color: {MPS_PAGE_BGCOLOR};
border-color : {MPS_TEXT_COLOR};
}
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know ;)
*/
.helpline { background-color: {MPS_BODY_BGCOLOR}; border-style: none; }
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/subSilver/formIE.css");
-->
<!-- BEGIN switch_mps_no_css -->
<!--
.dom_overview_abshidden {
position: absolute;
visibility: hidden;
width: 300px;
}
/*
The original subSilver Theme for phpBB version 2+
Created by subBlue design
http://www.subBlue.com
NOTE: These CSS definitions are stored within the main page body so that you can use the phpBB2
theme administration centre. When you have finalised your style you could cut the final CSS code
and place it in an external file, deleting this section to save bandwidth.
*/
/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
background-color: {T_BODY_BGCOLOR};
scrollbar-face-color: {T_TR_COLOR2};
scrollbar-highlight-color: {T_TD_COLOR2};
scrollbar-shadow-color: {T_TR_COLOR2};
scrollbar-3dlight-color: {T_TR_COLOR3};
scrollbar-arrow-color: {T_BODY_LINK};
scrollbar-track-color: {T_TR_COLOR1};
scrollbar-darkshadow-color: {T_TH_COLOR1};
}
/* General font families for common tags */
font,th,td,p { font-family: {T_FONTFACE1} }
a:link,a:active,a:visited { color : {T_BODY_LINK}; }
a:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
hr { height: 0px; border: solid {T_TR_COLOR3} 0px; border-top-width: 1px;}
/* This is the border line & background colour round the entire page */
.bodyline { background-color: {T_TD_COLOR2}; border: 1px {T_TH_COLOR1} solid; }
/* This is the outline round the main forum tables */
.forumline { background-color: {T_TD_COLOR2}; border: 2px {T_TH_COLOR2} solid; }
/* Main table cell colours and backgrounds */
td.row1 { background-color: {T_TR_COLOR1}; }
td.row2 { background-color: {T_TR_COLOR2}; }
td.row3 { background-color: {T_TR_COLOR3}; }
/*
This is for the table cell above the Topics, Post & Last posts on the index.php page
By default this is the fading out gradiated silver background.
However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
background-color: {T_TD_COLOR2};
background-image: url(templates/subSilver/images/{T_TH_CLASS3});
background-repeat: repeat-y;
}
/* Header cells - the blue and silver gradient backgrounds */
th {
color: {T_FONTCOLOR3}; font-size: {T_FONTSIZE2}px; font-weight : bold;
background-color: {T_BODY_LINK}; height: 25px;
background-image: url(templates/subSilver/images/{T_TH_CLASS2});
}
td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
background-image: url(templates/subSilver/images/{T_TH_CLASS1});
background-color:{T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid; height: 28px;
}
/*
Setting additional nice inner borders for the main table cells.
The names indicate which sides the border will be on.
Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
height: 29px;
border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
font-weight: bold; border: {T_TD_COLOR2}; border-style: solid; height: 28px;
}
td.row3Right,td.spaceRow {
background-color: {T_TR_COLOR3}; border: {T_TH_COLOR3}; border-style: solid;
}
th.thHead,td.catHead { font-size: {T_FONTSIZE3}px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom { border-width: 0px 1px 1px 1px; }
th.thTop { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }
/* The largest text used in the index page title and toptic title etc. */
.maintitle {
font-weight: bold; font-size: 22px; font-family: "{T_FONTFACE2}",{T_FONTFACE1};
text-decoration: none; line-height : 120%; color : {T_BODY_TEXT};
}
/* General text */
.gen { font-size : {T_FONTSIZE3}px; }
.genmed { font-size : {T_FONTSIZE2}px; }
.gensmall { font-size : {T_FONTSIZE1}px; }
.gen,.genmed,.gensmall { color : {T_BODY_TEXT}; }
a.gen,a.genmed,a.gensmall { color: {T_BODY_LINK}; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover { color: {T_BODY_HLINK}; text-decoration: underline; }
/* The register, login, search etc links at the top of the page */
.mainmenu { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT} }
a.mainmenu { text-decoration: none; color : {T_BODY_LINK}; }
a.mainmenu:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
/* Forum category titles */
.cattitle { font-weight: bold; font-size: {T_FONTSIZE3}px ; letter-spacing: 1px; color : {T_BODY_LINK}}
a.cattitle { text-decoration: none; color : {T_BODY_LINK}; }
a.cattitle:hover{ text-decoration: underline; }
/* Forum title: Text and link to the forums used in: index.php */
.forumlink { font-weight: bold; font-size: {T_FONTSIZE3}px; color : {T_BODY_LINK}; }
a.forumlink { text-decoration: none; color : {T_BODY_LINK}; }
a.forumlink:hover{ text-decoration: underline; color : {T_BODY_HLINK}; }
/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
a.nav { text-decoration: none; color : {T_BODY_LINK}; }
a.nav:hover { text-decoration: underline; }
/* titles for the topics: could specify viewed link colour too */
.topictitle,h1,h2 { font-weight: bold; font-size: {T_FONTSIZE2}px; color : {T_BODY_TEXT}; }
a.topictitle:link { text-decoration: none; color : {T_BODY_LINK}; }
a.topictitle:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.topictitle:hover { text-decoration: underline; color : {T_BODY_HLINK}; }
/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name { font-size : {T_FONTSIZE2}px; color : {T_BODY_TEXT};}
/* Location, number of posts, post date etc */
.postdetails { font-size : {T_FONTSIZE1}px; color : {T_BODY_TEXT}; }
/* The content of the posts (body of text) */
.postbody { font-size : {T_FONTSIZE3}px; line-height: 18px}
a.postlink:link { text-decoration: none; color : {T_BODY_LINK} }
a.postlink:visited { text-decoration: none; color : {T_BODY_VLINK}; }
a.postlink:hover { text-decoration: underline; color : {T_BODY_HLINK}}
/* Quote & Code blocks */
.code {
font-family: {T_FONTFACE3}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR2};
background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
.quote {
font-family: {T_FONTFACE1}; font-size: {T_FONTSIZE2}px; color: {T_FONTCOLOR1}; line-height: 125%;
background-color: {T_TD_COLOR1}; border: {T_TR_COLOR3}; border-style: solid;
border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}
/* Copyright and bottom info */
.copyright { font-size: {T_FONTSIZE1}px; font-family: {T_FONTFACE1}; color: {T_FONTCOLOR1}; letter-spacing: -1px;}
a.copyright { color: {T_FONTCOLOR1}; text-decoration: none;}
a.copyright:hover { color: {T_BODY_TEXT}; text-decoration: underline;}
/* Form elements */
input,textarea, select {
color : {T_BODY_TEXT};
font: normal {T_FONTSIZE2}px {T_FONTFACE1};
border-color : {T_BODY_TEXT};
}
/* The text input fields background colour */
input.post, textarea.post, select {
background-color : {T_TD_COLOR2};
}
input { text-indent : 2px; }
/* The buttons used for bbCode styling in message post */
input.button {
background-color : {T_TR_COLOR1};
color : {T_BODY_TEXT};
font-size: {T_FONTSIZE2}px; font-family: {T_FONTFACE1};
}
/* The main submit button option */
input.mainoption {
background-color : {T_TD_COLOR1};
font-weight : bold;
}
/* None-bold submit button */
input.liteoption {
background-color : {T_TD_COLOR1};
font-weight : normal;
}
/* This is the line in the posting page which shows the rollover
help line. This is actually a text box, but if set to be the same
colour as the background no one will know ;)
*/
.helpline { background-color: {T_TR_COLOR2}; border-style: none; }
/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("templates/subSilver/formIE.css");
-->
<!-- END switch_mps_no_css -->
</style>
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body bgcolor="{T_BODY_BGCOLOR}" text="{T_BODY_TEXT}" link="{T_BODY_LINK}" vlink="{T_BODY_VLINK}">
<a name="top"></a>
<table width="85%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="bodyline"><table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td><a href="{U_INDEX}"><img src="templates/subSilver/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" vspace="1" /></a></td>
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br /> </span>
<table cellspacing="0" cellpadding="2" border="0">
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu"><p><a href="{U_ALBUM}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_album.gif" width="15" height="16" border="0" alt="{L_ALBUM}" hspace="3" />{L_ALBUM}</a> <a href="{U_BLOG}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_blog.gif" width="15" height="16" border="0" alt="blog" hspace="3" />{L_BLOG}</a> <a href="{U_LINK_EXCHANGE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="15" height="16" border="0" alt="{L_LINK_EXCHANGE}" hspace="3" />{L_LINK_EXCHANGE}</a> <a href="{U_CALENDAR}" class="mainmenu"><img src="{I_CALENDAR}" width="15" height="16" border="0" alt="{L_CALENDAR}" hspace="3" />{L_CALENDAR}</a> <a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="15" height="16" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a> <a href="{U_SHOP}" class="mainmenu"><img src="templates/subSilver/images/icon_shop.gif" width="15" height="16" border="0" alt="{L_SHOP}" hspace="3" />Loja</a> <a href="{U_LOTTERY}" class="mainmenu"><img src="templates/subSilver/images/icon_lottery.gif" width="15" height="16" border="0" alt="{L_LOTTERY}" hspace="3" />Loteria</a> <a href="{U_BANK}" class="mainmenu"><img src="templates/subSilver/images/icon_bank.gif" width="15" height="16" border="0" alt="{L_BANK}" hspace="3" />Banco</a><br /> <a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="15" height="16" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a> <a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="15" height="16" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a> <a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="15" height="16" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a> <a href="{U_MEMBERWS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="15" height="16" border="0" alt="{L_MEMBERWS}" hspace="3" />{L_MEMBERWS}</a>
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_register.gif" width="15" height="16" border="0" alt="{L_REGISTER}" hspace="3" />{L_REGISTER}</a>
<!-- END switch_user_logged_out -->
</span></td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="15" height="16" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a> <a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="15" height="16" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a> <a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="15" height="16" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a> {REPORT_INFO}</span></td></tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_MPS_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="15" height="16" border="0" alt="{L_MPS_SEARCH}" hspace="3" />{L_MPS_SEARCH}</a> <a href="{U_MPS_USERGROUPS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="15" height="16" border="0" alt="{L_MPS_USERGROUPS}" hspace="3" />{L_MPS_USERGROUPS}</a> </span></td>
</tr>
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{U_MPS_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_MPS_SEARCH}" hspace="3" />{L_MPS_SEARCH}</a> <a href="{U_MPS_USERGROUPS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_MPS_USERGROUPS}" hspace="3" />{L_MPS_USERGROUPS}</a> </span></td>
</tr>
<!-- BEGIN switch_mps_reported_profile -->
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu"> <a href="{switch_mps_reported_profile.U_MPS_REPORTED_PROFILES}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{switch_mps_reported_profile.L_MPS_REPORTED_PROFILES}" hspace="3" />{switch_mps_reported_profile.L_MPS_REPORTED_PROFILES}</a></span></td>
</tr>
<!-- END switch_mps_reported_profile -->
</table></td>
</tr>
</table>
<br />
{CALENDAR_BOX}
<!-- BEGIN board_disable -->
<div class="forumline" style="padding: 10px; margin: 5px 2px; text-align: center">
<span class="gen">{board_disable.MSG}</span>
</div>
<!-- END board_disable -->