I need help to display website visitor's name (on the popups) by just url?
For example this wordpress website:
https://ngantenstory.id/agus-henny/?u=Jonathan
You can change the name to anything and it will display the exact name on the welcome popups.
No need user database, I assume? No need for the user to register first, etc.
How to do this? Please help.
Thank you.
alert(new URLSearchParams(window.location.search).get("u"))
You can get current page's URL by using window.location,
get it's "search parameter" ("?u=Jonathan"),
and parse it by create an URLSearchParams object,
then get what you want by using get method,
finally use alert or other thing to show it to user.
alert is just for a simple example, don't use it in production, you may want set one of your HTML node's content and style instead.
Related
I have One Field And Second Field When i Change Data Field one with one name Immedialtly Change Field name Also On Front side Of my site without Refresh.
Describe On Brief
Like Dev tool When We Change Css and effect Immedialty See On Page.
I Need Plugin Like That.
Thank In Advance.
And Sorry For Bad English.
You need to use Ajax calls here.
Make a script that hits in every 3 seconds and under that script make a script code on frontend of the website, which will pick current value from database and show changes according to that on frontend.
I have created a new custom page in alfresco and i want to give access that particular page for a particular group only. If there is any way please reply.
Thanks in advance.
One way to do this would be by using an evaluator on the Share module that contains your custom page, see https://docs.alfresco.com/5.2/concepts/dev-extensions-share-module-deployment.html
Your evaluator can check to see whether the user is in the appropriate group and then hide the module, if not, thus hiding the page.
I need to dynamically prefill a 'Google Forms' Field with a value from a GET variable in the URL.
This is the form: https://docs.google.com/forms/d/e/1FAIpQLSesGYSZgzQfqLiZIfi2JlQFQ5ttatNMZ9U8gJNA8Xa8U1X9fw/viewform
As you can see the field name is entry.253064463 then I tried with:
https://docs.google.com/forms/d/e/1FAIpQLSesGYSZgzQfqLiZIfi2JlQFQ5ttatNMZ9U8gJNA8Xa8U1X9fw/viewform&entry.253064463=myCustomValue
But not, working, the field is not dynamically prefilled.
I see no other way to get this.
Might be a bit late, but can it be that you are using the preview? I had the same issue and fixed it by using the link you get in the editor by clicking on "SEND".
It seems like parameters are not allowed in the preview.
I have a WordPress website and as part of the news items, the editor can add either an:
internal link OR
external link OR
file
Currently I have this set up as a repeater field with maximum rows set to 1.
Is it possible if say one value has been entered, to prevent another of the values from being filled in.
E.g. I add an internal link and then try to add an external link. A message of some sort is then shown to me to say that only one value can be selected at a time.
I know I can add a description to the field with this information but I want to make it idiot proof so that the user can never add more than one value.
Thanks for your time and help in advance.
I can't write this in comments but celeriko right. Install types plugin there is ability of conditional logic. You can very easy implement of from backend.
Types: http://wp-types.com/
Reagrds
I have a Wordpress site and what I would like to do is for users to send their email address through a form and then my email client would send automatically message them with a link to a certain page. That page should not be accessable without that link. Is that possible to do and are there any ready plugins for this? I use a members plugin, but I want users only to give their email and not to fill out a whole form. Hope you understand. Thanks. w
The better route is to just use the built-in sign-up system. Is there some reason that didn't work for you?
Short of that, here is a quick and dirty approach...
To send mail to a user, just put the following PHP code in a page:
mail($_GET['user_email_address'], 'Access to site', 'To access the site please use ' . get_bloginfo('url') . '/foo.php?access=1');
The first parameter assumes the page that calls this has an textbox with the name 'user_email_address'. The subject and content of the mail follow; you can change them to reflect what you reallyw ant.
Then on the page you want to restrict access to, put the following code at the top of the file:
if (!isset($_GET['access']))
wp_redirect(get_option('siteurl') . '/wp-login.php?action=register');
This redirects anyone who doesn't have the get parameter access. This system has two main shortcomings:
you can easily copy/paste and share this URL and anyone will be able to bypass the e-mail
if you try to return to the page later you won't be able to get to it without the get parameter
If you provide more details on why the built-in registration system didn't work, I might be able to help better.
-Kevin