Re: Do not see right blcks not theme.php code Posted:
Tue Oct 04, 2011 9:39 am |
|
|
|
|
|
| Code:
|
/************************************************************/
/* Theme Colors Definition */
/************************************************************/
$bgcolor1 = "#000000";
$bgcolor2 = "#000000";
$bgcolor3 = "#000000";
$bgcolor4 = "#000000";
$textcolor1 = "#000000";
$textcolor2 = "#000000";
/************************************************************/
/* OpenTable Functions */
/************************************************************/
function OpenTable() {
?><style type="text/css">
<!--
body {
background-color: #FFFFFF;
}
body,td,th {
color: #000000;
}
-->
</style>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#333333">
<tr>
<td> </td>
<td width="100%" bgcolor="#F4F4F4"><img name="tm" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""><img src="/themes/Mp3BestV1/images/h3_bright.png" width="141" height="10"><img src="/themes/Mp3BestV1/images/h3_bright.png" width="141" height="10"><img src="/themes/Mp3BestV1/images/h3_bright.png" width="141" height="10"></td>
<td> </td>
</tr>
<tr>
<td background="themes/Mp3BestV1/images/left.gif"><img name="left" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td valign="top" bgcolor="#FFFFFF">
<?
}
function OpenTable2() {
global $bgcolor1, $bgcolor2;
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" ><tr><td class=row1>\n";
echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
function CloseTable() {
?> </td>
<td background="themes/Mp3BestV1/images/right.gif"><img name="right" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
</tr>
<tr>
<td> </td>
<td bordercolor="#666666" background="themes/Mp3BestV1/images/btm.gif"><img name="btm" src="themes/Mp3BestV1/images/spacer.gif" width="1" height="1" border="0" alt=""></td>
<td> </td>
</tr></table>
<?
}
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, $cookie, $prefix, $name, $dbi, $db;
cookiedecode($user);
$username = $cookie[1];
if ($username == "") {
$username = "Anonymous";
}
$public_msg = public_message();
echo "$public_msg";
$sql = "SELECT link1, link2, link3, link4, link5, link1url, link2url, link3url, link4url, link5url FROM ".$prefix."_themecp";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$link1 = $row[link1];
$link2 = $row[link2];
$link3 = $row[link3];
$link4 = $row[link4];
$link5 = $row[link5];
$link1url = $row[link1url];
$link2url = $row[link2url];
$link3url = $row[link3url];
$link4url = $row[link4url];
$link5url = $row[link5url];
echo "<body background=\"themes/Mp3BestV1/images/bg.gif\" topmargin=\"0\" leftmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n";
//copyright info. Out of respect, please do not remove thank you.
echo "<!----- Copyright © 2003-2004 Mtechnik MDesign (http://www.mtechnik.net - webmaster@mtechnik.net) ----->\n";
echo "<!----- $sitename is using WebHost-V1, a free theme wth GPL/GNU license, for more information regarding $sitename please contact $email. ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
include("themes/Mp3BestV1/header.php");
echo "<table width=\"976\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/lt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
."<TD WIDTH=\"160\" HEIGHT=\"100%\" valign=top bgcolor=#ffffff>\n";
if (($name=='Forums') OR ($name=='Private_Messages') OR ($name=='Members_List')) {
} else {
blocks(left);
}
echo "</td>\n"
."<TD WIDTH=\"100%\" valign=top bgcolor=#ffffff>\n";
}
/************************************************************/
/* Function themefooter() */
/************************************************************/
function themefooter() {
global $index, $banners;
if (defined('INDEX_FILE')) {
echo "</td>\n"
."<td width=\"160\" valign=\"top\" bgcolor=#ffffff>\n";
blocks(right);
}
echo "</td>\n"
."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/rt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
."</tr>\n"
."</table>\n";
include("themes/Mp3BestV1/footer.php");
echo "<table width=\"976\" align=center cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
."<tr valign=\"top\">\n"
."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/lt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
."<TD WIDTH=\"100%\" valign=top align=center bgcolor=#000000><a href=\"mtechnik.net\" target=_blank><img src=\"themes/Mp3BestV2/images/md.gif\" border=0></a><br>\n";
footmsg();
echo "</td>\n"
."<TD WIDTH=\"5\" HEIGHT=\"100%\" valign=top background=\"themes/Mp3BestV1/images/rt.gif\"><IMG SRC=\"themes/Mp3BestV1/images/spacer.gif\" WIDTH=\"5\" HEIGHT=\"4\"></TD>\n"
."</tr>\n"
."</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/Mp3BestV1/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/Mp3BestV1/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) {
$tmpl_file = "themes/Mp3BestV1/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
?>
|
Theme view http://77.36.60.6
and original theme is http://demo.gavick.com/joomla15/aug2009/ for joomla not for phpnuke
|
|
|
|