Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes
Author Message
derek765
Regular
Regular



Joined: Sep 27, 2012
Posts: 99
Location: Okinawa, Japan

PostPosted: Thu Nov 29, 2012 7:26 am Reply with quote

Hello,

Recently tried using WD-Core and Vapor theme for PHP-Nuke on the new Raven Nuke 2.5, and having problems displaying the right blocks even after changing the

Code:
index == 1


to

Code:
if (defined('INDEX_FILE')) {


Any ideas?
 
View user's profile Send private message Visit poster's website
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Thu Nov 29, 2012 10:31 am Reply with quote

Post the themes function themefooter() from the theme.php file.

_________________
Tricked Out News 
View user's profile Send private message Send e-mail Visit poster's website
derek765







PostPosted: Thu Nov 29, 2012 2:39 pm Reply with quote

Here is the whole theme.php

Code:
<?php

/************************************************************************/
/* PHP-NUKE: WD-Core theme for nuke 5.x-7.x                              */
/* ============================================                         */
/* http://WarpedDesignz.com                                          */
/* Made for PHP-NUKE 5.x-7.x: Advanced Content Management System        */
/* ============================================                         */
/* Copyright (c) 2003 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/************************************************************************/
// Theme WD-Core Public Release theme
// Original Author of file: WarpedDesignz - http://WarpedDesignz.com
// Purpose of file: Public Release phpnuke 5.x-7.x WD-Core Theme
// Developed at WarpedDesignz.com
// ----------------------------------------------------------------------
/************************************************************/
/* Theme Colors Definition                                  */
/************************************************************/
$bgcolor1 = "#181818";
$bgcolor2 = "#181818";
$bgcolor3 = "#181818";
$bgcolor4 = "#181818";
$textcolor1 = "#c0c0c0";
$textcolor2 = "#c0c0c0";
/************************************************************/
/* OpenTable Functions                                      */
/************************************************************/
function OpenTable() {
?>
<table id="Table_01" width="98%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_01.gif" width="38" height="21" alt=""></td>
      <td background="themes/WD-Core/images/mod-lr1.gif" width="100%" height="21" alt=""></td>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_03.gif" width="37" height="21" alt=""></td>
   </tr>
   <tr>
      <td background="themes/WD-Core/images/mod-ud1.gif" width="18" alt=""></td>
      <td colspan="3" background="themes/WD-Core/images/mod-content.gif" width="100%" height="10" alt="">
<?
}
function CloseTable() {
?></td>
      <td background="themes/WD-Core/images/mod-ud2.gif" width="19" alt=""></td>
   </tr>
   <tr>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_07.gif" width="38" height="21" alt=""></td>
      <td background="themes/WD-Core/images/mod-lr2.gif" width="100%" height="21" alt=""></td>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_09.gif" width="37" height="21" alt=""></td>
   </tr>
   <tr>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="18" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="20" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="18" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="18" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="19" height="1" alt=""></td>
   </tr>
</table>
<?
}
function OpenTable2() {
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\"><tr><td class=extra>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
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=\"#ffffff\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}
/************************************************************/
    function themeheader() {
    global $user, $cookie, $prefix, $user_prefix, $db, $dbi, $userinfo, $sitekey, $name, $ip;
   
    cookiedecode($user);
    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 = "Guest";
    }
$ip = $_SERVER["REMOTE_ADDR"] ;

$public_msg = public_message();
 

echo "$public_msg";
//$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
//$topics_list .= "<option value=\"\">All Topics</option>\n";
//$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
//while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
//if ($topicid==$topic) { $sel = "selected "; }
//$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
//$sel = "";
    //login feature//
    if ($username == "Guest") {
        $theuser = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" ID=Untitled WIDTH=467 HEIGHT=54>
<PARAM NAME=movie VALUE=\"themes/WD-Core/images/login.swf?random_num=$random_num&gfx_check=$code\">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=False>
<param name=\"bgcolor\" value=\"#161616\" />
<EMBED src=\"themes/WD-Core/images/login.swf?random_num=$random_num&gfx_check=$code\" loop=false quality=high
WIDTH=467 HEIGHT=54 TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">
</EMBED>
</OBJECT>\n";
    } else {
        $theuser = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" ID=Untitled WIDTH=467 HEIGHT=54>
<PARAM NAME=movie VALUE=\"themes/WD-Core/images/logout.swf?username=$username&ip=$ip\">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=False>
<param name=\"bgcolor\" value=\"#161616\" />
<EMBED src=\"themes/WD-Core/images/logout.swf\" loop=false quality=high
WIDTH=467 HEIGHT=54 TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">
</EMBED>
</OBJECT>";
    }
echo "<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>\n";

$tmpl_file = "themes/WD-Core/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"60\" valign=\"top\" background=\"themes/WD-Core/images/core-leftbar.gif\"><img src=\"themes/WD-Core/images/core-leftbar.gif\" width=\"60\" height=\"1\" border=\"0\"></td>\n"
."<td width=\"183\" valign=\"top\">\n";

global $name;

if ($name<> "Splatt_Forums" and $name<> "Forums"){


blocks(left);

}
echo "</td><td valign=\"top\" align=\"center\" width=\"100%\" bgcolor=\"#181818\">";
}
/************************************************************/
/* Function themefooter()                                   */
/************************************************************/
function themefooter() {
global $index, $banners, $prefix, $dbi, $total_time, $start_time, $foot1, $foot2, $foot3, $foot4, $ip;
$maxshow = 10;        // Number of downloads to display in the block.
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_downloads_downloads order by date DESC limit 0,$maxshow", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", "<b>$title</b>");
$show2 .= " $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\">$title2&nbsp;</a><b><font class=\"content\">$hits</b><font class=\"copyright\"><br><br>";
$showdownloads = " <A name= \"scrollingCodedownloads\"></A><MARQUEE behavior= \"scroll\" align= \"up\" direction= \"up\" width=\"159\" height=\"74\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'><table width=\"100%\"><tr>           <td></td></tr>$show2</table></marquee>";
$a++;
}
$maxshow = 10;        // Number of weblinks to dispaly in the block.
$a = 1;
$result = sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow", $dbi);
while(list($lid, $title, $hits) = sql_fetch_row($result, $dbi)) {
$title2 = ereg_replace("_", " ", "<b>$title</b>");
$show .= " $a: <a href=\"modules.php?name=Web_Links&l_op=viewlinkdetails&lid=$lid&ttitle=$title\">&nbsp$title2&nbsp;</a><b><font class=\"content\">$hits</b><font class=\"copyright\"><br>";
$showlinks = " <A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"up\" direction= \"up\" width=\"159\" height=\"74\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>$show";
$a++;

}
/************************************************************/
/* banners are set with openbox function on the footer, if  */
/* you like to have it on the header you can do that as well*/
/************************************************************/
if ($banners == 1) {
OpenTable();
include("banners.php");
CloseTable();
}
if ($index == 1) {
echo"</td><td width=\"183\" valign=\"top\">\n";
blocks(right);
}
echo"</td>\n"
."<td width=\"62\" valign=\"top\" background=\"themes/WD-Core/images/core-rightbar.gif\"><img src=\"themes/WD-Core/images/core-rightbar.gif\" width=\"62\" height=\"0\" border=\"0\"></td>\n"
."</tr>\n"
."</table>\n\n\n";
$footer_message = "$foot1";
$footer_message2 = "$foot2";
$tmpl_file = "themes/WD-Core/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* 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&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ";
//End Code Change
$datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
$morelink = substr($morelink, strlen($datetime) + 2);
$tmpl_file = "themes/WD-Core/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themearticle()                                  */
/************************************************************/
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=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/WD-Core/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/WD-Core/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

?>
 
nuken







PostPosted: Thu Nov 29, 2012 3:28 pm Reply with quote

This is a really old theme using the old banners, old db abstraction layer and old out dated code. This theme will need some more work if you want it to validate. That's up to you. See if this works.

Code:
<?php

/************************************************************************/
/* PHP-NUKE: WD-Core theme for nuke 5.x-7.x                              */
/* ============================================                         */
/* http://WarpedDesignz.com                                          */
/* Made for PHP-NUKE 5.x-7.x: Advanced Content Management System        */
/* ============================================                         */
/* Copyright (c) 2003 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/************************************************************************/
// Theme WD-Core Public Release theme
// Original Author of file: WarpedDesignz - http://WarpedDesignz.com
// Purpose of file: Public Release phpnuke 5.x-7.x WD-Core Theme
// Developed at WarpedDesignz.com
// ----------------------------------------------------------------------
/************************************************************/
/* Theme Colors Definition                                  */
/************************************************************/
$bgcolor1 = "#181818";
$bgcolor2 = "#181818";
$bgcolor3 = "#181818";
$bgcolor4 = "#181818";
$textcolor1 = "#c0c0c0";
$textcolor2 = "#c0c0c0";
/************************************************************/
/* OpenTable Functions                                      */
/************************************************************/
function OpenTable() {
?>
<table id="Table_01" width="98%" border="0" cellpadding="0" cellspacing="0">
   <tr>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_01.gif" width="38" height="21" alt=""></td>
      <td background="themes/WD-Core/images/mod-lr1.gif" width="100%" height="21" alt=""></td>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_03.gif" width="37" height="21" alt=""></td>
   </tr>
   <tr>
      <td background="themes/WD-Core/images/mod-ud1.gif" width="18" alt=""></td>
      <td colspan="3" background="themes/WD-Core/images/mod-content.gif" width="100%" height="10" alt="">
<?
}
function CloseTable() {
?></td>
      <td background="themes/WD-Core/images/mod-ud2.gif" width="19" alt=""></td>
   </tr>
   <tr>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_07.gif" width="38" height="21" alt=""></td>
      <td background="themes/WD-Core/images/mod-lr2.gif" width="100%" height="21" alt=""></td>
      <td colspan="2">
         <img src="themes/WD-Core/images/mod_09.gif" width="37" height="21" alt=""></td>
   </tr>
   <tr>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="18" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="20" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="18" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="18" height="1" alt=""></td>
      <td>
         <img src="themes/WD-Core/images/spacer.gif" width="19" height="1" alt=""></td>
   </tr>
</table>
<?
}
function OpenTable2() {
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" align=\"center\"><tr><td class=extra>\n";
echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" ><tr><td>\n";
}
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=\"#ffffff\">$thetext$notes</font>\n";
} else {
if($informant != "") {
$boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
} else {
$boxstuff = "$anonymous ";
}
$boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
}
}
/************************************************************/
    function themeheader() {
    global $user, $cookie, $prefix, $user_prefix, $db, $userinfo, $sitekey, $name, $ip;
   
    cookiedecode($user);
    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 (empty($username)) {
        $username = "Guest";
    }
$ip = $_SERVER["REMOTE_ADDR"] ;

$public_msg = public_message();
 

echo "$public_msg";
//$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
//$topics_list .= "<option value=\"\">All Topics</option>\n";
//$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
//while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
//if ($topicid==$topic) { $sel = "selected "; }
//$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
//$sel = "";
    //login feature//
    if ($username == "Guest") {
        $theuser = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" ID=Untitled WIDTH=467 HEIGHT=54>
<PARAM NAME=movie VALUE=\"themes/WD-Core/images/login.swf?random_num=$random_num&gfx_check=$code\">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=False>
<param name=\"bgcolor\" value=\"#161616\" />
<EMBED src=\"themes/WD-Core/images/login.swf?random_num=$random_num&gfx_check=$code\" loop=false quality=high
WIDTH=467 HEIGHT=54 TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">
</EMBED>
</OBJECT>\n";
    } else {
        $theuser = "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0\" ID=Untitled WIDTH=467 HEIGHT=54>
<PARAM NAME=movie VALUE=\"themes/WD-Core/images/logout.swf?username=$username&ip=$ip\">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=loop VALUE=False>
<param name=\"bgcolor\" value=\"#161616\" />
<EMBED src=\"themes/WD-Core/images/logout.swf\" loop=false quality=high
WIDTH=467 HEIGHT=54 TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\">
</EMBED>
</OBJECT>";
    }
echo "<BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>\n";

$tmpl_file = "themes/WD-Core/header.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
echo "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
."<tr valign=\"top\">\n"
."<td width=\"60\" valign=\"top\" background=\"themes/WD-Core/images/core-leftbar.gif\"><img src=\"themes/WD-Core/images/core-leftbar.gif\" width=\"60\" height=\"1\" border=\"0\"></td>\n"
."<td width=\"183\" valign=\"top\">\n";

global $name;

if ($name<> "Splatt_Forums" and $name<> "Forums"){


blocks('left');

}
echo "</td><td valign=\"top\" align=\"center\" width=\"100%\" bgcolor=\"#181818\">";
}
/************************************************************/
/* Function themefooter()                                   */
/************************************************************/
function themefooter() {
global $index, $banners, $prefix, $db, $total_time, $start_time, $foot1, $foot2, $foot3, $foot4, $ip;
$maxshow = 10;        // Number of downloads to display in the block.
$a = 1;
$result = $db->sql_query("select lid, title, hits from ".$prefix."_downloads_downloads order by date DESC limit 0,$maxshow");
while(list($lid, $title, $hits) = $db->sql_fetchrow($result)) {
$title2 = str_replace("_", " ", "<b>$title</b>");
$show2 .= " $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\">$title2&nbsp;</a><b><font class=\"content\">$hits</b><font class=\"copyright\"><br /><br />";
$showdownloads = " <A name= \"scrollingCodedownloads\"></A><MARQUEE behavior= \"scroll\" align= \"up\" direction= \"up\" width=\"159\" height=\"74\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'><table width=\"100%\"><tr>           <td></td></tr>$show2</table></marquee>";
$a++;
}
$maxshow = 10;        // Number of weblinks to dispaly in the block.
$a = 1;
$result = $db->sql_query("select lid, title, hits from ".$prefix."_links_links order by date DESC limit 0,$maxshow");
while(list($lid, $title, $hits) = $db->sql_fetchrow($result)) {
$title2 = str_replace("_", " ", "<b>$title</b>");
$show .= " $a: <a href=\"links.html?l_op=viewlinkdetails&lid=$lid&ttitle=$title\">&nbsp$title2&nbsp;</a><b><font class=\"content\">$hits</b><font class=\"copyright\"><br />";
$showlinks = " <a name= \"scrollingCode\"></a><marquee behavior= \"scroll\" align= \"up\" direction= \"up\" width=\"159\" height=\"74\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>$show";
$a++;

}
/************************************************************/
/* banners are set with openbox function on the footer, if  */
/* you like to have it on the header you can do that as well*/
/************************************************************/
if ($banners == 1) {
OpenTable();
echo ads(0);   
CloseTable();
}
if (defined('INDEX_FILE') && INDEX_FILE===true) {
echo"</td><td width=\"183\" valign=\"top\">\n";
blocks('right');
}
echo"</td>\n"
."<td width=\"62\" valign=\"top\" background=\"themes/WD-Core/images/core-rightbar.gif\"><img src=\"themes/WD-Core/images/core-rightbar.gif\" width=\"62\" height=\"0\" border=\"0\"></td>\n"
."</tr>\n"
."</table>\n\n\n";
$footer_message = footmsg();
$footer_message2 = "$foot1<br />$foot2";
$tmpl_file = "themes/WD-Core/footer.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
echo _RN_FOOTER_CREDITS;
}
/************************************************************/
/* 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&amp;op=userinfo&amp;uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." \"$thetext\"$notes\n";
}
//Code Changed - just show posted by
$posted = ""._POSTEDBY." ";
$posted .= get_author($aid);
$posted .= " "._ON." $time $timezone ";
//End Code Change
$datetime = substr($morelink, 0, strpos($morelink, "|") - strlen($morelink));
$morelink = substr($morelink, strlen($datetime) + 2);
$tmpl_file = "themes/WD-Core/story_home.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}
/************************************************************/
/* Function themearticle()                                  */
/************************************************************/
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=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
} else {
$content = "$anonymous ";
}
$content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
}
$tmpl_file = "themes/WD-Core/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/WD-Core/blocks.html";
$thefile = implode("", file($tmpl_file));
$thefile = addslashes($thefile);
$thefile = "\$r_file=\"".$thefile."\";";
eval($thefile);
print $r_file;
}

?>
 
derek765







PostPosted: Thu Nov 29, 2012 3:53 pm Reply with quote

That fixed it, I need to now try and fix the header and footer issues.
Thanks nuken.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Themes

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©