Jump to content

Need a little help ....


coco777

Recommended Posts

Hi all  :)

 

I'm in need of some advice, how can i widen my forum to full page widthHERE ?

 

I have created a custom theme for the forum without side menus, but it has shoved the forum over to the left, and I'd like to widen it to full page.

 

Do i edit the theme.php or index.php ?

 

Please help many thanks. :)

Link to comment
https://forums.phpfreaks.com/topic/96472-need-a-little-help/
Share on other sites

<?php

/*

+ ----------------------------------------------------------------------------+

|    e107 website system

|

|    ©Steve Dunstan 2001-2002

|    http://e107.org

|    [email protected]

|

|    Released under the terms and conditions of the

|    GNU General Public License (http://gnu.org).

|

|    $Source: /cvsroot/e107/e107_0.7/e107_themes/crahan/theme.php,v $

|    $Revision: 1.10 $

|    $Date: 2005/12/14 19:28:52 $

|    $Author: sweetas $

+----------------------------------------------------------------------------+

*/

 

if (!defined('e107_INIT')) { exit; }

 

// [multilanguage]

@include_once(e_THEME."ETERNITY/languages/".e_LANGUAGE.".php");

@include_once(e_THEME."ETERNITY/languages/English.php");

 

// [theme]

$themename = "Eternity";

$themeversion = "1.0";

$themeauthor = "Samir Kahvedzic [AkIrA]";

$themeemail = "[email protected]";

$themewebsite = "http://www.akira.knows.it";

$themedate = "21/04/2006";

$themeinfo = "More info, help and support on my site www.akira.knows.it.";

define("STANDARDS_MODE", TRUE);

$xhtmlcompliant = TRUE;

$csscompliant = TRUE;

define("IMODE", "dark");

define("THEME_DISCLAIMER", "<br /><i>".LAN_THEME_1."</i>");

 

$logo = "logo".rand(1, 4);

 

// [layout]

 

$layout = "_default";

 

$HEADER = "

<div id='container'>

<div id='header'>

</div>

 

<div id='menu'>

{SITELINKS}</div>

<div id='headborder'>

</div>

</div>

<div id='container2'>

<!-- start center column -->

 

<div class='news'>

{SETSTYLE=default}

 

";

 

$NEWSSTYLE = "

    <div class='title'>{NEWSTITLE}</div>

    <div class='story'>

<br />

    {NEWSBODY}

    {EXTENDED}

    <div class='postby'>

      {EMAILICON}

      {PRINTICON}

      {ADMINOPTIONS}

      <br />

      Posted by

      {NEWSAUTHOR}

       :: 

      {NEWSCOMMENTS}

  </div>

  </div>

  <div class='date'>{NEWSDATE}</div>

 

   

    ";

 

$FOOTER = "

</div>

 

 

";

 

define("ICONSTYLE", "float: left; border:0");

define("COMMENTLINK", LAN_THEME_3);

define("COMMENTOFFSTRING", LAN_THEME_2);

define("PRE_EXTENDEDSTRING", "<br /><br />[ ");

define("EXTENDEDSTRING", LAN_THEME_4);

define("POST_EXTENDEDSTRING", " ]<br />");

define("TRACKBACKSTRING", LAN_THEME_5);

define("TRACKBACKBEFORESTRING", " :: ");

 

 

// [linkstyle]

 

define(PRELINK, "<ul>");

define(POSTLINK, "</ul>");

define(LINKSTART, "<li>");

define(LINKEND, "</li>");

define(LINKDISPLAY, 1); // 1 - along top, 2 - in left or right column

define(LINKALIGN, "left");

 

 

// [tablestyle]

 

function tablestyle($caption, $text){

global $style;

if($style == "leftmenu"){

if($caption != ""){

echo "<h3>".$caption."</h3>";

if($text != ""){

echo "<div class='menuleft'>".$text."</div><br />";

}

}else{

echo $text."<br />";

}

}else if($style == "rightmenu"){

if($caption != ""){

echo "<h3>".$caption."</h3>".$text;

}else{

echo "<div id='menuright'>".$text."</div>";

}

}else if($style == "default"){

if($caption != ""){

echo "<h3>".$caption."</h3>".$text."<br />";

}else{

echo $text."<br />";

}

}else if($style == "message"){

if($caption = ""){

echo $text;

}

}else{

if($caption != ""){

echo "<h3>".$caption."</h3>".$text."<br />";

}else{

echo $text."<br />";

}

}

}

 

// [commentstyle]

/*

$COMMENTSTYLE = "{USERNAME} @ <span class='smalltext'>{TIMEDATE}</span><br />

{AVATAR}<span class='smalltext'>{REPLY}</span><br />

{COMMENT}

<div style='text-align: right;' class='smallext'>{IPADDRESS}</div>";

*/

// [chatboxstyle]

 

 

$CHATBOXSTYLE = "

<div class='spacer'>

<div class='indentchat'>

<img src='".THEME."images/bulletc.gif' />

<b>{USERNAME}</b><div style='text-align:left; padding:0px;'><span class='small' >{TIMEDATE}</span></div>

<span class='smalltext'><br />{MESSAGE}

</span><br><br />

</div>

</div>";

 

?>

Link to comment
https://forums.phpfreaks.com/topic/96472-need-a-little-help/#findComment-493725
Share on other sites

<?php

 

/*

+ ----------------------------------------------------------------------------+

|    e107 website system

|

|    ©Steve Dunstan 2001-2002

|    http://e107.org

|    [email protected]

|

|    Released under the terms and conditions of the

|    GNU General Public License (http://gnu.org).

|

|    $Source: /cvsroot/e107/e107_0.7/index.php,v $

|    $Revision: 1.26 $

|    $Date: 2006/11/13 10:21:17 $

|    $Author: e107coders $

+----------------------------------------------------------------------------+

*/

 

require_once('class2.php');

 

if (file_exists('index_include.php')) {

include('index_include.php');

}

 

if (!is_array($pref['frontpage']) && $pref['frontpage'] != 'Array') {

if (!$pref['frontpage'] || $pref['frontpage'] == 'Array.php') {

$up_pref = 'news.php';

} else if ($pref['frontpage'] == 'links') {

$up_pref = $PLUGINS_DIRECTORY.'links_page/links.php';

} else if ($pref['frontpage'] == 'forum') {

$up_pref = $PLUGINS_DIRECTORY.'forum/forum.php';

} else if (is_numeric($pref['frontpage'])) {

$up_pref = $PLUGINS_DIRECTORY.'content/content.php?content.'.$pref['frontpage'];

} else if (substr($pref['frontpage'], -1) != '/' && strpos($pref['frontpage'], '.') === FALSE) {

$up_pref = $pref['frontpage'].'.php';

} else {

$up_pref = $pref['frontpage'];

}

unset($pref['frontpage']);

$pref['frontpage']['all'] = $up_pref;

save_prefs();

}

 

$query = (e_QUERY && e_QUERY != '' && !$_GET['elan']) ? '?'.e_QUERY : '';

 

if ($pref['membersonly_enabled'] && !USER) {

header('location: '.e_LOGIN);

exit;

} else if (isset($pref['frontpage']['all']) && $pref['frontpage']['all']) {

$location = ((strpos($pref['frontpage']['all'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['all'].$query;

} else if (ADMIN) {

$location =  ((strpos($pref['frontpage']['254'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['254'].$query;

} else if (USER) {

require_once(e_HANDLER.'userclass_class.php');

$class_list = get_userclass_list();

foreach ($class_list as $fp_class) {

$inclass = false;

if (!$inclass && check_class($fp_class['userclass_id'])) {

$location = ((strpos($pref['frontpage'][$fp_class['userclass_id']], 'http') === FALSE) ? e_BASE : '').$pref['frontpage'][$fp_class['userclass_id']].$query;

$inclass = true;

}

}

$location = $location ? $location : ((strpos($pref['frontpage']['253'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['253'].$query;

} else {

$location = ((strpos($pref['frontpage']['252'], 'http') === FALSE) ? e_BASE : '').$pref['frontpage']['252'].$query;

}

 

// handle redirect and include front page methods

if(isset($pref['frontpage_method']) && $pref['frontpage_method'] == "include") {

if($location == "news.php") {

require_once("news.php");

} elseif ($location == PLUGINS_DIRECTORY."forum/forum.php") {

require_once($PLUGINS_DIRECTORY."forum/forum.php");

} elseif (preg_match('/^page\.php\?([0-9]*)$/', $location)) {

$e_QUERY = preg_match('/^page\.php\?([0-9]*)$/', $location);

require_once("page.php");

} else {

 

  header("Location: {$location}");

exit();

}

} else {

list($page,$str) = explode("?",$location."?"); // required to prevent infinite looping when queries are  used on index.php.

if($page == "index.php") // Welcome Message is the front-page.

{

      require_once(HEADERF);

require_once(FOOTERF);

  exit;

}

elseif($page != "index.php") // redirect to different frontpage.

{

header("Location: {$location}");

}

 

exit();

}

 

?>

 

Link to comment
https://forums.phpfreaks.com/topic/96472-need-a-little-help/#findComment-493726
Share on other sites

/*

+---------------------------------------------------------------+

| e107 website system

|

| ©William Moffett 2001-2005

| http://e107.net

| [email protected]

|

| Released under the terms and conditions of the

| GNU General Public License (http://gnu.org).

+---------------------------------------------------------------+

*/

 

body {

font-family: Arial, Helvetica, sans-serif;

font-size:12px;

color: #fff;

background: url(images/bg.png) repeat-x top #2A3F54;

margin: 0;

padding: 0;

text-align: center;

}

 

a {

color: #FFFF00;

text-decoration:none;

}

 

a:hover {

color: #FFFFFF;

text-decoration: underline;

}

 

p {}

 

h1, h2, h3, h4, h5, h6{

font-size: 12px;

color: #fff;

background: url(images/menu2b.png) top left repeat-x;

margin: 0 0 6px 0;

padding: 4px 4px 1px 6px;

text-align: left;

height: 21px;

 

 

}

 

table {

margin: 0px;

padding: 0px;

border: none;

border-collapse: collapse;

}

 

td {

text-align:left;

vertical-align:top;

padding-left:2px;

padding-right:2px;

}

 

blockquote {}

 

ul, ol {}

 

form { }

 

input{

margin:2px;

}

 

hr {

margin-top:2px;

height:1px;

border:none;

background-color:#3f3f3f;

}

 

/*********** dizajn sajta ***********************/

 

#container

{

margin: 0px auto;

padding: 0;

width: 87%;

border-left: 2px solid #fff;

border-right: 2px solid #fff;

background: url(images/hb.png) repeat-x;

 

}

 

#header

{

    background: url(images/header.jpg) no-repeat bottom left;

padding: 0px;

    height: 194px;

    width: 100%;

    margin: 0;

 

}

 

#menu

{

    margin: 0;

    padding: 0;

    list-style-type: none;

background: url(images/ncbg3.png) repeat-x bottom;

    width: 100%;

height: 21px;

font-size: 12px;

}

 

#menu li

{

    display: inline;

}

 

#menu a

{

    display: block;

    float: left;

    padding: 2px 1em 0 1em;

    text-decoration: none;

font-weight: bold;

    color: #FFFF00;

    text-align: left;

}

 

#menu a:hover

{

   

    color: #FFFFFF;

font-weight: bold;

}

 

#headborder

{

    margin: 0;

    padding: 0;

    background: url(images/ncbg2.png) repeat-x bottom;

width: 100%;

height: 21px;

}

 

 

#container2

{

    margin: 0px auto;

    padding: 0;

    width: 87%;

    background: #000;

    border-left: 2px double #fff;

    border-right: 2px double #fff;

background: #3B4858;

}

 

 

.leftmenu

{

  width: 17%;

  height: 100%;

  padding: 0 0 0 0;

  border-right: 1px solid #ACBECC;

  float:left;

  margin: 0 1% 0 0;

  background: url(images/coolmenu.png) repeat-y #192734;

  font: 10px Arial, Helvetica, sans-serif normal;

  color: #fff;

}

 

 

 

.news

{

  width: 64%;

  float:left;

  padding: 0;

  margin: 0 0 0 0;

 

 

}

 

.title

  padding: 2px 0 0 6px;

  margin: 1% 0 0 0;

  font: 12px Arial, Helvetica, sans-serif;

  font-weight: bold;

  color: #fff;

  text-align: left;

  background: url(images/menu2b.png) top left repeat-x;

  border-top: 1px solid #ACBECC;

  border-right: 1px solid #ACBECC;

  border-left: 1px solid #ACBECC;

  height: 21px;

  }

 

.story

{

 

  padding: 0 4px 0 6px;

  margin: 0;

  font: 10px Arial, Helvetica, sans-serif normal;

  color: #fff;

  text-align: left;

  border-right: 1px solid #ACBECC;

  border-left: 1px solid #ACBECC;

  background: url(images/newsb.png) no-repeat right top;

 

  }

 

.date

{

  padding: 6px 6px 0 0;

  font: 9px Arial, Helvetica, sans-serif bold italic;

  color: #fff;

  text-align: right;

  border-right: 1px solid #ACBECC;

  border-left: 1px solid #ACBECC;

  border-bottom: 2px solid #ACBECC;

  background: #4E5E6D;

  height: 21px;

 

  }

 

.postby

{

  text-align: right;

  background: transparent;

  padding: 7px 7px 7px 7px;

  color: #808080;

 

.rightmenu

{

  width: 17%;

  padding: 0 0 0 0;

  border-left: 1px solid #ACBECC;

  float:right;

  margin: 0 0 0 0;

  background: url(images/coolmenu.png) repeat-y #192734;

  height: 100%;

  font: 10px Arial, Helvetica, sans-serif normal;

  color: #fff;

 

}

 

#footer

{

  background: url(images/ncbg3.png) repeat-x top left;

  width: 99.7%;

  height: 21px;

  margin: 0 0 0 0;

  text-align: center;

  padding: 4px 0 0 4px;

  font: 10px Arial, Helvetica, sans-serif normal;

  color: #fff;

  clear: both;

  }

 

/************* #search styles ***************/

 

#search{

margin: 0px;

margin-top: 1%;

padding: 1px 4px 4px 10px;

font-size: 90%;

text-align:right;

display:block;

float: left;

}

 

#search form{

margin: 0px;

padding: 0px;

}

 

#search label{

margin: 0px;

padding: 0px;

}

 

*html #search{

margin: 0px;

padding: 4px 4px 0px 10px;

font-size: 90%;

text-align:right;

display:block;

}

 

/***************** E107 STYLES *****************************/

 

.bodytable {

padding: 8px;

font: 10px verdana, tahoma, arial, helvetica, sans-serif;

color: #929293;

}

 

.indent{

border: 1px solid #ACBECC;

margin:2px;

padding:4px;

}

.indentchat{

background-color: #4E5E6D;

border: 1px solid #ACBECC;

margin:4px;

padding:4px;

display:block;

text-decoration:none;

font-weight:bold;

color: #FFFFFF;

}

 

.mediumtext {

font: 10px verdana, tahoma, arial, sans-serif;

color: #ffffff;

}

 

.smalltext {

font: 10px verdana, tahoma, arial, helvetica, sans-serif;

color: #cbcbcb;

}

 

.tbox {

border: #39393b 1px solid;

color: #000;

font: 10px verdana, tahoma, arial, helvetica, sans-serif;

background: #fff;

 

}

 

.helpbox {

background-color: #1f1f1f;

border: #39393b 1px solid;

color: #fff;

font: 9px tahoma, verdana, arial, helvetica, sans-serif;

 

}

 

.small {

background-color: transparent;

    color: #fff;

font: 8px tahoma, verdana, arial, helvetica, sans-serif;

}

 

.button{

margin:2px 2px;

background-color: #687887;

border: #ACBECC 1px solid;

color: #cbcbcb;

font: 9px verdana, tahoma, arial, helvetica, sans-serif;

text-align:center;

}

 

/* FORUM STYLES */

 

.fcaption {

padding:0px 4px;

height:21px;

line-height:21px;

background: #282828 url(images/ncbg.png) top left repeat-x;

border-left: 1px solid #4E5E6D;

border-right: 1px solid #4E5E6D;

color: #fff;

font-weight:bold;

}

 

.fcaption span.smalltext{

color: #ccc;

}

 

.fcaption span.smalltext a:hover{

color: #fff;

}

 

.fcaption a {

color: #fff;

text-decoration: none;

}

 

.fcaption a:hover {

color: #0B6394;

}

 

a.forumlink{

color: #FFFF00;

text-decoration: none;

}

 

a.forumlink:hover{

color: #fff;

}

 

.fborder {

border: #4E5E6D 1px solid;

background-color: transparent;

}

 

.forumheader{

  background-color: #000;

padding:0px 4px;

height:20px;

line-height:16px;

font-weight:bold;

background-image : url(images/ncbg.png);

color: #d9d9d9;

border-left: 1px solid #4E5E6D;

border-right: 1px solid #4E5E6D;

}

 

.forumheader2{

  background-color: #000;

color: #cbcbcb;

padding: 4px;

border: #4E5E6D 1px solid;

background-image: url(images/chatbg.png);

}

.forumheader3{

  background-color: #000;

color: #cbcbcb;

padding: 4px;

border: #4E5E6D 1px solid;

background-image: url(images/chatbg.png);

}

.forumheader4{

background-color: #000;

font: 10px verdana, tahoma, arial, sans-serif;

color: #fff;

padding: 4px;

border: #4E5E6D 1px solid;

background-image: url(images/chatbg.png);

}

 

.finfobar{

color: #cbcbcb;

padding: 4px;

border: #4E5E6D 1px solid;

background-color: #192734;

}

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/96472-need-a-little-help/#findComment-493731
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.