Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Themes
Author Message
AndyB
Worker
Worker



Joined: Jun 03, 2004
Posts: 231
Location: Torrevieja, Spain

PostPosted: Sun Mar 21, 2010 2:20 pm Reply with quote

Hi Guys;;myself and one of the users on the site have been working on a "new" theme for RN;

based on charcoal2 by nukemods (phpbb part by zarron media), with parts "borrowed" from ct_rn_black, plus some of our own stuff.

I need help, if possible (some of this is probably going to take me longer to work out on my own, so I thought I'd ask more knowledgeable for help)

When I put it through the w3c validator, it fails. Nothing major, but trying to pinpoint the source of errors could be.... "fun"

I'm about to zip the file up, and make it available to anyone that can help.

My other concern is regarding "legalities"- I need to make sure what I've done is ok, and I've left all the copyrights/ credited original authors where possible.

The html validator here on RN gives me the following errors:

Code:
Messages

Type   Line   Message
Error   196   The "script" element cannot be used here. It is not contained in an element that allows its use. This element may be contained in "body" and "head".

<script type="text/javascript" language="JavaScript1.2" src="themes/afnet_grey/jscript/imageswap.js"></script><center>
 
Error   196   The "center" element cannot be used here. It is not contained in an element that allows its use. This element may be contained in "body", "dd", "td", and "th".

<script type="text/javascript" language="JavaScript1.2" src="themes/afnet_grey/jscript/imageswap.js"></script><center>
 
Error   204   The "tr" element cannot be used here. It is nested in another "tr" tag and cannot be nested. Has the previous "tr" element been ended with an end tag? This element may be contained in "table". This element may not be contained in "tr".

<tr>
 
Error   207   The end tag for "tr" (started in line 202) should appear before the end tag for "table" (nesting error).

</table>
 
Error   210   The "div" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "dd", "td", and "th". This element may not be contained in "dl" and "table".

<div style="float: left; position: relative; left: 50%;"><div style="position:relative;left:-50%;"><span class="center">&nbsp;</span><span class="right">&...
 
Error   210   The "div" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "dd", "td", and "th". This element may not be contained in "dl" and "table".

<div style="float: left; position: relative; left: 50%;"><div style="position:relative;left:-50%;"><span class="center">&nbsp;</span><span class="right">&nbsp;</span><ul id="nukeNAV" class="nukeNAV"><li><a href=...
 
Error   210   The "ul" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "dd", "li", "td", and "th". This element may not be contained in "dir", "dl", "menu", and "table".

...: left; position: relative; left: 50%;"><div style="position:relative;left:-50%;"><span class="center">&nbsp;</span><span class="right">&nbsp;</span><ul id="nukeNAV" class="nukeNAV"><li><a href="./">Home</a></li>
 
Error   210   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

...;"><div style="position:relative;left:-50%;"><span class="center">&nbsp;</span><span class="right">&nbsp;</span><ul id="nukeNAV" class="nukeNAV"><li><a href="./">Home</a></li>
 
Error   212   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="modules.php?name=News" title="">News</a>
 
Error   214   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a title="">Forums</a>
 
Error   216   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="forums.html" title="">Forums</a></li>
 
Error   217   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="forums.html?amp;file=search&amp;search_id=newposts" title="">New Forum Posts</a></li>
 
Error   218   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="forums.html?amp;file=search&amp;search_id=unanswered" title="">Unanswered Posts</a></li>
 
Error   221   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a>Modules</a><ul><li><a href="modules.php?name=AvantGo">AvantGo</a></li>
 
Error   221   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a>Modules</a><ul><li><a href="modules.php?name=AvantGo">AvantGo</a></li>
 
Error   222   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="modules.php?name=Surveys">Surveys</a></li>
 
Error   223   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="top.html">Top 10</a></li>
 
Error   225   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="modules.php?name=Your_Account" title="">Your Account</a>
 
Error   227   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="modules.php?name=nukeNAV&amp;op=login" class="colorbox" title="">Login</a></li>
 
Error   228   The "a" element cannot be used here. It is contained in a "table" tag that cannot contain it. This element may be contained in "body", "caption", "td", and "th". This element may not be contained in "a", "button", and "table".

<li><a href="modules.php?name=Your_Account&amp;op=new_user" title="">Register</a></li>
 
Error   231   Terminating validation due to too many errors. Please correct the previous errors and recheck the document. HTML Validator is currently set to stop checking after 20 errors.

<li><a title="">Site Info</a>


I'm hoping, if everyone thinks it's good enough, to make it available to others, free of charge ;I've made notes, in case anyone needs/ wants to change the colour scheme, which files need changing other than the style.css

We've tried to put all style requirements into style.css (including nukeNAV.css AND forumstyle.css)

It's NOT a fixed width design, and it also has the random image portion at the top (save your images in one folder and it will work through them, the same way as ct_rn_black/ red/grey/etc.

Comments/ suggestions welcome Very Happy

edit:

screen grabs attached:
Image
Image
 
View user's profile Send private message
AndyB







PostPosted: Mon Mar 22, 2010 6:44 am Reply with quote

quick one; when viewed in Firefox or Chrome, it appears as above- text aligned left, etc.

When using Opera or Internet Explorer, the text is centered. There's nothing in the css files, OR theme.php that has an alignment attribute of center- anyone any ideas?
 
spasticdonkey
RavenNuke(tm) Development Team



Joined: Dec 02, 2006
Posts: 1693
Location: Texas, USA

PostPosted: Mon Mar 22, 2010 8:15 am Reply with quote

looking nice, for the JS issue, it's adding the script inbetween the head and body tags (nothing should be there).
Code:
</head>

<script type="text/javascript" language="JavaScript1.2" src="themes/afnet_grey/jscript/imageswap.js"></script><center>


<body bgcolor="#8A8C91" text="#DCDCDC" leftmargin="10" topmargin="10" marginwidth="10" marginheight="10">


You need to add that script to the addJSToHead array to load it properly (this will only work on RN 2.4+). Add this near the top of your theme.php (after the opening php tag)

Code:
// Theme specific config script

include_once INCLUDE_PATH . 'themes/afnet_grey/afnet.php';


and create a new file (this is missing the opening/closing php tags)
themes/afnet_grey/afnet.php

Code:
if (stristr(htmlentities($_SERVER['PHP_SELF']), 'afnet.php')) {

   Header('Location: ../../index.php');
   die();
}
/***********************************************************************************/
/* Including jQuery :)                                                             */
/***********************************************************************************/
   addJSToHead('includes/jquery/jquery.js', 'file');
/***********************************************************************************/
/* Image script                                                          */
/***********************************************************************************/
   addJSToHead('themes/afnet_grey/jscript/imageswap.js', 'file');

that should work for you Smile
note: if your image script doesn't require jquery you can remove that line..
 
View user's profile Send private message Visit poster's website
AndyB







PostPosted: Mon Mar 22, 2010 9:28 am Reply with quote

thanks for that (would never have known about that- any of it Embarassed ) - all help is appreciated Very Happy

My theme.php is below (I'll remove the opening and closing tags out, and hope it works)

I think my biggest problem (as always!) is getting tables wrapped around my head... always given me grief... lol
Code:
// Theme specific config script

include_once INCLUDE_PATH . 'themes/afnet_grey/afnet.php';


/************************************************************/
/* Theme Name: afnet_grey                                   */
/* Theme Design: Audifans.net / CASWeb Solutions            */
/*                                                          */
/* Copyright Notice(read and understand)                    */
/* - THIS PACKAGE IS NOT RELEASED AS GPL/GNU SCRIPTING.     */
/*                                                          */
/* - Author names and Credit links MUST REMAIN in the       */
/*   credit line footer of all Nuke generated pages.        */
/*                                                          */
/* - Translations are permitted, not renaming.              */
/*                                                          */
/* - ANY UNAUTHORIZED USE OF THESE MATERIALS                */
/*   MAY VIOLATE COPYRIGHTS and/or TRADEMARKS.              */
/*                                                          */
/* - This package CAN NOT be mirrored without written       */
/*   permission.                                            */
/*                                                          */
/* - ADDITIONAL COPYRIGHTS BY TEMPLATE AUTHORS APPLY        */
/*                                                          */
/* - FULL LICENSE - http://www.nukemods.com                 */
/*                                                          */
/************************************************************/

/************************************************************/
/* Theme Colors Definition                                  */
/*                                                          */
/* Define colors for your web site. $bgcolor2 is generaly   */
/* used for the tables border as you can see on OpenTable() */
/* function, $bgcolor1 is for the table background and the  */
/* other two bgcolor variables follows the same criteria.   */
/* $texcolor1 and 2 are for tables internal texts           */
/************************************************************/



/************************************************************/
/* OpenTable Functions                                      */
/*                                                          */
/* Define the tables look&feel for you whole site. For this */
/* we have two options: OpenTable and OpenTable2 functions. */
/* Then we have CloseTable and CloseTable2 function to      */
/* properly close our tables. The difference is that        */
/* OpenTable has a 100% width and OpenTable2 has a width    */
/* according with the table content                         */
/************************************************************/

function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
  <tr>
    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
        <tr>
          <td bgcolor=\"#CCCCCC\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#303032\">
              <tr>
                <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">
                    <tr>
                      <td background=\"themes/afnet_grey/forums/images/bk-z.jpg\" bgcolor=\"#C0C0C0\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">
                          <tr>
                            <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
                                <tr>
                                  <td background=\"themes/afnet_grey/forums/images/bk-z.jpg\" bgcolor=\"#8A8C91\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">
                                      <tr>
                                        <td>";
}

function CloseTable() {
    echo "</td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table></td>
                          </tr>
                         
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
      </table></td>
  </tr>
</table>";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"left\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}

/************************************************************/
/* Function themeheader()                                   */
/*                                                          */
/* Control the header for your site. You need to define the */
/* BODY tag and in some part of the code call the blocks    */
/* function for left side with: blocks(left);               */
/************************************************************/

function themeheader() {
    global  $module_name, $banners, $admin, $user, $name, $sitename, $index, $admin_file, $nukeurl, $slogan, $cookie, $prefix, $db, $nukeNAV, $anonymous;
 if (!empty($nukeNAV)) $nukeNAV = '<span class="center">&nbsp;</span><span class="right">&nbsp;</span>'.$nukeNAV.'';
   else {
      $nukeNAV = '<span class="right">&nbsp;</span><span class="center">&nbsp;</span>
      <a href="./index.php">Home</a>
      <a href="./modules.php?name=Forums">Forum</a>
      <a href="./modules.php?name=Your_Account">Account</a>
      <a href="./modules.php?name=Stories_Archive">News</a>
      <a href="./modules.php?name=Reviews">Reviews</a>
      <a href="./modules.php?name=Advertising">Advertisement</a>
      <a href="./modules.php?name=Downloads">Downloads</a>
      <a href="./modules.php?name=Feedback">Contact</a>';
      if (is_admin($admin)) {
         $nukeNAV .= '<a href="./admin.php">Admin</a>';
      } else {
         $nukeNAV .= '<a href="./modules.php?name=Search">Search</a>';
      }
   }
   
   
   
        cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
        if ($username == "Anonymous") {
   $theuser = "&nbsp;&nbsp;<a href=\"account.html\">"._LOGIN."</a> or <a href=\"account-new_user.html\">"._BREG."</a>\n";
    } else {
   $theuser = "&nbsp;&nbsp;"._BWEL." $username!";
    }
   $public_msg = public_message();
   
echo"$showbanners"
."<tr>\n"
  ."<td>\n"
   . "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
  . "<tr>\n"
 
  . "<td width=\"100%\" align=\"center\"><a href=\"./\"><img src=\"themes/afnet_grey/random_banners/random_banner.php\" title=\"Template tweaked Audifans.net/ CASWeb Solutions\" alt=\"The UK Audi enthusiasts\"></a></td>\n"
 
  . "</tr>\n";

 

echo "<td>&nbsp;</td>\n"
  . "</tr>\n"
  . "</table>\n"
  . "<table width=\"100%\" align=\"center\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
  . "<tr>\n";

echo '<div style="float: left; position: relative; left: 50%;"><div style="position:relative;left:-50%;">'.$nukeNAV.'';
 
   
$adText = ads(0);
echo '<div align="center">' . $adText . '</div>';


echo "</tr>\n"
  . "</table>\n"
  . "<table width=\"100%\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">\n"
  . "      <tr valign=\"top\">\n"
  . "        <td>$public_msg<img src=\"themes/afnet_grey/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
  . "</tr></table>\n"
  . "<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"left\">\n"
  . "<tr valign=\"top\">\n"
  . "  <td valign=\"top\" width=\"1\" background=\"themes/afnet_grey/images/7px.gif\">\n"
  . "";
    blocks(left);
echo "</td><td valign=\"top\" width=\"100%\">\n";
}

/************************************************************/
/* Function themefooter()                                   */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call   */
/* the function for right blocks with: blocks(right);       */
/* Also, $index variable need to be global and is used to   */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index, $foot1, $foot2, $foot3, $foot4, $copyright, $totaltime, $footer_message, $banners;
    if (defined('INDEX_FILE')) {
echo "</td><td valign=\"top\" width=\"165\">\n";
   blocks(right);
    }   
echo"</td>\n"
  . "</table>\n"
  . "<body>\n"
  . "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">\n"
  . "  <tr>\n"
  . "    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">\n"
  . "        <tr>\n"
  . "          <td><div align=\"center\"><font class=\"small\">$footer_message</font></div></td>\n"
  . "        </tr>\n"
  . "        <tr>\n"
  . "          <td><div align=\"center\"></div></td>\n"
  . "        </tr>\n"
  . "      </table></td>\n"
  . "  </tr>\n"
  . "</table>\n"
 ."";
                echo "<center>\n";
        $footer_message = footmsg();
 
// DO NOT TOUCH THE NEXT LINE(s). DOING SO VIOLATES THE COPYRIGHTS OF THIS THEME
// YOU CAN ONLY ADD TO IT IF YOU MODIFY THIS THEME :-)
            echo "</center>\n";
        echo "<center><br><font class=\"small\">:: based on Charcoal phpbb2 style by <a href=\"http://www.zarron.com/\">Zarron Media</a> / <a href=\"http://www.caswebsolutions.net/\">CASWeb Solutions</a> &copy; :: PHP-Nuke theme by <a href=\"http://www.audifans.net/\">Audifans.net</a> / <a href=\"http://www.caswebsolutions.net/\">CASWeb Solutions</a> &copy; ::</font></center>\n"; 
   echo "<br>\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;
    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&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
    $posted = ""._POSTEDBY." ";
    $posted .= get_author($aid);
    $posted .= " "._ON." $time $timezone ($counter "._READS.")";
echo"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">\n"
  . "  <tr>\n"
  . "    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n"
  . "        <tr>\n"
  . "          <td bgcolor=\"#CCCCCC\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#303032\">\n"
  . "              <tr>\n"
  . "                <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n"
  . "                    <tr>\n"
  . "                      <td background=\"themes/afnet_grey/forums/images/bk-z.jpg\" bgcolor=\"#C0C0C0\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n"
  . "                          <tr>\n"
  . "                            <td height=\"28\" background=\"themes/afnet_grey/forums/images/sidebox_background2.gif\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\n"
  . "                                <tr>\n"
  . "                                  <td><font class=\"block-title\"><strong>$title</strong></font></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                          <tr>\n"
  . "                            <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n"
  . "                                <tr>\n"
  . "                                  <td background=\"themes/afnet_grey/forums/images/bk-z.jpg\" bgcolor=\"#8A8C91\"><a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a><font class=\"storycontent\">$content</font></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                          <tr>\n"
  . "                            <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n"
  . "                                <tr>\n"
  . "                                  <td background=\"themes/afnet_grey/forums/images/bk-w.jpg\" bgcolor=\"#8A8C91\"><div align=\"left\"><font class=\"content\">$posted</font><br><font class=\"content\">$morelink</font></div></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                        </table></td>\n"
  . "                    </tr>\n"
  . "                  </table></td>\n"
  . "              </tr>\n"
  . "            </table></td>\n"
  . "        </tr>\n"
  . "      </table></td>\n"
  . "  </tr>\n"
  . "</table>\n"
 ."";
}

/************************************************************/
/* Function themearticle()                                  */
/*                                                          */
/* This function format the stories on the story page, when */
/* you click on that "Read More..." link in the home        */
/************************************************************/

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    $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&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
   } else {
       $content = "$anonymous ";
   }
   $content .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    }
echo"<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">\n"
  . "  <tr>\n"
  . "    <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n"
  . "        <tr>\n"
  . "          <td bgcolor=\"#CCCCCC\"><table width=\"100%\" border=\"0\" cellpadding=\"2\" cellspacing=\"0\" bgcolor=\"#303032\">\n"
  . "              <tr>\n"
  . "                <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n"
  . "                    <tr>\n"
  . "                      <td background=\"themes/afnet_grey/forums/images/bk-z.jpg\" bgcolor=\"#C0C0C0\"><table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\n"
  . "                          <tr>\n"
  . "                            <td height=\"28\" background=\"themes/afnet_grey/forums/images/sidebox_background2.gif\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\n"
  . "                                <tr>\n"
  . "                                  <td><font class=\"block-title\"><strong>$title</strong></font></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                          <tr>\n"
  . "                            <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n"
  . "                                <tr>\n"
  . "                                  <td background=\"themes/afnet_grey/forums/images/bk-z.jpg\" bgcolor=\"#8A8C91\"><a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"$tipath$topicimage\" border=\"0\" alt=\"$topictext\" title=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a><font class=\"storycontent\">$content</font></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                          <tr>\n"
  . "                            <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n"
  . "                                <tr>\n"
  . "                                  <td background=\"themes/afnet_grey/forums/images/bk-w.jpg\" bgcolor=\"#8A8C91\"><div align=\"left\"><font class=\"content\">$posted</font><br><font class=\"content\"></font></div></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                        </table></td>\n"
  . "                    </tr>\n"
  . "                  </table></td>\n"
  . "              </tr>\n"
  . "            </table></td>\n"
  . "        </tr>\n"
  . "      </table></td>\n"
  . "  </tr>\n"
  . "</table>\n"
 ."";
}

/************************************************************/
/* Function themesidebox()                                  */
/*                                                          */
/* Control look of your blocks. Just simple.                */
/************************************************************/

function themesidebox($title, $content) {
echo"<table width=\"165\" border=\"0\" cellspacing=\"0\" cellpadding=\"4\">\n"
  . "  <tr>\n"
  . "    <td><table width=\"165\" border=\"0\" cellspacing=\"0\" cellpadding=\"1\">\n"
  . "        <tr>\n"
  . "          <td bgcolor=\"#696969\"><table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">\n"
  . "              <tr>\n"
  . "                <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
  . "                    <tr>\n"
  . "                      <td bgcolor=\"#C0C0C0\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n"
  . "                          <tr>\n"
  . "                            <td height=\"28\" background=\"themes/afnet_grey/forums/images/sidebox_background.gif\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">\n"
  . "                                <tr>\n"
  . "                                  <td><font class=\"block-title\"><strong>$title</strong></font></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                          <tr>\n"
  . "                            <td><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n"
  . "                                <tr>\n"
  . "                                  <td background=\"themes/afnet_grey/forums/images/dkback.gif\" bgcolor=\"#8A8C91\"><font class=\"content\">$content</font></td>\n"
  . "                                </tr>\n"
  . "                              </table></td>\n"
  . "                          </tr>\n"
  . "                          <tr>\n"
  . "                            <td height=\"15\" background=\"themes/afnet_grey/forums/images/slogan_blank.jpg\">&nbsp;</td>\n"
  . "                          </tr>\n"
  . "                        </table></td>\n"
  . "                    </tr>\n"
  . "                  </table></td>\n"
  . "              </tr>\n"
  . "            </table></td>\n"
  . "        </tr>\n"
  . "      </table></td>\n"
  . "  </tr>\n"
  . "</table>\n"
 ."";
}
 
AndyB







PostPosted: Tue Mar 30, 2010 12:44 am Reply with quote

quick update;

some of this is still giving us "issues"- it's definitely something to do with the tables, etc. It only affects some certain versions of browsers, not all of them. Where possible we've asked users to upgrade their browsers, but rather than asking them to do something as a "fix" I'd rather get it fixed at our end.

The file above has been changed slightly, and has rid us of some errors, but still the problem persists (some users have to scroll across to the right in a BIG way to see the site)

Any help is muchly appreciated.
 
spasticdonkey







PostPosted: Tue Mar 30, 2010 6:51 am Reply with quote

I would use Firefox with the HTML Validator addon
http://users.skynet.be/mgueury/mozilla/download.html

it will show the compliance errors and even give an example how to fix.

right now you are missing the body tag which gives alot of compounding warnings, so fix that and you will see the warning count go down significantly.

Code:
</head>

<tr>
<td>


then concentrate on any errors with tables and divs. You'll see a fair amount of errors for tags not being closed properly for xhtml, which aren't critical but you can fix if you like Smile

<br>
<img src="myimage.jpg">
<input type="hidden" name="example" value="example">

should be:
<br />
<img src="myimage.jpg" />
<input type="hidden" name="example" value="example" />

those examples should not cause layout issues though Wink
 
AndyB







PostPosted: Tue Mar 30, 2010 7:25 am Reply with quote

thanks for the heads up... don't you just LOVE working for companies that give you
Quote:
Access Denied
You have attempted to access the following web page:

http://users.skynet.be/mgueury/mozilla/download.html
Access has been blocked because:

Prohibited by URL database (Pornography & Adult Material)


Bunch of muppets... (here @ work)
 
spasticdonkey







PostPosted: Tue Mar 30, 2010 7:29 am Reply with quote

here's the link directly from mozilla
https://addons.mozilla.org/en-US/firefox/addon/249

at one point I had to download from author's site due to using a recently released version of firefox, so that's why I gave the direct link... but maybe that will work for you Smile
 
AndyB







PostPosted: Tue Mar 30, 2010 8:03 am Reply with quote

managed to get it from firefox/ add ons, thanks. Geez. how many tables in one generated page??

I found where the missing body tag is, hopefully that will help for starters.

Thanks for your help so far, much appreciated
 
AndyB







PostPosted: Tue Jul 13, 2010 3:28 am Reply with quote

can anyone take a quick look, and provide any "tips"- I'm sure there's still something "amiss"- some users get it thrown over to the right- this is down to browser of the user, I think.

www.audifans.net

Cheers

Andy
 
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Tue Jul 13, 2010 3:46 am Reply with quote

I just used the http://www.onlinewebcheck.com/ and it looks like the first issue might be the one
see no table for the <tr>
<body><tr>

_________________
[b][size=5]openSUSE 11.4-x86 | Linux 2.6.37.1-1.2desktop i686 | KDE: 4.6.41>=4.7 | XFCE 4.8 | AMD Athlon(tm) XP 3000+ | MSI K7N2 Delta-L | 3GB Black Diamond DDR
| GeForce 6200@433Mhz 512MB | Xorg 1.9.3 | NVIDIA 270.30[/size:2b8 
View user's profile Send private message
AndyB







PostPosted: Tue Jul 13, 2010 5:40 am Reply with quote

Ah. I think I know where the problem is; combination of a mixture of table elements and DIV (the biggest one being me Rolling Eyes Laughing Laughing )

That's what you get from trying to "mix and match" from several themes to get the desired result... (or not, as in this case!) Evil or Very Mad
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating 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 ©