Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro
Author Message
DC_IronMan
New Member
New Member



Joined: Nov 15, 2005
Posts: 14

PostPosted: Sun Feb 19, 2006 7:50 pm Reply with quote

I have installed RavenNuke7.6 for someone and get this message about the flash nav block.

Column count doesn't match value count at row 1
Column count doesn't match value count at row 1

The block works just get this message.

Can someone tell me what to look for?

Code:
<?php

#### Generated by Block Creator by Disipal Site (www.disipal.net) ###
if (eregi("block-DD-FlashNav.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\">";
$content  .= "<head>";
$content  .= "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />";
$content  .= "<title>DD Flash Nav</title>";
$content  .= "</head>";
$content  .= "<body bgcolor=\"#141414\">";
$content  .= "<!--url's used in the movie-->";
$content  .= "<!--text used in the movie-->";
$content  .= "<center>";
global $prefix, $dbi, $admin;


/* Make dropdown or block style full selection menu - NOTE: inactive modules only viewable by Admin */
$content  .= "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"138\" height=\"282\" id=\"tribalblock\" align=\"middle\">";
$content  .= "<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
$content  .= "<param name=\"movie\" value=\"includes/nav/FlashNav.swf\" />";
$content  .= "<param name=\"quality\" value=\"high\" />";
$content  .= "<param name=\"bgcolor\" value=\"#141414\" />";
$content  .= "<embed src=\"includes/nav/FlashNav.swf\" quality=\"high\" bgcolor=\"#141414\" width=\"138\" height=\"282\" name=\"FlashNav\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />";
$content  .= "</object>";
if ($dropDown == 0){
    $content .= "<CENTER><br><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><FORM METHOD=POST ACTION=\"modules.php\"><TD><SELECT NAME=\"name\" onChange=\"top.location.href=this.options[this.selectedIndex].value\"><OPTION VALUE=\"\">Full Selection";
    }   else {
   $content .= "<CENTER><br><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><FORM METHOD=POST ACTION=\"modules.php\"><TD><SELECT NAME=\"name\" MULTIPLE SIZE=\"$row2show\" onChange=\"top.location.href=this.options[this.selectedIndex].value\"><OPTION VALUE=\"\">Full Selection";
   }

$content .= "<OPTION VALUE=\"\">---------------\n";
$result = sql_query("select title, custom_title, view from ".$prefix."_modules where active='1' AND title!='$def_module' AND inmenu='1' ORDER BY title ASC", $dbi);
while(list($m_title, $custom_title, $view) = sql_fetch_row($result, $dbi)) {
    $m_title2 = ereg_replace("_", " ", $m_title);
    if ($custom_title != "") {
   $m_title2 = $custom_title;
   }
    if ($m_title != $main_module) {
    if ((is_admin($admin) AND $view == 2) OR $view != 2) {
   $content .= "<OPTION VALUE=\"modules.php?name=$m_title\">$m_title2\n";
   }
    }
}
/* If you're Admin you and only you can see Inactive modules and test it */
/* If you copied a new module is the /modules/ directory, it will be added to the database */
   
    if (is_admin($admin)) {
   $handle=opendir('modules');
   while ($file = readdir($handle)) {
       if ( (!ereg("[.]",$file)) ) {
      $modlist .= "$file ";
       }
   }
   closedir($handle);
   $modlist = explode(" ", $modlist);
   sort($modlist);
   for ($i=0; $i < sizeof($modlist); $i++) {
       if($modlist[$i] != "") {
      $result = sql_query("select mid from ".$prefix."_modules where title='$modlist[$i]'", $dbi);
      list ($mid) = sql_fetch_row($result, $dbi);
      if ($mid == "") {
          sql_query("insert into ".$prefix."_modules values (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')", $dbi);
      }
       }
   }
   
   $content .= "<OPTION VALUE=\"\">---------------\n";
    $content .= "<OPTION VALUE=\"\">"._INVISIBLEMODULES."\n";
    //$content .= "<OPTION VALUE=\"\">"._ACTIVEBUTNOTSEE."\n";
    $content .= "<OPTION VALUE=\"\">---------------\n";
    $result = sql_query("select title, custom_title from ".$prefix."_modules where active='1' AND inmenu='0' ORDER BY title ASC", $dbi);
    while(list($mn_title, $custom_title) = sql_fetch_row($result, $dbi)) {
   $mn_title2 = ereg_replace("_", " ", $mn_title);
   if ($custom_title != "") {
       $mn_title2 = $custom_title;
   }
    if ($mn_title2 != "") {
   $content .= "<OPTION VALUE=\"modules.php?name=$mn_title\">$mn_title2\n";
   $dummy = 1;
    } else {
    $a = 1;
    }
    }
    if ($a = 1 AND $dummy != 1) {
        $content .= "<OPTION VALUE=\"\">"._NONE."\n";
   }
   
    $content .= "<OPTION VALUE=\"\">---------------\n";
    $content .= "<OPTION VALUE=\"\">"._NOACTIVEMODULES."\n";
    //$content .= "<OPTION VALUE=\"\">"._FORADMINTESTS."\n";
    $content .= "<OPTION VALUE=\"\">---------------\n";
    $result = sql_query("select title, custom_title from ".$prefix."_modules where active='0' ORDER BY title ASC", $dbi);
    while(list($mn_title, $custom_title) = sql_fetch_row($result, $dbi)) {
   $mn_title2 = ereg_replace("_", " ", $mn_title);
   if ($custom_title != "") {
       $mn_title2 = $custom_title;
   }
    if ($mn_title2 != "") {
   $content .= "<OPTION VALUE=\"modules.php?name=$mn_title\">$mn_title2\n";
   $dummy = 1;
    } else {
    $a = 1;
    }
    }
    if ($a = 1 AND $dummy != 1) {
        $content .= "<OPTION VALUE=\"\">"._NONE."\n";
   }
}
$content .= "</SELECT></TD></TR></FORM></TABLE></CENTER>";

/* Search feature */
if ($viewSearch == 0){
    $content .= "<center><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><form action=\"search.html\" method=\"post\">";
    $content .= "<br><center><input type=\"text\" onfocus=\"value=''\" value=\"Site Search\" name=\"query\" size=\"20\"></center>";
    $content .= "</TD></TR></form></TABLE></center>";
    }   else {
   return;
   }
$content  .= "</center>";
$content  .= "</body>";
$content  .= "</html>";
?>


I can send you the other files that this block works with if needed.

Thanks[/quote]
 
View user's profile Send private message
Dawg
RavenNuke(tm) Development Team



Joined: Nov 07, 2003
Posts: 928

PostPosted: Sun Feb 19, 2006 8:21 pm Reply with quote

DC,
Sounds to me like you have a DB call not adding up. Go through your script and look st the DB calls...."sql_query".....and see if all the fields it is asking for are present in your database tables.



Dawg

I'm no expert....I just keep mashing buttons till it works!
 
View user's profile Send private message
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's RavenNuke(tm) v2.00.00 - v2.02.00 Distro

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 ©