MarkFL |
04-15-2016 01:43 PM |
Quote:
Originally Posted by doogie88
(Post 2569019)
Could I do second post?
|
Yes, change the code to:
PHP Code:
if ($post['postcount'] == 2) { $add = '<br /><br /><div style="color:green">This is added text</div>'; $post['signature'] .= $add; }
For the first post, instead of using what I originally posted, just use:
PHP Code:
if ($post['postcount'] == 1) { $add = '<br /><br /><div style="color:green">This is added text</div>'; $post['signature'] .= $add; }
edit: You likely do not want the two line breaks if the author of the post to which the text is added does not have a signature being shown, so change the code to:
PHP Code:
if ($post['postcount'] == X) { $add = '<div style="color:green">This is added text</div>';
if ($post['signature']) { $add = '<br /><br />' . $add; }
$post['signature'] .= $add; }
"X" is the post number in the thread you want to affect.
|