Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I'm working on job engine project at the moment of this project I need to add button to ads for apply the vacancy by users and I need to this apply button send user data to the publisher company. for more understanding i give an example:
company will publish ads
user click on apply button in that ad
the button will get info from user profile and send it to company dashboard includes name,email,about, etc. but the most important is to send user CV's link to download by the company.
my question is: who can I approach that idea? currently I'm out of idea how to do that, i need to know what functions I have to use to make this happen?
thanks.
ok i will give you the steps hoping that all the data of a student is saved in the database
the user should be logged in
get the id of the logged in user on click on apply button, like a form where it will call a controller function where you will retrieve the id of the authenticated user.
in that function query the database table of user and select all information
wrap them and send an email or a message to the particular company.
hope it helps
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am building an app for my school and I had read a little on Canvas's API and was wondering if anyone on here has played with it.
I am trying to make part of my account validation check whether or not a person is a student (and not a teacher/admin/etc.) but can't find a part of the API to help me with this.
Does anyone have any ideas?
Users in canvas can have multiple roles, that are different based on the context the user is in. For example a user could be a teacher in one course and a student in another. Or a user could be an admin in one account, and not another.
There are two different endpoints you will need to look at to check what roles a user has.
Enrollments:
https://canvas.instructure.com/doc/api/enrollments.html
An enrollment object in canvas will tell you what courses a user is in, and their role in the course.
Admins:
https://canvas.instructure.com/doc/api/admins.html#method.admins.index
The admin endpoint can give you a list of the admins in an account. But you will need an access token that has admin permissions to access this API.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am making an enrollment system in which users can select courses that they wish to take. It is a multi-page website where users first select a topic then they are directed to a new page where a list of courses associated with that topic is loaded from a MySQL database. When the user finds a course they want they click on a button and the course is added to a session variable with an AJAX call. I want to add an image or text that lets the user know that they added that course once they do. Currently there is no way the user can tell if they added the course or not. This of course is easily done when the user first adds the course. I can have a hidden image that is toggled on click. This however will be forgotten on page reload.
The question is, how can I flag the course(s) they added if they reload the page or leave that topic's page and later come back to it?
A possible solution that I came up with was to upon every page load to search the list of courses that are in the session variable for matches on that current page, then set the "Added" image to visible using jQuery. Is this a good solution? Is there a better one? I hope this is not too open-ended.
yes you can do it as you described on your own (the jQuery way)
maybe a:visited could do the job for you (i don't think so but you never know before trying)
regards :)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
i am building an ecommerce app for my website. This is the first time i am developing an app. As of now i am making use of phone gap to do the work for me. But i am stuck at this particular place, i have made the cart and it is working fine and i have made the checkout form also separately. But i don't know how to pass the product information from the cart to the checkout flow and then update it in the database. As of now i am sending the product parameters through the url but i know it is not safe. and i make use of
location.search.string(1)
to get all product parameter from the cart and then attach these to the form data and send it to the php file and from there i add it to the database. Again in the database i am having another problem. I am maintaining two different table, one for the orde information and the other for products. But here the problem is i don't know how to link the two table i.e when a new order is created an order id is assigned to it, now i don't know how to get that order id and use that order id to update the product information in product table. So can some one help me out with these two problems.
I am using jquery and html to create the app and php and mysql for the server side.
thanks in advance.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
This should be fairly simple. I know how I can do it but I would like to have some ideas on how you can do it since I think that there should be many other ways to do it. When you sign up for an account on a website, you have to go to your email and go to a link in order to activate your account. How do you know that the user went to the link in order to activate their account?
Look at any implementation of this scheme. You would see some unique string that is generated when sending this email to you. It is passed back to the website when you click the link -- that's how it is recognized.
It is generally assumed that nobody else could know this unique string, so the visitor who opens this link is assumed to be the one who provided the email and, consequently, who has access to it.
When the account is created a conformation token is generated, stored in the database and emailed to the user (as part of that link).
When the link is visited, that token is used to find the matching row in the database and use it to make the account as active.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have built a login application (App), and I'm thinking of implementing another feature.
I want to show users specific content depending on which user is logged in. For example, say I'm user "Dream". When I log in, I should only see the files that are related to me, such as my downloads, images, and so on.
How could I implement this?
If you have data in database, users has probably its own ID. Personalized content, as images for example, then has to have user ID mark (it creates logic connection). After user is logged, save its ID into session. After he show page with images, pick up user ID form session, select images with user ID mark from database and display them.
If your data are not in database, principle will be the same.