Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: xmanhattan on July 03, 2011, 12:22:45

Title: addphp and modules
Post by: xmanhattan on July 03, 2011, 12:22:45
Hello all,

I just tried to use addphp inside a module but I am not seeing any of my output.  The program is small and only for a test to echo one line of content.

I checked it by placing the same code
Code: [Select]
{addphp file=/programtest/test.php} into a regular content page and that works.

Does the bot work inside of modules or am I doing something wrong?

Title: Re: addphp and modules
Post by: CREATIVE Options on July 03, 2011, 12:55:42
a bot can't run inside a module.

Just create a module to run your php file.
Title: Re: addphp and modules
Post by: xmanhattan on July 03, 2011, 14:11:06
That's what I thought.

Thanks Creative
Title: Re: addphp and modules
Post by: ks-net on July 03, 2011, 14:51:35
Quote
Just create a module to run your php file.
correct and preferable solution

alternative:
try this trick->  add the bot in a content-item then use a module(look EDC) to load this content-item in the module!
Title: Re: addphp and modules
Post by: xmanhattan on July 03, 2011, 15:12:27
You read my mind.

Thanks ks-net
Title: Re: addphp and modules
Post by: CREATIVE Options on July 03, 2011, 17:09:17
alternative:
try this trick->  add the bot in a content-item then use a module(look EDC) to load this content-item in the module!

But with this way you will increase the number of requests.