View Full Version : Specific application URL's
Nathan
Fri 21st Apr '00, 2:23am
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 http://unreal://166.70.171.24/ 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?
James
Fri 21st Apr '00, 2:29am
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]*)","\\1unreal://\\2",$messagetext);
Easy as that :)
All the best,
James
Stallion
Fri 21st Apr '00, 2:52am
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 :)
werehere
Fri 21st Apr '00, 3:00am
Well seeing as this forum is actually running, and running well, and OT is still having problems with many things including cookies (it will not even show me new topics on IE4, IE5), my choice is vbulletin. Of course I cannot even consider the hosted app anyways.
Nathan
Fri 21st Apr '00, 3:07am
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? ;)
werehere
Fri 21st Apr '00, 3:25am
hehe
Stallion
Fri 21st Apr '00, 4:14am
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 ubblibrary.pl around line 677, look for:#auto URL---Directly underneath, put:$ThePost =~ s/(^|\s)(unreal:\/\/\S+)/ <A HREF="$2">$2<\/A> /isg;In ubblibrary.pl around line 708, look for:my $EditThis = shift;Directly underneath, put:$EditThis =~ s/(<A HREF="unreal:\/\/)(\S+)(">)(\S+)(<\/A>)/unreal:\/\/$2/isg;
Tested and working on http://www.planetunreal.com/forums -- 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 :)
Nathan
Fri 21st Apr '00, 4:24am
I saw it, thanks!
Hoping a vB person replies about the individual forum styles thing...
Stallion
Fri 21st Apr '00, 4:36am
From http://www.vbulletin.com/forum/showthread.php?threadid=80 :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.
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...
John
Fri 21st Apr '00, 5:00am
James was right on mostly with what he said.
You should add this line into global.php at about 364 or so:
$messagetext=eregi_replace("([ \r\n])unreal://([^ ,\r\n]*)","\\1unreal://\\2",$messagetext);
Of course, that's not much use if you run UBB :)
Re: styles, you should see that thread that Stallion pointed you to.
John
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.