ULX

Author Topic: MOTD Help!  (Read 2307 times)

0 Members and 1 Guest are viewing this topic.

Offline Hizan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
MOTD Help!
« on: January 18, 2008, 12:21:59 PM »
Hello :)
How can i get a web page to be displayed in a motd?

:o Thank you :o

Offline Avien

  • Full Member
  • ***
  • Posts: 168
  • Karma: 4
Re: MOTD Help!
« Reply #1 on: January 18, 2008, 12:26:44 PM »
Not sure if you can or not.  I tried in the ULX before the update, but it never worked correctly.  I had it redirect to a page on my website, but instead of displaying the page it froze the game.  Does ULX support metarefresh?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: MOTD Help!
« Reply #2 on: January 18, 2008, 01:05:51 PM »
All the motd is, is a simple html parser I believe. It uses the built in html parser which is an Internet Explorer control. You can't do anything to fancy with it. It was designed for displaying ONE static html file. Though I've never personally tried it, I don't see why you couldn't have links in it, just set up your links to open on an external page like this:

Code: [Select]
<a href = "http://webpagelink" target=new>Link Text</a>
being sure to include the http:// otherwise it will assume that whatever web page you are trying to access in in the same directory as the file you are running the link from.

Offline Banyon

  • Jr. Member
  • **
  • Posts: 52
  • Karma: 12
    • Kill 'a' Byte
Re: MOTD Help!
« Reply #3 on: January 18, 2008, 01:17:02 PM »
from my personal experience, what Mr. Pres said is true, and more than possible, but with Gmod you have to remember that some people don't have machines powerful enough to alt-tab and run Gmod in background.  Even if they get alt-tabbed out, Gmod either takes forever to restore, or just crashes.