Add JotForm to Site Down Message to get customer IP address

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am
Location: Sydney Australia

Add JotForm to Site Down Message to get customer IP address

Post by Simon66 »

So I develop all my sites online, usually at the domain/hosting of the webhost I use for all my sites.
(Sometimes I use a staging domain in my bulk hosting if a site already exists).
I'm too lazy to set up my own personal server and faff about with moving it when it's finished.

Therefore I use 'Maintenance Mode' all the time.
I've tried using marketing pages for my business as the 'Down for Maintenance' page. But I usually end up with Down for Maintenance text - the default.

The other problem I have is getting clients to send me their IP address, so I can add them to the IP exclude list. Some client are OK, but some just don't get it. (Even with detailed instructions and a link).

So I just added a jotform.com form with a single name field. It's free if you have under 5 forms.
Image

In the form settings you can choose to include the senders IP address in the form submission.

Image

Embeded the form into the Site Down Message:

Code: Select all

<__script__ type="text/javascript" src="https://form.jotform.com/jsform/22175"></__script>Concept Factory Pty Ltd
So much simpler than building my own IP collecting form!
User avatar
creopard
Forum Members
Forum Members
Posts: 47
Joined: Fri Nov 10, 2017 10:25 am
Location: .de
Contact:

Re: Add JotForm to Site Down Message to get customer IP address

Post by creopard »

A very nice solution.
What are the underscores good for in

Code: Select all

<__script__ 
and

Code: Select all

</__script>
?
Simon66
Power Poster
Power Poster
Posts: 250
Joined: Wed Aug 29, 2007 4:36 am
Location: Sydney Australia

Re: Add JotForm to Site Down Message to get customer IP address

Post by Simon66 »

Not sure.
I copied it from a similar post I did on the Slack channel. I think Slack must have added them.
The code should be:

Code: Select all

<__script__ type="text/javascript" src="https://form.jotform.com/jsform/221752305"></__script>Concept Factory Pty Ltd
I just added it here (above) from my Global Settings/Maintenance Mode page and it look like it's this forum that is adding the underscores.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1921
Joined: Mon Jan 29, 2007 4:47 pm

Re: Add JotForm to Site Down Message to get customer IP address

Post by Jo Morg »

It's has to, there was no easy way to escape HTML code and we had the forum defaced a few times because of some posts with code snippets. Most long time users are already aware that the underscores are to be ignored :).
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Tips and Tricks”