Code: Select all
[signature]{NUMBER}[/signature]
Code: Select all
<script type="text/javascript" src="http://your_board_address/sign/{NUMBER}_signature.php"></script>
Code: Select all
Signature: [signature]Number[/signature]
1. Create a new PHP file named eg. 1_signature.php
Then put inside a few texts or links, each on a new line.
Code: Select all
<?php
$quotes = '(first_random_text) <a href="http://phpbbmods.cba.pl">phpbbmods.cba.pl</a>
(second_random_text) <a href="http://dmzx-web.net">dmzx-web.net</a>
(third_random_text) <a href="https://phpbb.com">phpbb.com</a>';
$split_array = explode("\n", $quotes);
$rand_keys = array_rand($split_array, 1);
$order = array("\r\n", "\n", "\r");
$replace = '<br />';
$los = str_replace($order, $replace, $split_array[$rand_keys]);
header("content-type: application/x-javascript");
echo "<!--\n
document.write('$los');\n
//-->";
?>
3. Edit your signature
------------------------------------------------------------------------------------------------------------------
You can create more signatures (more PHP files) for other users. Give them just another number, for example: 2_signature.php 3_signature.php etc.
Then, users should go to UCP and edit your own signature by typing: [signature]2[/signature] or [signature]3[/signature]