the right blocks showed on the last theme i used but i download a theme for phpnuke and now i cant see any right hand modules and also my footer has gone as well??????
Joined: Aug 28, 2003 Posts: 6302 Location: Vsetin, Czech Republic
Posted:
Thu Dec 25, 2008 4:29 am
If you are using RavenNuke (tm) 2.3 it is backward compatible with the older pre-patched method of $index=1 so your right blocks should be showing unless there is a fundamental problem with the theme.
Assuming you have some right blocks set to visible and you are on a module page that uses right blocks, (like the homepage) and the file left_center.html actually exists on the server I would suggest turning on error reporting on in your nukeroot/config.php file to see if the theme is generating any errors.
$a++;
}
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 */
/************************************************************/
/* 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;
Joined: Aug 28, 2003 Posts: 6302 Location: Vsetin, Czech Republic
Posted:
Wed Mar 03, 2010 4:20 am
Thats an old theme as I can see references to banners.php so it was originally written for nuke prior to v7.9
I'm not seeing any references to function blocks('right') so it could be that this theme was not intended to have right blocks.
i have downloaded the latest version of raven nuke (RavenNuke[tm] Version 2.40.01 Released [.7z pkg. 6.51meg] ) and now when i uploaded a theme it stoped showing right hand side blocks i have tried editing theme.php -------- if ($index == 1) { TO if (defined('INDEX_FILE')) { but its still not working , even the footer messages are not showing .... and i have also checked if any block was causing it.... but its not.....its happning only with the themes i have uploaded otherwise it works fine with all other theme that comes with ravennuke ....... some one please help me .... ty
I was reading all your posts and I think you should take into account if you copy from any forum and paste on your files( If you activate Shows White Space) then you can get errors due to the fact you are creating white spaces at the end of any line. Please Use a decent editor like this one in order to remove any white space.
Only registered users can see links on this board! Get registered or login to the forums!
FREE FOR ALL. I am using it for more than 3 years.
Im using WD-eX0tech theme, i have tried many other themes but it was all the same, none had the right hand side blocks and even aftet editing it was not working. The only one that worked was heliusburgandy but that theme was not of my choice.
Joined: Aug 28, 2003 Posts: 6302 Location: Vsetin, Czech Republic
Posted:
Sat Apr 03, 2010 10:41 am
This is an old theme written in 2006
The theme is not W3C Compliant but that isn't the cause of your problem. The theme is using the deprecated $dbi database layer and the references to it in the theme.php file inside the themefooter() function is what is causing the issue.
Here is a replacement function
Code:
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 = ereg_replace("_", " ", "<b>$title</b>");
$show2 .= " $a: <a href=\"modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$lid&title=$title\"><img src=\"themes/WD-eX0tech/images/disc.gif\" width=\"12\" height=\"12\" alt=\"\" border=\"0\" align=\"\"> $title2 </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=\"182\" height=\"70\" 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 = ereg_replace("_", " ", "<b>$title</b>");
$show .= " $a: <a href=\"links.html&l_op=viewlinkdetails&lid=$lid&ttitle=$title\"> $title2 </a><b><font class=\"content\">$hits</b><font class=\"copyright\"><br><br>";
$showlinks = " <A name= \"scrollingCode\"></A><MARQUEE behavior= \"scroll\" align= \"up\" direction= \"up\" width=\"182\" height=\"70\" scrollamount= \"2\" scrolldelay= \"20\" onmouseover='this.stop()' onmouseout='this.start()'>$show";
$a++;
}
I have not checked the rest of the theme, there may well be other issues due to the age of the theme, for example if you look at the source code in your browser, you will see a reference at the top to 'rightmenu.js' which is not included in this theme.
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