Here at GT, we've set up Unreal and Unreal Tournament to be able to connect to a gaming server from an html link. For instance, if my server IP was 166.70.171.24 I'd post the link unreal://166.70.171.24/ , but our UBB forum see's that as invalid and doesn't parse the link. Putting {url} tags around it gives me [url]http://unreal://166.70.171.24/[/url] which is useless. Can I specify my own url definitions in the control panel to fix this, or will I need to do a hack?
Specific application URL's
Collapse
X
-
Nathan,
That will probably require a hack... although thanks to PHP regular expressions, it should just be a one-liner!
Here's the code you'll need to add:
$messagetext=eregi_replace("([ \r\n])unreal://([^ ,\r\n]*)","\\1[url]unreal://\\2[/url]",$messagetext);
Easy as that :)
All the best,
James
James Limm -
Nathan!
We meet again :)
So what're you currently favoring? vBulletin or OT?
vBulletin's currently lack custom styles on a per forum basis, so that wouldn't work out well for the GT board. But maybe we'll see it implemented before OT's release in mid-May.
btw, I finally got my OT beta board :)Comment
-
Comment
-
Hi Stallion!
I just found out about this yesterday! I'm pretty excited about it so far since it's php (the GT forums are on a Linux machine) and already has most of the hacks I would want. Plus it's supposed to be more stable. As you well know, the UT board goes down once a day due to it's incredible volume of posts.
The lack of independent styles is a deal-breaker, tough. I wasn't aware it was missing such an important feature. Still sifting through the manual. I'll have to wait for that feature to be added before I decide to try it.
Congrats on the OT Beta board! :)
Hey, were-here, just love your site. Really fast help with Flash there. Small world, isn't it? ;)Comment
-
-
For the time being...
I whipped up a little UBB hack which will take raw unreal:// URL's and make them links. You don't even have to put a [ url ] around it :)
In [b]ubblibrary.pl[/b] around line [i]677[/i], look for:[code]#auto URL---[/code]Directly underneath, put:[code]$ThePost =~ s/(^|\s)(unreal:\/\/\S+)/ <A HREF="$2">$2<\/A> /isg;[/code]In [b]ubblibrary.pl[/b] around line [i]708[/i], look for:[code]my $EditThis = shift;[/code]Directly underneath, put:[code]$EditThis =~ s/(<A HREF="unreal:\/\/)(\S+)(">)(\S+)(<\/A>)/unreal:\/\/$2/isg;[/code]
Tested and working on [url]http://www.planetunreal.com/forums[/url] -- If you decide to use it, could ya give me a mention? :)
YTo everyone else: Yea, I know, this is vB and I'm talking about UBB, but Nathan's trapped in the "get email when someone replies" system, so I know he will at least see it here :)Comment
-
Being discussed already
From [url]http://www.vbulletin.com/forum/showthread.php?threadid=80[/url] :[quote]As for colours, the way that I would recommend you do this is:
Add a new {myforumfirstaltcolor} replacement in the replacements area of the control panel. Then in the custom forum templates, replace #C3C3EB with {myforumfirstaltcolor}, and for all the other colors and fonts that you want.[/quote]
Its a hack, but I'm sure better color/template per forum support is on its way in the next version. Once I get around to fooling around with my license a bit more, I might just code it in myself...Comment
-
James was right on mostly with what he said.
You should add this line into global.php at about 364 or so:
[code]
$messagetext=eregi_replace("([ \r\n])unreal://([^ ,\r\n]*)","\\1[url]unreal://\\2[/url]",$messagetext);
[/code]
Of course, that's not much use if you run UBB :)
Re: styles, you should see that thread that Stallion pointed you to.
John
John Percival
Artificial intelligence usually beats real stupidity ;)Comment
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Comment