[Snippet] One signature per user and page
Posted: 02 Dec 2011, 09:52
Putting it here before I lose the code again...
Open:
Find:
Add after:
Find:
Add after:
Open:
viewtopic.php
Find:
Code: Select all
// Output the posts
Code: Select all
$signat[$poster_id] = 0;
Code: Select all
$user_cache[$poster_id]['sig'] = bbcode_nl2br($user_cache[$poster_id]['sig']);
$user_cache[$poster_id]['sig'] = smiley_text($user_cache[$poster_id]['sig']);
$user_cache[$poster_id]['sig_parsed'] = true;
}
Code: Select all
$signat[$poster_id]++;
if($signat[$poster_id] >= 2)
{
$user_cache[$poster_id]['sig'] = '';
}