print $reply_link; in advf-forum-post.tpl.php not working

How move the buttom reply to advf-forum-post.tpl.php and to put it in a different place

CommentFileSizeAuthor
move_buttom_reply.gif24.16 KBCyberespia

Comments

ltwinner’s picture

This seems to be due to a very minor bug. The $reply_link variable in advf-forum-post.tpl.php has not been created in advanced_forum_preprocess_node. If you add the following code to the advanced_forum_preprocess_node(&$variables) function in the advanced_forum.module file it will work.

$variables['reply_link'] = theme('advanced_forum_reply_link', $variables['node']);
michelle’s picture

Status: Active » Fixed

Well, it's not a bug but seems like a reasonable feature request and minor enough to add to 1.x. Committed. Thanks. :)

Michelle

michelle’s picture

Version: 6.x-1.1 » 6.x-2.x-dev
Status: Fixed » Patch (to be ported)

Actually, should probably check 2.x for consistency. Can't remember if it's done there.

michelle’s picture

Title: How move the buttom reply » Add reply link to node preprocess
Category: support » feature
Status: Patch (to be ported) » Fixed

Committed to 2.x.

Michelle

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

munka111’s picture

works,thanks a lot