Firefox PHP

‌Hide subject field in reply

Posted by Toni 
‌Hide subject field in reply
December 30, 2012 08: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/31/2012 12:50AM by Toni.
I think I fixed this...
January 14, 2013 01:32AM
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 15, 2013 04:27AM
Thanks, but this doesn't worked for me.
Re: ‌Hide subject field in reply
January 19, 2013 12:39PM
So, there is no one?
Re: ‌Hide subject field in reply
January 21, 2013 08: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 08: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 10: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
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting




Edited 1 time(s). Last edit at 01/24/2013 10:18PM by Thomas Seifert.
Re: ‌Hide subject field in reply
January 25, 2013 12:29AM
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/25/2013 12:33AM by Toni.
Sorry, only registered users may post in this forum.

Click here to login