WebSite X5Help Center

 
DENNIS S.
DENNIS S.
User

HOW DO I ENTER SECURITY CODE IN A WEB PAGE  en

Autor: DENNIS S.
Visitado 1223, Seguidores 1, Compartilhado 0  

Hello,

X5 Pro Question

I need to be able to insert ASP security codes into many of my webpages.

How do I insert the following ASP code into a webpage and make it work?

<%If Session("verifyb11") = "" Or Session("verifyb11") = "false" Then    'Check for the session for access.    Response.Redirect "http://www.gridirongold.com/noaccess.asp"ElseIf Session("verifyb11") = "True" Then        Response.write ""End If%>

Publicado em
7 RESPOSTAS
Antal Z.
Antal Z.
User

HI DENNIS S.

If you want the entire website to be valid.

select where you want to paste

paste the code. then click on the check mark

ok

Ler mais
Publicado em de Antal Z.
Antal Z.
Antal Z.
User

HI DENNIS S.

Any extra code you insert can read the display of the website. So it's exactly the 3rd party codec.

Instead, just paste it on the page where you want it to appear.

  • page properties

Select where you want to insert the code.

OK

Ler mais
Publicado em de Antal Z.
DENNIS S.
DENNIS S.
User
Autor

My fault, I didn't explain this correctly. The code is a security code for PayPal buttons. When the buyer clicks the PayPal button and then clicks return to merchant. This code automatically redirects the buyer to another web page that contains the digital product he purchased. There are different products every week. So the buyer can not return to the page to get free items in following weeks, because there's a no access in the code. The buyer must pay to access the page every week.

Please advise

Dennis

Ler mais
Publicado em de DENNIS S.
DENNIS S.
DENNIS S.
User
Autor

None of the suggestions work. I need to place this code in the source code of the webpage in the body section.

Ler mais
Publicado em de DENNIS S.
Incomedia
Stefano G.
Incomedia

Hello Dennis

The places where Antal suggested you place the code are going to place your code into the source code of the website, so I would say it is already the correct spot. However, keep in mind that your pages need to be set as ASP pages for this code to work, so you need to change the extension manually for every page:

The Staff cannot unfortunately provide support for custom code. The places where you are inserting them is already correct. If you need assistance on the code itself in order to understand why it isn't performing as expected, I am afraid I need to ask you to contact a professional to provide support for this

Thank you for your understanding

Stefano

Ler mais
Publicado em de Stefano G.
DENNIS S.
DENNIS S.
User
Autor

Stefano,

Yes I do have the asp extension. True, it does go into the source code when pasted to the page. The code is working properly and redirecting properly.

But the problem is that the code is showing up on the webpage after publication.

The code is showing on the actual webpage after pasting the code in the page and uploading?

Why is it showing on the webpage? I tried it by enabling HTML code and without?

See attached image

You can test it yourself. Try pasting the code on a page

Dennis

Ler mais
Publicado em de DENNIS S.
Incomedia
Stefano G.
Incomedia

Hello Dennis

Where exactly are you encountering this issue?

I've tested this page here but it seems fine:

https://www.gridirongold.com/noaccess.asp

Is this happening on a different page? please let me know the URL to it here so that I might verify this for you

Thank you

Stefano

Ler mais
Publicado em de Stefano G.