Embed External Picture to Wall post

saqib saqib Posted in Component Development 6 years ago

I want to embed external picture which is already saved somewhere else and has a image link. i want to embed that external picture on my wall post. Just like youtube video embed but for picture not for video.

for example:

<img src= some-picture-saved-on-thirdparty-server.png />

I know there is a component for link preview but that component is just show screenshot of the website through link. But I don't want that I just want to embed external picture on my wall post. so people dont upload pictures on my server instead they share links to their photos which are already saved somewhere else. but they would be able to show those photos through link in the wall post.

Replies
us Rishi B Replied 6 years ago

why was this removed? This has nothing to do with the link preview component or any other premium component so I really don't see why you'd take it down. anyone curious about how this works can email me: [emailremoved]

us Rishi B Replied 6 years ago

I managed to do this pretty easily. here's the code I'm using to replace links to images with the actual images. you can just add this function to components/OssnWall/plugins/default/wall/templates/wall/user/item.php and call it on $params['text'] before displaying it. it will replace direct links to images (checks if the extension is png, jpg, gif, or bmp, otherwise it does nothing) with the actual img src tag so the image actually displays in the post rather than just the link.

Removed

Indonesian Arsalan Shah Replied 6 years ago

I am sorry there is no such a way to do this,

Premium Version

Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.

$199 (Life Time)
Learn More

Other Questions