osCmax v2.5 User Manual
Results 1 to 4 of 4

Hacking newsletter subscribers_054 probs with admin box

This is a discussion on Hacking newsletter subscribers_054 probs with admin box within the osCMax v1.7 General Mods Discussion forums, part of the osCmax v1.7 Forums category; Hi, I was hacking the newsletter subscribers_054 mod to make it work in OSCMax1.7, the problem is I am not ...

      
  1. #1
    osCMax Testing Team
    Join Date
    Oct 2003
    Posts
    52
    Rep Power
    0


    Default Hacking newsletter subscribers_054 probs with admin box

    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

  2. #2
    osCMax Testing Team
    Join Date
    Oct 2003
    Posts
    52
    Rep Power
    0


    Default RE: Hacking newsletter subscribers_054 probs with admin box

    [quote="icecold"]Hi,

    BTW it has been enabled in column_left.php, why is not showing up, on the left column?
    // ################# Contribution Newsletter v050 ##############
    // NOTE INSTALLATION : Remove // from the two lines below if using ADMIN ACCESS LEVELS contrib else leave like this.
    if (tep_admin_check_boxes('newsletters.php') == true) {
    require(DIR_WS_BOXES . 'newsletters.php');
    }
    // ################# END - Contribution Newsletter v050 ##############

  3. #3
    osCMax Testing Team
    Join Date
    Oct 2003
    Posts
    52
    Rep Power
    0


    Default RE: Hacking newsletter subscribers_054 probs with admin box

    ok, I partially solve that, now I have an admin box, but not all the the options are shown ... I mean, from this code >>>

    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)
    );

    only shows up the first link in admin boxes, the others are not showing up ... and I am also getting permission problems, I added all the above links to index.php, in admin, and the links are correctly displayed, but only the top one works ... the others give a permission error, I checked all permissions on the related files, they seemed ok, 0644 or (rw,r,r), so I don't understand where this error comes from ...

    any hints?

  4. #4
    osCMax Testing Team
    Join Date
    Oct 2003
    Posts
    52
    Rep Power
    0


    Default Re: Hacking newsletter subscribers_054 probs with admin box

    I fix the contrib, unfortunately is not working properly, some of the features are disabled, I have no errors, and can subscribe new users, but other features are not working properly ...

Similar Threads

  1. Printable catalog probs
    By humanode in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 12-01-2005, 10:24 PM
  2. Help hacking in the 'sales report' contrib
    By groggory in forum osCmax v1.7 Discussion
    Replies: 3
    Last Post: 05-10-2005, 07:32 AM
  3. EP Probs
    By Milmod in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 02-28-2005, 03:36 PM
  4. Need help with some probs. ASAP!
    By genu in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 02-06-2005, 07:07 PM
  5. Step 2: osCommerce Configuration Probs
    By SonOSatan in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 02-10-2003, 04:56 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •