monikart Posted October 16, 2006 Posted October 16, 2006 Incase anyone else is experiencing troubles with the Dynamenu working with STS 4.2, here is what i did: opened: includes/modules/sts_inc/sts_user_code.php added the following (there are instructions at the top on how to create boxes): $sts->start_capture(); require(DIR_WS_BOXES . 'dm_categories.php'); $sts->stop_capture('dmbox', 'box'); (If you have a previous version of STS the sts_user_code.php will be located under includes/modules and you'll have to add the box with slightly different code) Then I opened: includes/boxes/dm_categories.php ///////////I changed this:////////////////// // Initialize HTML and info_box class if displaying inside a box if ($show_dmcats_as_box) { echo '<tr><td>'; $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); ///////////To This:///////////////// // Initialize HTML and info_box class if displaying inside a box if ($show_dmcats_as_box) { echo '<tr><td>'; $info_box_contents = array(); new infoBoxHeading($info_box_contents, true, false); Basically I wanted to remove the infoBox header. Maybe there is a better way but this worked for me. I am no PHP expert. Lastly I added the box onto my STS Template pages. Open your HTML page(s) and add $dmbox Where you want your menu to appear. I hope this helped some. My menu can be seen at www.mysampleshop.com (it's a demo for my clients so you can test to your hearts content) Quote What would you do if you knew you could not fail?
monikart Posted October 16, 2006 Author Posted October 16, 2006 To be more specific, I had isues with the drop down feature working properly. Incase anyone else is experiencing troubles with the Dynamenu working with STS 4.2, here is what i did: opened: includes/modules/sts_inc/sts_user_code.php added the following (there are instructions at the top on how to create boxes): $sts->start_capture(); require(DIR_WS_BOXES . 'dm_categories.php'); $sts->stop_capture('dmbox', 'box'); (If you have a previous version of STS the sts_user_code.php will be located under includes/modules and you'll have to add the box with slightly different code) Then I opened: includes/boxes/dm_categories.php ///////////I changed this:////////////////// // Initialize HTML and info_box class if displaying inside a box if ($show_dmcats_as_box) { echo '<tr><td>'; $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); new infoBoxHeading($info_box_contents, true, false); ///////////To This:///////////////// // Initialize HTML and info_box class if displaying inside a box if ($show_dmcats_as_box) { echo '<tr><td>'; $info_box_contents = array(); new infoBoxHeading($info_box_contents, true, false); Basically I wanted to remove the infoBox header. Maybe there is a better way but this worked for me. I am no PHP expert. Lastly I added the box onto my STS Template pages. Open your HTML page(s) and add $dmbox Where you want your menu to appear. I hope this helped some. My menu can be seen at www.mysampleshop.com (it's a demo for my clients so you can test to your hearts content) Quote What would you do if you knew you could not fail?
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.