![]() |
Add "Post Comment" buttons to CMS Articles & Blogs for guests
1 Attachment(s)
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/c...ten-years.html And a blog post: http://nikonites.com/blogs/jdeg/73-a...portation.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" /> HTML Code:
<vb:else /> 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> HTML Code:
<vb:else /> |
thanks
|
I do not allow comments on the CMS but
I will use the Post Comment for the Blogs and guests can now say hello to my register page. Thanks for Sharing :) |
Thank you! This should be an integral part of the vBulletin software. Since moving to vBulletin I get ZERO comments...
|
How would I do this for mobile style as well?
|
I can't find where you are supposed to be able to edit the "vbcms_comments_page", is it in "Style Manager"?. Or, where is the place you edit that?.
|
Quote:
|
Quote:
http://bloggingforum.org/entry.php?3...n-In-vBulletin Thanks so much for this tutorial!. Hope my problem and solution will help others out. |
Quote:
Also, if you want to edit a template in the future and you already have some code, it may be easier to use the search feature on a bit of the code to find the template. |
Quote:
BEFORE doing this fix, there was no comment box there at all, NOTHING. I tried other browsers too, it was messed up!. |
All times are GMT. The time now is 10:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|