Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Center logo and smaller page width

Asked Modified Viewed 1,207 times
Z
zimi27
Z
zimi27 10
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
asked
Junior Member

How do I center my logo?

Is it possible to narrow the sides of the template so that it is not across the entire width of the page, but smaller on the screen? (e.g. 80%)

THX(y)

php fusion 8, themes 7

theme.php

<?php
if (!defined("IN_FUSION")) { die("Access Denied"); }

define("THEME_WIDTH", "100%");
define("THEME_BULLET", "<img src='".THEME."images/bullet.gif' alt='' style='border:0' />");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {

   global $aidlink, $settings, $main_style, $locale, $userdata;

   echo "";
   echo "<body topmargin='0' leftmargin='0' rightmargin='0'>";

   echo "<table width='100%' cellspacing='0' cellpadding='0' border='0'>";
   echo "<tr><td align='left' valign='top'>";
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
   echo "<td width='60%' background='".THEME."images/cellpic_bkg.jpg' height='110'><a href='".BASEDIR."/'><img src='".THEME."images/logo.jpg' border='0' alt=''></td>";
   echo "<td width='40%' background='".THEME."images/cellpic_bkg.jpg' height='110'>";
   echo"</td>";
   echo "</tr></table>";
   echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr>";
   echo "<td><table width='100%' height='28' border='0' cellpadding='4' cellspacing='0' background='".THEME."images/cellpic_nav.gif'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
   echo "<td class='content'>n";
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo " n"; } else { echo "n"; }
   $link_target = ($data['link_window'] == "1" ? " target='_blank'" : "");
      if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
   echo "<a href='".$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
   } else {
   echo "<a href='".BASEDIR.$data['link_url']."'".$link_target." class='white'>".$data['link_name']."</a>";
}
   }
$i++;
      }
   }
}
   echo ($i == 0 ? " " : "")."</td>n";

   echo "<td width='210' nowrap><div align='right'><font class='content'><font class='date'><strong>".ucwords(showdate("%A, %B %d, %Y", time()))."";
   echo "&nbsp </font></div>";
   echo "</td></tr></table></td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' border='0' align='center'>";
   echo "<tr valign='top'>";
   echo "<td valign='middle' align='left'>";
   echo "<table width='100%' cellpadding='4' bgcolor='#202734' cellspacing='0' border='0'>";

//Content
//   echo "<table cellpadding='0' cellspacing='0' class='border' width='"100%"' align='center'>n<tr>n";
   if (LEFT) { echo "<td class='side-border-left' valign='top'>".LEFT."</td>"; }
   echo "<td class='main-bg' valign='top'>".U_CENTER.CONTENT.L_CENTER."</td>";
   if (RIGHT) { echo "<td class='side-border-right' valign='top'>".RIGHT."</td>"; }
   echo "</tr>n</table>n";

//footer

   echo "</tr>n</table>n";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%' background='".THEME."images/bot_bar_back.gif' height='30'>";
   echo "<td align='middle' width='44%'><div align='left'>";
   echo showcopyright();
   echo "<td align='middle' width='34%'><div align='left'><font color='#C0C0C0'><font color='#FFC600'><b>Void</b></font> Theme Design by: </font><b><a target='_blank' href='http://phpfusion.org'>Lorkan Themes</a><br> Converted to v7 by <a target='_blank' href='http://www.kaj-max.dk'>WhoCare</a></font></b></td></div>";
   echo "<td width='22%'><div align='right'><font class='tiny'></font> ".showcounter()."n";
   echo "</td></div></tr></table></center></table></table></table>n";
}


function render_news($subject, $news, $info) {

   echo "<table border='0' style='border: 1px solid #404050' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$subject</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";

   echo "</td></tr></table></td></tr></table>n";
}

function render_article($subject, $article, $info) {

   echo "<table border='0' style='border: 1px solid #404050' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td background='".THEME."images/cellpic3.gif' height='24'><img border='0' src='".THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$subject</font></td>";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='1' class='border'><tr>";
   echo "<td><table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='main-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td class='news-footer'>";

   echo "</td></tr></table></td></tr></table>n";
}

// Open table begins
function opentable($title) {

   echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #404050'>";
   echo "<tr><td background='".THEME."images/cellpic2.gif' bgcolor='#202734' height='24'><font class='head-title'>$title</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td class='main-body'>n";
}

// Close table end
function closetable() {
   echo "</td></tr></table>n";
}

function openside($title) {

   echo "<table border='0' style='border: 1px solid #404050' cellspacing='1' width='100%' cellpadding='3'><tr>";
   echo "<td height='24' width='100%' background='".THEME."images/cellpic3.gif'>";
   echo "<img border='0' src='".THEME."images/small_arrow.gif' hspace='3'><font class='block-title'>$title</font>";
   echo "</td></tr>";
   echo "<tr><td bgcolor='#404050' class='side-body' width='100%'>";
}

function closeside() {
   echo "</td></tr></table>";

}


?>


style.css
/* Based on the original Style Sheet for the Chalet Theme for PHP-Fusion version 5.00
Edited by Brimstone - http:/www.lorkan.com/fusion - last updated 22-12-04 */

/* The content of the posts (body of text) */
body {
   font-family:Verdana,Tahoma,Arial,Sans-Serif;
   font-size:10px;
   padding:0px 0px 0px 0px;
   color: #D7DCE9;
   background-color: #202734;
   scrollbar-3dlight-color:#77778E;
   scrollbar-arrow-color:#C3C1B3;
   scrollbar-darkshadow-color:#414350;
   scrollbar-face-color:#2C3341;
   scrollbar-highlight-color:#3C4048;
   scrollbar-shadow-color:#4A566E;
   scrollbar-track-color:#626771;
}

/* General page style */
.bodyline      {background: #202734;color:#D7DCE9;border:1px solid #92A382}
a         {color:#A0B0CF; text-decoration:none;font-size:10px;}
a:hover      {color:#00A7E5; text-decoration:none;}
a.side      {color:#A0B0CF; text-decoration:none;font-size:10px;}
a:hover.side   {color:#00A7E5; text-decoration:none;}
a.white      {color:#BCC0C9; text-decoration:none;font-size:10px;font-weight:bold;}
a:hover.white   {color:#00A7E5; text-decoration:none;}
form         {margin:0px 0px 0px 0px;}
hr         {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
hr.side-hr      {height: 0px; border: solid #CCCCCC 0px; border-top-width: 1px;}
td         {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;}
pre         {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:9px;}
.alt         {color:#ADA899;}
.white-header   {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#EFEFEF;background-color:#999386;
         padding:4px; border-top:#404050 1px solid; border-bottom:#404050 1px solid;}

.full-header   {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#EFEFEF;background-color:#999386;}
.button      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#D7DCE9;background-color:#4A566E;
         border:1px #64647E solid;}
   
.textbox      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px; color:#D7DCE9;background-color:#2C3444;
         border:1px #525266 solid;}
.visits      {color:#A0B0CF; text-decoration:none; FONT-WEIGHT: bold;font-size:10px;}
.main-body      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:11px; color:#D7DCE9; background-color:#181C27; padding:3px 4px 3px 4px;}
.side-body      {background-image:url(images/back.jpg);font-size:10px; color:#A3A6AA; padding:4px 4px 6px 4px;}
.main-bg      {background-color:#202734;}
.border      {border-width:0px 1px 1px 1px;border-color:#404050;border-style:solid;}
.news-category {
border : 0 none;
float : left;
margin-left : 0;
margin-right : 5px;
margin-top : 3px;
margin-bottom : 0;
}
.news-footer   {font-size:9px;font-weight:normal; color:#9A9AB0;background-color:#3E4453; padding:4px 4px 4px 4px;}
.capmain      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold;
         border-width:1px 1px 1px 1px;border-color:#404050;border-style:solid;
         color:#B78E00; height:24px; padding:2px 2px 2px 2px;}

.copyrights      {background: none; COLOR: #FFFDF0; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.tiny         {background: none; COLOR: #F4F1BF; FONT-SIZE: 10px; FONT-WEIGHT: normal; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.title       {background: none; COLOR: #ffffff; FONT-SIZE: 11px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
.block-title   {BACKGROUND: none; COLOR: #C3C1B3; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica}
.head-title    {background: none; COLOR: #DBDBDB; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: left}
.date         {background: none; COLOR: #BCC0C9; FONT-SIZE: 10px; FONT-WEIGHT: bold; FONT-FAMILY: Verdana, Helvetica; TEXT-DECORATION: none}
img         {border: 0px;}
.capleft      {width:2px;height:20px;}
.capright      {width:2px;height:20px;}
.scapmain      {font-family:Verdana,Tahoma,Arial,Sans-Serif; font-size:10px;font-weight:bold; color:#D7DCE9; height:19px; padding:0px 2px 0px 2px;
         border-width:1px 0px 1px 0px;border-color:#404050 #404050 #404050 #404050;border-style:solid;}

.tbl-border      {background-color:#404050;}
.tbl         {font-size:11px; padding:3px 4px 3px 4px;}
.tbl1         {font-size:11px; color:#D7DCE9; background-color:#181C27; padding:4px;}
.tbl2         {font-weight:bold; font-size:11px; color:#C3C1B3; background-color:#181C27; padding:4px;}

/* Forum header*/
.forum-caption   {font-size:10px;font-weight:bold; color:#DBDBDB;background-color:#181C27; height:24px; padding:0px 4px 2px 4px;
         background-image:url(images/cellpic3.gif);background-repeat:repeat-x;border-width:1px 1px 1px 1px;border-color:#404050 #404050 #404050 #404050;border-style:solid;}

/* Quote blocks */
.quote      {color:#E0D8BA;background-color:#2C3444; padding:2px;   margin:0px 20px 0px 20px; border:1px #404050 solid;}

/* Voting Poll */
.poll         {height:12px; border:1px #6A6A86 solid;}
.comment-name   {font-weight:bold; color:#E7E4DA;}

/* This is for the Shoutbox */
.shoutboxname   {font-weight:bold; color:#ffddaa;}
.shoutbox      {color:#CFCFCF;}
.shoutboxdate   {font-size:9px; color:#ADA899;}
.small      {font-size:9px; font-weight:normal;}
.small2      {font-size:9px; font-weight:normal; color:#ADA899;}
.side-small      {font-size:10px; font-weight:normal; color:#fff;}
.side-label      {background-color:none; font-weight:normal; color:#DBDBDB; padding:2px;}

/* This is for the Photo Gallery */
.gallery      {padding: 16px 0px 8px 0px;}
.gallery img   {border: 1px solid #404050; filter: gray;}
.gallery:hover img   {border: 1px solid #4E79F3; filter: none;}
img.activegallery   {border: 1px solid #404050; filter: none;}

.forumline      {border:1px #404050 solid;}
.forumcat      {font-size:11px; font-weight:bold; color:#C3C1B3;}

.side-border-left {
   padding:0px 10px 0px 10px;
   width: 210px;
}
 
.side-border-right {
   padding:0px 10px 0px 10px;
   width: 210px;
}


.sub-header ul{
   margin: 0;
   padding: 0;
}

.sub-header ul li{
   display: inline;
}

.sub-header ul li.first-link .bullet{
   display: none;
}

.center {
   margin: 0 auto;
}

.video-responsive{
 overflow:hidden;
 padding-bottom:56.25%;
 position:relative;
 height:0;
}
.video-responsive iframe{
 left:0;
 top:0;
 height:100%;
 width:100%;
 position:absolute;
}
Edited by zimi27 on 07-02-2022 22:52,
0 replies

4 posts

F
Falk
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
answered
Super Admin

Not sure what theme you use there, it has a definition. define("THEME_WIDTH", "100%");
But it seems to not have been used in code. You can try set first table with to 80% instead. In worst case you need to do a wrapper. Depends how it all responds.
Edited by Falk on 10-02-2022 03:23,
0 replies
Z
zimi27
Z
zimi27 10
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

@Falk I've checked it before, it doesn't do anything.
I guess I'll delegate it to someone.
0 replies
J
jikaka
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
answered
Veteran Member

Are there any other themes on the tables?
I would not recommend using these)))
0 replies
Z
zimi27
Z
zimi27 10
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions
answered
Junior Member

No
0 replies

Labels

Statistics

  • Views 0 views
  • Posts 4 posts
  • Votes 0 votes
  • Topic users 3 members

3 participants

F
F
Falk 131
Need help?, Having trouble?
• View our Documentation for Guides, Standards and Functions
• Name and Organize your Topics and Content correctly in the corresponding Forums for best support results
• Attaching Log Files and Screenshots when reporting issues will help
• Provide with an URL to live example if one exists
• Please read the How to Report an Error post
• Please read and comply with the Code of Conduct

(¯·._.·(¯°·._.·°º*[ Project Manager ]*º°·._.·°¯)·._.·¯)
  • Super Admin, joined since
  • Contributed 6,201 posts on the community forums.
  • Started 639 threads in the forums
  • Answered 11 questions
J
J
jikaka 10
www.rusfusion.ru - russian nss
  • Veteran Member, joined since
  • Contributed 946 posts on the community forums.
  • Started 82 threads in the forums
Z
Z
zimi27 10
  • Junior Member, joined since
  • Contributed 18 posts on the community forums.
  • Started 8 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet