VERC: PHP URL Tag Formatting Last edited 5 years ago2019-03-17 02:27:29 UTC

You are viewing an older revision of this wiki page. The current revision may be more detailed and up-to-date. Click here to see the current revision of this page.
A note from the editor
This information is entirely useless and is only retained for archival purposes. Chatbear and VERC are both offline so no comments can be posted to these websites. This formatting is not used on TWHL.
The url tags on this site and on the Chatbear message board system (which most of my tags are based on) use this format:
url=http://www.url.com/[url description]url
This is parsed from a block of text ($string) using the following PHP code:
$string = preg_replace("/url=(.*?)\[/", "<a href=\"\\1\">", $string);
$string = ereg_replace("\]url", "</a>", $string);
So, you can do something like this ...
url=http://collective.valve-erc.com/[VERC Collective]url
...and you'll get this ...

VERC Collective
This article was originally published on the Valve Editing Resource Collective (VERC).
TWHL only archives articles from defunct websites. For more information on TWHL's archiving efforts, please visit the TWHL Archiving Project page.

Comments

You must log in to post a comment. You can login or register a new account.