Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

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.

Posted

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:

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 >

Posted

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>

Posted

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.

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 >

Posted

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']]); ?>

Posted

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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...