1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Put comments part of node

Discussion in 'Drupal' started by s_ruben, Apr 20, 2011.

  1. #1
    Hi,

    Can you help me please to put comments part of node on my custom theme. I mean comment form submit, load comment with its replies.

    Thank you.
     
    s_ruben, Apr 20, 2011 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    Nobody know how to create comments part of theme in Drupal 7? Which is the right way to create comments part of custom theme? Please help me to do it and finish my custom theme.

    Thanks.
     
    s_ruben, Apr 20, 2011 IP
  3. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Really sorry but I can't understand what you're asking :( Try explaining it a bit more clearly, maybe?
    Are you just trying to theme your comments, or are comments not showing up on your node pages at all?
     
    kiramanic, Apr 21, 2011 IP
  4. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #4
    kiramanic,

    Thank you for you reply.

    So, I've created a theme with custom design and now I want to know how can I create the comment part of the theme. Here is an example page, which is a node page of my custom theme. In the bottom you can see the comment form. Now I want to know the code (or method) which will add the comment after submitting the form and then show that after approving. I think now everything is clear.

    Thank you again.
     
    s_ruben, Apr 21, 2011 IP
  5. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hey, sorry I'm not too up on Drupal 7 myself and had to look it up, but it seems like
    print render($content['comments']);
    Code (markup):
    in your node.tpl.php file should output the comments.
     
    kiramanic, Apr 23, 2011 IP
  6. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #6
    Thank you very much again kiramanic,

    But it put its comments and form, how can I put mine - custom designed comments and form?
     
    s_ruben, Apr 24, 2011 IP
  7. kiramanic

    kiramanic Peon

    Messages:
    205
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #7
    See now I'm confused again. If you need custom styling on your comments that's CSS, not theme structure. I've a feeling that I'm totally misunderstanding you so I'll back out and let someone else try and help! :D

    Edit: If you're actually trying to change the comment form in some way you probably want hook_form_alter()
     
    kiramanic, Apr 25, 2011 IP
    s_ruben likes this.
  8. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #8
    kiramanic,

    Thank you very much again and again.

    Now I can't find how to remove "Subject" and "Homepage" fields from comment form.
     
    s_ruben, Apr 25, 2011 IP