Hi,
I was hacking the newsletter subscribers_054 mod to make it work in OSCMax1.7, the problem is I am not able to see the admin box, even if it has
all admin access levels lines uncommented, and the standard ones commented out, I check other boxes such as tools and the code is almost the same, except for the names, of course, and there is no apparent reason, for the box not to show up. So if I am missing something I really appreciate your input, I already make it work partially, as I can subscribe and unsubscribe from the newsletters, but can't show up this box ...
This is the the script>>>(Note comments are in French, as this is the native language of the author)
<newsletter>
<tr>
<td>
...
$heading = array();
$contents = array();
$heading[] = array('text' => BOX_HEADING_NEWSLETTER,
'link' => tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('selected_box')) . 'selected_box=newsletter'));
if ($selected_box == 'newsletter') {
$contents[] = array('text' =>
// ########## Contribution Admin Acces Level ##########
// NOTICE INSTALLATION : Si vous avez la contribution Admin Acces Level suivez les consigne ci-dessous
// Veuillez supprimer les commentaires de la ligne 34 à 38 (tep_admin_files_boxes) et mettre le reste en commentaires ligne 28 à 32
// Mettre en commentaire (//) si vous n'avez pas la contribution Admin Access Level
// '<a>' . BOX_CUSTOMERS_NEWSLETTER_MANAGER . '</a><br>' .
// '<a>' . BOX_NEWSLETTER_EXTRA_DEFAULT . '</a><br>' .
// '<a>' . BOX_NEWSLETTER_EXTRA_INFOS . '</a><br>' .
// '<a>' . BOX_NEWSLETTER_UPDATE . '</a><br>' .
// '<a>' . BOX_NEWSLETTER_SUBSCRIBERS_VIEW . '</a>'
// A Supprimer les commentaires (//) pour la contribution Admin Acces Level
tep_admin_files_boxes(FILENAME_NEWSLETTERS, BOX_CUSTOMERS_NEWSLETTER_MANAGER) .
tep_admin_files_boxes(FILENAME_NEWSLETTERS_EXTRA_D EFAULT, BOX_NEWSLETTER_EXTRA_DEFAULT).
tep_admin_files_boxes(FILENAME_NEWSLETTERS_EXTRA_I NFOS, BOX_NEWSLETTER_EXTRA_INFOS) .
tep_admin_files_boxes(FILENAME_NEWSLETTERS_UPDATE, BOX_NEWSLETTER_UPDATE) .
tep_admin_files_boxes(FILENAME_NEWSLETTERS_SUBSCRI BERS_VIEW, BOX_NEWSLETTER_SUBSCRIBERS_VIEW)
);
// ########## END - Contribution Admin Acces Level ##########
}
$box = new box;
echo $box->menuBox($heading, $contents);
?>
</td>
</tr>
<newsletter_eof>
=============================
As you can see i removed all comments to Admin with Access Levels and added comments to the other lines ...
=============================
Thank you,
R.F.
OSLLC





LinkBack URL
About LinkBacks






Bookmarks