Firefox PHP

‌Hide subject field in reply

Posted by Toni 
‌Hide subject field in reply
December 30, 2012 02:00PM
How I can hide the subject field in reply? I wanna hide it only in reply.



Edited 1 time(s). Last edit at 12/30/2012 06:50PM by Toni.
I think I fixed this...
January 13, 2013 07:32PM
In the posting.tpl file, I changed this code:

Language: PHP
{LANG->Subject}:<br /> <input type="text" name="subject" id="subject" size="50" value="{POSTING->subject}" /><br /> <br />   {HOOK "tpl_editor_after_subject"}

to this:

Language: PHP
{LANG->Subject}:<br /> {IF MODE "reply"} <input type="text" name="subject" id="subject" size="50" /><br /> <br /> {ELSE} <input type="text" name="subject" id="subject" size="50" value="{POSTING->subject}" /><br /> <br /> {/IF}
Re: ‌Hide subject field in reply
January 14, 2013 10:27PM
Thanks, but this doesn't worked for me.
Re: ‌Hide subject field in reply
January 19, 2013 06:39AM
So, there is no one?
Re: ‌Hide subject field in reply
January 21, 2013 02:03PM
Make sure the HOOK line from the first bit of code stays present. I pasted that incorrectly. Sorry about that. It does work on this end.
Re: ‌Hide subject field in reply
January 24, 2013 02:49PM
You doesn't understand what I mean.

Your way still show subject field.

I mean hide subject field hide it.
Re: ‌Hide subject field in reply
January 24, 2013 04:18PM
Oh come on. Its basic html. Just use the part from stargazer77's example and turn the reply part into an empty hidden field.

Edit: yes, I deleted your other post. Crossposting is NOT wanted.


Thomas Seifert



Edited 1 time(s). Last edit at 01/24/2013 04:18PM by Thomas Seifert.
Re: ‌Hide subject field in reply
January 24, 2013 06:29PM
doesn't working as stargazer77

but with that working.

Language: PHP
{IF MODE "reply"} <input type="hidden" name="subject" id="subject" size="50" value="{POSTING->subject}" />   {ELSE}   {LANG->Subject}:<br /> <input type="text" name="subject" id="subject" size="50" value="{POSTING->subject}" /><br /> <br /> {/IF}   {HOOK "tpl_editor_after_subject"}



Edited 1 time(s). Last edit at 01/24/2013 06:33PM by Toni.
Sorry, only registered users may post in this forum.

Click here to login