ULX

Author Topic: Can I Open Steam or Default Browser with MOTD links?  (Read 6508 times)

0 Members and 1 Guest are viewing this topic.

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Can I Open Steam or Default Browser with MOTD links?
« on: November 04, 2009, 02:35:42 PM »
I'm wanting it to open links with the default browser or steam in-game browser when people click on links. Right now <a href> opens the link in the motd, <a href="blah.com" target="_blank"> doesn't work at all, and steam://openurl/blah doesn't work either. Is there a way to do it?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Can I Open Steam or Default Browser with MOTD links?
« Reply #1 on: November 04, 2009, 08:09:52 PM »
I think garry and valve blocked a lot of things like that.
Experiencing God's grace one day at a time.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Can I Open Steam or Default Browser with MOTD links?
« Reply #2 on: November 04, 2009, 08:32:56 PM »
Source's use of IE base code is quite limited... I've no idea how to have the defaullt browser open. I've seen a few posts here asking how to stop it, but don't remember if anyone posted the HTML that was doing it.
As for game browser... why? I suppose you could find some way, using lua perhaps, to have them connect to another game server from a link, but I don't imagine any way to have them open the game browser.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline DiscoBiscuit

  • Full Member
  • ***
  • Posts: 112
  • Karma: 1
    • DiscoBuild
Re: Can I Open Steam or Default Browser with MOTD links?
« Reply #3 on: November 05, 2009, 04:28:25 AM »
I meant the in-game web browser, like to open a website link.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Can I Open Steam or Default Browser with MOTD links?
« Reply #4 on: November 05, 2009, 03:01:19 PM »
Oh, unless something changed (like Garry), placing a link
Code: [Select]
<a href="http://www.blah.com"> View this link </a> should work.
Don't place a target in it, and make sure you're using full URL "http://www.blah.com">

Our SVN now even allows the motd to point to an external link.

Edit by Megiddo: Placed code in a code block so it could be seen. :)
« Last Edit: November 06, 2009, 08:40:15 PM by Megiddo »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Jay

  • Newbie
  • *
  • Posts: 16
  • Karma: -2
  • Awesome
Re: Can I Open Steam or Default Browser with MOTD links?
« Reply #5 on: November 22, 2009, 12:27:36 AM »
yes  in fact the only thing that you cant do is anchor tags. for example  http://motdjay.netne.net/ is the URL i loaded into my MOTD.
But  if you are asking if you can START like a IE or FF and send it to i link VIA motd then No. Theres a code in assmod (**** over servers and stuff with simple Memory mod) that does do this and it cashes games and so on.

Anyway  i know my HTML skills are vvery good so i dont want to hear it lol

Edit by Megiddo: These are family friendly forums, Jay. Please no swearing.
« Last Edit: November 29, 2009, 03:12:27 PM by Megiddo »