Welcome to TalkGraphics.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2010
    Location
    UK
    Posts
    18

    Default Web designer 6 adding DL Guard code to members only pages?

    Hi i am trying to protect some of my pages using DL guard http://www.dlguard.com/dlginfo/index.php

    I need to insert the html code into a certain part of the pages i need protected for it to work how can i do this?

    I know how to use a place holder and insert the code into my webpage but how do i insert it into a certain part of the pages html code?

    This is the instructions provided from dl guard, and what im trying to do:

    "This code is to be inserted into ALL of the membership pages that you want protected.

    IMPORTANT: You need to paste the code snippet at the very top of your webpage, BEFORE your HTML tags".

    So basically i need the code to appear before the HTML tags for it to work anyone know how to do this?

  2. #2
    Join Date
    Oct 2010
    Location
    Central Pennsylvania
    Posts
    52

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    Name the place holder "<head>" and then the code in the placeholder will appear in the head section of the page's code.
    Maybe a screen shot will help: Click image for larger version. 

Name:	demo.jpg 
Views:	242 
Size:	59.3 KB 
ID:	77909

  3. #3
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    You might try putting the code in a placeholder which is named <html> - see attachment
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	html.jpg 
Views:	201 
Size:	46.0 KB 
ID:	77910  
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  4. #4
    Join Date
    Jul 2010
    Location
    UK
    Posts
    18

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    nice one thanks for the quick replies al try this!

  5. #5
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    38,666

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    John or ctufc

    Have you tried this and does it work?

    I have never heard of a request to place code before the HTML tags before.
    Gary W. Priester
    Mr. Moderator Emeritus Dude
    , Sir

    gwpriester.com | Custom-Stereograms.com | eyeTricks on Facebook






  6. #6
    Join Date
    Jul 2010
    Location
    UK
    Posts
    18

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    Hi ive tried to get this to work it doesnt work.

    However i have read the entire guide to building a membership site with dl guard and i need to save my pages as a php file not html so my
    home page should be index.php for example not index.html.

    This is the part of the guide im refering to on dl guards site:

    Custom membership pages:

    The creation of your membership site is completely up to you.

    All you need to do is build your webpages as usual but make sure you save them as PHP file. All this means is that you need to save them with a ".php" file extension. So instead of saving your page as index.html, you'd save it as index.php.

    Then all you need to do is paste the code snippet as described above into the start of each page. This gives you complete and 100% control over your membership site.

    So i guess all i need to do is be able to have my pages saved as a .php file which i dont think xara web designer 6 will allow as its only a html creater isnt it?

  7. #7
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    It does work. See attached where I used a named placeholder - <html> - for the words "Hello World" which, as you can see, appear above the code.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	prehtml.jpg 
Views:	217 
Size:	55.4 KB 
ID:	77916  
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  8. #8
    Join Date
    Jul 2010
    Location
    UK
    Posts
    18

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    yea i can get the code to appear at the top of my source code however the script wont work and protect my pages as my pages need to be saved as a php file extension
    not html?

    How do i do this with xara wd6 is there a manual way to change this?

  9. #9
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    Xara exports page one as htm no matter what. So create a dummy page 1 and start your site on page 2. See Attached
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	extension.jpg 
Views:	196 
Size:	33.2 KB 
ID:	77917  
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

  10. #10
    Join Date
    Jul 2010
    Location
    UK
    Posts
    18

    Default Re: Web designer 6 adding DL Guard code to members only pages?

    Thanks for the help neodeist my main page can be in html so its ok renamed all other pages .php and its all now secure thanks again!

 

 

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
  •