Forcing popup when coming from external websites (e.g google) - html

I work for a restaurant guide in the NW of the UK and we basically have featured restaurants (the ones who pay a monthly sub) and non-featured restaurants (the ones who get a basic free listing).
We were looking to get some kind of popup appearing on the non-featured restaurants, but only if they came from an external site, e.g Google.
So the steps would be:
1) User goes to google and puts in "name of unfeatured restaurant"
2) Our company comes up with the basic listing of that restaurant
3) User clicks the link but is then presented with a popup of featured restaurants
But, we would only need the popup to appear if the user has come from an external site. So if they were they came internally from our website the popup wouldn't show.
We use ASP at work and I was thinking it may possibly need some kind of a variable being passed through, or maybe something to do with cookies but I'm not an expert on the ASP side.
Hope someone can help on this :)

To see where a user came from you can try:
<%=Request.ServerVariables("HTTP_Referer")%>
This would contain the referring URL. if you want to use it on subsequent pages, you'll have to store it ofcourse in a cookie or session variable.

Related

How to direct clicks based on the original click and then a selection

Im failing to find the correct terms for what I'm looking to do. I'm not a coder but I can get it done If I get pointed in the correct direction.
I have a network of sites. A main website, a blog, and 3 different woocom stores (international legal reasons all 3 need to be completely separated) I need to be able post a link to a product,let's say "www.--.com/product-x", on the main site the blog or a stand alone link in maybe a Facebook post. Once a potential customer clicks on that link I want them to be sent to a region select page of which there are 3 options. But I don't want them to just be sent to the landing for the woocom store of there selection I want them to be sent to "na.--.com/product-x" or "eu.--.com/product-x"
If it were just 4 or 5 products I would just duplicate the region select page but this isn't realistic. I'd like to compile the "/product-x" part of the URL from where they clicked from,and the "na." And "eu." Part of the URL from there selection.
I'm willing to do some possibly cumbersome .htaccess upkeep or add the pathways individually each time a new product link gets made of that keeps things simpler but aibjust don't want 100 region select pages.
I am aware of Geo-redirects but I'm just not there yet. I for the world can not type the correct thing into Google to find any help on this, and it's not conceivable to me that this is an original idea.
What is this called?

Link to show Google reviews

Currently working with a website and Google MyBusiness. Rather than duplicate content, we want to include a URL to the reviews from customers on Google MyBusiness (Google Maps) -does anyone have any ideas on the format of the URL?
There's lots of information available on how to make links to encourage customers to write reviews
https://search.google.com/local/writereview?placeid=<place_id>
but I've found nothing about a link to display reviews.
https://search.google.com/local/reviews?placeid= is accurate; you can also search for your business on Google; hit the read reviews link and when the javascript modal pops up with the reviews copy the URL; for example:
I googled 'Sushi Mikasa' a local Sushi restaurant; they have 40 reviews, I click on the 40 Reviews link to read them and the reviews modal list pops up; the URL on my browser is: https://www.google.com/search?ei=O5wPXcbfPIbH_QbZ2azYDA&q=sushi+mikasa&oq=sushi+mikasa&gs_l=psy-ab.3..0l2j0i20i263j0l4j0i22i30l3.7626.12192..12313...0.0..0.89.1197.16......0....1..gws-wiz.......0i71j35i39j0i67j0i131j0i131i67j0i131i10j0i131i20i263.rbNKWeU3HEo#lrd=0x89c2448abab82c39:0x7eae8848db443229,1,,,
This URL will take a user straight to the review box; similar to how the local/reviews/placeid= does; except this uses a search string instead of a Place ID. Regardless, you've found two great solutions :)
Think I've now cracked it with a bit of trial and error:
https://search.google.com/local/reviews?placeid=<place_id> seems to work.
One additional trick (without finding the placeid) is to click Share then select Embed a map tab. It should display the place details in a small white box in top left corner with a X Reviews hyperlink, just copy that. Example for a place aesthetic dental centre:
The link is https://search.google.com/local/reviews?placeid=ChIJlxoV2VxmXj4RSaoikrizWGg&q=Aesthetic+Dental+Center&hl=en&gl=IN
which directly opens the place reviews. Quick and simple :)

ColdFusion Cookie/Form Submission Loophole

Okay so here is my problem. I have developed a framework which does the following:
If, for example, you have four webpages... but you only want to allow users to reach the "4th" webpage after progressing through pages 1-3 sequentially - I have built this functionality (basically I set an encrypted cookie keeping track of what the user has completed thus allowing to know what they should be able to access). There are two parts of it:
1) If a page does NOT have a quiz, the user must only visit the webpages sequentially to be allowed to view the 4th page in the "progression".
2) However, if a page has a quiz on it, the user must successfully pass the quiz to go on to the next sequential page.
Now... Here is the real biggie... The last page will often be a web form which, obviously, I only want an individual to fill out and submit if they have reached the form by sequentially getting to that last page in the progression... BUT I found a flaw in the system. If someone were to go completely through the progression and fill the form out... they could delete their browser's "form data" and go "back" to the form and allow a friend to fill the form out. That would be detrimental to the system, and the users who will be navigating this progression are GOING to look for ways to get around going through it.
Some of the suggestions I will probably get will not be possible given the larger framework I am in, but rather than list all of the impossibilities I would like to see what you guys thought would be a way of getting around this issue?
P.S. This functionality is built in HTML and ColdFusion.
Thank you for any feedback, it is a great help!
EDIT:
Keep in mind the user must be able to back track any previous page they already completed.

HTML button from a webpage to a specific item from a specific Amazon seller

A friend of mine used wix to build a small site selling t-shirts. He also put them on amazon.
Is there any way to create buttons to send the buyer to amazon to purchase the item from my friend.
He isn't selling unique items so there will be multiple sellers, also wix is a static site generator.
If you visit the Amazon page for the item you want to link to, you can copy its URL straight from the browser's address bar. You can delete the parts of the URL starting with /ref=..., which are used by Amazon to track visitors and aren't necessary. This YouTube video explains how to create a linked button in Wix.
For example, if you search Amazon for stack overflow robot t shirt, you'll end up at a page that looks like this:
The first two items are identical, but are sold by two different vendors. The second one (FZLB) is 1ยข cheaper, so let's go there:
The highlighted part of the address bar shows what you need to copy. Paste this into the "Link To" box in the Wix button settings dialog. That's all there is to it.

Hold data for list to add later?

So no SQL tables or anything here. Basically, I have 3 pages that have 6 items each. Each item consists of an image and then some text and also a smaller image than changes from a check to an "x" depending on if user selects or not. So if the image is checked, the user is adding that to a list which would display on a fourth page. This data needs to persist through just a session and if the session times out, then it resets. If the list is complete and on that fourth page the user choices to email or share list via social sharing, then the data would be gone after that action. What I am trying to figure out is the best way to approach and implement this with minimal time and effort as it has to go out quickly. Can any of you explain and maybe point to some links with info on the best way to achieve?
This is being done in asp.net web forms with html, css, and javascript.
Much appreciated!
You can use ViewBag() (for view in razor) or ViewData[] (for page in .net) to hold data for one web page.when you want it to other page. You can pass it to other page.
check this out
ViewBag, ViewData and TempData