WebSite X5Help Center

 
DENNIS S.
DENNIS S.
User

HOW DO I ENTER SECURITY CODE IN A WEB PAGE  en

Autore: DENNIS S.
Visite 1554, Followers 1, Condiviso 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%>

Postato il
7 RISPOSTE
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

Leggi di più
Postato il da 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

Leggi di più
Postato il da Antal Z.
DENNIS S.
DENNIS S.
User
Autore

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

Leggi di più
Postato il da DENNIS S.
DENNIS S.
DENNIS S.
User
Autore

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

Leggi di più
Postato il da 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

Leggi di più
Postato il da Stefano G.
DENNIS S.
DENNIS S.
User
Autore

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

Leggi di più
Postato il da 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

Leggi di più
Postato il da Stefano G.