Forum Replies Created

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter dchanin

    (@dchanin)

    OOPS! I did the previous on the header.php for Default, not Classic. Here is the Validator showing the inserted P3Pv1 link right after the <Head>

    1: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    2: <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    3:
    4: <head profile=”https://gmpg.org/xfn/11″&gt;
    5:
    6: <link rel=”P3Pv1″ href=”https://www.MACCS2SUPPORT.com/w3c/p3p.xml”/&gt;
    7:
    8: <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
    9:
    10: <title>www.MACCS2SUPPORT.com</title>

    Thread Starter dchanin

    (@dchanin)

    Yes, i’ve tried doing that by inserting the new link for the CP policy into the header.php file (which is Classic, BTW). I’ve tried putting that line in several different places after the <HEAD> opening. The added line never shows up in the XHTML Validator below:
    Source Listing
    Below is the source input I used for this validation:

    1: <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    2: <html xmlns=”https://www.w3.org/1999/xhtml”&gt;
    3:
    4: <head profile=”https://gmpg.org/xfn/11″&gt;
    5: <meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″ />
    6:
    7: <title>www.MACCS2SUPPORT.com</title>
    8:
    9: <meta name=”generator” content=”WordPress 1.5.1.1″ /> <!– leave this for stats please –>
    10:
    11: <style type=”text/css” media=”screen”>
    12: @import url( https://www.davidchanin.com/blog1/wp-content/themes/classic/style.css );
    13: </style>
    ——

    As you can see, the P3Pv1 line is right after the <HEAD> in the file header.php that is on my server right now, which looks like this. This file is on my server right now but the link to P3Pv1 is not shown by the XHTML Validator. Here is my current header.php. Nobody can log in with IE 6 unless they add my site to their Trusted Sites list, and asking them to do so would me me look pathetic as a programmer.

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”&gt;
    <html xmlns=”https://www.w3.org/1999/xhtml”&gt;

    <head profile=”https://gmpg.org/xfn/11″&gt;
    <link rel=”P3Pv1″ href=”https://www.MACCS2SUPPORT.com/w3c/p3p.xml”&gt;

    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />

    <title><?php bloginfo(‘name’); ?><?php wp_title(); ?></title>

    Thread Starter dchanin

    (@dchanin)

    Here’s where i got the info on using a .htaccess file to insert a global CP Policy. This page has useful links for submitting a page for P3P validation:
    https://www.duxcw.com/faq/webmastr/privhttp.htm
    <begin quote>
    P3P Compact Privacy Policy
    Last updated: 6/6/02
    How to add a P3P compact privacy policy to the http headers for a web site running on an Apache web server and p3p privacy policy links.

    Well, no one has asked me this question yet; but I had a devil of a time with it… So, I’m adding it to our FAQs to hopefully help someone out. This fixed the Internet Explorer 6 (IE 6) cookie problems on my web site.

    For dcforum administrators, the compact privacy policy below is what I have installed for my forums and it works with IE 6 set to the default privacy settings (Medium).

    Make an Apache .htaccess file with a text editor such as notespad or wordpad (or edit an existing one–and don’t wipe-out an existing one, such as those put on a web site by the FrontPage Server extensions) and put a line similar to the following in it:

    header append P3P: ‘CP=”CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE”‘

    All on one line, of course. The “‘ at the end of the line is made-up of ” followed by a ‘ with no spaces.

    Upload the file to the directory on the web server to be covered by the policy. I uploaded .htaccess all of the P3P files with SmartFTP (https://www.smartftp.com/) in the ASCII transfer mode. It will effect that directory and any subdirectories, etc. branching off from it, unless there is another .htaccess file in a subdirectory which overrides it or part of it.

    You can check it with the HTTP Header Viewer at https://www.delorie.com/web/headers.html.

    Here’s an extract from my forum HTTP headers:

    HTTP/1.1 200 OK
    Date: Wed, 05 Jun 2002 20:42:55 GMT
    Server: Apache/1.3.23
    P3P: CP=”CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE”
    ….
    The Apache documentation on the Header Directive is at https://httpd.apache.org/docs/mod/mod_headers.html#header.

    I found Ken Coar’s Using .htaccess Files with Apache at https://apache-server.com/tutorials/ATusing-htaccess.html quite useful.
    <end quote>
    Please don’t tell me to try to use .htaccess to set the CP Policy globally because i’ve tried it many different ways and it doesn’t work. I need to insert it into the WordPress (v. 1.5.1.1) file that generates initial blog page.
    Where is that hidden and how can i insert the CP string into it. Please????

Viewing 3 replies - 16 through 18 (of 18 total)