PDA

View Full Version : Faq System Dhtml Goodies



michael_s
01-31-2007, 02:54 PM
Thanks for a great script!
After installation i found two errors and here is the simple FIX :)

Error 1:
Fatal error: Call to undefined function: tep_draw_textarea_field_spaw() in /admin/faq_form.php on line 109

Solution:
1. Download attached file )faq_form.php( or Edit the file "faq_form.php" located in the admin catalog by searching for: "tep_draw_textarea_field_spaw" and remove "_spaw"

Result: "tep_draw_textarea_field"

Error 2:
When viewing "faq.php" page i could see the Question and the Answer that i had created in Admin, however the DHTML was not working so all i could see was text, no "bg_answer.gif" etc.

Solution: Copy css tags from the faq.php file and paste into the stylesheet.css file.

For Newbies this is what u copied and paste:

.question{ /* Styling question */
/* Start layout CSS */
color:#FFF;
font-size:0.9em;
background-color:#317082;
width:100%px;
margin-bottom:2px;
margin-top:2px;
padding-left:2px;
background-image:url('images/bg_answer.gif');
background-repeat:no-repeat;
background-position:top right;
height:20px;

/* End layout CSS */

overflow:hidden;
cursor:pointer;
}
.answer{ /* Parent box of slide down content */
/* Start layout CSS */
border:1px solid #317082;
background-color:#E2EBED;
width:100%px;

/* End layout CSS */

visibility:hidden;
height:0px;
overflow:hidden;
position:relative;

}
.answer_content{ /* Content that is slided down */
padding:1px;
font-size:0.9em;
position:relative;
}


INFO: If you want you also can replace your current Body tag from stylesheet.css with :

body{
font-family: Trebuchet MS, Lucida Sans Unicode, Arial, sans-serif; /* Font to use */
margin:0px;

}

Perhaps my css problem is related to the fact that i use STS template system, perhaps not, but if you have this problem, enjoy Solutions above :)

More... (http://www.oscommerce.com/community/contributions,4620)

Mushroom
02-08-2007, 05:26 PM
Um, Mike, who are you talking to? I'm worried about ya there. :)