osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 11-21-2006, 05:08 AM
Member
 
Join Date: Oct 2003
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
icecold
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 11-21-2006, 05:50 AM
Member
 
Join Date: Oct 2003
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
icecold
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 ##############
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 11-21-2006, 03:52 PM
Member
 
Join Date: Oct 2003
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
icecold
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 02-01-2007, 09:59 AM
Member
 
Join Date: Oct 2003
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
icecold
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 ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 03:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax