Linkedin - How can i get big profile picture - linkedin

I am trying to harvest some profile photo's
which is no problem
after authentication an array is returned and i can use the value of 'pictureUrl' which contains the location of the small profile photo.
What i can't seem to find in the documentation is the url for the larger profile photo (which is shown after clicking on the small photo of a person's page)
Does anybody know how/where to get this bigger picture?
thanks

You can get the original profile picture from here:
https://api.linkedin.com/v1/people/~/picture-urls::(original)?oauth2_access_token=YOUR_ACCESS_TOKEN
Be careful about the special characters into the url (::())
Hope it helps.

function getLinkedInProfilePhoto() {
IN.API.Raw("/people/~/picture-urls::(original)").result(function(result, metadata)
{
$('#image').attr("src", result.values);
});
}

Related

How to display visitor's name by just url?

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.

How do I create a new page for each user?

I need to create a new page for each user on signup so when you go to the site's explore page and click on someone's name or picture, it will take you to their specific page and display their data. (database is firebase firestore and firebase storage, saved link to each person's doc)
This is one of the issues I've been trying to fix for about a month(just fixed the explore page issue and got everyone profile pic to display with that individual user's name right below). I have tried making a new html page with someone's php and js script (didn't work, not familiar with php) and url rewriting.
I haven't been able to find anything else concrete or at least something else to point me in the right direction. Any pointers or tips?
(Vanilla/node.js)
With PHP, on clicking a persons username you can add the username as a parameter to the url e.g yoursite.com?user=personsusername then use GET method to retrieve the username and output data relating to that username from the database

How to get a screenshot and show it to the user after the audit page speed?

I recently working with API page speed google, Now I want to show thumbnail screenshot after the audit. But I don't know how to get a screenshot from the user's site?
When API returns JSON has the lighthouseResult object that includes audits object, you can find thumbnails array in the screenshot-thumbnails.
In this case, I've used:
lighthouseResult.audits['screenshot-thumbnails'].details.items[9].data;
Also, you can get final-screenshot :
lighthouseResult.audits['final-screenshot'].details.data;
Notice: data is base64.

dilemma about information storage in wordpress

hello I am in need of guidance. sorry for the length of the message. This is my site http://lamiajoyee.com/wp/?page_id=147
if you click on the lands (the upper three in the corner), you will see a popup opens up with some pics and data.
these lands can be in two states, reserved and vacant. The difference is in the contents of the popup window. The page admin will set the status of the lands(vacant or reserved) in due time.
my problem is that i want to keep the status stored in a database and then check the status when the page is loaded/clicked. but the storage idea is not accurate. I have used 'contact form 7' and 'CFDB' with it. but there is a huge problem editing the data as you can only delete records using the free versions of CFDB or any other plugin as such.
Please suggest me a solution, I am not sleeping for the last three nights. Just store and check data. That's all
Use Advanced Custom Fields plugin - and add a custom field (true/false) for status.
Then in template file you could check: like this
if (get_field('house-status')) :
//your code that does something
else :
//your other code that does something else
endif;

drupal 6 VIEWS - I'm stumped

I've created a view (Drupal 6) that gets put on the users profile page.
The view is supposed to list all the images that the user has uploaded. However, the view is showing every uploaded image by all users.
(When a user uploads an image, it first gets approved by me, and then posted by me and displayed on the homepage with a credit to them and a link to their user profile -- so they are not the "author" of the post, I always am.)
How can I limit the photos displaying on their user profile to just show the images uploaded by that particular user?
Thank you.
Use arguments handling: add argument - User ID, check "if argument not provided" and select php code: return arg(1); // if views shown as block and you want to show it in user profile, path will like user/UID, so arg(1) return UID.
2Ted: hello Ted! php code will absolutely secured, if you will check it, for example via is_numeric() function. Also users cann't get any images, becuase Views wil use Block display, and you cann't provide for this arguments directly.
2user967969: Additionally about approving: You can create second field, where you will store user profile UID. So for my above text you should use this field for argument handling, instead of user uid.

Resources