Search found 8 matches

by jensr
Mon Nov 24, 2008 9:29 am
Forum: Developers Discussion
Topic: CMS does not evaluate included scripts
Replies: 6
Views: 1962

Re: CMS does not evaluate included scripts

Hi oi_antz, thanks a lot for your great help. I modified the module like this: <?php class TestModule extends CMSModule {     function GetName()     {         return 'TestModule';     }     function GetFriendlyName()     {         return 'testModule';     }     function GetVersion()     {         re...
by jensr
Mon Nov 24, 2008 8:03 am
Forum: Developers Discussion
Topic: CMS does not evaluate included scripts
Replies: 6
Views: 1962

Re: CMS does not evaluate included scripts

Ok, this code echoes following output: called 2 times for action: default #0 /var/www/vhosts/test/httpdocs/lib/classes/class.module.inc.php(1535): TestModule->DoAction('default', 'm5', Array, '17') #1 /var/www/vhosts/test/httpdocs/lib/module.functions.php(130): CMSModule->DoActionBase('default', 'm5...
by jensr
Sat Nov 22, 2008 3:23 pm
Forum: Developers Discussion
Topic: CMS does not evaluate included scripts
Replies: 6
Views: 1962

Re: CMS does not evaluate included scripts

Hi oi_antz, I changed "1" to "abcdefg" but I can't find it in the source code. When I change the include type to from "require_once" to "require" I get a "Cannot redeclare test() Error". So it seems like the function is realley called more that one t...
by jensr
Fri Nov 21, 2008 10:27 am
Forum: Developers Discussion
Topic: CMS does not evaluate included scripts
Replies: 6
Views: 1962

CMS does not evaluate included scripts

Hi, I wrote a modul that just includes another script. This worked fine until version 1.4. With version 1.4 it seems like CMS Made simple does not evaluate the content of the included script anymore: TestModule.module.php: <?php class TestModule extends CMSModule {     function GetName()     {      ...
by jensr
Tue Feb 26, 2008 9:57 pm
Forum: Modules/Add-Ons
Topic: File Download within Module
Replies: 2
Views: 936

Re: File Download within Module

Because I try to include a script and don't want to use another module for this function..
by jensr
Tue Feb 26, 2008 6:30 pm
Forum: Modules/Add-Ons
Topic: File Download within Module
Replies: 2
Views: 936

File Download within Module

Hey, its me again, I have a function within my module, which counts and downloads files: .. //prepare header header("Content-type: ".filetype(PATH.$filename)); header("Content-Disposition: attachment; filename=".$filename); header("Content-Length: ".filesize(PATH.$filen...
by jensr
Tue Feb 26, 2008 3:54 pm
Forum: Modules/Add-Ons
Topic: [SOLVED] Connect to another DB within Module
Replies: 3
Views: 1088

Re: Connect to another DB within Module

Thanks a lot.

That solved my problem!
by jensr
Tue Feb 26, 2008 2:03 pm
Forum: Modules/Add-Ons
Topic: [SOLVED] Connect to another DB within Module
Replies: 3
Views: 1088

[SOLVED] Connect to another DB within Module

Hey, I tried to include a php script as module into cmsmadesimple. Everything works fine, but I get following warnings at the end of the page: Warning: mysql_real_escape_string(): 25 is not a valid MySQL-Link resource in E:\htdocs\cmsmadesimple\lib\adodb_lite\adodbSQL_drivers\mysql\mysql_driver.inc ...

Go to advanced search