ULX

Author Topic: About adresses in adverts  (Read 2508 times)

0 Members and 1 Guest are viewing this topic.

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
About adresses in adverts
« on: September 20, 2007, 11:05:21 PM »
I try to do an advert that show an internet adress:
Code: [Select]
ulx addCsayAdvert "Join the Silent's Server Steam group now!\nhttp://steamcommunity.com/groups/silents_server" 255 0 0 180 10 a
But the // is parsed as a comment, so the ad is not showing at all. Any idea?

I have one, you should do something like that in the ulx.cc_addCsayAdvert or in the ulx.cc_addAdvert :
Code: [Select]
message = message:gsub( "<http>", "http://" )So we can do
Code: [Select]
ulx addCsayAdvert "Join the Silent's Server Steam group now!\n<http>steamcommunity.com/groups/silents_server" 255 0 0 10 5 aAnd it works ;)

If you have another solution to display // please tell me :p

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: About adresses in adverts
« Reply #1 on: September 21, 2007, 03:38:15 AM »
Try using escape slash \.
Basically, make http:// = http:\/\/
I think that's it.
You could also leave off http://. It's what we do when advertising our forums on our dev server.
« Last Edit: September 21, 2007, 03:40:01 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Chironex

  • Full Member
  • ***
  • Posts: 197
  • Karma: 11
  • Formerly known as Kyzer
Re: About adresses in adverts
« Reply #2 on: September 21, 2007, 05:06:45 AM »
I've obviously tried the escape character but it display it too (i should have say that)

About removing http://..yeah, not a bad idea lol :)