PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 535

PostPosted: Mon Feb 23, 2009 5:23 am Reply with quote Back to top

The left blocks only show up correctly when someone is logged in as an admin. See pics:
Only registered users can see links on this board!
Get registered or login to the forums!
and
Only registered users can see links on this board!
Get registered or login to the forums!


EDIT:
I found that if I deactivate the Site Navigation block the other left blocks do show when not logged in as an admin. I tried downloading a fresh copy of the site navigation block from RN but it made no difference.

This issue does not occur with the fisubice theme. Or any other of the themes that come with RN2.30 (or any other themes I have).

Problems with the blocks occur on a fresh install if I try to use the site-navigation block.
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2404
Location: Pennsylvania

PostPosted: Mon Feb 23, 2009 6:46 am Reply with quote Back to top

If someone doesn't get to this I will look at it tonight.
View user's profile Send private message Visit poster's website
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 144
Location: West Sussex - UK

PostPosted: Thu Feb 26, 2009 7:56 am Reply with quote Back to top

Has anyone got to the bottom of this yet. I have a similar problem with RavenIce and RN2.30.01, but only seems to show up in IE6 (at work), IE7 (at home) and Firefox (at home) seems ok and I think Fisubice is ok as well. The site is
Only registered users can see links on this board!
Get registered or login to the forums!


John
View user's profile Send private message Visit poster's website
gotcha
Regular
Regular


Joined: Mar 14, 2005
Posts: 91

PostPosted: Thu Feb 26, 2009 9:16 am Reply with quote Back to top

The css based themes are more sensitive to html errors then regular table based themes. It could be an unclosed div tag, an extra center tag, misplaced closing tag, poorly written javascript, etc. These types of errors usually come from older modules/blocks, among other things. Run your site through a HTML validator and try to fix the errors. You could also try going through disabling the blocks one at a time to see where the problem is.
View user's profile Send private message Visit poster's website
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 535

PostPosted: Thu Feb 26, 2009 10:43 am Reply with quote Back to top

For me, these themes work fine until I activate block-site_navigation. As I explained, the same things occur with the blocks when not logged in as an admin even if I use a freshly downloaded copy of site-navigation block. No other blocks that I know of are causing any problems. And, as noted, a fresh install right out of the box works perfect when not logged in as an admin, until I activate the only block not include in the package - block-site_navigation. I


Last edited by Doulos on Thu Feb 26, 2009 11:53 am; edited 2 times in total
View user's profile Send private message
Doulos
Life Cycles Becoming CPU Cycles


Joined: Jun 06, 2005
Posts: 535

PostPosted: Fri Feb 27, 2009 3:14 am Reply with quote Back to top

I moved the closing tag for <select> to right before the ?> and now it all works fine. I don't know if this is going to cause problems or not as I do not know PHP. I do know it know works when not logged in as an admin. Thanks for the help.
Code:
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
/* Modified by Gaylen Fraley to use Select box instead of regular block */
/* Cleaned up code by StephanL - Thanks!                                */
/************************************************************************//************************************************************************/
if (eregi("block-site_navigation.php", $_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}
$bgcolor1 = "#333333";
$bgcolor2 = "#3333333";
$bgcolor3 = "#3333333";
$bgcolor4 = "#333333";
$textcolor1 = "#88684B";
$textcolor2 = "#88684B";

global $prefix, $db, $admin;

    $ThemeSel = get_theme();
    if (file_exists("themes/$ThemeSel/module.php")) {
   include("themes/$ThemeSel/module.php");
   if (is_active("$default_module") AND file_exists("modules/$default_module/index.php")) {
       $def_module = $default_module;
   } else {
       $def_module = "";
   }
    }

    $sql = "SELECT main_module FROM ".$prefix."_main";
    $result = $db->sql_query($sql);
    $row = $db->sql_fetchrow($result);
    $main_module = $row[main_module];

    /* If the module doesn't exist, it will be removed from the database automaticaly */

    $sql = "SELECT title FROM ".$prefix."_modules";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $title = $row[title];
   $a = 0;
   $handle=opendir('modules');
   while ($file = readdir($handle)) {
           if ($file == $title) {
      $a = 1;
       }
   }
   closedir($handle);
   if ($a == 0) {
       $db->sql_query("DELETE FROM ".$prefix."_modules WHERE title='$title'");
   }
    }   

/* Now we make the Modules block with the correspondent links */
 
 $content .= "<script type=\"text/javascript\">function gotoURL(dropDown) {   URL=dropDown.options[dropDown.selectedIndex].value;      if(URL.length>0) {         top.location.href = URL;       } } </script>";
   $content .= "<select name=\"name\" size=\"1\" onchange=\"gotoURL(this)\">";
   $content .= "<option>Select</option>";
//Link to Home   //
   $content .= "<option value=\"/index.php\"><big>&middot;</big>&nbsp;"._HOME."</option>";
   
 
    $sql = "SELECT title, custom_title, view FROM ".$prefix."_modules WHERE active='1' AND title!='$def_module' AND inmenu='1' ORDER BY custom_title ASC";
    $result = $db->sql_query($sql);
    while ($row = $db->sql_fetchrow($result)) {
   $m_title = $row[title];
   $custom_title = $row[custom_title];
   $view = $row[view];
   $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\"><big>&middot;</big>&nbsp;$m_title2</option>";
      
       }
   }
 
    }

    /* 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] != "") {
      $sql = "SELECT mid FROM ".$prefix."_modules WHERE title='$modlist[$i]'";
      $result = $db->sql_query($sql);
      $row = $db->sql_fetchrow($result);

      $mid = $row[mid];
      if ($mid == "") {
          $db->sql_query("INSERT INTO ".$prefix."_modules VALUES (NULL, '$modlist[$i]', '$modlist[$i]', '0', '0', '1')");
      }
       }
   }
   $content .= "<option value=\"\">--------</option><option value=\"\">"._INVISIBLEMODULES."</option>";
   $sql = "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='1' AND inmenu='0' ORDER BY title ASC";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
       $mn_title = $row[title];
       $custom_title = $row[custom_title];
       $mn_title2 = ereg_replace("_", " ", $mn_title);
       if ($custom_title != "") {
      $mn_title2 = $custom_title;
       }
       if ($mn_title2 != "") {
      $content .= "<option value=\"modules.php?name=$mn_title\"><big>&middot;</big>&nbsp;$mn_title2";
      $dummy = 1;
       } else {
      $a = 1;
       }
   }

   if ($a == 1 AND $dummy != 1) {
           $content .= "<strong><big>&middot;</big></strong>&nbsp;<i>"._NONE."</i><br>\n";
   }
   $content .= "<option value=\"\">--------</option><option value=\"\">"._NOACTIVEMODULES."</option>";
   $sql = "SELECT title, custom_title FROM ".$prefix."_modules WHERE active='0' ORDER BY title ASC";
   $result = $db->sql_query($sql);
   while ($row = $db->sql_fetchrow($result)) {
       $mn_title = $row[title];
       $custom_title = $row[custom_title];
       $mn_title2 = ereg_replace("_", " ", $mn_title);
       if ($custom_title != "") {
      $mn_title2 = $custom_title;
       }
       if ($mn_title2 != "") {
      $content .= "<option value=\"modules.php?name=$mn_title\"><big>&middot;</big>&nbsp;$mn_title2";
      $dummy = 1;
       } else {
      $a = 1;
       }
   }
   
   if ($a == 1 AND $dummy != 1) {
           $content .= "<strong><big>&middot;</big></strong>&nbsp;<i>"._NONE."</i><br>\n";
   
   }
    }
   $content .= "</select>";

?>
View user's profile Send private message
j4rdin
Worker
Worker


Joined: May 26, 2006
Posts: 144
Location: West Sussex - UK

PostPosted: Fri Feb 27, 2009 5:10 pm Reply with quote Back to top

gotcha wrote:
The css based themes are more sensitive to html errors then regular table based themes. It could be an unclosed div tag, an extra center tag, misplaced closing tag, poorly written javascript, etc. These types of errors usually come from older modules/blocks, among other things. Run your site through a HTML validator and try to fix the errors. You could also try going through disabling the blocks one at a time to see where the problem is.


I have tried disabling all the blocks one at a time and then using IE NetRenderer at
Only registered users can see links on this board!
Get registered or login to the forums!
set to IE6 to check the home page, the site only shows part of the home page when set to IE5 or 6 but seems to work ok when set to IE7 or 8.

Unfortunately I can't track down any particular block which is throwing everything out. As I don't use IE6 apart from at work, its a bit difficult to test things properly.
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum