How to validate whether an artikel has tags properly closed.

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
MJ
Posts: 4
Joined: Fri Jul 15, 2005 6:28 am
Location: Tokyo, Japan

How to validate whether an artikel has tags properly closed.

Post by MJ »

Hi, I'm a programmer working for a Japanese Software company, and I am currently in the process of adapting PHPmyFAQ to run on our system.

Anyways, we have about 15 people migrating old contents into PHPmyFAQ, and I was wondering whether it is possible to validate whether the tags they pasted are properly closed. For example, we have few pages that does not have the <CENTER> tags closed, resulting in rest of the article text misaligned.

Are there any convinient way to detect whether there are any unclosed tags using PHP?

Ich kann leider kein Deutsch schreiben, aber ich kann Deutsch gut verstehen. So, feel free to answer in German if neccessary.
Thanks.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

there's a Tidy extension for PHP in PECL. You can find the extension on http://pecl.php.net/package/tidy. With this you can write a small script and test all migrated contents.

Really interesting that you can understand German. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
MJ
Posts: 4
Joined: Fri Jul 15, 2005 6:28 am
Location: Tokyo, Japan

Post by MJ »

Thank you for your reply :)

I started PHP just a few weeks ago, so I'll see what I can do with the Tidy package.
Regarding my German abilities, my mother is German and I was born in West Berlin. I lived in Germany for 8 years but I forgot most of the der-die-das after I moved on to the US, Hungary, and now Japan.

Anyways, thank you very much for writing PHPmyFAQ :)
It's been fun reading the source code and adding new features :)
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,
MJ wrote:Anyways, thank you very much for writing PHPmyFAQ :)
thanks for using it!
MJ wrote:It's been fun reading the source code and adding new features :)
if you like and your features would help others user feel free to send me some patches. I'll add almost everything I get from other users.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
MJ
Posts: 4
Joined: Fri Jul 15, 2005 6:28 am
Location: Tokyo, Japan

my site is online.

Post by MJ »

Hi, I just wanted to let you know that the site I was building is online.

http://www.netjapan.co.jp/e/faq
http://www.netjapan.co.jp/r/faq

It uses extensively modified PHPmyFAQ 1.4.11 on IIS 6.0 / MySQL-nt
- has permalinks for articles that is valid even when category is moved.
- has permalinks that reroutes to different category if the current one is deleted / disabled.
- article belongs to multiple categories
- article can show up in either /e/faq, /r/faq or both.
- images are stored in relative paths. Images show correctly even if administrative site is on different IP address and paths.
- internal links are stored as permalinks.
- automatic link validity checking when article stored (admin)
- automatic link validity checking when article list is shown (admin)
- lots of error handling.

If you are interested, I'll see whether I can get the code sorted out for the 1.6.0-dev tree.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: my site is online.

Post by Thorsten »

Hi,
MJ wrote:It uses extensively modified PHPmyFAQ 1.4.11 on IIS 6.0 / MySQL-nt
- has permalinks for articles that is valid even when category is moved.
- has permalinks that reroutes to different category if the current one is deleted / disabled.
- article belongs to multiple categories
- article can show up in either /e/faq, /r/faq or both.
- images are stored in relative paths. Images show correctly even if administrative site is on different IP address and paths.
- internal links are stored as permalinks.
- automatic link validity checking when article stored (admin)
- automatic link validity checking when article list is shown (admin)
- lots of error handling.
it would be great and I would add those stuff into the CVS if you send me the code. The feature that an article can belong to multiple categories is in 1.5.x

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply