Besøgende
Gæster online: 11
Brugere online: 0
Antal brugere: 1,686
Ikke aktiverede: 0
Nyeste bruger: Carstens
10 nyeste brugere: Klik her
 57,467,827 Unikke besøg
11367 Besøg pr. dag
Synes godt om
Tilfældige Avatars
387 brugere (23.01%)
Har allerede en Avatar.
Artikler
Nyeste artikler
V7 versions-liste 18648
V6/V7-identifier 23352
Tilfældigt tema på ... 18858
Hvordan tælles unik... 20038
Ens registreringssi... 227713
Populære artikler
Ens registreringssi... 227713
Kør PHP-Fusion loka... 44521
Tilfældigt banner/l... 33730
Flytning af PHP-Fus... 33639
Opgradering af PHP-... 28379
Info om artikler
Artikler i databasen: 9
Læst antal gange: 448878
Downloads
Nyeste downloads
Danske sprogfiler ... 883
Avatar in viewforu... 1359
Latest Blacklisted... 1395
Search in Shouts 1298
Users Websites Pan... 1286
Populære downloads
DeLuxe Dropdown Me... 4675
CSS Dropdown Menu ... 3257
Installations-vide... 3032
PHP-Fusion v7.00.0... 2935
Forum Pack v1.0 2721
Info om downloads
Filer i databasen: 180
Hentet antal gange: 172600
Statistik mm.
Se indlæg
PHPFusion-Tips.dk :: PHP-Fusion v7.02.XX :: Temaer
Hvem er her? 1 gæst(er)
 Udskriv debat
Centrering af thema
dlgryf
#1 Udskriv indlæg
Lagt på d. 18-09-2011 06:26
Brugers avatar

Junior bruger


Antal indlæg: 24
Tilmeldt: 16.09.11
Sidst set: 26.09.11
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Hvordan centrerer jeg et tema på siden?

/Dlgryd
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#2 Udskriv indlæg
Lagt på d. 18-09-2011 11:31
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 21.11.19
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Det kommer an på hvilket tema her er tale om - post evt. indholdet af filen theme.php her.
Til forsiden  Til toppen af forum  Til bunden af forum
dlgryf
#3 Udskriv indlæg
Lagt på d. 18-09-2011 12:36
Brugers avatar

Junior bruger


Antal indlæg: 24
Tilmeldt: 16.09.11
Sidst set: 26.09.11
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Det er PurpleNurple:

Download kildekode  Kode
<?
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|    Purple-Nurple Theme for PHP-Fusion v6    |
|---------------------------------------------|
| author: Lorkan Themes - Shedrock © 2005     |
| web: http://phpfusion.org                   |
| email: webmaster@phpfusion.org              |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

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 "<table width='80%' cellspacing='0' cellpadding='0' border='0'>";
   echo "<tr><td align='center'>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif'><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td width='100%'><table height='50' cellSpacing='0' cellPadding='0' width='100%' bgColor='#3B3E51' border='0'><tr>";
   echo "<td vAlign='top'><table cellSpacing='0' cellPadding='0' width='100%' bgColor='#3B3E51' border='0'><tr>";
   echo "<td><table cellSpacing='0' cellPadding='0' width='100%' border='0'></tr></table></td></tr>";
   echo "<td height='68' style='padding-left:6px; 'background bgColor='#3B3E51'><img src='".THEME."images/logo.jpg'></td>";
   echo "<td align='right' style='padding-right:6px;'>";
   //Banner code below. Remember to remove the //
   //echo "<td>".showbanners()."</td>";
   //End banner code.
   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='99%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='99%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='navcell' width='100%' colspan='2'></td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td align='left' class='navcell' width='60%'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo " <img border='0' vspace='1' src='".THEME."images/divider.gif' alt=''>\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 ? " " : "")."";
   echo "</td><td align='right' class='timecell' width='40%'>";
   echo "<div id='Clock'></div>";
   echo "<script type='text/javascript'>
      <!--
      var DayNam = new Array(
      'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
      var MnthNam = new Array(
      'January','February','March','April','May','June','July','August','September','October','November','December');
      //-->
      </script>";
   echo "<script type='text/javascript' src='".THEME."/js/clock.js'></script>";


   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='99%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'</td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo"</td></tr>";
   echo "</table> ";
   echo "<td background='".THEME."images/right-side.gif' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<img src='".THEME."images/blank.gif' width='1' height='5' alt=''>";

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

// End Site Links and Time Script

//Content
   echo "<table cellpadding='0' cellspacing='0' class='border' width='".THEME_WIDTH."' align='left'>\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 cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='footer-body' width='100%'>".stripslashes($settings['footer'])."\n";
   echo "</td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td align='center' class='footer-body' width='100%'>";
   echo showcopyright();
   echo "<br><br>Purple-Nurple by: <a target='_blank' href='http://phpfusion.org'><img src='".THEME."images/fthemes.gif' alt='' style='vertical-align:middle;'></a><br>Converted to v7 by <a target='_blank' href='http://www.kaj-max.dk'>WhoCare</a><br>";
   echo "<br><strong>";
   echo showcounter().'';
   echo "</strong>";
   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'</td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
}

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

global $locale;
   
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td width='100%'><table height='50' cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td vAlign='top'><table cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td colspan='2'><table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
   echo "<td class='panel-main'>$subject</td></tr>";
   echo "<tr><td class='news-body'>$news</td></tr></table>";
   echo "<tr><td align='center' class='infobar' vAlign='top' background bgColor='#292B3C'>";
      echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);echo "</td></tr></table></td></tr></table></td>";
   echo "<td background='".THEME."images/right-side.gif' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table><br>";
}

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

global $locale;
   
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td width='100%'><table height='50' cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td vAlign='top'><table cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td colspan='2'><table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
   echo "<td class='panel-main'>$subject</td></tr>";
   echo "<tr><td class='news-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table>";
   echo "<tr><td align='center' class='infobar' vAlign='top' background bgColor='#292B3C'>";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);echo "</td></tr></table></td></tr></table>";
   echo "<td background='".THEME."images/right-side.gif' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table><br>";
}

function opentable($title) {

   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td><img alt='' src='".THEME."images/panel-left.gif' width='53' height='17'></td>";
   echo "<td width='100%' background='".THEME."images/panel-mid.gif' alt=''><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td><img alt='' src='".THEME."images/panel-right.gif' width='53' height='17'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='panel-main' width='100%'>$title</td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closetable() {

   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td><img alt='' src='".THEME."images/bottom-left.gif' width='53' height='17'></td>";
   echo "<td width='100%' background='".THEME."images/bottom-bg.gif' alt=''><img height='1' alt='' src='".THEME."images/spacer.gif' width='100%'></td>";
   echo "<td><img src='".THEME."images/bottom-right.gif' width='53' height='17' alt=''></td></tr></table><br>";
}

function openside($title) {
   
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='panel-main' width='100%'>$title</td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closeside() {

   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'</td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table><br>";
}
?>



Kode indsat i kodetags - Smokeman.
Redigeret af Smokeman d. 18-09-2011 13:21
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#4 Udskriv indlæg
Lagt på d. 18-09-2011 13:27
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 21.11.19
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Ok - prøv lige med denne her kode. Kan dog umiddelbart ikke selv teste det, da jeg ikke har resterne af filerne/mapper til temaet selv.
Download kildekode  Kode
<?php
/*--------------------------------------------+
| PHP-Fusion v6 - Content Management System   |
|---------------------------------------------|
| author: Nick Jones (Digitanium) © 2002-2005 |
| web: http://www.php-fusion.co.uk            |
| email: nick@php-fusion.co.uk                |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/
/*--------------------------------------------+
|    Purple-Nurple Theme for PHP-Fusion v6    |
|---------------------------------------------|
| author: Lorkan Themes - Shedrock © 2005     |
| web: http://phpfusion.org                   |
| email: webmaster@phpfusion.org              |
|---------------------------------------------|
| Released under the terms and conditions of  |
| the GNU General Public License (Version 2)  |
+--------------------------------------------*/

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 "<table width='80%' cellspacing='0' cellpadding='0' border='0' align='center'>";
   echo "<tr><td align='center'>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif'><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td width='100%'><table height='50' cellSpacing='0' cellPadding='0' width='100%' bgColor='#3B3E51' border='0'><tr>";
   echo "<td vAlign='top'><table cellSpacing='0' cellPadding='0' width='100%' bgColor='#3B3E51' border='0'><tr>";
   echo "<td><table cellSpacing='0' cellPadding='0' width='100%' border='0'></tr></table></td></tr>";
   echo "<td height='68' style='padding-left:6px; 'background bgColor='#3B3E51'><img src='".THEME."images/logo.jpg'></td>";
   echo "<td align='right' style='padding-right:6px;'>";
   //Banner code below. Remember to remove the //
   //echo "<td>".showbanners()."</td>";
   //End banner code.
   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='99%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='99%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='navcell' width='100%' colspan='2'></td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td align='left' class='navcell' width='60%'>";
   $result = dbquery("SELECT * FROM ".DB_PREFIX."site_links WHERE link_position>='2' ORDER BY link_order");
      if (dbrows($result) != 0) {
      $i = 0;
   while($data = dbarray($result)) {
      if (checkgroup($data['link_visibility'])) {
      if ($data['link_url']!="---") {
      if ($i != 0) { echo " <img border='0' vspace='1' src='".THEME."images/divider.gif' alt=''>\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 ? " " : "")."";
   echo "</td><td align='right' class='timecell' width='40%'>";
   echo "<div id='Clock'></div>";
   echo "<script type='text/javascript'>
      <!--
      var DayNam = new Array(
      'Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
      var MnthNam = new Array(
      'January','February','March','April','May','June','July','August','September','October','November','December');
      //-->
      </script>";
   echo "<script type='text/javascript' src='".THEME."/js/clock.js'></script>";


   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='99%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'</td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo"</td></tr>";
   echo "</table> ";
   echo "<td background='".THEME."images/right-side.gif' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<img src='".THEME."images/blank.gif' width='1' height='5' alt=''>";

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

// End Site Links and Time Script

//Content
   echo "<table cellpadding='0' cellspacing='0' class='border' width='".THEME_WIDTH."' align='left'>\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 cellSpacing='0' cellPadding='0' width='80%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='80%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='footer-body' width='100%'>".stripslashes($settings['footer'])."\n";
   echo "</td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td align='center' class='footer-body' width='100%'>";
   echo showcopyright();
   echo "<br><br>Purple-Nurple by: <a target='_blank' href='http://phpfusion.org'><img src='".THEME."images/fthemes.gif' alt='' style='vertical-align:middle;'></a><br>Converted to v7 by <a target='_blank' href='http://www.kaj-max.dk'>WhoCare</a><br>";
   echo "<br><strong>";
   echo showcounter().'';
   echo "</strong>";
   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='80%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'</td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
}

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

global $locale;
   
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td width='100%'><table height='50' cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td vAlign='top'><table cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td colspan='2'><table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
   echo "<td class='panel-main'>$subject</td></tr>";
   echo "<tr><td class='news-body'>$news</td></tr></table>";
   echo "<tr><td align='center' class='infobar' vAlign='top' background bgColor='#292B3C'>";
      echo newsposter($info," &middot;").newsopts($info,"&middot;").itemoptions("N",$info['news_id']);echo "</td></tr></table></td></tr></table></td>";
   echo "<td background='".THEME."images/right-side.gif' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table><br>";
}

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

global $locale;
   
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td width='100%'><table height='50' cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td vAlign='top'><table cellSpacing='0' cellPadding='0' width='100%' bgColor='#292B3C' border='0'><tr>";
   echo "<td colspan='2'><table cellSpacing='0' cellPadding='0' width='100%' border='0'><tr>";
   echo "<td class='panel-main'>$subject</td></tr>";
   echo "<tr><td class='news-body'>".($info['article_breaks'] == "y" ? nl2br($article) : $article)."</td></tr></table>";
   echo "<tr><td align='center' class='infobar' vAlign='top' background bgColor='#292B3C'>";
   echo articleposter($info," &middot;").articleopts($info,"&middot;").itemoptions("A",$info['article_id']);echo "</td></tr></table></td></tr></table>";
   echo "<td background='".THEME."images/right-side.gif' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'></td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table><br>";
}

function opentable($title) {

   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td><img alt='' src='".THEME."images/panel-left.gif' width='53' height='17'></td>";
   echo "<td width='100%' background='".THEME."images/panel-mid.gif' alt=''><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td><img alt='' src='".THEME."images/panel-right.gif' width='53' height='17'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='panel-main' width='100%'>$title</td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closetable() {

   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td><img alt='' src='".THEME."images/bottom-left.gif' width='53' height='17'></td>";
   echo "<td width='100%' background='".THEME."images/bottom-bg.gif' alt=''><img height='1' alt='' src='".THEME."images/spacer.gif' width='100%'></td>";
   echo "<td><img src='".THEME."images/bottom-right.gif' width='53' height='17' alt=''></td></tr></table><br>";
}

function openside($title) {
   
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='panel-left'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td class='panel-mid' width='100%'><img alt='' src='".THEME."images/spacer.gif' width='1' height='1'></td>";
   echo "<td class='panel-right'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td background='".THEME."images/left-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/left-side.gif' width='8' height='2'></td>";
   echo "<td class='panel-main' width='100%'>$title</td>";
   echo "<td background='".THEME."images/right-side.gif' rowspan='2' alt=''><img alt='' src='".THEME."images/right-side.gif' width='8' height='2'></td></tr>";
   echo "<tr><td class='side-body' width='100%'>";
}

function closeside() {

   echo "</td></tr></table>";
   echo "<table cellSpacing='0' cellPadding='0' width='100%' align='center'><tr>";
   echo "<td class='border-bleft'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td>";
   echo "<td width='100%' class='border-bmain'><img src='".THEME."images/blank.gif' width='1' height='17' alt='' style='display:block'</td>";
   echo "<td class='border-bright'><img src='".THEME."images/blank.gif' width='53' height='17' alt='' style='display:block'></td></tr></table><br>";
}
?>


Til forsiden  Til toppen af forum  Til bunden af forum
dlgryf
#5 Udskriv indlæg
Lagt på d. 18-09-2011 14:09
Brugers avatar

Junior bruger


Antal indlæg: 24
Tilmeldt: 16.09.11
Sidst set: 26.09.11
On/Offline: Offline
Status:
Ingen status er valgt
Dagens humør:
Ikke valgt
 
Perfect
Tak for det.

Mvh
MogensSmile
Til forsiden  Til toppen af forum  Til bunden af forum
Smokeman
#6 Udskriv indlæg
Lagt på d. 19-09-2011 01:28
Brugers avatar

Super Administrator


Antal indlæg: 12134
Tilmeldt: 25.01.08
Sidst set: 21.11.19
On/Offline: Offline
Status:
Startet så småt op igen..
Dagens humør:

 
Ingen problem. Smile
Til forsiden  Til toppen af forum  Til bunden af forum
Spring til debat:
 
Lignende tråde
Debat Forum Svar Nyeste indlæg
Thema´s bredde Temaer 47 12-06-2012 00:46
Centrering af topbanner Temaer 4 13-03-2012 12:36
Transport thema Temaer 9 16-04-2011 21:34
Centrering af logo Temaer 7 02-11-2010 14:19
Centrering af side Temaer 4 27-07-2010 09:44