im new to website coding. I am trying to hide a div/element when user is coming from only some url.
For example
Hide id 123 when the user has come from google.com.
Can this be done?
Related
I have a dynamic page setup using elementor on wordpress. It shows up the data of a logged in user including their name, profile photo and other custom fields the user has. All is working well.
I was thinking if it's possible to change this content by passing the user id of the user via the URL.
So let's say the page url is. mysite.com/profile and if I want to show user data of user with ID "56", is it possible for me to pull their data by passing user id via URL? Like.. mysite.com/profile/?userid=56 ? Can this be done on wordpress?
Thanks for your time in advance.
The homepage of my Wordpress site is set to display my latest posts.
I also created a landing page which includes a form for users to fill out for a free consultation.
How can I make it so that when first-time users go to the homepage, they will be redirected to the landing page? (But clicking on my site logo should still take them back to my regular homepage showing my latest posts.)
After users have filled out the "get a free consultation" form on my landing page, we would create a cookie or something so that whenever they next visit the homepage, they will just see the regular homepage with latest posts - not see the landing page any more.
Is there a way to write a code for this?
Thanks in advance!!!
setcookie() is probably a good option.
if(!$_COOKIE["been_here_before"]) {
setcookie("been_here_before", true);
header('Location: /consultation'); // Your free consultation page
}
The way to achive this is a little bit more complicated.
The best practice for this is to have your form in an overlay on the homepage, the user sees the form when accessing your website but has an option to close that layer (exemple:"already fiiled the form..."). After the user submits the form or clicks "close" then set a session variable that will be used so the user won't receive the overlay again in that session. An website that does that is this one which asks the user to register for the newsletter. If the user is already register then he can click "Already registerd?" (=Sunteti deja înregistrat?) and the overlay disapears for that session.
If the form submision is mandatory for all users to get access to the website, then force them to login in the landing page. Here is an example for that.
I am looking to place many Facebook like buttons on a page which i want they to allow me to post to facebook wall of the user who logins through them. Can some one point me on where to find this workflow for .NET. I wish the user clicks on a Like button log ins then with the access token post to wall the content. later if he clicks on other like button it will just post to wall: image test,...
Is this possible? whew can i find code example?
thanks in advance
i would like to autoasign every user that comments a custom webpage ex: http://example.com and make every username clickable.
I want it to be automatically, so they cannot complete the website field
I have a login module in my webpage from where i want to redirect every user to a common page but their accessibility should vary on the same page,..some of them should get 10 links on that page whilw some should get 20 links on the same page...
Can anyone help me out...
If you are having menu items (values) in the database and while registering the user you can set the rights to access the list of menus and save it in databse. And if the user login you can retrieve those menu items from the databse.