Add "Post Comment" buttons to CMS Articles & Blogs for guests
The default templates for the CMS and Blog don't display any indication to the guest that comments can be posted, especially if no comments exist for that article or blog post.
Two simple template edits adds a "Post Comment" button for guests to the CMS and Blog pages. It simply links to the register page. The button will not show up for logged in users; the reply box will appear as normal for them. For CMS Articles and Blogs that do not allow comments, it will not show up. Here is an example of it working on a CMS Article: http://cellphoneforums.net/content/cell-phone-news/4069-ten-cell-phone-trends-features-next-ten-years.html And a blog post: http://nikonites.com/blogs/jdeg/73-amsterdam-transportation.html Here's how to do it: In template vbcms_comments_page find: HTML Code:
<input class="button" type="submit" name="preview" id="qr_preview" title="(Alt + X)" accesskey="x" value="{vb:rawphrase go_advanced}" tabindex="1" /> </div> </div> </div> </form> </div> </div> HTML Code:
<vb:else /> <a href="/register.php" class="newcontent_textcontrol" id="newreplylink_top"><span>+</span> Post Comment</a> In blog_show_entry find: HTML Code:
<a href="{vb:raw $vboptions.vbblog_url}{vb:if "$vboptions['vbblog_url']", '/', ''}blog_post.php?{vb:raw session.sessionurl}do=comment&b={vb:raw bloginfo.blogid}">{vb:rawphrase post_a_comment}</a> </vb:if><vb:comment>if condition="$show['quickcomment']"</vb:comment> HTML Code:
<vb:else /> <br><a href="/register.php" class="newcontent_textcontrol" id="newreplylink_top"><span>+</span> Post Comment</a><br><br> Download No files for download. |