Elxis CMS Forum

Extensions => Bots and plugins => Topic started by: solutionx on January 01, 2013, 21:06:14

Title: ks-AddPhp Question!
Post by: solutionx on January 01, 2013, 21:06:14
ks-AddPhp calls php file but not the css of the file!!!!!

Title: Re: ks-AddPhp Question!
Post by: babis1 on January 01, 2013, 23:05:43
you must include the path of the css file in the php file, something like that
<?php echo "<link rel=\"stylesheet\" href=\"http://www.mysite.com/folder/file.css\" type=\"text/css\"/>" ; ?>
Title: Re: ks-AddPhp Question!
Post by: solutionx on January 01, 2013, 23:10:50
the css is included in the php file.......

where should i put the line?

in the bot?
Title: Re: ks-AddPhp Question!
Post by: babis1 on January 01, 2013, 23:14:36
of course not in the bot.....i thought you have 2 different files one file.php and one file.css, why dont you separate the css from the php file ? in your case maybe you have something wrong in your php file

be sure that in your content item you have write the right code
{addphp file=/folder_with_php_file/file.php}