VERC: PHP URL Tag Formatting Last edited 1 year ago2022-09-29 07:55:18 UTC

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 Valve Editing Resource Collective (VERC).
The archived page is available here.
TWHL only publishes archived articles from defunct websites, or with permission. 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.