SMF Support > SMF 2.0.x Support

Allow changing message subject only on the first post

(1/3) > >>

đukela:
Hi

In post.template I'm trying to allow changing subject only on the first post. I.e. when replying or modifying existing message you can change subject only if it is the message that created the topic. However, I'm having trouble of declaring 'first post'...I have tried:

if ($message['id'] == $context['first_message'])

but to no avail.

How would I go to call something like that?

Tnx

edit: it's for SMF version 2.02

đukela:
anybody? a hint would be enough...

Jade Elizabeth:
Try this and let me know if it works. I'm going to be trying it soon. It works on my other options.


--- Code: ---$context['is_first_post']
--- End code ---

đukela:
Jade Elizabeth,

Your're brilliant!  ;)

 It worked like a charm.

Thanks a lot.

Arantor:
Have you applied the same change to quick edit?

Navigation

[0] Message Index

[#] Next page

Go to full version