1
hnic_spanks
Newbb/CBB: need different forms for 'new topic' and 'reply'

When editing forumform.inc.php (newbb/include) I noticed this file is for both the 'new topic' form and the 'reply' form. I want to have different options in these, more specifically I don't want the "Subject:" option in the 'reply' form (because it should automatically be "Re: ".

Any help?

2
ghia
Re: Newbb/CBB: need different forms for 'new topic' and 'reply'
  • 2009/8/4 8:55

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Find:
$subject_form = new XoopsFormText(_MD_SUBJECTC'subject'60100$subject);
$subject_form->setExtra("tabindex='1'");
$forum_form->addElement($subject_form,true);

Try with:
if ( !empty($isreply) )
{
  
$forum_form->addElement(new XoopsFormHidden('subject'$subject));
}
else
{
  
$subject_form = new XoopsFormText(_MD_SUBJECTC'subject'60100$subject);
  
$subject_form->setExtra("tabindex='1'");
  
$forum_form->addElement($subject_form,true);
}

3
hnic_spanks
Re: Newbb/CBB: need different forms for 'new topic' and 'reply'

bedankt maat!

Login

Who's Online

325 user(s) are online (226 user(s) are browsing Support Forums)


Members: 0


Guests: 325


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits