@crazycells said in CSS code customization for the link preview plugin:
does OGProxy show the pdf previews as well?
Not yet, but it could with a bit of additional code.
here
@cagatay You’ll need to change the owner of that file as it cannot be read. It’s set currently to root but needs to be the same user as your NodeBB runs under. The images
folder needs to be set the same way.
so i add file as user nodes then i add as root but two times not working correctly.
@cagatay I can’t see the image at all. Here’s the output from curl
HTTP/1.1 404 Not Found
Server: nginx
Date: Wed, 24 Jul 2024 11:42:02 GMT
Content-Type: text/html
Content-Length: 146
Connection: keep-alive
i cant understand what i should to do,
folder images i have, i added your file as user and root but not worked …
@cagatay I’ll have a look
thank you Mark.
@cagatay Should be working now. I found the issue - your nginx.conf
file was set incorrectly. It was set to
location /images {
index index.php index.htm index.html;
root /homes/nodes/ogproxy;
}
Should have been
location /images {
index index.php index.htm index.html;
root /home/nodes/ogproxy;
}
Basically, homes
needed to be home
hahahah it was very easy for you but for me not same
thank you Mark for all.
but as i see there is a problem for image founding,
@cagatay It’s not an issue. The reason as to why OGProxy uses it’s own image is because the provided URL does not present one. This is for a variety of reasons - often to do with security and image scraping. If you want to embed YouTube videos, you should consider using nodebb-plugin-ns-embed
for this purpose.
Mark hi
As you know i m using your theme and codes.
My users want to biz size avatar, could we do it?
@cagatay can you elaborate? Not sure what you’re referring to.
size of avatar we can do it big one?
@cagatay yes, that should be fairly simple to do, but what size? There may also be an impact to adjacent elements so I’d need an idea of the size you are looking for.
twice what it is now
@cagatay that’s probably on for desktop, but might look out of place when viewed on a mobile device.
could you do for mobile also?
@cagatay yes, but I’d reiterate the concerns I’ve raised above in the sense that it may impact the flow of other elements.
Essentially, this is fm going to be a relatively simple CSS change.