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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| [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
| |||
| |||
| 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
| |||
| |||
| 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 ... |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Printable catalog probs | humanode | osCommerce 2.2 Modification Help | 0 | 12-01-2005 11:24 PM |
| Help hacking in the 'sales report' contrib | groggory | osCMax v1.7 Discussion | 3 | 05-10-2005 07:32 AM |
| EP Probs | Milmod | osCommerce 2.2 Modification Help | 4 | 02-28-2005 04:36 PM |
| Need help with some probs. ASAP! | genu | osCommerce 2.2 Modification Help | 5 | 02-06-2005 08:07 PM |
| Step 2: osCommerce Configuration Probs | SonOSatan | osCommerce 2.2 Installation Help | 1 | 02-10-2003 05:56 AM |