Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
Navigation
Latest Addons
AD Gallery 51
SyntaxHighlighte... 51
Newsletters v4.03 112
Facebook Like Box 125
Newsletters v4.02 57
Metro 164
Facebook Connect 171
Shoutbox Panel 127
Redactor for PHP... 106
MI Floating Side... 109
Facebook Login/R... 154
Avatar Studio v2.03 179
Relationship Sta... 98
Sexual Orientati... 116
Fisherman 143
Popular Addons
iTheme2 5801
Arise 5790
User Control v1.23 4619
Event Calendar 4050
Photowidget panel 3888
Radio-Theme red2... 3356
Highslide Gallery 3313
CSS/JavaScript D... 3229
Facebook Connect... 2985
Dynamic Menu 2893
Slideshow Lightb... 2721
L-AMANT 2659
Enigma 2636
2Dark 2606
Black 2579
Articles Hierarchy
Articles Home » PHP-Fusion v7 Tutorials » How to validate a theme - the easy way
How to validate a theme - the easy way
This guide is meant as a help to new theme designers, with little or no experience in validating XHTML and CSS.

1) Preparing a test-site:

When I validate a theme, I use a test-site, that I know is 100% valid (running a theme that is also valid, of course), with only the default side- and center panels showing (first thing you see on your site after a fresh new install of PHP-Fusion), and then I add some examples of those features that the theme.php and styles.css (+ images, of course) controls the appearance of, like:


  • a news-example (center-panel), with a news-teaser and the news-story itself.

  • an articles-category, and a test-article (center-panel), with an article-teaser and the article itself.

  • forum-categories and posts-examples (center-panel), with a quote-example as well.

  • the forum_threads_list_panel (center-panel).

  • the css_navigation_panel (side-panel).

  • the navigation_panel (side-panel).

  • the shoutbox_panel (side-panel), with shout-examples.

  • The member_poll_panel (side-panel), creating a test-poll, to see the poll-bar.gif etc.



1a) The validation itself:

Then I add the theme that I want to check the validity of (which I've already checked to be HTML valid*), and set the theme in question as the default theme of the site (in Main Settings).
Now I go to validator.w3.org and write the URL/web-address of my test-site in the field (identical to the URL/web-address you've written in the Main Settings), to check the XHTML, and then I go to this site css-validator, and write the URL of my test-site in the field, to check the CSS.


2) Helpful HTML validator

I think that you'll find this program, an addition to the Firefox browser, very useful (download the Firefox browser HERE, if you don't have it). Recommended by W3C!
I use it every time I make a theme, as a reference, to get the HTML right. It shows a symbol/icon, in the right bottom corner of the browser (Firefox) that you can point to, showing you how many errors or warnings, if any, the source-code contains. If you right-click (on the same symbol/icon), and click on "Source code...", you can click on the warnings or errors, one at the time, to see what's wrong, and how to correct the code!

The validator-program also shows examples on how to write the code correctly, comparing it with the wrong way of doing it. Very instructive! And when the HTML-validator shows no errors or warnings, I go to the W3C validation site (as described above) and validate the XHTML, and then validate the CSS (and correct the errors, if anyone shows up, off course), and when those 2 validations are 100% okay, then the theme can be declared 100% XHTML 1.0 Transitional & CSS level 2.1 valid.
Here's the link to where you can download and install the addition: Link
Posted by Harly on January 04 2011 17:15:53
Comments
No Comments have been Posted.
Post Comment
Please Login to Post a Comment.
Ratings
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 50% [1 Vote]
Very Good Very Good 50% [1 Vote]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 0% [No Votes]
Official Home of PHP-Fusion uses cookies. Some may already have been set. Read more about our Cookies here.
Please click the button I Consent Cookies to hide this bar and accept our cookies. If you continue to use the site with no action taken, we'll assume that you consent our cookies anyway.
Cookiebar Panel byVenue
Shoutbox
You must login to post a message.

22-05-2013 23:45
Itīs nothing that have been set in stone. Just a tip. Since Github is new, not everyone know where it heads yet. You can still use the locales forum if you prefer.

22-05-2013 22:20
Wouldn't it be appropriate to inform the translators? You've got a list! Disappointed I have to learn about this through the shoutbox. Angry

22-05-2013 21:55
Keeping locales on GH makes it easier for everyone, you can update, maintain and publish them much faster and users don't have to search on Google, NSS sites or SourceForge (I'm sure many don't even know that locales can be found at SF)

22-05-2013 20:18
I maintain the Dutch locale. So you say I have to upload it to Github in the future?

22-05-2013 16:03
Since you develop a locale for PHP-Fusion, I recommend you to use Github, since all released locales are there.

22-05-2013 04:59
Good

21-05-2013 11:58
Come on people! Stop rising more global questions. I wasn't discussing on core packaging or loosing something. Just occasionally haven't found locale topic. As I'm not an active visitor I've decided to ask is it normal. That's all

21-05-2013 11:29
You do know you can have it all online via Github...?

21-05-2013 09:13
Bless you! Dura lex sed lex. 132 threads and 635 posts saved. Now I can sleep calm... Smile

21-05-2013 01:04
Order restored! Sorry for the inconvenience!

Last Seens
Last Seen > Admins
[SA] Domi 01:27:36
[A] Gillette 03:26:02
[A] JoiNNN 04:51:54
[A] PolarFox 07:40:24
[A] jikaka 07:45:56


Last Seen > Members
[M] TSFSVEN 01:50:32
[M] Archer 02:41:09
[M] Dark_Ang... 02:49:23
[M] Euforia33 02:51:15
[M] afoster 04:01:13