This forum is for assistance with theme development.

How to render comments

I have a template file node-contenttype.tpl.php. There I´m trying to print the comments of that node via

print render($content['comments']);

but only the comment form is rendered. So im looking into the comment-wrapper.tpl.php and the comment.tpl.php. When im writing something in the comment-wrapper.tpl.php, for example a little bit of dummy text, it is printed. But when im doing this in the comment.tpl.php, nothing happens.

Inside the comment-wrapper.tpl.php is the call

Video aggregation

I am a newbie and I'm working on building a niche video sharing site where users can upload their own videos. However, to get started I would like to put some videos on my site so it doesn't look so empty once it is launched. I don't think people will want to use it if its empty. Do I use an aggregator for that. Where and how can I get videos to put on my site to start? Also should I use a video sharing theme or just kind make it myself? I would appreciate any information. Thank you :D

Marinelli Banner, Relocation

Good Night Friends,

I'm trying to relocate the banner of the marinelli theme so it fits between the 2 sidebars, can someone help me doing that? i already resised the banner and images but i cannot make it appear between the 2 sidebars.

Thank you for any help you can give me.

Regards,
Eduardo Navarro

Feeds module: cannnot import comments into a forum

Hello,

im tasked with data migration from a custom site into Drupal 7, and have hit a stumbling block; I cannot import comments into a forum. I can import forum topics fine, its the comments im struggling with. I simply dont know how to associate comments to a topic. Anyone who has done this before who can offer advice would be fantastic, or even some directions to any sites or vide tutorials would help

Thanks.

Get field data for theming node.tpl in D7

Hi

after upgrade core from D6, i upgrade my custom theme..then i need to print in it some field data from node object...
after print R i get some informations but missing ones too...this is what i need :
in D6 :

  print $node->content['field_NOM-CHAMP']['field']['#title'] 

how on D7 ? because seem i can only access to this :

 [field_reference_pbts] => Array
        (
            [und] => Array
                (
                    [0] => Array
                        (
                            [value] => JPF1
                            [format] =>
                            [safe_value] => JPF1

For taxonomy :
in D6 : i need the term name and his vocabulary name parent...
ok for the terme name :

print $node->taxonomy_vocabulary_8['und'][0]['taxonomy_term']->name;

but, i guess the vocabulary name is in [vocabulary_machine_name] => vocabulary_7 , but i want the real name ..
[taxonomy_vocabulary_7] => Array
(
[und] => Array
(
[0] => Array
(
[tid] => 76
[taxonomy_term] => stdClass Object
(
[tid] => 76
[vid] => 7

render function not working

I need to theme mu user profile form , so i have write hook_theme function in template.php

/* Implements of hook_theme */
function lifeecho_theme($existing, $type, $theme, $path) {
  $hooks = array();

  global $user;

  $hooks['user_profile_form'] = array (
     'render element' => 'form',
     'path' => drupal_get_path('theme','bartik'),
     'template' => 'user-profile',
  );

  return $hooks;
}

also call render function in 'user-profile.tpl.php' .

Pages

Subscribe with RSS Subscribe to RSS - Theme development