How to replace website logo on a Domino Server - lotus-notes

I would like to know how easy it is to replace an image on a Domino Server.
The link of the website is in this format : https://www.name.com/index.nsf
And I want to change the logo, is it possible to change with a FTP software, or is it difficult to do this. Because the person I request to do this told me that it will take 2 or 3 hours to do this. As I am not used to work with this king of server I prefer to request you advises. Usually, when I use FTP server, I go to the images directory and I replace the image really quickly.
Thanks for your help.

Logo? Are you referring to the favicon image that shows up in the browser address bar? If so, then you can place a 16x16px image in the \domino\html folder if you want the image to be the same for all databases on the server. If you only want it to be changed for that specific database, then you'll need to make a change to the HTML Head content section to refer to the image you want to use. You can either post it in the database or in the folder I referenced before.
<link rel="shortcut icon" href="newicon.ico">
If you're only wanting to update the one database, then it will take more than a few minutes. Hope that helps.

Related

"chrome://favicon/myurl" doesn't load the on the webpage but loads in new tab

I am developing a personal productive app. The bookmark manager is part of it.
I use a lot of two-step verification websites so it is difficult to bypass that to get the webpage favicon.
However, when I use "chrome://favicon/https://stackoverflow.com/" I can easily get the favicon of any website.
But the issue is that it works when I open in a new tab but they don't work on my webpage however, in the
For example.
<img src="chrome://favicon/https://stackoverflow.com/" />
Any suggestions on how to fix it. Thanks a mill in advance.
You can Get favicon by https://stackoverflow.com/favicon.ico Of any website. Just add /favicon.ico at the domain. There is no need of using chrome://favicon
Often you can get icon of site by requesting <website>/favicon.ico. For example, it works perfectly for https://stackoverflow.com/favicon.ico. (and it is 32x32, not 16x16 using chrome://favicon).

Custom 404 for media files in Orchard

Is there a a way to create a custom 404 page for files in the Media directory of Orchard? I would like to show a specific error messages when somebody tries to download a file from a specific path (/Media/Default/MySpecificFolder/) that no longer exists. Right now if a file does not exist it just renders a blank page.
Orchard uses StaticFileHandler for images(anything in the media folder), css and js files among others.
there was a chap who tried to create 'SEO' routes for assets. have a look in the modules gallery.
All said, it seems a bad idea to put assets behind too much logic in the days where more people are using CDN or buckets to provide images to their websites and alleviate the load on the server.
You could go oldskool and override the handler. i used to do it all the time, back in webforms. here is some code that seems like the real thing:StaticFileHandler
Perhaps leave the handler alone for the main web.config but override the ones in the folders you might like to serve your special 404 page.
I do not know why would you need something like that, but go for it.
thinking about it, you could create a shape that would abstract the functionality you are after. Im thinking on the sides of documents mostly, cos i still struggle with the images...
Your shape will tokenise the document in route which will pick up an id or url and if the file does not exists redirect to a 404, but if it exists just send the file.
Does it make sense?

htaccess keep files from being downloaded

I want to protect my files on the server from being downloaded but they need to be able to be accessed from/by the server, I was wondering if that would be possible with htaccess. I mean files like "font files", "images" etc.
I have tried the above but without luck. If you know a solution with htaccess or any other way, please reply!
One way I can see this working, is if you are using a server-side language, like PHP, you could do something like this in your HTML pages:
<!-- Your font(s) -->
<link href='http://yoursite.com/font-file?request-token=a3DdsS2n89SDF4sdf345' rel='stylesheet' type='text/css'>
where you create some unique token in the URL, that you automatically generate, with PHP, every time you serve an HTML page, and then save that token on the server. Then use another PHP script to serve the font file, that authenticates the token in the URL via $_GET['request-token'], etc. If you only allow a token to be used once, before refusing any further requests for it, you can embed the font in your HTML and any user attempts at downloading it afterwards will fail.
This isn't a completely bulletproof method, but will deter the majority of attempts to steal your font assets, etc.

When using Video.js is there any way I can avoid the webpage content alert?

I'm trying to use Video.js to display a small video on our team sharepoint page (Sharepoint 2007). It works great, but the 'Do you want to view only the webpage content that was delivered securely?' alert always displays when you navigate to the page. The security settings on the computers cannot be changed, but is there any way I can avoid this alert being displayed?
Thanks in advance for any help.
Thanks,
Simon
This is happening because the page being accessed is served over HTTPS, but some content loaded remotely comes from HTTP. If you're using the Video.js CDN-hosted files, you'd want to change the include tags to look like this:
<link href="//vjs.zencdn.net/4.3/video-js.css" rel="stylesheet">
<script src="//vjs.zencdn.net/4.3/video.js"></script>
These are called protocol relative urls, meaning it will use whatever protocol the page is to load the files.
Hope that helps!

Serving an image to a Spotify app?

I know everything non-dynamic is suppose to be localized but the images we use are part of our dynamic content and need to be loaded from our server.
How would we go about doing this? Since you can't reference external links?
Thanks!
Same as normal HTML:
<img src="http://blah.com/img.jpg">
Make sure blah.com is in the "RequiredPermissions" section of your manifest.json and you're set.

Resources