pragmaMx Support Forum

pragmaMx => Türkçe (Turkish) => Language Specific Support => Tema & Dizayn => Thema gestartet von: Albay am 16 Mai 2008, 01:01:35

Titel: [Çözüldü] PH2BLUE Tehamada Forum ve Resim Galersinde sol blocklarin gözükmemesi
Beitrag von: Albay am 16 Mai 2008, 01:01:35
PH2BLUE Temasi kullaniyorum Forum ve Resim Galersinde sol blocklarin gözükmemesini nasil saglarim.
Titel: Re: PH2BLUE Tehamada Forum ve Resim Galersinde sol blocklarin gözükmemesi
Beitrag von: navruz am 16 Mai 2008, 01:16:22
Merhaba :)
Phphnuke teması galiba. theme.php dosyasındaki kodları yazabilirseniz ne tür bir değişiklik yapmanız gerektiğini yazabilirim.
Titel: Re: PH2BLUE Tehamada Forum ve Resim Galersinde sol blocklarin gözükmemesi
Beitrag von: Albay am 16 Mai 2008, 11:23:42
navruz ilgin icin tesekür ediyorum kodlar bu sekilde.

<?php

//*********************************************************************************************************//
// Theme Name: PH2 Blue (Original Theme by: Pitcher.no - http://pitcher.no)                          
// Theme re-Design by: Lorkan (http://lorkan.com)       
// version 2.0blue                                              
// 
// Lorkan Themes and/or Lorkan is a Registered Organization and holds a copyright with CIPO
// (Canadian Intellectual Property Office)                                                         
// Original Author of file: Lorkan Themes - http://lorkan.com
// Developed by: Lorkan Themes - Simply The Best Themes for Nuke
// Forum Template: Desgined by SubBlue Designs, but ported by: Lorkan Themes for use with PHP-Nuke©
// Copyright © 2004 by Lorkan Themes - All Rights Reserved
// ----------------------------------------------------------------------
// THEME MODIFICATION 
// Users may alter or modify this theme at their own risk,
// but only for their own use. They may also hire Lorkan Themes to modify their own copy of the theme.
// Although users may modify the code for their use,
// modified code may not be resold or distributed,
// without express written permission from Lorkan Themes.
//
// DISPLAY OF COPYRIGHT NOTICES REQUIRED
// All copyright notices used within the scripts that the scripts generate,
// MUST remain intact. Furthermore, these notices must remain visible.
//
// SUPPORT
// Lorkan Themes provide free support on all their theme designs, BUT not on Forum Templates,
// (includes consulting, troubleshooting and fixing problems).
//
// Lorkan Themes is not liable for any products or services offered by means of the theme.
// The user must assume the entire risk of using the program.
//
// Lorkan Themes
// For commercial themes, exclusive themes, visit our Theme Shop http://lorkan.com/modules.php?name=Themes
// For some free themes, visit us at: http://lorkan.com
//*********************************************************************************************************//

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/

$bgcolor1 "#F2F1ED";
$bgcolor2 "#F2F1ED";
$bgcolor3 "#F2F1ED";
$bgcolor4 "#F2F1ED";
$textcolor1 "#004A9D";
$textcolor2 "#FABF0D";

/************************************************************/
/* OpenTable Functions                                      */
/*        */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to      */
/* properly close our tables. The difference is that        */
/* OpenTable has a 100% width and OpenTable2 has a width    */
/* according with the table content                         */
/************************************************************/

function OpenTable() {
    global 
$bgcolor1$bgcolor2;
echo
"<table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\">"
  
"  <tr>"
  
"    <td bgcolor=\"#0A34AA\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"
  
"  <tr>"
  
"    <td>"
  
" <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">"
  
" <tr><td bgcolor=\"#F2F1ED\">"
 
."";
}

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

}

function 
OpenTable2() {
    global 
$bgcolor1$bgcolor2;
echo
"<table width=\"100%\" border=\"0\" cellspacing=\"5\" cellpadding=\"0\">"
  
"  <tr>"
  
"    <td bgcolor=\"#0A34AA\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"
  
"  <tr>"
  
"    <td>"
  
" <table width=\"100%\" border=\"0\" cellpadding=\"4\" cellspacing=\"0\">"
  
" <tr><td bgcolor=\"#F2F1ED\">"
 
."";
}

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

}

/************************************************************/
/* Function formatstory()                                   */
/*                                                          */
/* This function formats the stories on the Homepage        */
/************************************************************/
function FormatStory($thetext$notes$aid$informant$boxstuff) {
    global 
$anonymous;

    if (!empty(
$notes)) {
        
$notes "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
        
$notes "";
    }
    if (
"$aid== "$informant") {
        echo 
"<span class=\"content\" color=\"#868686\">$thetext$notes</span>\n";
    } else {
    if(defined('WRITES')) {
        if(!empty(
$informant)) {
        
if(is_array($informant)) {
            
$boxstuff "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant[0]\">$informant[1]</a> ";
            } else {
            
$boxstuff "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
            }
        } else {
            
$boxstuff "$anonymous ";
        }
        
$boxstuff .= ""._WRITES." \"$thetext\"$notes\n";
        } else {
            
$boxstuff .= "$thetext$notes\n";
        }

        echo 
"<span class=\"content\" color=\"#868686\">$boxstuff</span>\n";
    }
}

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
    global  
$admin$user$banners$sitename$slogan$cookie$prefix$db$nukeurl$anonymous$name$index$blockside;

$thename basename(dirname(__FILE__));
if (!mxIsUser()) { 
$username $GLOBALS['anonymous']; 

else { 
$cookie mxGetUserSession();
$username $cookie[1];
}

    echo 
"<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\" onLoad=\"MM_preloadImages('themes/PH2BLUE/images/header_05_on.jpg','themes/PH2BLUE/images/header_06_on.jpg','themes/PH2BLUE/images/header_07_on.jpg','themes/PH2BLUE/images/header_08_on.jpg','themes/PH2BLUE/images/header_09_on.jpg')\">\n";
    echo
'<script src="themes/PH2BLUE/style/grade.js" language="Javascript"></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>'
;


    if (
$username == "Anonymous") {
        
$theuser "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account&op=new_user\">melde dich an";
    } else {
        
$theuser "&nbsp;&nbsp;Willkommen $username!";
    }
echo
"<table class=\"bodyline\" align=\"center\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">"
  
"<tr><td valign=\"top\">"
  
"<table width=\"100%\" height=\"21\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
  
" <tr>"
  
" <td background=\"themes/PH2BLUE/images/header_top.gif\" width=\"100%\"></td>"
  
" <td><a href=\"index.php\"><img src=\"themes/PH2BLUE/images/header_home.gif\" border=\"0\" alt=\"Home\"></a></td>"
  
" <td><a href=\"modules.php?name=Private_Messages\"><img src=\"themes/PH2BLUE/images/header_contact.gif\" border=\"0\" alt=\"Private Messages\"></a></td>"
  
" <td><a href=\"modules.php?name=Search\"><img src=\"themes/PH2BLUE/images/header_search.gif\" border=\"0\" alt=\"Search\"></a></td>"
  
" </tr>"
  
"</table>"
  
"<table width=\"100%\" height=\"134\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
  
" <tr>"
  
" <td><img src=\"themes/PH2BLUE/images/header_01.jpg\" width=\"277\" height=\"134\" alt=\"\"></td>"
  
" <td><img src=\"themes/PH2BLUE/images/header_02.jpg\" width=\"251\" height=\"134\" alt=\"\"></td>"
  
" <td><img src=\"themes/PH2BLUE/images/header_03.jpg\" width=\"250\" height=\"134\" alt=\"\"></td>"
  
" <td width=\"100%\" background=\"themes/PH2BLUE/images/spacer_top.jpg\"></td>"
  
" </tr>"
  
"</table>"
  
"<table width=\"100%\" height=\"48\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
  
" <tr>"
  
"<td><img src=\"themes/PH2BLUE/images/header_04.jpg\" width=\"277\" height=\"48\" alt=\"\"></td>"
  
"<td><a href=\"index.php\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item1','','themes/PH2BLUE/images/header_05_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_05.jpg\" name=\"Item1\" width=\"98\" height=\"48\"></a></td>"
  
"<td><a href=\"modules.php?name=Forum\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item2','','themes/PH2BLUE/images/header_06_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_06.jpg\" name=\"Item2\" width=\"99\" height=\"48\"></a></td>"
  
"<td><a href=\"modules.php?name=Gallery\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item3','','themes/PH2BLUE/images/header_07_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_07.jpg\" name=\"Item3\" width=\"100\" height=\"48\"></a></td>"
  
"<td><a href=\"modules.php?name=Guestbook\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item4','','themes/PH2BLUE/images/header_08_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_08.jpg\" name=\"Item4\" width=\"100\" height=\"48\"></a></td>"
  
"<td><a href=\"modules.php?name=User_Registration\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('Item5','','themes/PH2BLUE/images/header_09_on.jpg',1)\"><img src=\"themes/PH2BLUE/images/header_09.jpg\" name=\"Item5\" width=\"104\" height=\"48\"></a></td>"
  
"<td width=\"100%\" background=\"themes/PH2BLUE/images/spacer_bottom.jpg\"></td>"
  
" </tr>"
  
"</table>"
  
"<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
  
"<tr>"
  
"<td width=\"194\" height=\"12\"><img src=\"themes/PH2BLUE/images/left_block_top.jpg\"></td>"
  
"<td width=\"100%\" height=\"12\" background=\"themes/PH2BLUE/images/middle_block_top.jpg\"></td>"
  
"</tr></table>"
  
""
  
"<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">"
  
"<tr valign=\"top\">"
  
"<td valign=\"top\" background=\"themes/PH2BLUE/images/block_left.jpg\">";

blocks(left);
// START - Linke Bloecke weg (x Module)
#if ($_REQUEST['name']!='Gallery' && $_REQUEST['name']!='eBoard' && $_REQUEST['name']!='Impressum') {
#blocks('left');
#}
// END - Linke Bloecke weg (x Module)

    
echo "</td><td align=\"center\" bgcolor=\"#FCFCFC\" valign=\"top\" width=\"100%\">&nbsp;\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;
$thename basename(dirname(__FILE__));
if (!empty($GLOBALS["home"])) {
blocks('down');
}
if (!empty($GLOBALS["index"])) {
echo"</td><td valign=\"top\" width=\"194\" background=\"themes/PH2BLUE/images/block_right.jpg\">";
blocks('right');
}
    
echo
"</td></table>";
echo
"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" id=\"AutoNumber1\" height=\"36\" background=\"themes/PH2BLUE/images/bottomline.jpg\">"
  
."<tr><td width=\"103\">"
  
."<img border=\"0\" src=\"themes/PH2BLUE/images/add_l.jpg\" width=\"103\" height=\"36\"></td>"
  
."<td align=\"center\" width=\"100%\">&nbsp;</td>"
  
."<td width=\"103\">"
  
."<img border=\"0\" src=\"themes/PH2BLUE/images/add_r.jpg\" width=\"103\" height=\"36\"></a></td></tr></table><center>";
footmsg();
global 
$prefix$bannersfsz$index;
if ($bannersfsz) {
include("bannersfsz.php");
    }
echo 
"</center><div class=\"footmsg\" align=\"center\">".mxViewBench()."</div>";
echo 
"<center><font face=\"Arial\" size=\"2\">..\n";
echo 
"<a title=\"http://nuke-theme.de\" href=\"http://nuke-theme.de\">\n";
}

/************************************************************/
/* Function themeindex()                                    */
/*                                                          */
/* This function format the stories on the Homepage         */
/************************************************************/

function themeindex ($aid$informant$time$title$counter$topic$thetext$notes$morelink$topicname$topicimage$topictext) {
    global 
$anonymous$tipath;
    if (
$notes != "") {
$notes "<br><br><b>"._NOTE."</b> $notes\n";
    } else {
$notes "";
    }
    if (
"$aid== "$informant") {
$content "$thetext$notes\n";
    } else {
if($informant != "") {
    $content "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
} else {
    $content "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
    }
    
$posted ""._POSTEDBY." ";
    
$posted .= get_author($aid);
    
$posted .= " "._ON.$time  ($counter "._READS.")";
    
//End Code Change
  
echo"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">"
  
."<tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"
  
."<td bgcolor=\"#0A34AA\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">"
  
."<tr><td bgcolor=\"#3868D7\" width=\"100%\" height=\"29\" background=\"themes/PH2BLUE/images/newsbar_top.jpg\">&nbsp;"
  
."<font class=\"storytitle\"><b>$title</b></font>"
  
."</td></tr>"
  
."<tr><td bgcolor=\"#F2F1ED\"><a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" alt=\"$topictext\" border=\"0\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>"
  
."<a href=\"modules.php?name=News&new_topic=$topic\">"
  
."<class=story2 align=left valign=top><font class=\"content\">$posted<br><hr>$content</font><br>\n"
  
."</td></tr>"
  
."</center></td>"
  
."<tr><td bgcolor=\"#F2F1ED\" background=\"themes/PH2BLUE/images/newsbar_bottom.jpg\" align=\"center\">"
  
."<div align=\"right\"><font class=\"content\">$morelink</font></div></td>"
  
."</table></td></tr>"
  
."</table></td></tr>"
  
."</table><br>";

}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid$informant$datetime$title,  $thetext$topic$topicname$topicimage$topictext) {
    global 
$admin$sid$tipath;
    
$posted ""._POSTEDON.$datetime "._BY." ";
    
$posted .= get_author($aid);
    
    if (
"$aid== "$informant") {
$content "$thetext\n";
    } else {
if($informant != "") {
    $content "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
} else {
    $content "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
    }

   echo
"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"5\">"
  
."<tr><td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">"
  
."<td bgcolor=\"#0A34AA\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">"
  
."<tr><td bgcolor=\"#3868D7\" width=\"100%\" height=\"29\" background=\"themes/PH2BLUE/images/newsbar_top.jpg\">&nbsp;"
  
."<font class=\"storytitle\"><b>$title</b></font>"
  
."</td></tr>"
  
."<tr><td bgcolor=\"#F2F1ED\"><a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>"
  
."<class=story2 align=left valign=top><font class=\"content\">$posted<br><hr>$content</font><br>\n";


  echo
"</td></tr>"

  
."<tr><td bgcolor=\"#F2F1ED\" background=\"themes/PH2BLUE/images/newsbar_bottom.jpg\" align=\"center\">";

  echo
"<center><b><font class=\"tiny\">"._POSTEDBY." ";

   echo 
" "._ON.$datetime</center>\n"
  
."</td>"
  
."</table></td></tr>"
  
."</table></td></tr>"
  
."</table>";

}


/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title$content) {
   echo
"<table width=\"194\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
  
."<tr><td height=\"20\" background=\"themes/PH2BLUE/images/block_left_header.jpg\">&nbsp;&nbsp;&nbsp;&nbsp;<font class=\"block-title\"><strong>$title</strong></font></td>"
  
."</tr><tr>"
  
."<td height=\"2\"><img src=\"themes/PH2BLUE/images/block_left_shaddow.jpg\"></td></tr>"
  
."<tr><td background=\"themes/PH2BLUE/images/block_left.jpg\">"
  
."<table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">"
  
."<tr><td><table align=\"center\" width=\"165\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td height=\"5\"></td></tr><tr><td><font class=\"content\">$content</font>"
  
."</td></tr></table>\n"
  
."<img src=\"themes/images/PH2BLUE/pixel.gif\" width=\"4\" height=\"3\">"
  
."</td></tr></table>"
  
."</td></tr></table>";

}

?>

Titel: Re: PH2BLUE Tehamada Forum ve Resim Galersinde sol blocklarin gözükmemesi
Beitrag von: navruz am 16 Mai 2008, 11:43:43
Merhaba :)
Zaten tema içinde kodlar mevcutmuş.
Bulblocks(left);
// START - Linke Bloecke weg (x Module)
#if ($_REQUEST['name']!='Gallery' && $_REQUEST['name']!='eBoard' && $_REQUEST['name']!='Impressum') {
#blocks('left');
#}
// END - Linke Bloecke weg (x Module)


Değiştir

//blocks(left);
// START - Linke Bloecke weg (x Module)
if ($_REQUEST['name']!='Gallery' && $_REQUEST['name']!='Forum') {
blocks('left');
}
// END - Linke Bloecke weg (x Module)
Titel: Re: PH2BLUE Tehamada Forum ve Resim Galersinde sol blocklarin gözükmemesi
Beitrag von: Albay am 16 Mai 2008, 11:58:42
usta tesekürler oldu .