I've just this week downloaded and set up a new drupal site [1st time i've used the system] on my site: http://www.newtown-hs.powys.sch.uk/drupal/

Drupal version no. is 4.6.3 2005-08-15
SFF from themes page and latest ver tried: 4.6.0 16/4/2005

I installed phptemplate and the sff theme. The menu's appear as "subject ?>" and "content ?> insead of the left and right menu's. Other standard themes and phptemplate themes work perfectly - it's just the SFF theme that's producing these errors.

Best regards
Mark

CommentFileSizeAuthor
#5 block.tpl.php.patch848 bytesMad Maks
sff_error.jpg57.92 KBs1mps

Comments

s1mps’s picture

Title: menu's not displaying » fix - menu's not displaying

there's some code missing - the code breaks to begin the php statements are missing the actual "php" so "<?" should read "<?php"

Repeat 3 times and stir well

robertgarrigos’s picture

I don't think this is an SFF theme problem as it doesn't handle the printing of each part of the blocks but the whole sidebar with a call to the $sidebar-right or $sidebar_left string var.

I don't understand your last post. Are you saying you replaced the opening php tags from <? to <?php? Where about? I can see in your site that you fixed this problem. Please, let us know how you did it and wheher this issue can be closed or not. Otherwise this post won't be of any help to anybody.

s1mps’s picture

Apologies - the fix is to the file block.tpl.php

<div class="block block-<? print $block->module?>" id="block-<?php print $block->module . "-" . $block->delta ?>">
<h2 class="title"><span><? print $block->subject ?></span></h2>
<div class="content"><?  print $block->content ?></div>
</div>

note the leading <? statements missing the php bit

s1mps’s picture

of course the file should read:

<div class="block block-<?php print $block->module?>" id="block-<?php print $block->module . "-" . $block->delta ?>">
<h2 class="title"><span><?php print $block->subject ?></span></h2>
<div class="content"><?php print $block->content ?></div>
</div>

- hope that's clearer

Mad Maks’s picture

StatusFileSize
new848 bytes

fix attached

Mad Maks’s picture

Status: Active » Reviewed & tested by the community

forgot to set the status

Mad Maks’s picture

Version: 4.6.x-1.x-dev » master
Assigned: Unassigned » Mad Maks
Status: Reviewed & tested by the community » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)