Page 1 of 1

[Snippet] One signature per user and page

Posted: 02 Dec 2011, 09:52
by doktornotor
Putting it here before I lose the code again... :D

Open: viewtopic.php

Find:

Code: Select all

// Output the posts
Add after:

Code: Select all

$signat[$poster_id] = 0;
Find:

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;
	}
Add after:

Code: Select all

	$signat[$poster_id]++;
	if($signat[$poster_id] >= 2)
	{
	$user_cache[$poster_id]['sig'] = '';
	}

[Snippet] One signature per user and page

Posted: 02 Dec 2011, 15:02
by Terr0r
What does this editing have you a screenshot before you editing and afther you editing

[Snippet] One signature per user and page

Posted: 02 Dec 2011, 15:31
by doktornotor
Shockingly, it does exactly what the subject says - show users' signature once per page in topic view. :lol:

[Snippet] One signature per user and page

Posted: 25 Jul 2012, 03:49
by analyst_underscore
Can this be made so that the last post the user has on the page gets the sig rather than the first?