Recent Topics

1 Apr 06, 2007 01:56    

My b2evolution Version: Not Entered

Are you guys familiar with this website? Well, it simply gives you the score of your website. You just enter your web address and then learn how well designed, marketed and accessible your website is.

So, I tested my site and was a bit surprised with the bad result received.

First it says the site isn't W3C compliant.

Then it says the website does not apply CSS for fonts. What the hell is that? I think it applyes CSS for font. Doesn't all b2evoltuion skins use CSS styles? Weird... Maybe I don't know exactly what they meant by applying CSS for fonts... Do you guys have any idea of what this is about?

3 Apr 06, 2007 03:14

I think this is because of the youtube plugin. But what I want to know is what the hell "applying CSS for fonts" is. I thought the font was already applyed in the css file.

5 Apr 06, 2007 13:21

Hmmm, it says I have a problem in my XML document. Sorry for the ignorance, but what is my XML document ??

6 Apr 06, 2007 15:05

That just means your HTML needs fixing
For example.. your URL 101 things

http://abittersweetlife.net/blog/index.php?title=101_things&more=1&c=1&tb=1&pb=1


should be written as

http://abittersweetlife.net/blog/index.php?title=101_things&more=1&c=1&tb=1&pb=1

That will get rid of a heap of errors.

You also have...

<center><p class="center">powered by<br />
	<a href="http://b2evolution.net/" title="b2evolution home"><img src="http://www.nando.myacen.com/blog/rsc/img/b2evolution_logo_80.gif" alt="b2evolution" width="80" height="17" border="0" class="middle" /></a></p>


That first <center> is an error
You also have some missed matched <p> tags

Just read through the errors that the validation link in my first reply gives you.
You should be able to clean most of them up easily

7 Apr 06, 2007 16:55

Ok, I changed what you said, and it's a bit better now but still the CSS validation gives the following error:


Please, validate your XML document first!

Line 122

Column 126

The element type "div" must be terminated by the matching end-tag "</div>". 

The thing is when I open my _main.php file with dreamweaver there isn't the element "div" on line 122. Weird....

8 Apr 06, 2007 17:39

The two lines that are causing you trouble are at the very end of that long list of links in your side panel..

120 <a href="http://www.imdb.com/title/tt0413015/" target="_blank">Mrs. Henderson presents [>]</a></p>
121
122 <a href="http://www.nando.myacen.com/blog/index.php?blog=3&amp;p=738&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#more738">more</a></p> </li></ul></div>

I would change the line 120 </p> to a <br />
and I would delete the </li> and </ul> from line 122 as there is no opening <ul> or <li>

That will help, but I still have to ask why you have such a list wrapped in <p> tags which begin at line 76

# <div class="bSideItem"><h3>Last films seen at the cinema</h3> <p><a href="http://www.imdb.com/title/tt0411061/"

I would just delete the line 76 <p> and the line 120 </p>

9 Apr 06, 2007 17:54

Here is a summary of errors of current errors via HTML Tidy that might also help

line 122 column 124 - Warning: replacing <p> by <br>
line 122 column 124 - Warning: inserting implicit <br>
line 122 column 124 - Warning: <br> element not empty or not closed
line 122 column 129 - Warning: discarding unexpected </li>
line 122 column 134 - Warning: discarding unexpected </ul>
line 19 column 56 - Warning: <img> attribute "width" lacks value
line 19 column 56 - Warning: <img> attribute "height" lacks value
line 181 column 53 - Warning: <img> lacks "alt" attribute

10 Apr 06, 2007 17:58

Actually that link list is my linkblog. There isn't such lines in my _main.php file

11 Apr 06, 2007 18:06

I guess I fixed the problems in line 19 and 181. Have no idea yet how to solve the problems on line 122 because they come from the linkblog and are not not on the _main.php file

12 Apr 06, 2007 18:27

You will have to edit your link blog file or delete it and try again

13 Apr 06, 2007 18:38

Can't see what's wrong with the linkblog file. I guess I'll just give up. :(

Thanks anyway ;)

14 Apr 06, 2007 18:48

The source code is not the same as the files in your skin. Find a file called skins/yourskin/_linkblog.php and open it in an editor. Now look for something like this:

	if(!isset($linkblog_main_start)) $linkblog_main_start = '<div class="bSideItem"><h3>'.
																														T_('Linkblog').'</h3>';
	if(!isset($linkblog_main_end)) $linkblog_main_end = '</div>';


Chances are good you don't have the closing tag for the div in there (</div>), or you're using another div and not closing it.

The same only backwards will solve the problems you have with tags that are being closed but were not opened - a p and an li and a ul. Somewhere you've edited the files in your skin and removed something you needed.

Finally, you've got a div opening up inside a noscript tag. Since that's not allowed you get an error. Fixing that one is up to you!

15 Apr 06, 2007 21:21

Here's the code from _linkblog.php


<?php 
/**
 * This is the template that displays the linkblog
 *
 * This file is not meant to be called directly.
 * It is meant to be called by an include in the _main.php template.
 *
 * b2evolution - {@link http://b2evolution.net/}
 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
 * @copyright (c)2003-2006 by Francois PLANQUE - {@link http://fplanque.net/}
 *
 * @package evoskins
 * @subpackage andreas
 */
if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' );

if( !isset( $linkblog ) ) { // No link blog explicitely specified, we use default:
	$linkblog = $Blog->get('links_blog_ID');
	}

if( ! $linkblog ) { // No linkblog blog requested for this blog
	return;
	}

# maximum number of linkblog entries to display:
if(!isset($linkblog_limit)) $linkblog_limit = 99;
# global linkblog delimiters:
if(!isset($linkblog_main_start)) $linkblog_main_start = '<div class="bSideItem"><h3>'.T_('Last films seen at the cinema').'</h3>';
if(!isset($linkblog_main_end)) $linkblog_main_end = '</div>';
# Category delimiters:
if(!isset($linkblog_catname_before)) $linkblog_catname_before = '<h4>';
if(!isset($linkblog_catname_after)) $linkblog_catname_after = '</h4><ul>';
if(!isset($linkblog_catlist_end)) $linkblog_catlist_end = '</ul>';
# Item delimiters:
if(!isset($linkblog_item_before)) $linkblog_item_before = '<li>';
if(!isset($linkblog_item_after)) $linkblog_item_after = '</li>';

/**
 * This skin has no special formatting for the linkblog, so
 * all we want to do here, is call the default linkblog handler.
 *
 * You can replace this file with the full handler (in /skins) and customize it!
 */
require $skins_path.'_linkblog.php';

?>

For what I see, there's nothing wrong with it

As for the div inside the noscript tag, I've fixed that. Thanks for the tip ;)

16 Apr 07, 2007 00:06

Ok, I found most of the problems and was able to fix all of them except one, which is the '</p>' in line 94. I have no idea where it comes from. It does not appear on the '_main.php' file and neither on the '_linkblog.php' file.

Maybe it has something to do with the 'more' button, but then I have no idea where to edit it... Any clues?

Thanks! ;)

17 Apr 07, 2007 01:11

check the TWO occasions for _linkblog.php

There is one on
/blogs/skins/yourskin/_linkblog.php
which calls the main one in
/blogs/skins/_linkblog.php
and make sure that the _main.php for your skin's include call for the linkblog is free of any divs or p tags

<?php
		// -------------------------- LINKBLOG INCLUDED HERE -----------------------------
		require( dirname(__FILE__).'/_linkblog.php' );
		// -------------------------------- END OF LINKBLOG ----------------------------------
	?>

18 Apr 07, 2007 01:43

It'll only call one of them. If that file in the skins/skinname folder has all the guts then the other is ignored. If the one in skins/skinname calls the one in skins then the values for the variables are already set so those bits (if different in skins) will be ignored.

How did you make your "Last films seen at the cinema" sidebar bit because that is where your final issue is coming from. It looks like a post in your linkblog? If so I think you have two options. First is to edit that post and turn off auto-P AND manually include P tags (and probably <br /> tags) where you want them. Second is to tweak your skins/skinname/_main.php file where it does the "$Item->content" bit, because that is what determines what comes before and after the "read more" link and anchor. Check http://doc.b2evolution.net/v-1-9/evocore/Item.html#methodcontent to see the parameters you can feed that function, and know that you have to give something for each parameter in the order they expect to be found in.

I've no idea which will be the easier option, but if it was me I'd find a way to make editing the post work. Editing the _main.php file will mean that ALL your posts will possibly be altered in some way.

19 Apr 07, 2007 01:58

Both _linkblog.php files are clean, no div or p tags at all.

20 Apr 07, 2007 02:15

If so I think you have two options. First is to edit that post and turn off auto-P AND manually include P tags (and probably <br /> tags) where you want them.

Did it, but haven't added p tags, only <br />. Includin p tags in all links would take forever. Anyway, the problem still continues...

Second is to tweak your skins/skinname/_main.php file where it does the "$Item->content" bit, because that is what determines what comes before and after the "read more" link and anchor.

Have no idea what I have to do in this option. Here's the piece of my code:

<h5 class="bTitle"><?php $Item->title(); ?></h5>

<div class="bText">
	<?php 
	$Item->content();
	link_pages();
	?>
	</div>

21 Apr 07, 2007 02:27

Im guessing the error is in the link that the 'more' function creates. Maybe it's adding the </p> by itself ????

It not only adds the </p> tag, but the </div> tag as well...

If I remove the 'more' link, the site validates :-/


Form is loading...