Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Banner Manager v1.3 error


lanesharon

Recommended Posts

I have installed this contribution. It works okay on the catalog side, but in ADMIN I can't get into the banner module. I have tried emailing the contributor directly, but the email address is not valid. I am hoping someone here can help. The error in the ADMIN panel is:

Fatal error: Call to undefined function: tep_array_merge() in /home/me/public_html/catalog/admin/banner_manager.php on line 396

 

That area of banner_manager.php looks like this:

 

if ( (is_object($bInfo)) && ($banners['banners_id'] == $bInfo->banners_id) ) {

 

echo ' <tr class="dataTableRowSelected" onfiltered="this.style.cursor='hand'">' . "n";

 

$onclick_link = 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $bInfo->banners_id;

 

} else {

 

echo ' <tr class="dataTableRow" onfiltered="this.className='dataTableRowOver';this.style.cursor='hand'" onfiltered="this.className='dataTableRow'">' . "n";

 

$onclick_link = 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $banners['banners_id'];

 

}

 

?>

 

<td class="dataTableContent" onfiltered="document.location.href='<?php echo tep_href_link(FILENAME_BANNER_STATISTICS, $onclick_link); ?>'"><?php echo '<a href="_java script:popupImageWindow('' . FILENAME_POPUP_IMAGE . '?banner=' . $banners['banners_id'] . '')">' . tep_image(DIR_WS_IMAGES . 'icon_popup.gif', 'View Banner') . '</a> ' . $banners['banners_title']; ?></td>

 

<td class="dataTableContent" align="right" onfiltered="document.location.href='<?php echo tep_href_link(FILENAME_BANNER_STATISTICS, $onclick_link); ?>'"><?php echo $banners['banners_group']; ?></td>

 

<td class="dataTableContent" align="right" onfiltered="document.location.href='<?php echo tep_href_link(FILENAME_BANNER_STATISTICS, $onclick_link); ?>'"><?php echo $banners_shown . ' / ' . $banners_clicked; ?></td>

 

<td class="dataTableContent" align="right">

 

<?php

 

if ($banners['status'] == '1') {

 

echo tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', 'Active', 10, 10) . '  <a href="' . tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $banners['banners_id'] . '&action=setflag&flag=0') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', 'Set Inactive', 10, 10) . '</a>';

 

} else {

 

echo '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $banners['banners_id'] . '&action=setflag&flag=1') . '">' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', 'Set Active', 10, 10) . '</a>  ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', 'Inactive', 10, 10);

 

}

 

?></td>

 

<td class="dataTableContent" align="right"><?php echo '<a href="' . tep_href_link(FILENAME_BANNER_STATISTICS, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $banners['banners_id']) . '">' . tep_image(DIR_WS_ICONS . 'statistics.gif', ICON_STATISTICS) . '</a> '; if ( (is_object($bInfo)) && ($banners['banners_id'] == $bInfo->banners_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_BANNER_MANAGER, 'page=' . $HTTP_GET_VARS['page'] . '&bID=' . $banners['banners_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?> </td>

</tr>

 

Can you see where the problem is and help me? Thanks, Sharon

Link to comment
Share on other sites

Thanks so much Rumble. Works like a charm! You have been a very important part of my getting this store up and running. I notice while searching for answers, that most of my them are found in posts by you. And the answers were given without sarcasm or condescension. You are a great asset to these forums for newbies like me.

Thanks, Sharon

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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