Community & Support

problem with convertion wordpress theme Carrington Blog to Drupal

Hi folks,
I want to conver wordpress theme Carrington Blog (http://carringtontheme.com/themes/) to Drupal 6.
I have read many post like this http://amadain.net/2007/11/10/convert-a-word-press-theme-drupal.I'm in the begging.
I understood that I must combine header.php, page.php and footer.php into on new file called page.tpl.php. In this new page.tpl.php file:
I have open header.php, page.php and footer.php but files was very stragne there was ony few line of code like this

<?php
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
cfct_header();
?>

all three files had similar code, but all these files there are only this line of I don't know how to proceed
Here you can find and code http://carringtontheme.com/themes/ Carrington Blog
Could help me how to convert this theme.
Thank you very much in advance.

Comments

=-=

Have you tried without that line? Drupal won't know what to do with it therefore it likely isn't required.

Hello VM, When i have open of

Hello VM,

When i have open of three files i have found only this line of code. As i saw from tutorials there must to have more code. maybe this code is save to other place.

the files you need....

The files you need are in the /single and /sidebar and /whoknowswhatelse files - not to mention the functions.php file - it'll take a lot of work to get it done.

~silverwing

________________________________
MisguidedThoughts

Hi Silverwriting, What will

Hi Silverwriting,

What will you advice me? Because i like very much these theme.

ugh

I'm pretty comfortable with basic drupal theming, but that theme is one I wouldn't even try to make into a drupal theme.

You could try using the drupal Zen theme, and creating a zen subsite using the graphics and work the Carrington CSS into it. (That would probably be the easiest.) http://drupal.org/project/zen

~silverwing

________________________________
MisguidedThoughts

would like to work with carrington/drupal

hi kenzol, I'd like to work with carrington & drupal too, is it possible to see an example site of your works with carrington on drupal, will you finish this theme?

Thanks for answering

marale

XSS / Register globals protection

<?php
if (__FILE__ == $_SERVER['SCRIPT_FILENAME']) { die(); }
?>

This line protects the site against cross site scripting exploits via directly accessing the theme file when PHP's register_globals is set to on. Drupal does not support running with register_globals enabled, so you won't need this line.

Suppose your WP theme (example.php) is

<div class="itis">
<?php echo $foo; ?>
</div>

An attacker could then request the file directly and fill $foo via http://example.com/example.php?foo=<script>exploitHere()