Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

How do I use PHP code in a Block? 
 
fastboxgaming
Sr. Member
 
Avatar
Total Posts:  101
Joined:  2008-10-11
 

I have put the following code into a block on magento:

<?php
// START of "Frontpage Slideshow" settings
    
$nameOfSlideshowToDisplay "myslideshow";                     // Enter the name of your slideshow. Slideshows are in folders inside /fpss/slideshows/.
    
$URLofyoursite "http://www.mysite.com";                     // Enter your site's URL.
    
$AbsoluteServerPathofyoursite "/home/user/public_html";    // Enter the root path of your site on the server.
    
    // do not edit below this line
    
include_once($AbsoluteServerPathofyoursite."/fpss/mod_fpslideshow.php");
// END of "Frontpage Slideshow" settings
?>

The slideshow requires that I put the folder with required files in www/mywebsite.com/fpss.
I have the files located there, and inserted the code above into a static block, followed by the word test. The word test shows up, but the slideshow itself does not.

Any suggestions would be greatly appreciated.

Joel

 
Magento Community Magento Community
Magento Community
Magento Community
 
Fibo
Sr. Member
 
Avatar
Total Posts:  107
Joined:  2008-06-25
Marseille, France
 

This post somehow duplicates the one at
http://www.magentocommerce.com/boards/viewthread/20198/

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top