if title available print $title if disabled print somthing else I use advanced forum but it uses default Drupal title method.

I know there is a module called Comment subjects for this purpose but I need to do it in this way. 

I would be grateful if anyone could help me.

 if $title &gt;avalible print $title
 if $title disabled print &lt;h3&gt;&lt;a href="#&lt;?php echo $comment-&gt;cid; ?&gt;"&gt; Re: &lt;?php print $node-&gt;title ?&gt;&lt;/a&gt;&lt;/h3&gt;


OR

 if &gt; node print $node-&gt;title
 elseif comment $print &lt;h3&gt;&lt;a href="#&lt;?php echo $comment-&gt;cid; ?&gt;"&gt; Re: &lt;?php print $node-&gt;title ?&gt;&lt;/a&gt;&lt;/h3&gt;
Found the Solution.

Go to -> (advanced_forum/styles/naked/advanced-forum.naked.post.tpl.php)

  &lt;?php if (!empty($title)): ?&gt;
    &lt;div class="forum-post-title"&gt;
      &lt;?php print $title ?&gt;
    &lt;/div&gt;
  &lt;?php endif; ?&gt;


Then replace it with:

&lt;?php if (!empty($title)): ?&gt;
    &lt;div class="forum-post-title"&gt;
        &lt;?php print $title; ?&gt;              
    &lt;/div&gt;
&lt;?php else: ?&gt;      
    &lt;div class="forum-comment-title"&gt;
        &lt;h4&gt;&lt;a href="#comment-&lt;?php print $comment-&gt;cid; ?&gt;"&gt; Re : &lt;?php print $node-&gt;title ?&gt;&lt;/a&gt;&lt;/h4&gt;
    &lt;/div&gt;
&lt;? endif; ?&gt;