pragmaMx Support Forum

pragmaMx => Themes & Design => Thema gestartet von: g-access in 11 September 2006, 12:48:58

Titel: Nuke Theme - keine linken & rechten Blöcke ...
Beitrag von: g-access in 11 September 2006, 12:48:58
Hallo,

ich will mit einer Seite von phpNuke auf pragmaMx umsteigen und habe ein vorhandenes Theme.
Diese kann ich auch ohne Fehlermeldungen einbinden - allerdings zeigt es mir nicht die
linken und rechten Blöcke an - in der theme.php finde ich aber keinen Fehler.

Hier die theme.php :
<?php

//Color for Message Background
$bgcolor1 "#F4F4F4";
//Color for Message Border
$bgcolor2 "#F4F4F4";
$bgcolor3 "#F4F4F4";
$bgcolor4 "#F4F4F4";
$textcolor1 "#000000";
$textcolor2 "#000000";
$linkcolor1 "#666666";

function 
OpenTable() {
    global 
$bgcolor1$bgcolor2;
    echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"10\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo 
"<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function 
CloseTable() {
    echo 
"</td></tr></table></td></tr></table>\n";
}

function 
OpenTable2() {
    global 
$bgcolor1$bgcolor2;
    echo 
"<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo 
"<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function 
CloseTable2() {
    echo 
"</td></tr></table></td></tr></table>\n";
}

function 
FormatStory($thetext$notes$aid$informant) {
    global 
$anonymous;
    if (
$notes != "") {
$notes "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
$notes "";
    }
    if (
"$aid== "$informant") {
echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
if($informant != "") {
    $boxstuff "<a href=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
} else {
    $boxstuff "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

/************************************************************/
/* Function themeheader()                                   */
/************************************************************/

function themeheader() {
global $user$sitename$cookie$prefix$dbi;
cookiedecode($user);
    
$username $cookie[1];
    if (
$username == "") {
        
$username "Anonymous";
    }
 if (
$username == "Anonymous") {
        
$theuser "<form action=\"modules.php?name=Your_Account\" method=\"post\"><font size=\"1\" face=\"verdana\"><b>User:</b><input type=\"text\" name=\"username\" value style=\"width:90;height:12;FONT-SIZE: 9px;\"><b>Pass:</b><input type=\"password\" name=\"user_password\" value style=\"width:90;height:12;FONT-SIZE: 9px;\"><input type=\"hidden\" name=\"op\" value=\"login\"><input type=\"image\" value=\"login\" src=\"themes/cityinfo24/images/login.gif\" border=\"0\"></form>\n";
    } else {
        
$theuser "<font face=\"arial\" color=\"#000000\" size=\"2\">&nbsp;<b>$username!</b></font><TD valign=\"baseline\"  WIDTH=30 HEIGHT=12><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"themes/cityinfo24/images/logout.gif\" border=\"0\"></a></TD>\n";
    }
echo 
"<BODY BGCOLOR=\"#FFFFFF\">";
echo 
"<TABLE WIDTH=\"800\" BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" align=\"center\">"
."<TR>"
."<TD ROWSPAN=\"2\" width=\"234\" height=\"142\"><a href=\"http://www.cityinfo24.de\"><IMG SRC=\"themes/cityinfo24/Bilder/logo-cityinfo24.jpg\" border=\"0\" WIDTH=\"234\" HEIGHT=\"142\" ALT=\"Velbert Mettmann Ratingen Monheim Heiligenhaus Hilden Haan Erkrath Langenfeld Wülfrath Informationsportal Kreis Mettmann Branchenbuch Redaktion Auto Immobilien\"></a></TD>"
."<TD align=\"right\" background=\"themes/cityinfo24/Bilder/header_info_02.jpg\" height=\"77\" width=\"566\"><iframe src=\"banners.php\" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no height=62 width=470></iframe><a href=\"http://www.united-for-peace.org\" target=\"_blank\"><IMG SRC=\"themes/cityinfo24/Bilder/taube_w.gif\" WIDTH=\"90\" HEIGHT=\"59\" border=\"0\" ALT=\"www.united-for-peace.org\"></a></TD>"
."</TR>"
."<TR>"
."<TD height=\"65\" background=\"themes/cityinfo24/Bilder/header_info_03.jpg\" width=\"566\"></TD>"
."</TR>"
."<TR>"
."<TD COLSPAN=\"2\" height=\"48\" background=\"themes/cityinfo24/Bilder/header_info_04.jpg\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"799\" height=\"48\">"
."<param name=\"movie\" value=\"themes/cityinfo24/flash/cityinfomenu.swf\">"
."<param name=\"quality\" value=\"high\">"
."<embed src=\"themes/cityinfo24/flash/cityinfomenu.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" width=\"799\" height=\"48\">"
."</embed>"
."</object></TD>"
."</TR>";

    echo 
"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"f4f4f4\" width=\"800\" align=\"center\">\n"

        
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."<tr><td width=\"100%\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n"
."</td></tr><tr>\n"
;
    
$public_msg public_message();
    echo 
"$public_msg";
    echo 
"</td></tr></table><table width=\"100%\" cellpadding=\"0\" bgcolor=\"F4F4F4\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<td background=\"themes/cityinfo24/Bilder/bloecke_info_10.jpg\" width=\"152\" valign=\"top\">\n";
    
blocks(left);
    echo 
"</td><td align=\"center\" width=\"100%\">\n";

}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global 
$index;
    echo 
"<br>";
    if (
$index == 1) {
echo "</td><td></td><td background=\"themes/cityinfo24/Bilder/Block_info_hinter.jpg\" valign=\"top\" width=\"140\">\n";
 
blocks(right);
    } else {
    echo 
"</td><td></td><td background=\"themes/cityinfo24/Bilder/block_bg_02.gif\" valign=\"top\" width=\"1\"><img src=\"themes/cityinfo24/Bilder/block_bg_02.gif\"\n";
    }
    echo 
"<br><br></td></tr></table>\n"
."<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#666666\" width=\"100%\" bgcolor=\"#CCCCCC\"><tr><td width=\"100%\">"
."<br><center>";
    
footmsg();
    echo 
"</center>";
}


function 
themeindex ($aid$informant$time$title$counter$topic$thetext$notes$morelink$topicname$topicimage$topictext) {
    global 
$anonymous$tipath;
    echo 
"<br>"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#CCCCCC\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#CCCCCC\">\n"
."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#CCCCCC\">\n"
."<img src=\"themes/cityinfo24/images/off.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#CCCCCC\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" bgcolor=\"#F4F4F4\"><br>\n"
."<table border=\"0\" width=\"100%\" bgcolor=\"#F4F4F4\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    
FormatStory($thetext$notes$aid$informant);
    echo 
"</td></tr></table>\n"
."</td></tr></table><br>\n"
."</td></tr><tr><td bgcolor=\"#FFFFFF\" align=\"left\">\n"
        
."&nbsp"
."<b><font class=\"tiny\">"._POSTEDBY." ";
    
formatAidHeader($aid);
    echo 
" "._ON.$time $timezone <br>&nbsp($counter "._READS.")</font>\n"
."<font class=\"content\">$morelink</font></center>\n"
."<img src=\"themes/cityinfo24/images/pixel.gif\" border=\"0\" height=\"10\">"
."</td></tr></table>\n"
."</td></tr></table><br>\n";
}

function 
themearticle ($aid$informant$datetime$title$thetext$topic$topicname$topicimage$topictext) {
    global 
$admin$sid$tipath;
    echo 
"<br>"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
."<img src=\"themes/cityinfo24/images/off.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
."<table border=\"0\" width=\"98%\" bgcolor=\"#FFFFFF\" align=\"center\"><tr><td>\n"
."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    
FormatStory($thetext$notes=""$aid$informant);
    echo 
"</td></tr></table>\n"
."</td></tr></table><br>\n"
."</td></tr></table>\n"
."</td></tr></table><br><br>\n";
}

       function 
themesidebox($title,$content,$blocktemplate) {
if ($blocktemplate == "") {
$blocktemplate "default.html";
    }
    $tmpl_file "themes/cityinfo24/blocks+/$blocktemplate";
$thefile implode(""file($tmpl_file));
    
    $thefile addslashes($thefile);
     
    $thefile "\$r_file=\"".$thefile."\";";
   
    eval($thefile);
   
    print $r_file;
}

?>


Vielleicht kann daran Jemand ersehen wo der Fehler liegt ...


Dank und Gruß
Alex
Titel: Re: Nuke Theme - keine linken & rechten Blöcke ...
Beitrag von: patricia in 11 September 2006, 13:01:40
So wie ich das auf den ersten Blick sehe, kann es nur an der themesidebox() function
liegen. Fehlt vielleicht die "default.html" Datei, die hier für das Aussehen der linken
und rechten Blöcke verantwortlich ist ?  ::)
Titel: Re: Nuke Theme - keine linken & rechten Blöcke ...
Beitrag von: g-access in 11 September 2006, 13:07:29
Hallo Patricia,

nein die ist vorhanden - aber danke für Deine Mühe ...



Gruß Alex
Titel: Re: Nuke Theme - keine linken & rechten Blöcke ...
Beitrag von: patricia in 11 September 2006, 13:26:00
Pfad überprüft ? Den Namen einens Unterordner mit einem "+"-Zeichen  zu versehen halt ich sowieso
nicht für glücklich ausgewählt  :D
Titel: Re: Nuke Theme - keine linken & rechten Blöcke ...
Beitrag von: g-access in 11 September 2006, 13:41:45
Zitat von: patricia in 11 September 2006, 13:26:00
Pfad überprüft ? Den Namen einens Unterordner mit einem "+"-Zeichen  zu versehen halt ich sowieso
nicht für glücklich ausgewählt  :D

Hallo Patricia,

tja das hat mein Vorgänger verzapft ...
Es war der Pfad - DANKE ;)


Gruß Alex
Titel: Re: Nuke Theme - keine linken & rechten Blöcke ...
Beitrag von: Andi in 11 September 2006, 19:03:20
Moin :)

wenn das eine frische Konvertierung von nuke war, dann schau mal spasseshalber, ob überhaupt noch Blöcke aktiviert sind. Das Upgradescript deaktiviert nämlich vorsorglich alle ihm unbekannten Blöcke....