This forum is for assistance with theme development.

adding a 'discuss below' link to #comment anchor in node.tpl.php

I just want to share this code that seems to work in node.tpl.php

<?php if ($node->comment > 0): ?>
   	<a href="<?php print $node_url; ?>#comment">
  	<?php print t('discuss below'); ?>
  	</a>
<?php endif; ?> 

I'm not sure what the value for $node->comment is actually pulled from, but I'm guessing

http://api.drupal.org/api/4.6/function/node_comment_mode

theme for a fan site

Greetings,

Currently im using 4.7 version and im thinking what theme is suitable for a fan site ? Im thinking the same format as this site http://naruto-kun.com ? Is there a closest template i can used either paid version or free ?

Thanks,
eli

Hyperlinks work in IE but not in Firefox / Safari

(grrr.. second time posting this as I did something and the post went away)

Anyway, I have a list of hyperlinks I made as block elements on the bottom right side of this page:
http://keithloh.com/drupal/

They work as hyperlinks in IE but not in Firefox / Safari. If you view the source you can see they are just plain old hyperlinks. I don't see what the problem is. Can anyone see my mistake?

Follow up question, can I continue using block elements in this manner?

nice menu font bcomes bold for visited link(menu items) in IE

Browser - IE.

The visited menu item/link becomes bold. (seems to be ok on firefox)

I am using

nice_menu.css:

ul.nice-menu li{
....

font-weight:bolder;
}

Thanks for the help

theme og Organic Group

Hallo,

I would like theme this (the og theme):

 <!-- begin content --><div class="node">
    <div class="content">


!!    <div id="og-mission" class="mission"><p>my group mission text</p></div>  !!


<table>
 <thead><tr><th>Title</th><th>Author</th><th>Replies</th><th>last reply</th> </tr></thead>
<tbody>
 <tr class="even"><td><a href="/bc/?q=node/5">my title</a></td><td><a href="/bc/?q=user/1" title="user profile">admin</a></td><td>1</td><td>16/09/2006 - 13:15</td> </tr>
</tbody>
</table>
<a href="/bc/?q=og/feed/2" class="xml-icon"><img src="/bc/misc/xml.png" alt="Newsfeed" title="Newsfeed" width="36" height="14" /></a>  </div>
</div><!-- end content -->

to this:

!!!

my group mission text

!!!

Menu problem - sidebar menu items not getting wrappedin<ul>

Hello,

I've got a site here: http://www.wals.lib.wi.us/drupal/
(I'm using a modified version of the multiflex theme)

If you look at the menus on the right, the lists are pushed to the left,
so the bullets are chopped in half. (looks ok in IE) viewing the source,
I noticed that menus I create don't get wrapped in <ul></ul>. Rather,
they're stranded <li>'s.

Using the standard Bluemarine template, it works fine. So, that leads me
to believe it's a problem with my template. From what I can tell, that
would be defined in block.tpl.php, right? If it is, does this look ok?

  //  Content region needs different wrapper divs
if ($block->region =='content') { 
echo $layoutcode -container line-box">
echo $layoutcode -container-1col">

print $block->subject

print ($block->content)
 }
// Test to see if the main menu is being output.  If so,
// use a special class to format it properly

elseif ($block->module == 'user' and $block->delta == '1') { 
 } else 

	  // normal sidebar
      { 
      $colours = array("grey","grey","grey","grey");
      $colour=$colours[$block_id % 4];
      // a bit of a fudge, but it will do for now.
      

print $colour 07">
print "$block->subject";

Pages

Subscribe with RSS Subscribe to RSS - Theme development