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?

Align

Asked Modified Viewed 3,053 times
L
luxkas
L
luxkas 10
Sorry, My English Bad... :|
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
asked
Newbie

Hi.. I have question...

img247.imageshack.us/img247/6178/pvzzzt0.jpg

This my navigation panel, i want all web links aling to left side opposed center..
What file edit and change align?
0 replies

5 posts

J
Josso
J
Josso 10
–––
Without faith, nothing is possible. With it, nothing is impossible
  • Senior Member, joined since
  • Contributed 309 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

Can we see your theme.php ? :)
0 replies
B
Basti
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
answered
Veteran Member

Next time please use our Themes Site for Support Requests, which are related to Themes.

http://themes.php-fusion.co.uk/
0 replies
L
luxkas
L
luxkas 10
Sorry, My English Bad... :|
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions
answered
Newbie

<?php
//************************************************************************************************************************//
// Theme Name: Void ResurrectionTheme for PHPFusion 7.00                  
// Theme Design: by: SoulSmasher (www.soulsmasher.net) & Pher-d (www.pher-d.net)           
// version 2.0
//************************************************************************************************************************//
if (!defined("IN_FUSION")) { die("Access Denied"); }
require_once INCLUDES."theme_functions_include.php";

define("THEME_WIDTH", "1000");
define("THEME_BULLET", "<img src='".THEME."images/small_arrow.gif' width='4' height='7' alt='small_arrow' />");
define("DIVIDER", " <img src='".THEME."images/divider.gif' alt='divider' width='4' height='4' /> ");

//v7 sublinks function is a bit more for this, so taken from v6 and tweaked
function thesublinks($sep="&middot;",$class="") {
   $i = 0; $res = "";
   $sres = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' AND ".groupaccess('link_visibility')." AND link_url!='---' ORDER BY link_order ASC");
   if (dbrows($sres)) {
      while($sdata = dbarray($sres)) {
               if ($i != 0) { $res .= " ".$sep."\n"; } else { $res .= "\n"; }
               $link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
               $link_class = $class ? " class='$class'" : "";
               if (strstr($sdata['link_url'], "http://") || strstr($sdata['link_url'], "https://")) {
                  $res .= "<a href='".$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
               } else {
                  $res .= "<a href='".BASEDIR.$sdata['link_url']."'".$link_target.$link_class.">".$sdata['link_name']."</a>";
               }
            
            $i++;
      }
   }
   if ($i != 0) { return $res; } else { return "&nbsp;"; }
}

function render_page($header_content) {

global $settings, $main_style;
   //Header
   echo "<div align='center' style='width: ".THEME_WIDTH."px;'>\n"; //main div
   echo "<script src='".THEME."grade.js' language='Javascript' type='text/javascript'></script>\n";
   echo "<table width='".THEME_WIDTH."' cellspacing='0' cellpadding='0' border='0' align='center' id='main'>\n";
   echo "<tr><td align='center' width='100%'>\n
      <img src='".THEME."images/banner.jpg' width='1000' height='200' alt='header' />\n
      </td></tr></table>\n\n";
  //sublinks
   echo "<table width='".THEME_WIDTH."' border='0' cellspacing='0' cellpadding='0'><tr>\n";
   echo "<td align='center' style='height: 26px;' class='cellpic'>".thesublinks(DIVIDER)."\n";
   echo "</td></tr></table>";
   
   //Content
   echo "<table cellpadding='0' cellspacing='0' width='".THEME_WIDTH."'>\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 "<div id='footer'>";
   echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'><tr>";
   echo "<td style='color: #c0c0c0; font-weight: bold;'>".stripslashes($settings['footer'])."</td></tr>\n<tr>\n";
   echo "<td class='footer' style='vertical-align: middle'>";
   
   
   echo "<table cellpadding='0' cellspacing='0' width='100%'><tr>";
   echo "<td width='42%'>".showcopyright()."</td>\n";
   echo "<td align='center' width='16%'><strong>".showcounter()."</strong></td>\n";
   echo "<td width='42%' align='right'>";
   echo "</td>";
   
   echo "</tr></table>\n";
   
   
   echo "</td></tr></table>\n";
   echo "</div>"; //for footer
   
   echo "</div>"; //main div
}


function render_news($subject, $news, $info) {
   
global $locale;
   
   echo "<table cellspacing='0' width='100%' cellpadding='3'><tr>";
   echo "<td class='capmain'>$subject</td>";
   echo "</tr></table>";
   
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border'><tr>";
   echo "<td class='main-body'>$news</td></tr></table>";
   
   echo "<table width='100%' cellpadding='0' cellspacing='0'><tr>";
   echo "<td style='height: 24px;' align='center' class='news-footer'>";
   echo newsposter($info,"&middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);
   echo "</td></tr></table>\n";
}

function render_article($subject, $article, $info) {
   
   echo "<div class='capmain'>$subject</div>\n";
   echo "<div class='main-body floatfix'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</div>\n";
   echo "<div class='news-footer'>\n";
   echo articleposter($info,"&middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);
   echo "</div>\n";
}

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

   echo "<table width='100%' cellpadding='2' cellspacing='1' style='border: 1px solid #404050'>";
   echo "<tr><td style='background-image: url(".THEME."images/cellpic2.jpg); background-color: #202734; height: 24px;'><font class='head-title'>&nbsp;$title</font></td>";
   echo "</tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border tablebreak'><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 width='100%' style='background-image: url(".THEME."images/cellpic3.jpg); height: 24px;'>";
   echo "<font class='block-title'>$title</font>";
   echo "</td></tr></table>";
   echo "<table width='100%' cellpadding='0' cellspacing='0' class='border tablebreak'>
      <tr><td class='side-body' width='100%' >";
}

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

?>
0 replies
S
starefossen
S
www.postexus.com - Follow Postexus on Facebook.
  • Senior Member, joined since
  • Contributed 359 posts on the community forums.
  • Started 20 threads in the forums
answered
Senior Member

You'll need the CSS file, not the theme.php file Josso!
0 replies
J
Josso
J
Josso 10
–––
Without faith, nothing is possible. With it, nothing is impossible
  • Senior Member, joined since
  • Contributed 309 posts on the community forums.
  • Started 1 thread in the forums
answered
Senior Member

@Stare:
Not neccesary...

One theme, I converted from v6 -> v7 didn't work, cause of two align='center':
<table align='center' ...>
<table ... align='center'>
</table>
</table>
0 replies

Category Forum

Themes Support

Labels

None yet

Statistics

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

4 participants

S
S
www.postexus.com - Follow Postexus on Facebook.
  • Senior Member, joined since
  • Contributed 359 posts on the community forums.
  • Started 20 threads in the forums
J
J
Josso 10
–––
Without faith, nothing is possible. With it, nothing is impossible
  • Senior Member, joined since
  • Contributed 309 posts on the community forums.
  • Started 1 thread in the forums
B
B
Basti 10
[PHP-Fusion Crew Member & Admin from June 2008 - December 2010]

http://basti2web.de - Support Site for my infusions
  • Veteran Member, joined since
  • Contributed 1,099 posts on the community forums.
  • Started 32 threads in the forums
L
L
luxkas 10
Sorry, My English Bad... :|
  • Newbie, joined since
  • Contributed 9 posts on the community forums.
  • Started 4 threads in the forums
  • Started this discussions

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet