Customizing SMF > SMF Coding Discussion

Displaying text only when creating a new topic but not in its replies

(1/2) > >>

Vahid‎‎ ‎Damanafshan:
I'm using the following code to add a bit of text above the Subject box. Everything works fine but I want to display the text only when creating a new topic and not when replying to the topic. In short, I want the text not to appear in the replies to that topic.

--- Code: ---echo '
<div class="rules">
', $txt['some_rules_here'] ,'
</div>';
--- End code ---
By the way, I've added this code above  " // If an error occurred, explain what happened" in post.template.php.

Mick.:
Not sure where you wants this.... can u take a snapshot and add an arrow to it?

Vahid‎‎ ‎Damanafshan:
here is a screenshot. Please note that the code works fine and I have no problem with the code. I just want the text not to appear in replies to the topic.

Mick.:
Have you seen this?    http://custom.simplemachines.org/mods/index.php?mod=1484

Vahid‎‎ ‎Damanafshan:
Not really. its an interesing Mod. But as i mentioned in the previous post, I dont know how to hide the text in the replies to the topic. just that.
Can you help me solve this issue?

Navigation

[0] Message Index

[#] Next page

Go to full version