katman1971 Posted May 28, 2010 Posted May 28, 2010 I remember coming across a contribution that makes it easy to add new / fresh pages to your site. I did a search for it but I cant find it. Has anyone come across it? Thanks Quote
Guest Posted May 29, 2010 Posted May 29, 2010 Something like this Jim ?? http://addons.oscommerce.com/info/2021 Chris Quote
katman1971 Posted May 29, 2010 Author Posted May 29, 2010 Something like this Jim ?? http://addons.oscommerce.com/info/2021 Chris Thanks Chris. After installing it, I went to Admin, Tools, Extra Info Pages Manager but I get this warning: Parse error: syntax error, unexpected T_STRING in /home/content/19/4966619/html/catalog/admin/extra_info_pages.php on line 367 Any ideas? Thanks. Quote
germ Posted May 29, 2010 Posted May 29, 2010 If you want help with syntax/coding error(s) you need to post the code with the error. One can't fix what one can't see (in this case). :blush: Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
katman1971 Posted May 29, 2010 Author Posted May 29, 2010 If you want help with syntax/coding error(s) you need to post the code with the error. One can't fix what one can't see (in this case). :blush: Sure. Here is line 367 in catalog/admin/extra_info_pages.php: <td class="main"><?phpecho tep_draw_separator('pixel_trans.gif', '24', '15') . ' '?><select name="page_type" size=1> This is a few lines around the code in question, if you need it: <tr><?php echo tep_draw_form('new_page', FILENAME_PAGE_MANAGER, (isset($_GET['page']) ? 'page=' . $_GET['page'] . '&' : '') . 'action=' . $form_action.$bIDif, 'post', 'enctype="multipart/form-data"'); if ($form_action == 'update') echo tep_draw_hidden_field('pages_id', $bID); ?> <td><table border="0" cellspacing="0" cellpadding="2"> <tr> <td class="main"><?php echo TEXT_PAGES_TYPE; ?></td> <td class="main"><?phpecho tep_draw_separator('pixel_trans.gif', '24', '15') . ' '?><select name="page_type" size=1> <option value="1" <?php if($page_type == 1) { echo 'selected="selected"'; } ?>>1 - Index</option> <option value="2" <?php if($page_type == 2) { echo 'selected="selected"'; } ?>>2 - Contact Us</option> <option value="3" <?php if($page_type == 3) { echo 'selected="selected"'; } ?>>3 - Shipping</option> <option value="4" <?php if($page_type == 4) { echo 'selected="selected"'; } ?>>4 - Privacy</option> <option value="5" <?php if($page_type == 5) { echo 'selected="selected"'; } ?>>5 - Links</option> <option value="6" <?php if($page_type == 6) { echo 'selected="selected"'; } ?>>6 - Other </option> <option value="7" <?php if($page_type == 7) { echo 'selected="selected"'; } ?>>7 - Other</option> <option value="8" <?php if($page_type == 8) { echo 'selected="selected"'; } ?>>8 - Other</option> <option value="9" <?php if($page_type == 9) { echo 'selected="selected"'; } ?>>9 - Old Page</option> </select></td> </tr> Quote
germ Posted May 29, 2010 Posted May 29, 2010 Sure. Here is line 367 in catalog/admin/extra_info_pages.php: <td class="main"><?phpecho tep_draw_separator('pixel_trans.gif', '24', '15') . ' '?><select name="page_type" size=1> Put a space between <?php and echo in that code. Quote If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
katman1971 Posted May 29, 2010 Author Posted May 29, 2010 Put a space between <?php and echo in that code. Thanks. Got that sorted. Now, when I go into Extra Info Pages Manager and click on New File I see this error message: Fatal error: Call to undefined function tep_draw_fckeditor() in /home/content/19/4966619/html/catalog/admin/extra_info_pages.php on line 508 This is line 508 of extra_info_pages.php: <td class="main"><?php echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']). ' '.tep_draw_fckeditor('pages_html_text_'.$languages[$i]['id'],'600','400',$pages_html_text[$languages[$i]['id']]); ?> Quote
katman1971 Posted May 29, 2010 Author Posted May 29, 2010 Ah, sorry, I should have paid attention to the bright red text at the top of the "read me" file. I presume it has something to do with my site not having FCK editor! Quote
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.