1
deka87
SmartFAQ additional lines
  • 2009/2/2 7:46

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


Hi,

I need to add an additional line in the SmartFAQ request.php form. What files should I edit then?

I've edited:

request.php and added
$newFaqObj->setVar('mynewline'$_POST['mynewline']);


include/request.inc and added

$form->addElement(new XoopsFormTextArea("new line"'mynewline'''1038), true);


sql file adding
`mynewlineTEXT NOT NULL,

in teh smartfaq_faq table.

When I request some term it doesn't show any error message, but then I take a look at my database and see no text assigned to 'mynewline' cell.


Mind anchors

2
zyspec
Re: SmartFAQ additional lines
  • 2009/2/2 15:12

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


You'll also have to update the sfFaq class to include your new attribute - look in ./class/faq.php so that the value gets updated in the database table

Login

Who's Online

221 user(s) are online (122 user(s) are browsing Support Forums)


Members: 0


Guests: 221


more...

Donat-O-Meter

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

Latest GitHub Commits