Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Zarko wrote:
I did a couple hack to noprobs to make a 5.x version. Here are the changes
if you want to post them.node.tpl.php:
change line 1 from<div class="node <?php print ($sticky) ? " sticky" : ""; ?> ">
to
<div class="node<?php print ($sticky) ? " sticky" : ""; ?><?php print ($links) ? " clear-box" : ""; ?>">
delete line 16
* I would like to gett rid of line 12 as well, but I don't have pictures
enabled on my site so I cannot test it out. It may require another div to
do it properly. *page.tpl.php
change line 12 from<div id="header">
to
<div id="header clear-box">
delete line 29
change lines 32-45 from
<?php if (is_array($secondary_links)) : ?> <ul id="secondary"> <?php foreach ($secondary_links as $link): ?> <li> <?php print $link?> </li> <?php endforeach; ?> </ul> <?php endif; ?> <?php if (is_array($primary_links)) : ?> <ul id="primary"> <?php foreach ($primary_links as $link): ?> <li> <?php print $link?> </li> <?php endforeach; ?> </ul> <?php endif; ?>
to
<?php print theme('links', $secondary_links, array('id' => 'secondary')); ?> <?php print theme('links', $primary_links, array('id' => 'primary')); ?>
Comments
Comment #1
naught101 CreditAttribution: naught101 commentedZarko: thanks for hacking this, I'm gonna need it.
could you please clarify: when you say "delete line xx", you often say it after the edit. If the line numbers change, then it's hard to know which line you mean.
could you clarify which line by copy-pasting it (and giving an approximate line number)?
cheers
naught
Comment #2
naught101 CreditAttribution: naught101 commentedsoooo... from looking at http://drupal.org/node/64292
I figure:
Line 12 & 16 in node.tpl.php are these lines:
<br class='clear' />
I don't understand why you'd delete line 29 from page.tpl.php, as it's the endit line from:
ALSO: I tried changing line 12 in page.tpl.php, but it didn't work, so I changed it back and now it does.
Comment #3
naught101 CreditAttribution: naught101 commentedyou also need to add this:
<?php print $scripts ?>
somewhere between the ... tags, otherwise modules with javascript (like tinyMCE) won't appear.
cheers
ned
Comment #4
Eric3 CreditAttribution: Eric3 commented