Welcome to TalkGraphics.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2006
    Posts
    10

    Default adding code before the Doctype?

    Hello.
    I know i can add placeholders that can include html code, i can also add html code to the header tags and body html, but i have been looking at how to protect some pages by using a script to handle giving members access to set pages.

    in order to do this i need as the reply below shows to be able to add some code before any other code .

    i know using an html editor i can do this but is it possible to add this code by using xara?

    Kind Regards
    Carl

    Hi Carl,

    Basically to secure a page you need to add this code (or similar) to the very top of the page before DOCTYPE or <html>

    <?php
    $groupswithaccess="CLIENT";
    require_once("../slpw/sitelokpw.php");
    ?>

  2. #2
    Join Date
    Mar 2009
    Location
    England
    Posts
    2,044

    Default Re: adding code before the Doctype?

    • Create an object to be your place-holder
    • Name it <html> using right click Names
    • Go to Web Properties Placeholder >> HTML code body
    • Enter your code and press OK then Apply
    Attached Files Attached Files

 

 

Tags for this Thread

Bookmarks

Posting Permissions

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