This is a discussion on Faq System Dhtml Goodies within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Thanks for a great script! After installation i found two errors and here is the simple FIX :) Error 1: ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| 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...
__________________ Michael Sasek osCMax Developer
|
|
#2
| |||
| |||
| Um, Mike, who are you talking to? I'm worried about ya there. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dhtml Menu does not display. | Walter | osCMax v2 Features Discussion | 8 | 02-21-2007 09:09 AM |
| Using Dhtml but still see the New Products for in main cat. | countingsheep | osCMax v2 Customization/Mods | 1 | 09-25-2006 09:27 AM |
| dhtml menu | kjh | osCMax v1.7 General Mods Discussion | 2 | 08-01-2005 05:26 AM |
| dHTML menu editing | Klusmakelaar | osCMax v1.7 Discussion | 1 | 06-30-2005 05:22 PM |
| Dhtml Menu Problem | kolamon | osCMax v1.7 General Mods Discussion | 3 | 01-10-2005 03:24 PM |