ce7 Posted August 13, 2015 Share Posted August 13, 2015 (edited) Hi, Tried to install the Informaiton Page Unlimited to 2.3.3.4 BS version Most of things works fine, just two parts need help, dont know where to change the code and how. Part 1 after installed, click on the Information Box, click on the Information Pages, when you click on the edit button or the new page button, it show two index.php page Please see the attached image. Part 2 in the front end, the infomation box had enable, but the infobox skin and position is different to the others, which file to modify? Please see the attached image Thanks Edited August 13, 2015 by burt Quote Link to comment Share on other sites More sharing options...
burt Posted August 13, 2015 Share Posted August 13, 2015 (edited) This addon is nothing to do with me, with that in mind I have removed my name from the title and the post (to save confusion) ... Edited August 13, 2015 by burt ce7 1 Quote Link to comment Share on other sites More sharing options...
burt Posted August 13, 2015 Share Posted August 13, 2015 1, there is a fix for that which I believe was posted by @@kymation - scan back through Kymations posts to find it. 2, you will need to update the box module layout to match the other boxes ce7 1 Quote Link to comment Share on other sites More sharing options...
♥kymation Posted August 13, 2015 Share Posted August 13, 2015 Search my posts using the search terms jquery bug. Regards Jim ce7 1 Quote See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
ArtcoInc Posted August 13, 2015 Share Posted August 13, 2015 Search my posts using the search terms jquery bug. Regards Jim http://www.oscommerce.com/forums/topic/344692-contribution-products-specifications/page-42#entry1682713 Malcolm ce7 1 Quote Link to comment Share on other sites More sharing options...
ce7 Posted August 14, 2015 Author Share Posted August 14, 2015 1, there is a fix for that which I believe was posted by @@kymation - scan back through Kymations posts to find it. 2, you will need to update the box module layout to match the other boxes @@burt Hi, burt, thanks. 1. I had tried to put the code <script type="text/javascript"> // fix jQuery base tag bug $.fn.__tabs = $.fn.tabs; $.fn.tabs = function (a, b, c, d, e, f) { var base = location.href.replace(/#.*$/, ''); $('ul>li>a[href^="#"]', this).each(function () { var href = $(this).attr('href'); $(this).attr('href', base + href); }); $(this).__tabs(a, b, c, d, e, f); }; </script> on both includes/template_top.php and admin/includes/template_top.php but it did not fix the double index.php file appear on the information_form.php page. I put the error_reporting (E_ALL);. on the application_top.php and see if I can find some error message to point out where to find the error, but I did not get any error message about it. 2. Will try to update the layout, thanks Quote Link to comment Share on other sites More sharing options...
ce7 Posted August 14, 2015 Author Share Posted August 14, 2015 http://www.oscommerce.com/forums/topic/344692-contribution-products-specifications/page-42#entry1682713 Malcolm @@ArtcoInc thank you for saving my time on guessing which bug refer to! :thumbsup: Quote Link to comment Share on other sites More sharing options...
ce7 Posted August 14, 2015 Author Share Posted August 14, 2015 Search my posts using the search terms jquery bug. Regards Jim @@kymation Hi Jim, As usual, thank you very much for your help! Quote Link to comment Share on other sites More sharing options...
ce7 Posted August 14, 2015 Author Share Posted August 14, 2015 further question related to this information page unlimited admin/informaiton_list.php <?php /* Module: Information Pages Unlimited File date: 2007/02/17 Based on the FAQ script of adgrafics Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands Modified by [email protected] for OSC v2.3.1 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ ?> <tr class="pageHeading"><td><?php echo $title; ?></td></tr> <tr> <td><table border="0" width="100%" cellpadding="2" cellspacing="1" bgcolor="#ffffff"> <tr class="dataTableHeadingRow"> <td align="center" class="dataTableHeadingContent"><?php echo ID_INFORMATION; ?></td> <td align="center" class="dataTableHeadingContent"><?php echo ENTRY_TITLE; ?></td> <td align="center" class="dataTableHeadingContent"><?php echo ENTRY_PARENT_PAGE; ?></td> <td align="center" class="dataTableHeadingContent"><?php echo PUBLIC_INFORMATION; ?></td> <td align="center" class="dataTableHeadingContent"><?php echo ENTRY_SORT_ORDER; ?></td> <td align="center" class="dataTableHeadingContent" colspan="2"><?php echo ACTION_INFORMATION; ?></td> </tr> <?php $no = 1; if (sizeof($data) > 0) { while (list($key, $val) = each($data)) { $no % 2 ? $bgcolor="#DEE4E8" : $bgcolor="#F0F1F1"; ?> <tr bgcolor="<?php echo $bgcolor; ?>"> <td align="center" class="dataTableContent"><?php echo $val['information_id']; ?></td> <td width="40%" class="dataTableContent"><?php echo $val['information_title']; ?></td> <td align="center" class="dataTableContent"><?php echo ((!empty($val['parent_id'])) ? $val['parent_id'] : null); ?></td> <td align="center" class="dataTableContent" nowrap="nowrap"> <?php if ($val['visible'] == 1) { echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . ' '; echo ((!strstr($info_group['locked'], 'visible')) ? '<a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, "gID=$gID&information_action=Visible&information_id=$val[information_id]&visible=0") . '">' : null); echo tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', DEACTIVATION_ID_INFORMATION . " $val[information_id]", 10, 10); echo ((!strstr($info_group['locked'], 'visible')) ? '</a>' : null); } else { echo ((!strstr($info_group['locked'], 'visible')) ? '<a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, "gID=$gID&information_action=Visible&information_id=$val[information_id]&visible=1") . '">' : null); echo tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', ACTIVATION_ID_INFORMATION . " $val[information_id]", 10, 10); echo ((!strstr($info_group['locked'], 'visible')) ? '</a>' : null); echo ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10); } ?></td> <td width="10%" align="center" class="dataTableContent"><?php echo $val['sort_order']; ?></td> <td align="center" class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, "gID=$gID&information_action=Edit&information_id=$val[information_id]", 'NONSSL') . '">' . tep_image(DIR_WS_ICONS . 'edit.gif', EDIT_ID_INFORMATION . " $val[information_id]") . '</a>'; ?></td> <?php if (empty($info_group['locked'])) { echo '<td align="center" class="dataTableContent"><a href="' . tep_href_link(FILENAME_INFORMATION_MANAGER, "gID=$gID&information_action=Delete&information_id=$val[information_id]", 'NONSSL') . '">' . tep_image(DIR_WS_ICONS . 'delete.gif', DELETE_ID_INFORMATION . " $val[information_id]") . '</a></td>'; } ?> </tr> <?php $no++; } } else { ?> <tr bgcolor="#DEE4E8"> <td colspan="7" class="dataTableContent"><?php echo ALERT_INFORMATION; ?></td> </tr> <?php } ?> </table></td> </tr> <tr> <td align="right"> <?php if (empty($info_group['locked'])) { echo tep_draw_button(IMAGE_NEW_PAGE, 'document', tep_href_link(FILENAME_INFORMATION_MANAGER, 'gID=' . $gID . '&information_action=Added')); } echo tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_INFORMATION_MANAGER, 'gID=' . $gID)); ?></td> </tr> how can I make the title, eg, Info test 1 can have link show on information_list.php to the front end? So after I create the page, i can just click on this title and bring me to that page? by the way, the error showing double index.php content, the file is as below: <?php /* Module: Information Pages Unlimited File date: 2007/02/17 Based on the FAQ script of adgrafics Adjusted by Joeri Stegeman (joeri210 at yahoo.com), The Netherlands Modified by [email protected] for OSC v2.3.1 osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Released under the GNU General Public License */ ?> <tr> <td class="pageHeading"><?php echo $title; ?></td> </tr> <tr> <td> <table border="0" cellpadding="0" cellspacing="2" width="100%"> <?php if (!strstr($info_group['locked'], 'visible')) { ?> <tr> <td class="main"><?php echo ENTRY_STATUS; ?></td> <td class="main"><?php echo tep_draw_radio_field('visible', '1', true, $edit['visible']) . ' ' . STATUS_ACTIVE . ' ' . tep_draw_radio_field('visible', '0', false, $edit['visible']) . ' ' . STATUS_INACTIVE; ?></td> </tr> <tr> <td colspan="2" height="10"> </td> </tr> <?php } if (!strstr($info_group['locked'], 'parent_id')) { ?> <tr> <td class="main"><?php echo ENTRY_PARENT_PAGE; ?></td> <td class="main"> <?php if ((sizeof($data) > 0)) { $options = '<option value="0">-</option>'; reset($data); while (list($key, $val) = each($data)) { $selected = ($val['information_id'] == $edit['parent_id']) ? 'selected="selected"' : ''; $options .= '<option value="' . $val['information_id'] . '" ' . $selected . '>' . $val['information_title'] . '</option>'; } echo '<select name="parent_id">' . $options . '</select>'; } else { echo '<span class="messageStackError">' . WARNING_PARENT_PAGE .'</span>'; } ?> </td> </tr> <tr> <td colspan="2" height="10"> </td> </tr> <?php } if (!strstr($info_group['locked'], 'sort_order')) { ?> <tr> <td class="main"><?php echo ENTRY_SORT_ORDER; ?></td> <td><?php if ($edit['sort_order']) { $no = $edit['sort_order']; } echo tep_draw_input_field('sort_order', "$no", 'size=3 maxlength=4'); ?> </td> </tr> <tr> <td colspan="2" height="10"> </td> </tr> <?php } if (!strstr($info_group['locked'], 'information_description')) { ?> <!-- tabs --> <tr> <td> <div id="tab_descrip" class="ui-tabs"> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <ul> <?php //$languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { ?> <li><a href="#<?php echo $languages[$i]['name'];?>"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']); ?><?php echo " " . $languages[$i]['name'];?></a></li> <?php } ?> </ul> <tr> <td> <?php //$languages = tep_get_languages(); for ($i=0, $n=sizeof($languages); $i<$n; $i++) { $languages_id=$languages[$i]['id']; ?> <div id="<?php echo $languages[$i]['name'];?>" class="ui-tabs" > <table border="0" cellspacing="0" cellpadding="2" align="left"> <tr> <td> <table border="0" cellspacing="0" cellpadding="2"> <tr> <?php if (!strstr($info_group['locked'], 'information_title')) { ?> <td class="main"><?php echo ENTRY_TITLE ?></td> <td align="left" class="main"><?php echo tep_draw_input_field('information_title[' . $languages[$i]['id'] . ']', (isset($information_title[$languages[$i]['id']]) ? stripslashes($edit[information_title]) : tep_get_information_entry($information_id, $languages[$i]['id'], 'information_title')), 'maxlength=255 size=75'); ?></td> <?php } ?> </tr> <tr> <td class="main"><?php echo ENTRY_TEXT ; ?></td> <td class="ui-widget-content"> <?php echo tep_draw_textarea_field('information_description[' . $languages[$i]['id'] . ']', '', '140', '80', (isset($information_description[$languages[$i]['id']]) ?stripslashes($edit[information_description]) : tep_get_information_entry($information_id, $languages[$i]['id'], 'information_description')), 'class="ckeditor"'); ?> </td> </tr> </table> </td> </tr> </table> </div> <?php } ?> </td> </tr> </table> </div> </td> </tr> <!-- tabs --> <?php } ?> <tr> <td colspan="2" align="left"><br /><?php // Decide when to show the buttons (Determine or 'locked' is active) if ((empty($info_group['locked'])) || ($_GET['information_action'] == 'Edit')) { echo tep_draw_button(IMAGE_SAVE, 'disk', null, 'primary'); } else { echo tep_draw_button(IMAGE_INSERT, 'plus', null, 'primary'); } echo tep_draw_button(IMAGE_CANCEL, 'close', tep_href_link(FILENAME_INFORMATION_MANAGER, 'gID=' . $gID)); ?> </td> </tr> <script> <!-- bof sub tabs product description --> $(function() { $( "#tab_descrip" ).tabs( ) ; }); </script> <!-- eof tabs ui --> </table> </td> </tr> </form> Quote Link to comment Share on other sites More sharing options...
ce7 Posted August 16, 2015 Author Share Posted August 16, 2015 Hi, Tried to install the Informaiton Page Unlimited to 2.3.3.4 BS version Most of things works fine, just two parts need help, dont know where to change the code and how. Part 1 after installed, click on the Information Box, click on the Information Pages, when you click on the edit button or the new page button, it show two index.php page Please see the attached image. error-01.png Still has double indext content after put the jquery bug on template_top.php, anyone can help to make it works normal? I have the 2.3.3.3 version also installed same addon but it works ok, just with bs version. thanks! Quote Link to comment Share on other sites More sharing options...
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.