View Single Post
  #16  
Old 2004-09-07, 20:32
xesf's Avatar
xesf xesf is offline
Magic Ball Master
 
Join Date: Sep 2002
Location: Dublin
Posts: 7,762
I don't use it regularly, but can be use in both causes but ins't exactly like when we us VocĂȘs.



Ok, the one I put before maybe isn't the best one for Twinsunica.

Articles: (ex: [article=3]Twinsen[/article])
$text = preg_replace("/\[article=(.+?)\](.+?)\[\/article\]/is", "<a href=\"http://www.cs.vu.nl/~bkarel/lba/index.php?id=$1\">$2</a>", $text);

Threads: (ex: [thread=1500]Bla Bla Bla[ /thread])
$text = preg_replace("/\[threads=(.+?)\](.+?)\[\/threads\]/is", "<a href=\"http://forum.magicball.net/showthread.php?t=$1\">$2</a>", $text);
__________________
LBA2Remake v0.4.0 released - open source re-implementation of the LBA 2 original engine for the web.
[Play on Browser]|[Changes]|[Github]


The Sacred Carrot website
Reply With Quote