[Snippet] One signature per user and page

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

[Snippet] One signature per user and page

Post 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

Post by Terr0r »

What does this editing have you a screenshot before you editing and afther you editing

[Snippet] One signature per user and page

Post 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

Post 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?