Problems Installing Smarty Engine/ Themes

smikey - May 10, 2006 - 08:12

howdy all;

i'm trying to install the bluemarine_smarty theme. I've tried installing the smarty on my site at the root level as a test, and was able to get the php script that they supply in the quick install to work.

however, upon moving the smarty directory into the engines directory in drupal , and modifying the index.php doc to reflect the move, i'm unable to view the smarty based theme after uploading to the "themes" directory.

Here's what index.php look like. any suggestions would be greatly appreciated!!!! Thank you...

<?php
// put full path to Smarty.class.php
require('/mnt/websites/911media/docs/cms/themes/engines/smarty/Smarty.class.php');
$smarty = new Smarty();

$smarty->template_dir = '/www.911media.org/cms/themes/engines/smarty/templates';
$smarty->compile_dir = '/www.911media.org/cms/themes/engines/smarty/templates_c';
$smarty->cache_dir = '/www.911media.org/cms/themes/engines/smarty/cache';
$smarty->config_dir = '/www.911media.org/cms/themes/engines/smarty/configs';

$smarty->assign('name', 'Ned');
$smarty->display('index.tpl');
?>

What did you do?

sun - May 10, 2006 - 08:54

Installation of Smarty theme engine is very simple...
Download this package, extract it to your themes/engines directory and copy the smarty theme of your choice to your themes/ directory.
Go to settings > themes and you should see the installed smarty theme(s).

No need to edit any php file.

Note: Make sure your templates_c directory is writable by the webserver process. It is located in themes/engines/smarty/templates_c/.

Daniel F. Kudwien
unleashed mind

WERD!!!

smikey - May 10, 2006 - 19:14

Hey!

What took me hours to figure out only to do it wrong, with your help took me 5 minutes! Thank you!!!

hehe; and the future of independent media in seattle thanks you... peace

~m

Agreed

creativecomponent - July 3, 2006 - 02:11

There's instructions that say to keep the engine file in a temp location, then to copy the LIB directory out. That must be the lacking part, because I had the same problem.

designer - developer - podcaster
www.creativecomponent.com
www.creativexpert.com

 
 

Drupal is a registered trademark of Dries Buytaert.