Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 11:05:19 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.
155497 Posts in 21710 Topics by 7736 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Validation errors with style sheets in modules  (Read 768 times)
abidan

Offline Offline

Posts: 102


« on: April 22, 2009, 09:09:11 PM »

Hi

Has anyone else come across this problem and got a bit fed up with it.

It seems many modules such as faq baker and news insert the a style sheet to the body of the web page which throws up html validation errors for ws3.

How have people got round this problem?

Thanks
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: April 22, 2009, 09:46:40 PM »

Hi,

maybe this
http://help.websitebaker.org/pages/en/advanced-docu/designer-guide/enhanced-template-elements.php#anker4
will answer your question ...

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
abidan

Offline Offline

Posts: 102


« Reply #2 on: April 23, 2009, 08:07:58 AM »

oh thanks will have a read Smiley
Logged
abidan

Offline Offline

Posts: 102


« Reply #3 on: April 23, 2009, 08:23:13 AM »

Hiya

I have tried this but it does not appear to work, i am using WB7 my header has this php in it after adding the bit you suggest to already exising code :
<?php register_frontend_m odfiles('js');?>
<?php
if(function_exists('register_frontend_m odfiles')) {
  register_frontend_m odfiles('css');
  register_frontend_m odfiles('js');
} ?>
<?php
$query_post = $database->query("SELECT title FROM ".TABLE_PREFIX."mod_news_posts WHERE post_id = '".$post_id."'");
   if($query_post->numRows() > 0) {
       $post = $query_post->fetchRow();
       }
$post_title=$post['title'].' ';
?>
<script type="text/javascript" src="<?php echo TEMPLATE_DIR; ?>/javascript.js"></script>

See example page of where it is not working:
http://www.buildmeafabwebsite.co.uk/pages/small-business-advertising.php

Thanks for your help in advance Smiley
Logged
mviens

Offline Offline

Posts: 57


« Reply #4 on: June 08, 2009, 09:11:05 PM »

I am finding the same issue and wondering if anyone has come up with a solution.

Problem:
FAQ Baker has the following piece of code in the "Template for detailed Q&A section:"
<a name="{CATEGORY}">{CATEGORY}</a>

If your Category has more than one word separated by spaces, then this creates a problem in the html.
ie: Category Title: My Subject
<a name="My Subject">My Subject</a>
and you will get the following validation output error:
This attribute can not take a space-separated list of words as a value, but only one word ("token").

I tried a few simple things:
- putting in "&nbsp;" but the output on the front end is then: My&nbspSubject
- using an underscore but the output on the front end is then: My_Subject

Any ideas to tune the module programming?

Michael
Logged
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!