osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Faq System Dhtml Goodies

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: ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-31-2007, 02:54 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Faq System Dhtml Goodies

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 02-08-2007, 05:26 PM
Member
 
Join Date: Dec 2006
Posts: 74
Thanks: 11
Thanked 14 Times in 4 Posts
Rep Power: 2
Mushroom will become famous soon enough
Default Re: Faq System Dhtml Goodies

Um, Mike, who are you talking to? I'm worried about ya there.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 08:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax