Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > Integration > Wordpress

Wordpress Information about integrating the calendar with the Wordpress Content Management System.

Closed Thread
 
Thread Tools Search this Thread Display Modes

XHTML validation. 44 errors I don't understand
Old 02-15-2008, 09:21 PM   #1
Tore
Calendar User
 
Tore is offline
Join Date: Feb 2008
Posts: 21
Default XHTML validation. 44 errors I don't understand

http://www.pohildre.com/?cat=1

My calendar is behaving quite well now, but the page has some kind of world record in validation errors. Before the calendar it was nice and green and error free.

Granted I have probably screwed up a few things in the sidebar but I think the problem area is somewhere else.

"The most common cause of this error is unencoded ampersands in URLs"

What does that mean? I don't get any of this. Could somebody please take a quick look and see if they can tell where the code referred to is located? (There is a validation link at the bottom of the sidebar)

I don't understand anything.
 

Old 02-16-2008, 07:55 AM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

All of this is pretty much for the navigation table. You can fix some of it without changing any code, but not all of it. You'd have to disable the navigation (using $noNav=1) and then provide some modified code to recreate the navigation area.

What you can fix right now is the << and >> for previous and next month. Change those from the Setup Manager - Navigation. They should be &lt;&lt; and &gt;&gt;

For the table itself, first, put $noNav=1; somewhere before the require that shows your calendar. Then right below the require, paste the following
PHP Code:
<table class="navTable" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="left" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$mb&amp;yr=$yb$anchorTag".$returnString2?>" class="navTableText"><?php echo $navLeft?></a></td>
    <td align="center" width="34%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$cmo&amp;yr=$cyr$anchorTag".$returnString2?>" class="navTableText"><?php echo $navMiddle ?></a></td>
    <td align="right" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$mf&amp;yr=$yf$anchorTag".$returnString2?>" class="navTableText"><?php echo $navRight?></a></td>
  </tr>
</table>
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.

Last edited by ve9gra; 02-16-2008 at 08:01 AM.
 

Old 02-16-2008, 12:02 PM   #3
Tore
Calendar User
 
Tore is offline
Join Date: Feb 2008
Posts: 21
Default

Thank you. But I'm afraid this didn't work very well for me.

Replacing the arrows got rid of 2 validation errors only. Which is better than nothing of course.

With the added code the error number sank from 42 to 35 but the arrows then displays as &lt;&lt; and &gt;&gt; and not as arrows.
 

Old 02-16-2008, 01:55 PM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Try it with this code
PHP Code:
<table class="navTable" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="left" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$mb&amp;yr=$yb$anchorTag".$returnString2?>" class="navTableText"><?php echo html_entity_decode($navLeft); ?></a></td>
    <td align="center" width="34%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$cmo&amp;yr=$cyr$anchorTag".$returnString2?>" class="navTableText"><?php echo html_entity_decode($navMiddle); ?></a></td>
    <td align="right" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$mf&amp;yr=$yf$anchorTag".$returnString2?>" class="navTableText"><?php echo html_entity_decode($navRight); ?></a></td>
  </tr>
</table>
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-17-2008, 11:16 AM   #5
Tore
Calendar User
 
Tore is offline
Join Date: Feb 2008
Posts: 21
Default

Hmmm. No. That made the arrows display correctly, but now they don't do anything when I click them, except reload the same month.

Seeing how the next 35 errors are related to calendar entries that must be due to the fact that the calendar doesn't blend perfectly with WordPress anyway, I may as well live with 2 little errors related to
the buttons themselves.

But thank you!
 

Old 02-17-2008, 12:02 PM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Sorry about that... I forgot a key piece of code.. Here's the full code

PHP Code:
<?php
  $yb
=$yr;
  
$yf=$yr;
  
$mb=$mo-1;
  if (
$mb<1) {$mb=12$yb=$yr-1;}
  
$mf=$mo+1;
  if (
$mf>12) {$mf=1$yf=$yr+1;}

  
$cmo date("m");
  
$cyr date("Y");
?>
<table class="navTable" cellspacing="0" cellpadding="0">
  <tr> 
    <td align="left" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$mb&amp;yr=$yb$anchorTag".$returnString2?>" class="navTableText"><?php echo html_entity_decode($navLeft); ?></a></td>
    <td align="center" width="34%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$cmo&amp;yr=$cyr$anchorTag".$returnString2?>" class="navTableText"><?php echo html_entity_decode($navMiddle); ?></a></td>
    <td align="right" width="33%"><a href="<?php echo "$thisFile?".$returnString.($returnString==""?"":"&amp;")."mo=$mf&amp;yr=$yf$anchorTag".$returnString2?>" class="navTableText"><?php echo html_entity_decode($navRight); ?></a></td>
  </tr>
</table>
And this one I tested to make sure it worked.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-17-2008, 12:44 PM   #7
Tore
Calendar User
 
Tore is offline
Join Date: Feb 2008
Posts: 21
Default

Perfect! That did the trick.
Thanks a lot, you've been a great help to me!
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Spanish special character and XHTML 1.0 strict validation afloresm Customizations (Themes / Templates) 2 01-07-2008 11:53 AM
Valid Xhtml - Strict or Trans Dodger General Support 3 09-26-2007 12:22 AM
Xhtml Strict Validation problem trigger_tre General Support 10 12-14-2006 06:28 AM



All times are GMT -4. The time now is 10:33 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |