401
goffy
Re: APCal problem with javascript date
  • 2013/1/26 14:44

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi

it seems to be a problem of newer xoops versions.
In index.php there is a check, which calendar should be taken, the settings in APCal.php
var $jscalendar 'jscalendar' ;

will be ignored
The check in index.php is
if( is_fileXOOPS_ROOT_PATH '/include/calendarjs.php' ) ) { 
// older jscalendar in XOOPS 2.0.x core

, but the same file exist in xoops 2.3 and newer, and I think, actual version is not fully compatible in all languages.

I solved the problem with deleting the first if-condition, because the last else means the same.

In my index.php it looks like this
if( $action == 'Edit' ) { 
        
//goffy deleted first if condition in order to use recommended jscalendar
         /* if( is_file( XOOPS_ROOT_PATH . '/include/calendarjs.php' ) ) { 
            // older jscalendar in XOOPS 2.0.x core 
            include XOOPS_ROOT_PATH.'/include/calendarjs.php' ; 
            $cal->jscalendar = 'xoops' ; 
        } else */
if( is_dirXOOPS_ROOT_PATH '/common/jscalendar' ) ) { 
            
// jscalendar in common (recommend) 
            
$jscalurl XOOPS_URL '/common/jscalendar' 
            
$xoopsTpl->assign'xoops_module_header' 
                <link rel="stylesheet" type="text/css" media="all" href="'
.$jscalurl.'/calendar-system.css" />
                 <script type="text/javascript" src="'
.$jscalurl.'/calendar.js"></script>
                 <script type="text/javascript" src="'
.$jscalurl.'/lang/'.$cal->jscalendar_lang_file.'"></script>
                 <script type="text/javascript" src="'
.$jscalurl.'/calendar-setup.js"></script>
             ' 
$xoopsTpl->get_template_vars"xoops_module_header" ) ) ; 
            
$cal->jscalendar 'jscalendar' 
        } elseif( 
is_dirXOOPS_ROOT_PATH '/class/calendar' ) ) { 
            
// jscalendar in XOOPS 2.2 core 
            
$jscalurl XOOPS_URL '/class/calendar' 
            
$xoopsTpl->assign'xoops_module_header' 
                <link rel="stylesheet" type="text/css" media="all" href="'
.$jscalurl.'/CSS/calendar-blue.css" title="system" />
                 <script type="text/javascript" src="'
.$jscalurl.'/calendar.js"></script>
                 <script type="text/javascript" src="'
.$jscalurl.'/lang/'.$cal->jscalendar_lang_file.'"></script>
                 <script type="text/javascript" src="'
.$jscalurl.'/calendar-setup.js"></script>
             ' 
$xoopsTpl->get_template_vars"xoops_module_header" ) ) ; 
            
$cal->jscalendar 'jscalendar' 
        } else { 
            
// older jscalendar in XOOPS 2.0.x core 
            
include XOOPS_ROOT_PATH.'/include/calendarjs.php' 
            
$cal->jscalendar 'xoops' 
        }

The jscalendar in folder common must be available, then it works in german version.



402
goffy
Re: xNewsletter
  • 2013/1/22 10:14

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi irmtfan

this sounds interesting, please keep me uptodate



403
goffy
Re: xNewsletter
  • 2013/1/21 17:30

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi tatane

bmh means: bounced mail handler

if mails get bounced (recipient is no more valid, email is invalid, domain is invalid,...)
you should react. it makes not sense to send newsletters to invalid email-address.

in the included bmh you can quite a subscription, this is recommended for temporary problems, because quited subscription can be reactivated by the subscriber himself.
the second possibility in bmh is to delete a registration with all subscription to this email, if there is a permanent error when sending

more info you can read in help file




404
goffy
Re: xNewsletter
  • 2013/1/21 9:45

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi tatane

Quote:
ok Yes is work

thats fine


in language/english/blocks.php should be:
Quote:
define("_MB_XNEWSLETTER_LETTER_DISPLAY","Number of items");
define("_MB_XNEWSLETTER_LETTER_TITLELENGTH","Length of email and newsletter name (0 means no limit)");
define("_MB_XNEWSLETTER_LETTER_CATTODISPLAY","Select the categories to display");
define("_MB_XNEWSLETTER_LETTER_ALLCAT","All categories");


please delete (if exists):
define("MB_XNEWSLETTER_CATSUBSCR_CATTODISPLAY","xxx");
define("MB_XNEWSLETTER_CATSUBSCR_ALLCAT","xxx");

sorry, but there is something gone wrong with svn-update ;-(



405
goffy
Re: xNewsletter
  • 2013/1/21 7:12

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


hi tatane

step by step (all in admin area)

1) create an account (already done: you have an account php mail named "tatane")
2) create a newsletter category (already done: you have cat "janvier")
3) create a newsletter, select account "tatane" (if you have only one account, it is hidden, if you have meanwhile more than one, you can select), select a newsletter cat (minimum one)

subscriptions should (and will) be normally done by the users, but you can do the same with:
1) make a registration of a person (already done: you have Mrs. fff ggg)
2) goto Categories-Subscribers, click on "Add new Categories-Subscribers", select newsletter cat in dropdown Cat-Id, select subscriber in dropdown Subscribers, submit
3) after submit you get back to list Categories-Subscribers, now you should see "1" in column "Subscribers"

If you have done this, please test again

If you have still problems, please report



406
goffy
Re: TDMCreate 1.38.1 Beta 1 ready for testing & feedback
  • 2012/12/6 7:46

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hi

suggestions for next version:

Table name e.g.: mytable

if you refer to an array you use mytable_arr, thats fine.

if you refer to a handler you use
$obj $mytableHandler->get($_REQUEST["mytable_id"]);


it woult be fine, if object name is also more expressive like
$mytable_obj $mytableHandler->get($_REQUEST["mytable_id"]);

, especially if you copy code blockes from one into another file and if you use there different handlers

the same should be if you work with criterias, please generate
$crit_mytable = new CriteriaCompo();
$crit_mytable->setSort("mytable_id ASC, mytable_type");
$crit_mytable->setOrder("ASC");
$mytable_arr $mytableHandler->getall($crit_mytable);
instead of
$criteria = new CriteriaCompo();
$criteria->setSort("mytable_id ASC, mytable_type");
$criteria->setOrder("ASC");
$mytable_arr $mytableHandler->getall($criteria);



407
goffy
Re: TDMCreate 1.38.1 Beta 1 ready for testing & feedback
  • 2012/11/30 10:05

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hi

you use "XoopsLists::getMimetypesList();" e.g. if I make a file upload field.

In current xoopsversion 2.5.5 there is no function getMimetypesList in xoopslist.php



408
goffy
Re: TDMCreate 1.38.1 Beta 1 ready for testing & feedback
  • 2012/11/29 15:05

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hi

In module creation you have an option for active comments yes/no, but there is no var to handle 'modules_active_comments' in class/tdmcreatemodules.php and no field in table tdmcreate_modules to save the settings.



409
goffy
Re: TDMCreate 1.38.1 Beta 1 ready for testing & feedback
  • 2012/11/28 21:27

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


Hi

it doesn't matter whether you say to
"Create a new block for this table (blocks: random, latest, today)" yes or no
it will be always created
blocks/blocks_{mytablename}.php
templates/blocks/xnewsletter_{mytablename}_block_day.html
...


Keep on working, the module is great
Goffy



410
goffy
add update.php
  • 2012/11/18 9:50

  • goffy

  • Just can't stay away

  • Posts: 535

  • Since: 2010/12/27


you have often the need of an update, if you work on a new module

please add
$modversion['onUpdate'] = 'include/onupdate.php';
in xoops_version.php and create an empty onupdate.php




TopTop
« 1 ... 38 39 40 (41) 42 43 »



Login

Who's Online

162 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits