Recent Topics

1 Jan 10, 2008 03:40    

My b2evolution Version: Not Entered

After switching to B2, I have started to move old posts from my old blog system. I am having trouble posting some articles.

One is a syndicated article that I'm allowed to reprint. No matter what article I choose to use, I always get errors like:

Tag <p> is not allowed within tag <img>
Tag <p> is not allowed within tag <img>
Tag <p> is not allowed within tag <img>
Tag <p> is not allowed within tag <img>
Tag <center> is not allowed within tag <p>
Tag <hr> is not allowed within tag <br>
Tag <hr> may not contain raw character data
Tag <a> is not allowed within tag <hr>
Tag <img> may not have attribute SRC
Tag <img> may not have attribute WIDTH
Tag <img> may not have attribute HEIGHT
Tag <img> may not have attribute BORDER
Parser error: Mismatched tag near GHT="17" BORDER="0" vspac

How can I get around this?

thanks

2 Jan 10, 2008 04:12

hi bloggerboy

Since it' s getting a kind a late here my answer will be short.

Find /conf/_formatting.php.
This is the line you have to edit:

$use_html_checker = 1;


and set it to 0 to disable checking.

$use_html_checker = 0;

now add your post and it should upload correct. Now revert the variable to 1 again.

Further reading: search the forum for _formatting.php

Good luck

4 Jan 10, 2008 06:31

sam2kb wrote:

We really need this option in backoffice

Think about the complications. Certainly this button cannot be available to every blogger, so you need to set up permissions for who can see the button and who can not. Just imagine what the title of the button should be. "Allow misformed html"?
The fact there is a permission related concideration made the developers believe it's wise not to have this setting in the back office.

5 Jan 10, 2008 07:19

so you need to set up permissions for who can see the button and who can not.

Right, it must be available only for user #1 (IMHO this is the only user on the average website who allowed to post content)

Html check is a very useful feature, but it also blocks <div style="">, so we have to write classes every time and upload it. I don't like this.

But I agree, it should appears only for admin.

6 Jan 10, 2008 07:25

sam2kb wrote:

[...] but it also blocks <div style="">, so we have to write classes every time and upload it. [...]

Not anymore. Since 2.x you can set $allow_style_in_post or something like that, also in /conf/_formatting.php

7 Jan 10, 2008 07:30

$posts_allow_css_tweaks = true;

:p

Many thanks !!! I didn't know about it !

8 Feb 08, 2008 17:38

My original problem is back after upgrading to 2.4
----------------------------------
Tag <p-> is not allowed within tag <img>
Tag <p> is not allowed within tag <img>
Tag <p> is not allowed within tag <img>
Tag <p> is not allowed within tag <img>
Note: To get rid of the above validation warnings, you can deactivate unwanted validation rules in your Group settings.)
----------------------------------------------
The solution by Afwas: $use_html_checker = 0" is no longer available in formatting.php

I am assuming it was moved to the backend, but cannot find it. If fact, the line:

"you can deactivate unwanted validation rules in your Group settings" - the words group setting are linked - but if i click it, I get a 403 error (forbidden).

All I want to do is turn off formatting so I can submit a syndicated post to my blog. I can't get it to validate for whatever reason.

Thanks

9 Feb 08, 2008 17:39

I'm gonna guess that your images don't end with /> ;)

¥

10 Feb 08, 2008 17:52

Amongst other things. <p> aren't closed either.

I'm just submittting the code supplied by a syndicator. Perhaps they are not adhering to strict validation rules. I just don't have the time or patience to rewrite their code...just want to publish as is, but can't.

thanks

11 Feb 08, 2008 17:58

b2evolution validates to xhtml standards so you're always going to have this problem.

You can disable the html checker in conf/_formatting.php but the chances are your layout will be screwed because of the invalid code.

¥

12 Feb 08, 2008 18:20

That line to disable html checker is no longer available in formatting.php

13 Feb 08, 2008 18:25

ahhh yeah, the FG moved it.

just realised you said that you got a 403 trying to follow the link, are you able to go to admin > users > [ group name ] ?

If you are then that's where the setting is.

¥


Form is loading...