Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 12:11:35 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155533 Posts in 21713 Topics by 7738 Members
Latest Member: Pattieardathfe
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Getting Site to Validate: News Module, Search & WB section anchor  (Read 578 times)
PJW

Offline Offline

Posts: 31


« on: September 21, 2009, 06:36:48 PM »

Hi,

I'm trying to get my website to validate.

The template I'm using (andreas09) uses this DTD
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
and I have come across the following issues:

News module
Produces this code:
Code:
<h1>Latest news</h1><p><a href="http://www.domain.com/pages//posts/obligatory-first-post-2.php">Obligatory First Post</a><br /><p>
I think it's having a nested <p> that it doesn't like, so I'd like to replace <br /> with </p> if possible.

Can someone point me to or advise the right place to do this?

Search
Code:
<h1>Search</h1>
          <form name="search"
The error I've got for this one is: there is no attribute "name"

WB Section Anchor
Code:
<a class="section_anchor" id="wb_1" name="wb_1"></a>
This code produces the same error (there is no attribute "name").  I don't *think* I need these as I don't use the WB Links?

I could use Transitional, but I'd like to see if there's a way to get this to validate with the XHTML 1.1 DTD?
« Last Edit: September 21, 2009, 07:25:31 PM by PJW » Logged

Paul
PJW

Offline Offline

Posts: 31


« Reply #1 on: September 21, 2009, 08:00:42 PM »

OK, fixed the News module problem (not sure if it'll bring up another program later) cheesy

For anyone else with this issue, the problem was in the template index.php file on line 104.

I replaced:
Code:
echo '<p><a href="'.WB_URL.'/pages/'.$link.PAGE_EXTENSION.'">'.$title.'</a><br />'.$short.'<span class="hide"> | </span></p>';

with:
Code:
echo '<p><a href="'.WB_URL.'/pages/'.$link.PAGE_EXTENSION.'">'.$title.'</a></p>'.$short.'<p><span class="hide"> | </span></p>';
Logged

Paul
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #2 on: September 21, 2009, 08:58:50 PM »

For anyone else with this issue, the problem was in the template index.php file on line 104.

Actually to make it useful for other users, you would need to post the template in use as well. At least the name.

But if this code is still in the template, you might want to update the whole template. This code is now available as the anynews add-on which is much better then the original code and comes very well documented.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

PJW

Offline Offline

Posts: 31


« Reply #3 on: September 21, 2009, 09:08:37 PM »

Hi,

Actually to make it useful for other users, you would need to post the template in use as well. At least the name.

...which was in my first post:
Quote
The template I'm using (andreas09)

I'll check out the anynews add-on, thanks.
Logged

Paul
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #4 on: September 21, 2009, 10:11:03 PM »

You are right ... I just overread it ... apologies.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!