Hello. I hope I can be clear enough. So, I have an app where I embed my website, when the url, http://action_share is executed, the app understands it and shares the app. However, when the link is clicked on the web, it takes one to the actual url which doesn't exist. Is there a way to define a destination page for that url if there's no command executed (like the app does), or rather, also create a share command even on the web.
I hope you understand my question.
Edit: I want the link, http://action_share to refer users to a page in my website
Thanks in advance.
Related
Good day. I want to make a simple CRUD guest form system with Laravel. I want to make a web page containing a form that only can be accessed after scanning a QR code. Here is the flow:
User -> Scan QR code -> Access to web page -> Fill in the form -> Submit.
The problem is that after scanning a QR code the user will directed to that web page with a link shown to the public, making that the user can copy or save and access the link later without actually scanning the QR code again. This will let user to input their data even without being asked or scanning the QR, leading into a data redundancy in the database.
Is there any idea how can I make this to work? Or maybe another solution?
Thank you.
If you want to create a link with temporary lifetime and signed, you can create signed URL and use that. have a look at the documentation.
https://laravel.com/docs/9.x/urls#signed-urls
Sorry if the question will seem little fuzzy and you will be tempted to down-vote it as soon as you read it. I am far from being an expert in system administration but I will try to explain the problem as clearly as I can.
I need to create a website where users can have profiles and attach an external domain to their profile page on this site. Let's say we have a site:
myresume.com
User will register and create a profile and his url will look like:
myresume.com/username
The feature I need to add should enable user to point his domain to his profile url.
Is it possible via php as my whole application will be written in laravel 5.2?
I will probably need to have my nameservers or just give user the IP address which he needs to point his domain to but then I will need to fetch the domain from my side somehow and point it to the url (myresume.com/username). How can it be done?
If someone could give an explanation how it is done or at least point where to search for an answer it would be amazing. Thanks.
You need to know how Apache NGINX works.
You need to know what $_SERVER['HOST'] is.
Logic to implement this.
This is how you will do it:
Host your app on a VPS / dedicated where your app is the 'default' with no other VirtualHost.
On your index.php file, define URL. If URL is set, let your Laravel's route choose which profile_id is matched with URL and then redirect the user to that URL or render the output.
Simple?
So some quick background: I'm trying to teach myself to code, but right now I'm really a beginner. I'm trying to help out my younger brother's school with setting up a moodle-powered online course system featuring videos of full classes, and I've run into a snag with the school's preferred video host.
Basically, here's my problem:
The guys hosting the videos don't want to allow people to directly link to the videos, instead they built an API they want us to use that takes a POST request, then outputs a new URL, which expires after one use.
I've figured out how to use the API using POSTman or in the terminal
#for example:
# curl -F
# api_key='the api key they gave us' -F
# email='a user's email' -F
# destination='a subdirectory'
# 'the target URL'
What I can't figure out, is how to automate this process so that teachers can input the link to their video on our host's site ('somesite.com/videos/teacherx/') directly in the moodle class editor (if possible), so that whenever a student is taking the class they can click a link that runs the script, does the POST request, and redirects them to the new temporary URL.
In case you can't tell, I have no idea what I'm doing.
Thanks in advance
It sounds like you'll need a text filter - basically search for text and replace it with something else when displaying.
See if your application is listed here : https://moodle.org/plugins/browse.php?list=category&id=7
If not then you will need to write your own filter - the instructions are here https://docs.moodle.org/dev/Filters
Maybe download the code for the screencast filter and see how that works :
https://moodle.org/plugins/view.php?plugin=filter_screencast
Or you can look at the screencast code on github at https://github.com/TechSmith/Moodle-Screencast-Filter
I'm trying to add a Share button to my website's various pages but I've found so many options I don't know which one is the most correct.
Official method:
https://developers.facebook.com/docs/plugins/share-button
I can't get this to work. If you'd like to check out a live example on my website pls comment :-) The share button appears, I click it, it opens but when I click 'share' again in the dialog, nothing happens. (the fb account is fine, I checked using other website's share buttons)
SO answer using share.php which I heard was no longer officialy supported:
facebook Sharer popup window
Finally the facebook share dialog (official):
https://developers.facebook.com/docs/sharing/reference/share-dialog
This method lists the use of 'app ID' which I'm having trouble with. It says to use a public ID and it IS required (not according to several SO questions), and I can't find how to do that.
Hence, I ask: What is one method that will surely work to implement normal share button (topic+image+small description) on my website?
Thank you.
I'd really need to see more of your implementation, but I have some thoughts.
As Facebook always requires the use of their Javascript SDK for their recent tools, you could check out that the SDK is loaded correctly.
Another thought: The SO answer with sharer.php seems a decent starting point. If you don't need everything to happen in a window/overlay, you can just create a simple link and point it to
https://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=Google&p%5Burl%5D=http%3A%2F%2Fwww.google.com
with p[title] as the page title and p[url] as the url of the page you want to share. This has been a reliable solution for me for years, as it doesn't rely on any Javascript and works in virtually all environments.
If you like you can always make the link open in a window via Javascript you can add yourself, so it's easy to debug.
I've build a web site that get source code of the link entered by the user using(HTML DOM), then checks the source depending on standards.
the problem is some web sites can't evaluate.
this is My Web Site link you can check from here.
when you enter google URL in the text-box, the web site functionality works successful, but when trying the example http://www.alwatan.com.sa/Default.aspx it doesn't work. no information appear.
can one help me?
The URL http://www.alwatan.com.sa/Default.aspx automatically redirects to http://www.alwatan.com.sa/Default.aspx?issueno=3902
If you enter the URL with the query string, your application works (presumably) as intended.
I imagine there is no content at http://www.alwatan.com.sa/Default.aspx, and the issueno is a required parameter.