Page 3 of 3 FirstFirst 1 2 3
Results 31 to 44 of 44

Create your own Privacy Policy (using vb templates)

This is a discussion on Create your own Privacy Policy (using vb templates) within the Member Articles forums, part of the Focus on Members category; Thanks, that is what I initially thought to, however, that does not work. I think what is happening is I ...

  1. #31
    Senior Member Array
    Real Name
    ShootersRealm.com
    Join Date
    Jun 2007
    Location
    Arizona
    Posts
    383
    Liked
    2 times
    Thanks, that is what I initially thought to, however, that does not work. I think what is happening is I need a different re-write as it is rewriting as if it is being clicked on from within the forums.

    Thanks for the response.

  2. #32
    Junior Member Array
    Real Name
    John
    Join Date
    Sep 2008
    Location
    N/A
    Posts
    20
    Liked
    0 times
    Quote Originally Posted by briansol View Post
    With Google Adsense's new terms requiring all sites to have a privacy policy about 3rd party cookies (reference: Tell your visitors they are being tracked with web beacons & cookies as AdSense terms updated - JenSense.com ), I figured i'd help you all get started with your own easy to make template.


    DISCLAIMER:
    It's best to consult a lawyer if you can, and I take no legal bearing on this privacy policy being legit in any way shape or form. It is what I came up with for my site. Your's may differ.


    ---------------------------------------
    • Step1:
      • Go into the vB ACP, vB Options -> Site Name / URL / Contact Details option.


      • Find the privacy block, and enter 'privacy.php' in the blank. (note, if you already have a file called this, back it up before doing anything futer, as what lies ahead will over-write it)

    • Step2:
      • create a new php file in your editor of choice, or notepad.
      • place the following code into it:
      • Code:
        <?php
        
        // ####################### SET PHP ENVIRONMENT ###########################
        error_reporting(E_ALL & ~E_NOTICE);
        
        // #################### DEFINE IMPORTANT CONSTANTS #######################
        define('NO_REGISTER_GLOBALS', 1);
        define('THIS_SCRIPT', 'privacy'); 
        
        // ################### PRE-CACHE TEMPLATES AND DATA ######################
        // get special phrase groups
        $phrasegroups = array(
        
        );
        
        // get special data templates from the datastore
        $specialtemplates = array(
            
        );
        
        // pre-cache templates used by all actions
        $globaltemplates = array(
            'privacy',
        );
        
        // pre-cache templates used by specific actions
        $actiontemplates = array(
        
        );
        
        // ######################### REQUIRE BACK-END ############################
        require_once('./global.php');
        
        // #######################################################################
        // ######################## START MAIN SCRIPT ############################
        // #######################################################################
        
        
        
        $navbits = array();
        $navbits[$parent] = 'Privacy Policy';
        
        $navbits = construct_navbits($navbits);
        
        
        
        eval('$navbar = "' . fetch_template('navbar') . '";');
        eval('print_output("' . fetch_template('privacy') . '");');
        
        ?>
      • save and upload to your root forum directory (same location as showthread.php, etc) calling it 'privacy.php'

    • Step3:
      • Go to the style Manager in the ACP. From your skin (and you will have to do this for each skin if they aren't inherited) Select 'Add New Template' from the drop down.
      • Name the template 'privacy' THIS MUST MATCH what is in the php file, so if you change it here, you must change it there as well.
      • place the following code into the template. Note again, this contains the code that I used for my policy. I Highly suggest you edit some of it at the very least Also, change YOURSITENAME to your site name, duh
        Code:
        $stylevar[htmldoctype]
        <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]" xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <title>Privacy Policy - $vboptions[bbtitle]</title>
        $headinclude
        </head>
        <body>
        $header
        
        $navbar
        
        <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
        <tr>
            <td class="tcat" id="top">Privacy Policy</td>
        </tr>
        <tr>
            <td class="alt1">
        <div style="width: 80%; margin: 0 auto;">
                    <ul>
                        <li>YOURSITENAME recognizes that you care about the personal information that is held about you and how that is used.</li>
                        <li>This privacy policy applies to all personal data, submitted by you, to the YOURSITENAME web site.</li>
                        <li>By registering to YOURSITENAME you need to submit a chosen name and contact information, more specifically an e-mail address.  No extremely personal information, such as Social Security or Credit Card numbers are stored by us.</li>
                        <li>YOURSITENAME also stores and reads cookies to and from your computer. Cookies are alphanumeric identifiers that we transfer to your computer's hard drive through your Web browser to enable our forums and general website features to recognize your browser for when you return to this web site.  By using this website, you agree that both the webserver, and any trusted 3rd party we chose, such as advertising networks, may place a tracking cookie on your machine and access it at any time during your session.  In general, cookies are safe and are not a security issue when being used from 'trusted' internet sites, such as YOURSITENAME.  For information on how to manage cookies in your browser, please visit <a href="http://www.aboutcookies.org/Default.aspx?page=2" rel="nofollow">AboutCookies.org</a></li>
                        <li>YOURSITENAME will not sell, transmit or distribute any data held without your prior permission or consent, unless required to do so under relevant United States legislation.</li>
                        <li>All other information provided by you goes into a "public profile" and is entirely optional, all information held in that profile is held there at your own risk.  This info is edited via your Control Panel in the forums.</li>
                        <li>You have a legal right for the personal information held at YOURSITENAME to be updated if it is incorrect or deleted if you choose.  Most of this can be done through your Control Panel in the forums.  If you are having issues with this, please contact us if you need help.</li>
                        <li>YOURSITENAME will take all reasonable effort to ensure that all personal information about you submitted is maintained secure on our server.  However, we make no warranty to this.</li>
                        <li>This site is intended for individuals over the age of 13.  Any information collected is intended to be of individuals over the age of 13.  According to <a href="http://www.ftc.gov/coppa/index.html">COPPA</a>, our site does NOT cater to children.  "Operators of commercial websites or online services directed to children under 13 that collect personal information from children" require a COPPA agreement and privacy policy.  Since we do not cater to this age group, no COPPA exists on YOURSITENAME</li>
                        <li>This Privacy Policy may be modified at any time without notice.  It is your responsibility to check this page for updates or changes. If you have any questions regarding your privacy, then <a href="/sendmessage.php">Contact Us</a></li>
                    </ul>    
        </div>
        </td>
        </tr>
        </table>
        
        $footer
        
        </body>
        </html>

    • Step4:
      • I know you didn't edit it yet... go back and edit your template with YOUR policy

    • Step5:
      • Optional: Create a CRR to make privacy.php look nice, like yourdomain.com/privacy/ or any other variety you chose.
      • Head into the VBSEO CP, and scroll down to the Custom Rewrite Rules block.
      • Enter:
        Code:
        'privacy\.php' => 'privacy/'
        or any other variety in the right-hand side that you wish to re-write it too.

    • Step6:
      • That's it Assuming your footer template is stock (or at least has all the stock conditionals in it) you will now see a "Privacy Statement" link in the bottom right (near where the modcp and admincp links are) Click it and make sure it works. Enjoy

    nice blog that you have there.

  3. #33
    Senior Member Array
    Real Name
    Brian
    Join Date
    Apr 2006
    Posts
    6,983
    Liked
    10 times
    I'm not Jen just a link...

  4. #34
    Member Array
    Real Name
    Onur
    Join Date
    Feb 2008
    Posts
    42
    Liked
    0 times
    thanks

  5. #35
    Senior Member Array
    Real Name
    Robert
    Join Date
    Jul 2009
    Posts
    161
    Liked
    1 times
    How come my Privacy Statement didn't inheirit? the template style and colors? It's just surrounded by a box?

    Curious as hell. I mean heck.

  6. #36
    vBSEO Staff Array Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    675 times
    Blog Entries
    2
    If you have a custom theme that uses different classes, the class names from the stylesheet simply aren't the same.

    If you are using a default template (or built from a default template), it should inherit, and you likely missed a step somewhere.
    Brian Cummiskey / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  7. #37
    ALP
    ALP is offline
    Senior Member Array ALP's Avatar
    Real Name
    Emre
    Join Date
    Mar 2009
    Posts
    201
    Liked
    5 times
    Blog Entries
    2
    Thanks brian, Was an understandable narrative.
    http://www.mesken.gen.tr/mesken-gizl...anim-sartlari/ --- My Privacy Page

  8. #38
    Senior Member Array AdamFL's Avatar
    Real Name
    Adam
    Join Date
    Oct 2008
    Location
    South Florida
    Posts
    167
    Liked
    0 times
    Privacy statement time! Thanks Brian for your time and work.

  9. #39
    Junior Member Array
    Real Name
    Bernard
    Join Date
    Dec 2008
    Posts
    28
    Liked
    0 times
    Can anyone update this code for vB4?.

    Thanks

  10. #40
    Senior Member Array
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1

    vB4 Version - NOT TESTED

    With Google Adsense's new terms requiring all sites to have a privacy policy about 3rd party cookies (reference: Tell your visitors they are being tracked with web beacons & cookies as AdSense terms updated - JenSense.com ), I figured i'd help you all get started with your own easy to make template.

    DISCLAIMER:
    It's best to consult a lawyer if you can, and I take no legal bearing on this privacy policy being legit in any way shape or form. It is what I came up with for my site. Your's may differ.


    ---------------------------------------
    • Step1:
      • Go into the vB ACP, vB Options -> Site Name / URL / Contact Details option.


      • Find the privacy block, and enter 'privacy.php' in the blank. (note, if you already have a file called this, back it up before doing anything futer, as what lies ahead will over-write it)

    • Step2:
      • create a new php file in your editor of choice, or notepad.
      • place the following code into it:
      • Code:
        <?php
        
        // ####################### SET PHP ENVIRONMENT ###########################
        error_reporting(E_ALL & ~E_NOTICE);
        
        // #################### DEFINE IMPORTANT CONSTANTS #######################
        
        define('THIS_SCRIPT', 'privacy');
        define('CSRF_PROTECTION', true);  
        // change this depending on your filename
        
        // ################### PRE-CACHE TEMPLATES AND DATA ######################
        // get special phrase groups
        $phrasegroups = array();
        
        // get special data templates from the datastore
        $specialtemplates = array();
        
        // pre-cache templates used by all actions
        $globaltemplates = array('privacy');
        
        // pre-cache templates used by specific actions
        $actiontemplates = array();
        
        // ######################### REQUIRE BACK-END ############################
        require_once('./global.php');
        
        // #######################################################################
        // ######################## START MAIN SCRIPT ############################
        // #######################################################################
        
        $navbits = construct_navbits(array('/' => 'Home', '' => 'Privacy Policy'));
        $navbar = render_navbar_template($navbits);
        
        // ###### YOUR CUSTOM CODE GOES HERE #####
        $pagetitle = 'Privacy Policy';
        
        // ###### NOW YOUR TEMPLATE IS BEING RENDERED ######
        
        $templater = vB_Template::create('privacy');
        $templater->register_page_templates();
        $templater->register('navbar', $navbar);
        $templater->register('pagetitle', $pagetitle);
        print_output($templater->render());
        
        ?>
      • save and upload to your root forum directory (same location as showthread.php, etc) calling it 'privacy.php'

    • Step3:
      • Go to the style Manager in the ACP. From your skin (and you will have to do this for each skin if they aren't inherited) Select 'Add New Template' from the drop down.
      • Name the template 'privacy' THIS MUST MATCH what is in the php file, so if you change it here, you must change it there as well.
      • place the following code into the template. Note again, this contains the code that I used for my policy. I Highly suggest you edit some of it at the very least Also, change YOURSITENAME to your site name, duh
        Code:
        {vb:stylevar htmldoctype}
        <html xmlns="http://www.w3.org/1999/xhtml" dir="{vb:stylevar textdirection}" lang="{vb:stylevar languagecode}" id="vbulletin_html">
          <head>
            <title>{vb:raw pagetitle} - {vb:raw vboptions.bbtitle}</title>
            {vb:raw headinclude}
          </head>
          <body>
            
            {vb:raw header}
            
            {vb:raw navbar}
        
        <H1>Privacy Policy</H1>
        
                    <ul>
                        <li>YOURSITENAME recognizes that you care about the personal information that is held about you and how that is used.</li>
                        <li>This privacy policy applies to all personal data, submitted by you, to the YOURSITENAME web site.</li>
                        <li>By registering to YOURSITENAME you need to submit a chosen name and contact information, more specifically an e-mail address.  No extremely personal information, such as Social Security or Credit Card numbers are stored by us.</li>
                        <li>YOURSITENAME also stores and reads cookies to and from your computer. Cookies are alphanumeric identifiers that we transfer to your computer's hard drive through your Web browser to enable our forums and general website features to recognize your browser for when you return to this web site.  By using this website, you agree that both the webserver, and any trusted 3rd party we chose, such as advertising networks, may place a tracking cookie on your machine and access it at any time during your session.  In general, cookies are safe and are not a security issue when being used from 'trusted' internet sites, such as YOURSITENAME.  For information on how to manage cookies in your browser, please visit <a href="http://www.aboutcookies.org/Default.aspx?page=2" rel="nofollow">AboutCookies.org</a></li>
                        <li>YOURSITENAME will not sell, transmit or distribute any data held without your prior permission or consent, unless required to do so under relevant United States legislation.</li>
                        <li>All other information provided by you goes into a "public profile" and is entirely optional, all information held in that profile is held there at your own risk.  This info is edited via your Control Panel in the forums.</li>
                        <li>You have a legal right for the personal information held at YOURSITENAME to be updated if it is incorrect or deleted if you choose.  Most of this can be done through your Control Panel in the forums.  If you are having issues with this, please contact us if you need help.</li>
                        <li>YOURSITENAME will take all reasonable effort to ensure that all personal information about you submitted is maintained secure on our server.  However, we make no warranty to this.</li>
                        <li>This site is intended for individuals over the age of 13.  Any information collected is intended to be of individuals over the age of 13.  According to <a href="http://www.ftc.gov/coppa/index.html">COPPA</a>, our site does NOT cater to children.  "Operators of commercial websites or online services directed to children under 13 that collect personal information from children" require a COPPA agreement and privacy policy.  Since we do not cater to this age group, no COPPA exists on YOURSITENAME</li>
                        <li>This Privacy Policy may be modified at any time without notice.  It is your responsibility to check this page for updates or changes. If you have any questions regarding your privacy, then <a href="/sendmessage.php">Contact Us</a></li>
                    </ul>    
        
          {vb:raw footer}
          </body>
        </html>

    • Step4:
      • I know you didn't edit it yet... go back and edit your template with YOUR policy

    • Step5:
      • Optional: Create a CRR to make privacy.php look nice, like yourdomain.com/privacy/ or any other variety you chose.
      • Head into the VBSEO CP, and scroll down to the Custom Rewrite Rules block.
      • Enter:
        Code:
        'privacy\.php' => 'privacy/'
        or any other variety in the right-hand side that you wish to re-write it too.

    • Step6:
      • That's it Assuming your footer template is stock (or at least has all the stock conditionals in it) you will now see a "Privacy Statement" link in the bottom right (near where the modcp and admincp links are) Click it and make sure it works. Enjoy

    Last edited by Ceri May; 12-16-2009 at 09:01 PM.

  11. #41
    Member Array
    Real Name
    snerd
    Join Date
    May 2007
    Posts
    61
    Liked
    0 times
    Works fine, thanks!

  12. #42
    Junior Member Array
    Real Name
    Bernard
    Join Date
    Dec 2008
    Posts
    28
    Liked
    0 times
    Thank you very much Ceri!, now i'm ready to upgrade to vB4 when they release the gold version

  13. #43
    red
    red is offline
    Member Array
    Real Name
    Max
    Join Date
    Dec 2008
    Location
    California
    Posts
    32
    Liked
    0 times
    I created privacy policy using FAQ included in vBulletin, looks ok.

  14. #44
    Senior Member Array webmastersitesi's Avatar
    Join Date
    Oct 2007
    Posts
    521
    Liked
    16 times
    Blog Entries
    3
    Good work thank you. I also used privacy policy as plugin here you can check: MARCO1 Privacy Policy - vBulletin.org Forum

Page 3 of 3 FirstFirst 1 2 3

Similar Threads

  1. my privacy.php doesnt seem to want to work..
    By Martyn in forum URL Rewrite Settings
    Replies: 4
    Last Post: 08-17-2007, 11:34 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •