Male C. Pig a.k.a. Svinopolist (piggymouse) wrote,
Male C. Pig a.k.a. Svinopolist
piggymouse

[personal,software] WackoWiki LJ formatters

Кодируем помаленьку.


<?php
// ljuser.php
// WackoWiki formatter for <lj user="xxx" /> rendering.
// Installation: Save to %wacko%/formatters/highlight
// Usage example: %%(ljuser) apazhe %%

$ljuser = trim($text);

echo '<b><a href="http://www.livejournal.com/userinfo.bml?user=';
echo $ljuser;
echo '&amp;mode=full"><img src="http://stat.livejournal.com/img/userinfo.gif" alt="';
echo $ljuser;
echo '" border="0" align="absmiddle" /></a><a href="http://www.livejournal.com/users/';
echo $ljuser;
echo '/">';
echo $ljuser;
echo '</a></b></span>';

?>

<?php
// ljcomm.php
// WackoWiki formatter for <lj comm="xxx" /> rendering.
// Installation: Save to %wacko%/formatters/highlight
// Usage example: %%(ljcomm) ru_nakedparts %%

$ljuser = trim($text);

echo '<b><a href="http://www.livejournal.com/userinfo.bml?user=';
echo $ljuser;
echo '&amp;mode=full"><img src="http://stat.livejournal.com/img/community.gif" alt="';
echo $ljuser;
echo '" border="0" align="absmiddle" /></a><a href="http://www.livejournal.com/community/';
echo $ljuser;
echo '/">';
echo $ljuser;
echo '</a></b></span>';

?>

P.S. Буй вам, а не target="_blank"!

Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 2 comments