Chez stefvar :: Voir le sujet - Affichage blocks
Voir le sujet précédent :: Voir le sujet suivant
Auteur
Message
Archives Inscrit le: Messages: -12
Posté le: 31 Jan 2008, 20:09 Sujet du message: Affichage blocks
Bonjour à tous,
Je debute dans le php .... (le cas contraire , je ne serai peut etre pas là ) bref, je me suis mis dans l'idée de faire un site ce week end et qu'est ce que je n'ai pas fait là ...
Donc j'installe une version phpnuke 8.x , jusque là tout se passe à peu pres bien.
Les problemes commencent avec le theme : pas mal de problemes ont ete resolus grace à divers aides sur le net (dont les votres) mais là , je seche un peu ...
Mon probleme vient du fait qu'avec le theme choisis , je n'ai aucun bloc sur la droite de ma page d'accueil , (ceux ci sont bien activés dans le menu admin et fonctionne avec les themes par defaut) Donc mon ame de sherlock en vient à la conclusion que celà provient du theme: mais apres , le sherlock qui est en moi n'a pas les competences necessaires pour retrouver son coupable. (j'avoue aussi , que ça va bientot faire 5 jours que je passe 5-6 heures par jour sur mon site et que j'en ai plein les baskets!)
Comprenant en parcourant votre forum que j'ai affaire à une veritable police scientifique prete à épingler tous les coupables , je me suis dit que pour résoudre mon probleme , le plus simple et plus rapide etait de vous passer mon theme.php ...
Code: <?php
/************************************************************/
/* Theme Colors Definition */
/************************************************************/
/************************************************************/
/* OpenTable Functions */
/************************************************************/
function OpenTable() {
global $tableStatus;
if ($tableStatus != "open"){
?>
<table width=100% height="26" border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td valign="top"><table width=100% height="26" border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="41" height="26" valign="top" background="themes/XtratoVeil/images/storyhome_25.jpg"><IMG SRC="themes/XtratoVeil/images/tables_03.jpg" WIDTH=29 HEIGHT=62 ALT=""></td>
<td width="100%" background="themes/XtratoVeil/images/tables_04.jpg"><div align="center">
<h5><strong><font class="storycontent"></font></strong></h5>
</div></td>
<td width="23" valign="top"><div align="right"><IMG SRC="themes/XtratoVeil/images/tables_07.jpg" WIDTH=56 HEIGHT=62 ALT=""></div></td>
</tr>
</table>
<table width=100% height="26" border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="19" height="26" valign="top" background="themes/XtratoVeil/images/tables_09.jpg"><IMG SRC="themes/XtratoVeil/images/tables_09.jpg" WIDTH=25 HEIGHT=9 ALT=""></td>
<td valign="top" bgcolor="#2B2923"><table cellspacing=0 cellpadding=3 width="100%" border=0>
<tbody>
<tr>
<td height="25" align=middle valign="top" bgcolor="#2B2923" class=infolt><font face=verdana,arial,helvetica
size=1>
<?
$tableStatus = "open";
}
else {}
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" ><tr><td class=row1>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" ><tr><td>\n";
}
function CloseTable() {
global $tableStatus;
if ($tableStatus == "open"){
?>
</font></td>
</tr>
</tbody>
</table></td>
<td width="15" valign="top" background="themes/XtratoVeil/images/tables_11.jpg"><div align="right"><IMG SRC="themes/XtratoVeil/images/tables_11.jpg" WIDTH=27 HEIGHT=9 ALT=""></div></td>
</tr>
</table>
<table width=100% height="24" border=0 align="center" cellpadding=0 cellspacing=0>
<tr>
<td width="41" valign="top" background="themes/XtratoVeil/images/tables_17.jpg"><IMG SRC="themes/XtratoVeil/images/tables_16.jpg" WIDTH=25 HEIGHT=24 ALT=""></td>
<td width="1167" valign="top" background="themes/XtratoVeil/images/tables_17.jpg"> </td>
<td width="23" valign="top" background="themes/XtratoVeil/images/tables_17.jpg"><div align="right"><IMG SRC="themes/XtratoVeil/images/tables_20.jpg" WIDTH=27 HEIGHT=24 ALT=""></div></td>
</tr>
</table></td>
</tr>
</table>
<?
$tableStatus = "closed";
}
else {}
}
function CloseTable2() {
echo "</td></tr></table></td></tr></table>\n";
}
/************************************************************/
/* FormatStory */
/************************************************************/
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\" color=\"#505050\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}
/************************************************************/
/* Function themeheader() */
/************************************************************/
function themeheader() {
global $user, $userinfo, $cookie, $prefix, $user_prefix, $db, $name ,$total_time, $start_time, $dbi, $sitekey;
getusrinfo($user);
cookiedecode($user);
echo "<body background=\"themes/XtratoVeil/images/Welcome/bg.gif\" topmargin=\"0\">\n"
."<br>\n";
mt_srand ((double)microtime()*1000000);
$maxran = 1000000;
$random_num = mt_rand(0, $maxran);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
$public_msg = public_message();
echo "$public_msg";
$uresult = $db->sql_query("select user_id from ".$user_prefix."_users where username='$username'");
list($uid) = $db->sql_fetchrow($uresult);
$presult = $db->sql_query("select * from ".$prefix."_bbprivmsgs where privmsgs_to_userid='$uid' AND (privmsgs_type='0' OR privmsgs_type='1' OR privmsgs_type='3' OR privmsgs_type='5')");
$pnumrow = $db->sql_numrows($presult);
$priv_msgs = "<img src=\"themes/XtratoVeil/images/Welcome/have.gif\" border=0><a href=\"modules.php?name=Private_Messages\"><b>$pnumrow</b></a> <img src=\"themes/XtratoVeil/images/Welcome/msg.gif\" border=0>";
if ($username == "Anonymous") {
$button1 = "<a href=\"modules.php?name=Your_Account&op=new_user\"><img src=\"themes/XtratoVeil/images/Welcome/reg.gif\" border=0></a><a href=\"modules.php?name=Search\"><img src=\"themes/XtratoVeil/images/Welcome/advanced.gif\" border=0></a>\n";
} else {
$button1 = "<a href=\"phpnuke-forums.html&file=profile&mode=editprofile&sid=\"><img src=\"themes/XtratoVeil/images/Welcome/profile.gif\" border=0></a><a href=\"modules.php?name=Your_Account&op=logout\"><img src=\"themes/XtratoVeil/images/Welcome/logout.gif\" border=0></a>\n";
}
if ($username == "Anonymous") {
$theuser = "<form action=\"modules.php?name=Your_Account\" method=\"post\"><input type=\"text\" name=\"username\" value=\"username\" onFocus=\"if(this.value=='username')this.value='';\" value style=\"width:100;height:18;FONT-SIZE: 10px;\"> <input type=\"password\" name=\"user_password\" value=\"password\" onFocus=\"if(this.value=='password')this.value='';\" value style=\"width:100;height:18;FONT-SIZE: 10px;\"><input type=\"hidden\" name=\"random_num\" value=\"$random_num\"><input type=\"hidden\" name=\"gfx_check\" value=\"$code\"><input type=\"hidden\" name=\"op\" value=\"login\"> <input type=\"image\" class=\"liteoption1\" value=\"login\" src=\"themes/XtratoVeil/images/Welcome/login.gif\" border=\"0\"></TD></form>\n";
} else {
$theuser = "<font class=content><img src=\"themes/XtratoVeil/images/Welcome/welcome.gif\" border=0><b>$username</b> $priv_msgs</font></TD>\n";
}
echo "<!----- Copyright © 2003-2004 Strato Designs (http://www.xtrato.com- admin@xtrato.com ) ----->\n";
echo "<!----- Strato - Unique Themes. Currently using XtratoVeil, a Free public theme license, for more information regarding Xtrato Designs visit www.xtrato.com . ----->\n";
if ($name=='News') { include("themes/XtratoVeil/header.php");
} else {
include("themes/XtratoVeil/header.php");
} ;
//LEFT SIDE BACKGROUND
if ($name=='Splash') {echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"10\" valign=\"top\" background=\"themes/XtratoVeil/images/splash/strato_53_Splash.gif\"><img src=\"themes/XtratoVeil/images/splash/strato_53_Splash.gif\" width=\"41\" height=\"21\" border=\"0\"></td>\n";// Este es el De la izquierda
// Este es el BG de los BLocks
} else {
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"10\" valign=\"top\" background=\"themes/XtratoVeil/images/xtro_04.jpg\"><img src=\"themes/XtratoVeil/images/xtro_04.jpg\" width=\"36\" height=\"10\" border=\"0\"></td>\n"// Este es el De la izquierda
."<td width=\"167\" background=\"themes/XtratoVeil/images/block2_11.gif\" valign=\"top\">\n"; // Este es el BG de los BLocks
} ;
global $swapleftright;
$swapleftright = "1";
if ($name=='Splash') {
} else {
blocks(left);
} ;
$swapleftright = "0";
echo "</td>\n"
."<td width=\"100%\">\n";
}
/************************************************************/
/* Function themefooter() */
/************************************************************/
function themefooter() {
global $index, $user, $banners,$name, $cookie, $prefix, $dbi, $db, $admin, $adminmail, $nukeurl;
if ($banners == 1) {
$numrows = $db->sql_numrows($db->sql_query("SELECT * FROM ".$prefix."_banner WHERE type='0' AND active='1'"));
/* Get a random banner if exist any. */
/* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */
if ($numrows>1) {
$numrows = $numrows-1;
mt_srand((double)microtime()*1000000);
$bannum = mt_rand(0, $numrows);
} else {
$bannum = 0;
}
$sql = "SELECT bid, imageurl, clickurl, alttext FROM ".$prefix."_banner WHERE type='0' AND active='1' LIMIT $bannum,1";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$bid = $row[bid];
$imageurl = $row[imageurl];
$clickurl = $row[clickurl];
$alttext = $row[alttext];
if (!is_admin($admin)) {
$db->sql_query("UPDATE ".$prefix."_banner SET impmade=impmade+1 WHERE bid='$bid'");
}
if($numrows>0) {
$sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM ".$prefix."_banner WHERE bid='$bid'";
$result2 = $db->sql_query($sql2);
$row2 = $db->sql_fetchrow($result2);
$cid = $row2[cid];
$imptotal = $row2[imptotal];
$impmade = $row2[impmade];
$clicks = $row2[clicks];
$date = $row2[date];
/* Check if this impression is the last one and print the banner */
if (($imptotal <= $impmade) AND ($imptotal != 0)) {
$db->sql_query("UPDATE ".$prefix."_banner SET active='0' WHERE bid='$bid'");
$sql3 = "SELECT name, contact, email FROM ".$prefix."_bannerclient WHERE cid='$cid'";
$result3 = $db->sql_query($sql3);
$row3 = $db->sql_fetchrow($result3);
$c_name = $row3[name];
$c_contact = $row3[contact];
$c_email = $row3[email];
if ($c_email != "") {
$from = "$sitename <$adminmail>";
$to = "$c_contact <$c_email>";
$message = ""._HELLO." $c_contact:\n\n";
$message .= ""._THISISAUTOMATED."\n\n";
$message .= ""._THERESULTS."\n\n";
$message .= ""._TOTALIMPRESSIONS." $imptotal\n";
$message .= ""._CLICKSRECEIVED." $clicks\n";
$message .= ""._IMAGEURL." $imageurl\n";
$message .= ""._CLICKURL." $clickurl\n";
$message .= ""._ALTERNATETEXT." $alttext\n\n";
$message .= ""._HOPEYOULIKED."\n\n";
$message .= ""._THANKSUPPORT."\n\n";
$message .= "- $sitename "._TEAM."\n";
$message .= "$nukeurl";
$subject = "$sitename: "._BANNERSFINNISHED."";
mail($to, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
}
}
$showbanners = "<a href=\"banners.php?op=click&bid=$bid\" target=\"_blank\"><img src=\"$imageurl\" border=\"0\" alt='$alttext' title='$alttext'></a>";
}
}
if ($index == 1) {
echo "</td>\n"
// Este es el Hizquierde Derecho | ||
."<td width=\"165\" background=\"themes/XtratoVeil/images/XtratoVeil2_1403.jpg\" valign=\"top\">\n"; // El BG de La HIZ | | |
blocks(right);
}
echo "</td>\n"
."<td width=\"10\" valign=\"top\" background=\"themes/XtratoVeil/images/xtro_05.jpg\"><img src=\"themes/XtratoVeil/images/xtro_05.jpg\" width=\"34\" height=\"10\" border=\"0\"></td>\n"
."</tr>\n"
."</table>\n\n\n";
echo"<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>\n";
echo " <TR>\n";
echo " <TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>\n";
echo " <TR>\n";
echo " <TD width=\"36\" background=\"themes/XtratoVeil/images/xtro_04.jpg\"> <IMG SRC=\"themes/XtratoVeil/images/xtro_04.jpg\" ALT=\"\" WIDTH=36 HEIGHT=10 border=\"0\"></TD>\n";
echo " <TD width=\"100%\"><table border=0 align=\"center\" cellpadding=0 cellspacing=0>\n";
echo " <tr>\n";
echo " <td width=\"36\">\n";
if ($banners)
{
include("banners.php");
}
echo "</td>\n";
echo " </tr>\n";
echo " </table></TD>\n";
echo " <TD width=\"10\" background=\"themes/XtratoVeil/images/xtro_05.jpg\"><IMG SRC=\"themes/XtratoVeil/images/xtro_05.jpg\" ALT=\"\" WIDTH=34 HEIGHT=10 border=\"0\"></TD>\n";
echo " </TR>\n";
echo " </TABLE>\n";
echo " <TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0>\n";
echo " <TR>\n";
echo " <TD width=\"55\" background=\"themes/XtratoVeil/images/XtratoVeil_FT_07.jpg\"> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_06.jpg\" WIDTH=55 HEIGHT=156 ALT=\"\"></TD>\n";
echo " <TD width=\"1133\" background=\"themes/XtratoVeil/images/XtratoVeil_FT_07.jpg\"><TABLE WIDTH=586 BORDER=0 align=\"center\" CELLPADDING=0 CELLSPACING=0>\n";
echo " <TR>\n";
echo " <TD COLSPAN=13> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_01.jpg\" WIDTH=586 HEIGHT=33 ALT=\"\"></TD>\n";
echo " </TR>\n";
echo " <TR>\n";
echo " <TD ROWSPAN=4> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_02.jpg\" WIDTH=125 HEIGHT=123 ALT=\"\"></TD>\n";
echo " <TD> <a href=\"index.php\"><IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_03.jpg\" ALT=\"\" WIDTH=31 HEIGHT=11 border=\"0\"></a></TD>\n";
echo " <TD ROWSPAN=4> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_04.jpg\" WIDTH=18 HEIGHT=123 ALT=\"\"></TD>\n";
echo " <TD> <a href=\"/modules.php?name=Forums\"><IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_05.jpg\" ALT=\"\" WIDTH=42 HEIGHT=11 border=\"0\"></a></TD>\n";
echo " <TD ROWSPAN=4> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_06.jpg\" WIDTH=23 HEIGHT=123 ALT=\"\"></TD>\n";
echo " <TD> <a href=\"/modules.php?name=Downloads\"><IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_07.jpg\" ALT=\"\" WIDTH=52 HEIGHT=11 border=\"0\"></a></TD>\n";
echo " <TD ROWSPAN=4> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_08.jpg\" WIDTH=28 HEIGHT=123 ALT=\"\"></TD>\n";
echo " <TD> <a href=\"/modules.php?name=Web_Links\"><IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_09.jpg\" ALT=\"\" WIDTH=40 HEIGHT=11 border=\"0\"></a></TD>\n";
echo " <TD ROWSPAN=4> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_10.jpg\" WIDTH=26 HEIGHT=123 ALT=\"\"></TD>\n";
echo " <TD COLSPAN=2> <a href=\"/modules.php?name=Your_Account\"><IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_11.jpg\" ALT=\"\" WIDTH=62 HEIGHT=11 border=\"0\"></a></TD>\n";
echo " <TD COLSPAN=2 ROWSPAN=2> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_12.jpg\" WIDTH=139 HEIGHT=87 ALT=\"\"></TD>\n";
echo " </TR>\n";
echo " <TR>\n";
echo " <TD ROWSPAN=3> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_13.jpg\" WIDTH=31 HEIGHT=112 ALT=\"\"></TD>\n";
echo " <TD ROWSPAN=3> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_14.jpg\" WIDTH=42 HEIGHT=112 ALT=\"\"></TD>\n";
echo " <TD ROWSPAN=3> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_15.jpg\" WIDTH=52 HEIGHT=112 ALT=\"\"></TD>\n";
echo " <TD ROWSPAN=3> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_16.jpg\" WIDTH=40 HEIGHT=112 ALT=\"\"></TD>\n";
echo " <TD COLSPAN=2> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_17.jpg\" WIDTH=62 HEIGHT=76 ALT=\"\"></TD>\n";
echo " </TR>\n";
echo " <TR>\n";
echo " <TD ROWSPAN=2> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_18.jpg\" WIDTH=44 HEIGHT=36 ALT=\"\"></TD>\n";
echo " <TD COLSPAN=2> <a href=\"http://www.xtrato.com\"><IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_19.jpg\" ALT=\"\" WIDTH=148 HEIGHT=16 border=\"0\"></a></TD>\n";
echo " <TD ROWSPAN=2> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_20.jpg\" WIDTH=9 HEIGHT=36 ALT=\"\"></TD>\n";
echo " </TR>\n";
echo " <TR>\n";
echo " <TD COLSPAN=2> <IMG SRC=\"themes/XtratoVeil/images/XtratoVeil_FT_09_21.jpg\" WIDTH=148 HEIGHT=20 ALT=\"\"></TD>\n";
echo " </TR>\n";
echo " <TR>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=125 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=31 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=18 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=42 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=23 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=52 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=28 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=40 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=26 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=44 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=18 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=130 HEIGHT=1 ALT=\"\"></TD>\n";
echo " <TD> <IMG SRC=\"themes/XtratoVeil/images/spacer.gif\" WIDTH=9 HEIGHT=1 ALT=\"\"></TD>\n";
echo " </TR>\n";
echo " </TABLE></TD>\n";
echo " <TD width=\"60\" background=\"themes/XtratoVeil/images/XtratoVeil_FT_07.jpg\"><div align=\"right\"><img src=\"themes/XtratoVeil/images/XtratoVeil_FT_12.jpg\" width=59 height=156 alt=\"\"></div></TD>\n";
echo " </TR>\n";
echo " </TABLE> </TD>\n";
echo " </TR>\n";
echo "</TABLE>\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;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
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&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted1 = get_author($aid);
$posted = " $time $timezone";
//End Code Change
$tmpl_file = "themes/XtratoVeil/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themeindex() */
/************************************************************/
function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
global $admin, $sid, $tipath;
$ThemeSel = get_theme();
if (file_exists("themes/$ThemeSel/images/topics/$topicimage")) {
$t_image = "themes/$ThemeSel/images/topics/$topicimage";
} else {
$t_image = "$tipath$topicimage";
}
$posted = ""._POSTEDON." $datetime "._BY." ";
$posted .= get_author($aid);
if ($notes != "") {
$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
} else {
$notes = "";
}
if ("$aid" == "$informant") {
$content = "$thetext$notes\n";
} else {
if($informant != "") {
$content = "<a href=\"modules.php?name=Your_Account&op=userinfo&username=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/XtratoVeil/story_page.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themesidebox() */
/************************************************************/
function themesidebox($title, $content) {
global $swapleftright, $bgcolor1, $bgcolor2;
if ($swapleftright=="0") {
$tmpl_file = "themes/XtratoVeil/blockR.html";
} else {
$tmpl_file = "themes/XtratoVeil/blockL.html";
}
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
Je vous remercie par avance.
Revenir en haut de page
Archives Inscrit le: Messages: -12
Posté le: 31 Jan 2008, 20:15 Sujet du message: Re : Affichage blocks
Arf , je suis désolé pour le dérangement , je suis recalé à l'examen de police ...
Je viens de trouver la solution ...
Effacez ce topic .
Revenir en haut de page
distran Expert Inscrit le: Oct 19, 2006 Messages: 1005
Posté le: 31 Jan 2008, 21:08 Sujet du message: Re: Re : Affichage blocks
salut
badabugs a écrit:
Je viens de trouver la solution ...
Merci pour la solution
phil
Revenir en haut de page
Archives Inscrit le: Messages: -12
Posté le: 31 Jan 2008, 21:18 Sujet du message: Re : Affichage blocks
J'ai modifié le fichier theme.php de mon theme:
Code:
if ($index == 1) {
remplacé par celui-ci
Code:
if (defined('INDEX_FILE')) {
Apparemment , c'est un probleme reccurent , et comme j'ai trouvé la reponse sur ce forum , je ne voulais pas faire un doublon ...
Revenir en haut de page
distran Expert Inscrit le: Oct 19, 2006 Messages: 1005
Posté le: 31 Jan 2008, 21:24 Sujet du message: Re : Affichage blocks
Re
oui, mais au moins on sait que ça ne vient pas d'autre chose
merci
phil
Revenir en haut de page
stefvar Administrateur Inscrit le: Jul 06, 2005 Messages: 8157 Localisation: France Corse Ventiseri
Posté le: 31 Jan 2008, 21:25 Sujet du message: Re : Affichage blocks
Bonjour,
Pour ce genre de problème, il ne faut pas hésiter à consulter le Wiki et ou le moteur de recherche du site. La solution y est présente _________________Avant de poster, lire la charte du forum, merci.
Revenir en haut de page
Vous ne pouvez pas poster de nouveaux sujets dans ce forum Vous ne pouvez pas répondre aux sujets dans ce forum Vous ne pouvez pas éditer vos messages dans ce forum Vous ne pouvez pas supprimer vos messages dans ce forum Vous ne pouvez pas voter dans les sondages de ce forum