Index: lm_paypal_subscriptions.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lm_paypal/lm_paypal_subscriptions.install,v
retrieving revision 1.26
diff -c -r1.26 lm_paypal_subscriptions.install
*** lm_paypal_subscriptions.install	14 Jun 2007 00:39:58 -0000	1.26
--- lm_paypal_subscriptions.install	5 Jul 2007 10:18:20 -0000
***************
*** 56,71 ****
  
        send_user_onsub             int(1) unsigned not null default '0',
        send_user_onsub_subject     varchar(80) default '',
!       send_user_onsub_body        text(2000),
        nearend_days                int unsigned not null default '0',
        send_user_onnearend         int(1) unsigned not null default '0',
        send_user_onnearend_subject varchar(80) default '',
!       send_user_onnearend_body    text(2000),
        send_user_onend             int(1) unsigned not null default '0',
        send_user_onend_subject     varchar(80) default '',
!       send_user_onend_body        text(2000),
  
!       terms                       text(2000),
  
        primary key(subid)
      )  /*!40100 DEFAULT CHARACTER SET utf8 */ ;";
--- 56,71 ----
  
        send_user_onsub             int(1) unsigned not null default '0',
        send_user_onsub_subject     varchar(80) default '',
!       send_user_onsub_body        text,
        nearend_days                int unsigned not null default '0',
        send_user_onnearend         int(1) unsigned not null default '0',
        send_user_onnearend_subject varchar(80) default '',
!       send_user_onnearend_body    text,
        send_user_onend             int(1) unsigned not null default '0',
        send_user_onend_subject     varchar(80) default '',
!       send_user_onend_body        text,
  
!       terms                       text,
  
        primary key(subid)
      )  /*!40100 DEFAULT CHARACTER SET utf8 */ ;";
***************
*** 171,174 ****
--- 171,185 ----
    $items[] = update_sql("ALTER TABLE {lm_paypal_subscriptions} ADD terms text(2000) AFTER send_user_onend_body ");
    return $items;
  }
+ 
+ // Sigh... some users report that text(2000) doesn't work so switch to just text
+ function lm_paypal_subscriptions_update_9() {
+   $items = array();
+   $items[] = update_sql("ALTER TABLE {lm_paypal_subscriptions} CHANGE send_user_onsub_body send_user_onsub_body text");
+   $items[] = update_sql("ALTER TABLE {lm_paypal_subscriptions} CHANGE send_user_onnearend_body send_user_onnearend_body text");
+   $items[] = update_sql("ALTER TABLE {lm_paypal_subscriptions} CHANGE send_user_onend_body send_user_onend_body text");
+   $items[] = update_sql("ALTER TABLE {lm_paypal_subscriptions} CHANGE terms terms text");
+   return $items;
+ }
+ 
  ?>
Index: lm_paypal_subscriptions.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/lm_paypal/lm_paypal_subscriptions.module,v
retrieving revision 1.31
diff -c -r1.31 lm_paypal_subscriptions.module
*** lm_paypal_subscriptions.module	14 Jun 2007 00:43:12 -0000	1.31
--- lm_paypal_subscriptions.module	5 Jul 2007 10:18:24 -0000
***************
*** 1524,1529 ****
--- 1524,1534 ----
  function lm_paypal_subscriptions() {
    _lm_paypal_subscriptions_ini();
    global $_lm_paypal_business;
+   global $_lm_paypal_debug;
+   global $_lm_paypal_drupal_major;
+ 
+   // Drupal 5 - t() has changed and to use a link/literal in it use '!'
+   $c = ($_lm_paypal_drupal_major > 4 ? '!' : '%');
  
    $roles = lm_paypal_subscribable_roles(TRUE);
    $groups = lm_paypal_subscribable_groups();
