Create link to add a desktop shortcut to SMF

Started by GleamPlay.com, April 25, 2016, 11:59:39 AM

Previous topic - Next topic

GleamPlay.com

Is it possible to create a link to add a desktop shortcut to my SMF?
I know this may sound more like a HTML rather than SMF problem, but I don't know where else to ask this question apart from here.
I would really appreciate if you can help. :)
Thank you very much!!!
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

Shambles


GleamPlay.com

Quote from: Shambles on April 25, 2016, 12:04:33 PM
Using Windows?

Right click > new > shortcut
Oh, I mean as a website owner, how do I create a link or button for my users to click it then directly add a shotcut?
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

Kindred

You don't...  and any users who have their security settings on windows which would allow that deserve to be kicked off the internet
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

GleamPlay.com

Quote from: Kindred on April 25, 2016, 12:42:38 PM
You don't...  and any users who have their security settings on windows which would allow that deserve to be kicked off the internet
Oh, but I've heard that its possible for a link to perform "add to favourite" for a website?
Can it works similarly?
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

Kindred

Add to favorites is completely different from adding an icon on the desktop -- and even then, I would argue adding to favorites should only ever be done BY the user ON the user's computer -- not from a website.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Arantor

I thought browsers had disabled the old hijacks for add-to-bookmark anyway.

Kindred

Hopefully they have...   

I know it would fail if it was tried on one of my browsers -- but some people unlock the weirdest things
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

qc

@Gleam.tk A good way to offer this functionality is a link styled as a button which they can drag'n drop to their bookmarks bar.

If you are good with JavaScript, you could even create a dynamic javascript 'bookmarklet' such as used by delicious.com which - when the user has it in its bookmarks and activates it - creates a popup over the current website and offers for it to be shared on your forum (create a new post with the link to the website in it).

Quote from: delicious.comBookmarklet

Our bookmarklet lets you quickly add links from any web page. Make sure your bookmarks toolbar is visible, then drag this button there. Click '+ Add to Delicious' any time you want to add a page.
Playing quizduell? Having quizduell questions? Our german quizduell forum quizcommunity.de is looking for quiz freaks to come and play quizduell with us :)

GleamPlay.com

Quote from: qc on April 25, 2016, 03:15:19 PM
@Gleam.tk A good way to offer this functionality is a link styled as a button which they can drag'n drop to their bookmarks bar.
Yes, this is a really good method.
I tried this method in different browsers but only Google Chrome and Opera works.
Nothing happens for FireFox, Internet Explorer, and Microsoft Edge.

I also tried using a link instead of button.
All browsers work except for Internet Explorer.

How do I make it so that buttons works? Because I would like to use a button as it's prettier.
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

qc

Quote from: Gleam.tk on April 26, 2016, 01:49:05 AM
How do I make it so that buttons works? Because I would like to use a button as it's prettier.

The answer is simple! Use a link (as I said) and apply CSS to make it look like a button:

<style>
.btn {
    background: #E55;
    background-image: linear-gradient(to bottom, #EAA, #E55);
    border-radius: 10px;
    color: #FFF;
    font-size: 20px;
    padding: 10px;
    text-decoration: none
}

.btn:hover {
    background: #EBB;
    background-image: linear-gradient(to bottom, #E66, #EBB);
    text-decoration: none;
}
</style>
<a class="btn" href="#">Link Button</a>


Search on google for 'css button generator' and you will find tons of tools helping you design your favourite link button  :)
Playing quizduell? Having quizduell questions? Our german quizduell forum quizcommunity.de is looking for quiz freaks to come and play quizduell with us :)

GleamPlay.com

#11
Quote from: qc on April 26, 2016, 06:35:59 PM
The answer is simple! Use a link (as I said) and apply CSS to make it look like a button:
Thank you very much!
It's so pretty and it works now.  :)

I also have another question.
If I drag and drop the button, it will shows a shortcut to website.
However, when the shortcut is pinned to taskbar, it is pinned inside Google Chrome (or other browsers).

Is it possible to make it so that when it is pinned, it will be pinned individually (the left)?
Thanks!!


Left: Pinned individually
Right: Pinned into Google Chrome (or other browsers)
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

GleamPlay.com

Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

nend

I use web app meta data with a JSON manifest. It is designed for IOS and Android but works on Ubuntu with Chrome. Not sure who else supports it.

GleamPlay.com

Quote from: nend on April 30, 2016, 11:42:59 AM
I use web app meta data with a JSON manifest. It is designed for IOS and Android but works on Ubuntu with Chrome. Not sure who else supports it.
Umm, can you elaborate more please. I am a newbie in coding and I don't really know what a JSON manifest.
How do I do it?

Thanks a lot!!! :)
Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

GleamPlay.com

Gleam - http://gleamplay.com
The SMF to have fun, meet new friends and play games!

nend


Advertisement: