Page 1 of 1

Signature and Post count

Posted: 26 Jul 2011, 20:56
by Stoker
Signature and Post count
Written by Stoker

With a few template edits we can control if a users signature is displayed in profile and viewtopic.
Signature is only displayed if the user has enough posts.


This part is displayed in the topics
Open styles/prosilver/viewtopic.body.html
Find:

Code: Select all

<!-- IF postrow.SIGNATURE -->
Replace with:

Code: Select all

<!-- IF postrow.SIGNATURE and postrow.POSTER_POSTS > 25 -->

This part is displayed in the profiles
Open styles/prosilver/memberlist_view.html
Find:

Code: Select all

<!-- IF SIGNATURE -->
Replace with:

Code: Select all

<!-- IF SIGNATURE and POSTS > 25 -->

This part is displayed in the private messages
Open styles/prosilver/ucp_pm_viewmessage.html
Find:

Code: Select all

<!-- IF SIGNATURE -->
Replace with:

Code: Select all

<!-- IF SIGNATURE and AUTHOR_POSTS > 25 -->
Save files, upload them and refresh the template

With this code the user needs more than 25 posts to display his signature.