Homepage visit button for public server list

U liek?

Poll ended at Wed Jun 04, 2014 15:05

Yes
13
76%
No
2
12%
Maybe
2
12%
 
Total votes : 17

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Homepage visit button for public server list

by Krock » Mon May 05, 2014 15:05

The clients already receive all data to make this possible:

Image
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

Re: Homepage visit button for public server list

by sfan5 » Mon May 05, 2014 15:33

How do you open a web browser from C++? (cross-platform & reliable)
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Homepage visit button for public server list

by Krock » Mon May 05, 2014 15:40

sfan5 wrote:How do you open a web browser from C++? (cross-platform & reliable)

For every system an other code thing? It wouldn't be like there are 1000 diffrent based operating systems around which would be needed to support.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

Re: Homepage visit button for public server list

by PilzAdam » Mon May 05, 2014 15:53

What about security? I heard some people have Javascript enabled by default in their browsers.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Homepage visit button for public server list

by Krock » Mon May 05, 2014 15:56

PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.

Are clickable links in OpenOffice a security risk?
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

Re: Homepage visit button for public server list

by sfan5 » Mon May 05, 2014 15:58

PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.

"No program should be allowed to open a web browser for the user, the user might still be using Internet Explorer 6.0"
Is this a joke?
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

Re: Homepage visit button for public server list

by PilzAdam » Mon May 05, 2014 15:58

Krock wrote:
PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.

Are clickable links in OpenOffice a security risk?

AFAIK the link is displayed and you need to Ctrl + click.

sfan5 wrote:
PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.

"No program should be allowed to open a web browser for the user, the user might still be using Internet Explorer 6.0"
Is this a joke?

See above; the link should be displayed.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

Re: Homepage visit button for public server list

by rubenwardy » Mon May 05, 2014 16:32

PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.


I don't really give a s*** about JavaScript being enabled.

Adding this will make the game more user friendly. And it could do with some more user friendliness.
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: Homepage visit button for public server list

by twoelk » Mon May 05, 2014 18:36

safest and most bloated way may be to add a little html-parser / tiny-browser thingy to Minetest. This could also be used to show help pages or add an easily extendable manual. Might enlarge download size by a large margin though.

Now where was that cross platform browser of old? ... HotJava? .... Javagator? ... Javazilla?

/me runs and hides
 

User avatar
CraigyDavi
Member
 
Posts: 565
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio or CraigyDavi
In-game: davisonio or CraigyDavi

Re: Homepage visit button for public server list

by CraigyDavi » Mon May 05, 2014 18:40

I like this idea, it would be very useful for the game.
 

twoelk
Member
 
Posts: 1092
Joined: Fri Apr 19, 2013 16:19

Re: Homepage visit button for public server list

by twoelk » Mon May 05, 2014 18:43

maybe the luakit project has something that might be used?
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: Homepage visit button for public server list

by Calinou » Mon May 05, 2014 18:47

I agree, but show the URL first and ask for a confirmation. The URL would then open in the default browser.
 

User avatar
kaeza
Member
 
Posts: 2141
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza

Re: Homepage visit button for public server list

by kaeza » Mon May 05, 2014 21:57

sfan5 wrote:How do you open a web browser from C++? (cross-platform & reliable)

https://github.com/aseprite/aseprite/bl ... er.cpp#L69
Of course, sanitize the URL first :P
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal | BTC: 1DFZAa5VtNG7Levux4oP6BuUzr1e83pJK2
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

Re: Homepage visit button for public server list

by LazyJ » Mon May 05, 2014 23:21

I think the idea of showing a Minetest server's homepage is a good one. It would help better promote Minetest as a whole to the newcomers, it would provide more information about a particular server to those who are curious and want to know more before joining, and it would make it easier for players who frequent several servers to keep up with events, issues, and updates of that server (provided the homepage is maintained).

The concerns about java... why not use the "Lynx" web browser? However, from the perspective of user-friendliness, Lynx is a very poor choice.

But then I remembered what the Lynx web browser's interface looks like and the idea of a formspec menu came to mind. Something like kaeza's Wiki mod.

So here's an idea. Add a login menu button that will display a plain-text (*.txt) file from the server. This plain-text file in a formspec would allow room for more information to be written and viewed (scrollbars are nice), detailing the "must know" stuff like the server's rules and code of conduct, locations of interest on the server, links (that the user would have to copy/paste or manually transcribe) to the server's Minetest.net forum threads, web pages, wiki's, etc.

This idea is not as convenient as clicking on a hyper-link and having a web browser pop-up but it would accomplish a good-sized portion of the purpose of going to a Minetest server's website all the while being a compromise between security concerns and user convenience.
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

User avatar
BrandonReese
Member
 
Posts: 836
Joined: Wed Sep 12, 2012 00:44
GitHub: bremaweb
IRC: BrandonReese
In-game: BrandonReese

Re: Homepage visit button for public server list

by BrandonReese » Tue May 06, 2014 03:35

LazyJ wrote:So here's an idea. Add a login menu button that will display a plain-text (*.txt) file from the server. This plain-text file in a formspec would allow room for more information to be written and viewed (scrollbars are nice), detailing the "must know" stuff like the server's rules and code of conduct, locations of interest on the server, links (that the user would have to copy/paste or manually transcribe) to the server's Minetest.net forum threads, web pages, wiki's, etc.

This idea is not as convenient as clicking on a hyper-link and having a web browser pop-up but it would accomplish a good-sized portion of the purpose of going to a Minetest server's website all the while being a compromise between security concerns and user convenience.


https://github.com/bremaweb/news
 

LazyJ
Member
 
Posts: 479
Joined: Wed Sep 12, 2012 12:29

Re: Homepage visit button for public server list

by LazyJ » Tue May 06, 2014 04:18

Thanks, Brandon ;)

I'll check the "News" mod out. Simple + usefull = good
.: Minetest 0.4.14 ~ Linux Mint ~ A moka pot, a French press, a dirty coffee cup, and a spoiled-rotten kitty :.
Visit our Minetest server at: LinuxGaming2.com, port 30000
Screenshots, overview maps, and server info at: http://forum.minetest.net/viewtopic.php?f=10&t=5684
My blog: http://lazyjminetest.blogspot.com/
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

Re: Homepage visit button for public server list

by mauvebic » Tue May 06, 2014 09:30

PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.

I even heard that some people stopped using dot-matrix printers. Insane huh?
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Homepage visit button for public server list

by Krock » Sat May 24, 2014 16:00

Is this idea already R.I.P or is someone going to write the codes for it?
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

cheapie
Member
 
Posts: 304
Joined: Mon May 14, 2012 00:59
GitHub: cheapie
IRC: cheapie
In-game: cheapie

Re: Homepage visit button for public server list

by cheapie » Mon May 26, 2014 02:46

mauvebic wrote:I even heard that some people stopped using dot-matrix printers.

Not me!



LazyJ wrote:So here's an idea. Add a login menu button that will display a plain-text (*.txt) file from the server. This plain-text file in a formspec would allow room for more information to be written and viewed (scrollbars are nice), detailing the "must know" stuff like the server's rules and code of conduct, locations of interest on the server, links (that the user would have to copy/paste or manually transcribe) to the server's Minetest.net forum threads, web pages, wiki's, etc.


I think I like this idea best.
 

celeron55
Member
 
Posts: 430
Joined: Tue Apr 19, 2011 10:10

Re: Homepage visit button for public server list

by celeron55 » Sun Jun 01, 2014 13:30

This is easy to do in a way that works in Windows and Linux.

I'm not sure about the security issues, because, I mean, people click links all the time everywhere and links aren't disallowed on this forum either.

Do modern BSDs support xdg-open?

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
#include "os.h"
#include <stdio.h>

#ifdef WIN32
#include <windows.h>
void os_launch_browser(const char *url)
{
    fprintf(stderr, "INFO: Launching browser to open \"%s\"\n", url);
    ShellExecute(0, "open", url, 0, 0, SW_SHOWDEFAULT);
}
#else
#include <unistd.h>
void os_launch_browser(const char *url)
{
    fprintf(stderr, "INFO: Launching browser to open \"%s\"\n", url);
    char prog[] = "/usr/bin/xdg-open";
    char url2[1000];
    snprintf(url2, 1000, "%s", url);
    char *argv[3];
    argv[0] = prog;
    argv[1] = url2;
    argv[2] = NULL;

    pid_t pid = fork();
    if(pid == 0){
        execvp(prog, argv);
        _exit(1);
    }
}
#endif


(Code taken from the codebase of http://8dromeda.net/ternadim.html)
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

Re: Homepage visit button for public server list

by Jordach » Sun Jun 01, 2014 14:07

PilzAdam wrote:
Krock wrote:
PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.

Are clickable links in OpenOffice a security risk?

AFAIK the link is displayed and you need to Ctrl + click.

sfan5 wrote:
PilzAdam wrote:What about security? I heard some people have Javascript enabled by default in their browsers.

"No program should be allowed to open a web browser for the user, the user might still be using Internet Explorer 6.0"
Is this a joke?

See above; the link should be displayed.

Minecraft already shows the link and prompts on opening said link, so that's a no brainer, it also allows disabling the option to open links as well as opening in default browser and always open links on click (ignores the prompt, can be set to do nothing on link click), which could possibly implemented easily and safely.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

prestidigitator
Member
 
Posts: 632
Joined: Thu Feb 21, 2013 23:54

Re: Homepage visit button for public server list

by prestidigitator » Mon Jul 07, 2014 08:22

Jordach wrote:Minecraft already shows the link and prompts on opening said link, so that's a no brainer, it also allows disabling the option to open links as well as opening in default browser and always open links on click (ignores the prompt, can be set to do nothing on link click), which could possibly implemented easily and safely.

The no-brainer is that Minecraft uses Java. Though it took a while for desktop integration to get to the API, once it did the portability of the platform made it possible to open a browser from an application on any OS and graphical desktop.

But I have a simpler solution than worrying about browsers, and it takes care of more than being able to visit a URL. Fix the clipboard itegration. Then URLs can be displayed and copied to the browser, even if it doesn't quite give the ease of single-click navigation. They could also be copied from the browser to chat, and to formspecs. Also, allow text to be selected in the console (F10). That way text could be copied OUT of chat, too. Not to mention that it would help here with debugging.
 

User avatar
Wuzzy
Member
 
Posts: 2161
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Homepage visit button for public server list

by Wuzzy » Fri Jul 11, 2014 00:40

I am for this suggestion as long as the full URL is made visible. I won’t click the button if I don’t know where it is leading to; it would make the button useless to me.
Even if I can assume my browser is secure (Haha!) some troll server could link you to some pedobears which might get you in trouble in countries where data retention is common and the sole possession of pedobears is a crime.
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: Homepage visit button for public server list

by Krock » Fri Jul 11, 2014 08:28

There's are tooltips which could show up the URL. [revision needed]
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
Pitriss
Member
 
Posts: 253
Joined: Mon Aug 05, 2013 17:09
GitHub: Pitriss
IRC: pitriss
In-game: pitriss

Re: Homepage visit button for public server list

by Pitriss » Mon Jul 21, 2014 14:04

prestidigitator wrote:But I have a simpler solution than worrying about browsers, and it takes care of more than being able to visit a URL. Fix the clipboard itegration. Then URLs can be displayed and copied to the browser, even if it doesn't quite give the ease of single-click navigation. They could also be copied from the browser to chat, and to formspecs. Also, allow text to be selected in the console (F10). That way text could be copied OUT of chat, too. Not to mention that it would help here with debugging.


+1
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 8 guests

cron