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?

Help with width with theme

Asked Modified Viewed 5,462 times
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
asked
Newbie

Hi all i have a theme i want to use with php-fusion.. i have the right width i want to use but when i reuploaded the theme.php the whole template goes to the left?

Anyone help with me my site is.. www.southcoaststorms.co.uk if you want see what happned.

Thanks.
0 replies

20 posts

C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Hi there,

Paste the theme.php here using the code bb code please and I will fix it for you?
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

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

define("THEME_BULLET", "<span class='bullet'>&middot;</span>");

require_once INCLUDES."theme_functions_include.php";

function render_page($license=false) {
   
   global $settings, $main_style, $locale;

   //Header
   echo "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td class='full-header'>\n".showbanners()."</td>\n";
   echo "</tr>\n</table>\n";
   
   echo "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";
   echo "<td align='right' class='sub-header'>".showsubdate()."</td>\n";
   echo "<td class='sub-header-right'></td>\n";
   echo "</tr>\n</table>\n";
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='65%' class='$main_style'>\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 "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td align='left' class='sub-header'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>\n";
   echo "<td align='right' class='sub-header'>".showcounter()."</td>\n";
   echo "<td class='sub-header-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
   if (!$license) { echo "<br /><br />\n".showcopyright(); }
   echo "</td>\n";
   echo "</tr>\n</table>\n";

}

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

   echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".$news."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer middle-border'>\n";
   echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "<td style='height:5px;background-color:#BDD3E7;'></td>\n";
   echo "</tr>\n</table>\n";

}

function render_article($subject, $article, $info) {
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$subject."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='spacer'>\n<tr>\n";
   echo "<td class='main-body middle-border'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td>\n";
   echo "</tr>\n<tr>\n";
   echo "<td align='center' class='news-footer'>\n";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</td>\n</tr>\n</table>\n";

}

function opentable($title) {

   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='capmain-left'></td>\n";
   echo "<td class='capmain'>".$title."</td>\n";
   echo "<td class='capmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
   echo "<td class='main-body'>\n";

}

function closetable() {

   echo "</td>\n";
   echo "</tr><tr>\n";
   echo "<td style='height:5px;background-color:#BDD3E7;'></td>\n";
   echo "</tr>\n</table>\n";

}

function openside($title, $collapse = false, $state = "on") {

   global $panel_collapse; $panel_collapse = $collapse;
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'>\n<tr>\n";
   echo "<td class='scapmain-left'></td>\n";
   echo "<td class='scapmain'>$title</td>\n";
   if ($collapse == true) {
      $boxname = str_replace(" ", "", $title);
      echo "<td class='scapmain' align='right'>".panelbutton($state, $boxname)."</td>\n";
   }
   echo "<td class='scapmain-right'></td>\n";
   echo "</tr>\n</table>\n";
   echo "<table cellpadding='0' cellspacing='0' width='100%' class='spacer'>\n<tr>\n";
   echo "<td class='side-body'>\n";   
   if ($collapse == true) { echo panelstate($state, $boxname); }

}

function closeside() {
   
   global $panel_collapse;

   if ($panel_collapse == true) { echo "</div>\n"; }   
   echo "</td>\n</tr>\n</table>\n";

}
?>
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Hey,

Ok, See this...

 //Header
   echo "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";


Change to this...

//Header
   echo "<table cellpadding='0' cellspacing='0' align='center' width='65%'>\n<tr>\n";
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

hmm that only moved the logo
0 replies
L
Lippke
L
Lippke 10
- Lippke
  • Member, joined since
  • Contributed 168 posts on the community forums.
  • Started 35 threads in the forums
answered
Member

It is because you also must do it here

echo "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";


Change to this

echo "<table cellpadding='0' cellspacing='0' align='center' width='65%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td class='sub-header'>".showsublinks(" ".THEME_BULLET." ", "white")."</td>\n";


here

//Content
   echo "<table cellpadding='0' cellspacing='0' width='65%' class='$main_style'>\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";


Change to this

//Content
   echo "<table cellpadding='0' cellspacing='0' align='center' width='65%' class='$main_style'>\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";


here
//Footer
   echo "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td align='left' class='sub-header'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>\n";
   echo "<td align='right' class='sub-header'>".showcounter()."</td>\n";


Change to this

//Footer
   echo "<table cellpadding='0' cellspacing='0' align='center' width='65%'>\n<tr>\n";
   echo "<td class='sub-header-left'></td>\n";
   echo "<td align='left' class='sub-header'>".sprintf($locale['global_172'], substr((get_microtime() - START_TIME),0,4))."</td>\n";
   echo "<td align='right' class='sub-header'>".showcounter()."</td>\n";


and here

echo "<table cellpadding='0' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
   if (!$license) { echo "<br /><br />\n".showcopyright(); }


Change to this

echo "<table cellpadding='0' align='center' cellspacing='0' width='65%'>\n<tr>\n";
   echo "<td align='center' class='main-footer'>".stripslashes($settings['footer']);
   if (!$license) { echo "<br /><br />\n".showcopyright(); }
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

LIppke got it. Sorry, I am a bit sick today, my mind is not on the job at the min, need to sleep.
0 replies
L
Lippke
L
Lippke 10
- Lippke
  • Member, joined since
  • Contributed 168 posts on the community forums.
  • Started 35 threads in the forums
answered
Member

Quote

Craig wrote:

LIppke got it. Sorry, I am a bit sick today, my mind is not on the job at the min, need to sleep.


Bad to hear, speedy recovery Craig:)
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Thanks lippke and again sorry Buff3r. ;)
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Its fine and thanks for helping as for image do i do as for what you posted first?
0 replies
L
Lippke
L
Lippke 10
- Lippke
  • Member, joined since
  • Contributed 168 posts on the community forums.
  • Started 35 threads in the forums
answered
Member

Do you mean the logo?
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

yea
0 replies
L
Lippke
L
Lippke 10
- Lippke
  • Member, joined since
  • Contributed 168 posts on the community forums.
  • Started 35 threads in the forums
answered
Member

Just do like Craig told you to ind post #4
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

ok cheers guys
0 replies
L
Lippke
L
Lippke 10
- Lippke
  • Member, joined since
  • Contributed 168 posts on the community forums.
  • Started 35 threads in the forums
answered
Member

Cheers
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Hi guys ive just noticed the left side ive circled is straight and the right side has curved edges any reason why?
Buff3r attached the following file:
hmm.jpg [No information available / 0 Downloads]
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Hi,

The reason for that is your missing a style class for the left cap, can you give me a link to that site please or show me what you have got in your css.
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Site is www.southcoaststorms.co.uk
0 replies
C
Craig
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
answered
Fusioneer

Your style is missing for capmain-left...

.capmain-left {
}


Change it to...

.capmain-left {
    background-color: #555555;
    background-image: url("images/cap-left.gif");
    height: 25px;
    width: 3px;
}
0 replies
B
Buff3r
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions
answered
Newbie

Cheers worked :)
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

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

3 participants

C
C
Craig 14
  • Fusioneer, joined since
  • Contributed 4,462 posts on the community forums.
  • Started 212 threads in the forums
L
L
Lippke 10
- Lippke
  • Member, joined since
  • Contributed 168 posts on the community forums.
  • Started 35 threads in the forums
B
B
Buff3r 10
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 1 thread in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet